/* ==========================================
   06TG 全平台适配终极完整版 style.css
   ========================================== */

/* 1. 全局基础样式 */
html { background: #f4f6f8; -webkit-font-smoothing: antialiased; }
body { 
    color: #333; font-family: "PingFang SC", "Microsoft Yahei", sans-serif; 
    font-size: 16px; width: 100%; background: #f4f6f8; margin: 0; padding: 0; 
}
body.nav-open { overflow: hidden; }
p { line-height: 1.9em; font-weight: 400; margin: 0; }
a { text-decoration: none; transition: all .15s linear; color: #424242; }
a:active, a:hover { color: #ff4d4f; }

/* 2. 核心布局容器 - 统一锁定 1000px */
.main {
    background: #fff;
    box-shadow: 0 24px 70px rgba(29, 43, 64, .08);
    width: min(1180px, calc(100% - 48px));
    margin: 48px auto 0;
    border-radius: 14px 14px 0 0;
    overflow: visible;
}
.content {
    width: 100% !important;
    max-width: 1180px;
    padding: 0 56px;
    margin: 0 auto;
    box-sizing: border-box !important;
}

/* 3. 顶部导航栏 */
.header {
    width: 100%;
    min-height: 86px;
    padding: 0 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(255,77,79,.35);
    box-shadow: 0 10px 30px rgba(31,43,61,.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px 14px 0 0;
}

.header .site_title_container {
    flex: 1 1 auto;
    min-width: 0;
}
.header .site_title { min-width: 0; }
.header .site_title_container .site_title a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #16181d !important;
    white-space: nowrap;
    letter-spacing: 0;
}
.header .site_title_container .site_title img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 96px;
}

/* 4. 菜单样式 */
.my_menu {
    flex: 0 0 auto;
    display: block;
}
.my_menu ul,
#nav_menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.my_menu li,
#nav_menu > li {
    display: block;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.my_menu li:before,
.my_menu li:after,
#nav_menu > li:before,
#nav_menu > li:after {
    content: none !important;
    display: none !important;
}
.my_menu a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.my_menu .nav-icon {
    flex: 0 0 auto;
    width: 1em;
    text-align: center;
    font-size: 14px;
}
.my_menu a:hover,
.my_menu a.current {
    color: #f5222d;
    background: #fff1f0;
}
.my_menu .nav-support {
    color: #f5222d;
    font-weight: 800;
}
.nav-search-item {
    display: flex !important;
    align-items: center;
}
.title-search-form {
    display: flex;
    align-items: center;
    width: 240px;
    height: 46px;
    border: 1px solid #cfc9c1;
    border-radius: 999px;
    background: #fbfaf7;
    box-shadow: none;
    overflow: hidden;
}
.title-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 18px 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3c3c3c;
    font-size: 16px;
    font-family: inherit;
}
.title-search-input::placeholder {
    color: #77726c;
}
.title-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6f6a63;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s linear, color .15s linear;
}
.title-search-submit:hover,
.title-search-submit:focus {
    background: transparent;
    color: #cf3b30;
}
.paginator {
    text-align: center;
    margin: 40px 0;
}
.paginator .page-navigator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.paginator .page-navigator li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.paginator .page-navigator li::marker,
.paginator .page-navigator li:before,
.paginator .page-navigator li:after {
    content: none !important;
}
.paginator .page-navigator a,
.paginator .page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.paginator .page-navigator a:hover,
.paginator .page-navigator .current a,
.paginator .page-navigator .current span {
    border-color: #ff4d4f;
    background: #fff1f0;
    color: #f5222d;
}

/* 5. 立即购买按钮 */
.btn-consult, .header .btn-main {
    background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 100%) !important;
    color: #fff !important; padding: 10px 24px !important; border-radius: 6px !important;
    font-weight: bold !important; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(245, 34, 45, 0.25) !important;
    cursor: pointer; display: inline-block;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 5px;
    border: 1px solid #edf0f3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 43, 61, .08);
    cursor: pointer;
    z-index: 220;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. 首页内容 */
.home-content { max-width: 1000px; margin: 0 auto; }
.hero-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 92px 24px 78px;
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}
.hero-section:before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,77,79,.35), transparent);
}
.hero-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,77,79,.18);
    border-radius: 6px;
    background: rgba(255,255,255,.72);
    color: #f5222d;
    font-size: 13px;
    font-weight: 800;
}
.hero-title {
    position: relative;
    max-width: 820px;
    margin: 0 auto 22px;
    font-size: 46px;
    line-height: 1.18;
    color: #16181d;
    font-weight: 900;
}
.hero-subtitle {
    position: relative;
    max-width: 720px;
    margin: 0 auto 38px;
    color: #5f6673;
    font-size: 18px;
    line-height: 1.9;
}
.btn-main {
    position: relative;
    background: linear-gradient(135deg, #ff4d4f 0%, #e31b23 100%);
    color: #fff;
    padding: 17px 46px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 16px 34px rgba(255,77,79,0.25);
}
.btn-main:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 20px 40px rgba(255,77,79,0.32); }
.hero-points {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
    padding: 0;
    list-style: none;
}
.hero-points li {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.8);
    color: #5b6472;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(31,43,61,.04);
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 48px 0; }
.feature-item { background: #fff; border: 1px solid #edf0f3; padding: 34px 28px; border-radius: 8px; text-align: center; transition: all 0.25s ease; box-shadow: 0 12px 30px rgba(31,43,61,.04); }
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(31,43,61,.08); border-color: rgba(255,77,79,.45); }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #fff1f0;
    color: #f5222d;
    font-size: 26px;
    box-shadow: inset 0 0 0 1px rgba(255,77,79,.16);
}
.feature-h3 { font-size: 18px; color: #333; margin-bottom: 10px; }
.feature-p { color: #888; font-size: 14px; line-height: 1.5; }
.faq-section { background: #fbfbfb; padding: 46px 24px; border-radius: 8px; margin-bottom: 48px; border: 1px solid #f0f2f5; }
.section-title { font-size: 22px; font-weight: bold; margin-bottom: 25px; text-align: center; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { background: #fff; padding: 22px; border-radius: 6px; border: 1px solid #f0f2f5; }
.faq-item h4 { margin: 0 0 10px 0; color: #333; }
.faq-item p { margin: 0; color: #666; font-size: 14px; line-height: 1.8; }
.post-list-section { padding: 6px 20px 20px; background: #fff; }
.post-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #222;
    font-size: 17px;
    font-weight: 800;
}
.post-list-title:before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #ff4d4f;
}
.news-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    gap: 15px;
    transition: background .2s ease;
}
.news-item:hover { background: #fffafa; }
.news-item a {
    display: block;
    flex: 1;
    min-width: 0;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    margin-right: 0;
}
.news-item .date-span { color: #999; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.home-pagination { padding: 40px 0; text-align: center; }

/* 7. 单页 */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
}
.single-page {
    padding: 0 0 64px;
}
.page-hero {
    padding: 72px 32px 48px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
    text-align: center;
}
.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
    border-radius: 6px;
    background: #fff;
    color: #8a8f99;
    font-size: 14px;
    font-weight: 700;
}
.page-breadcrumb a {
    color: #8a8f99;
}
.page-breadcrumb a:hover {
    color: #f5222d;
}
.page-hero h1 {
    position: relative;
    margin: 0;
    color: #1f2329;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 900;
}
.page-hero h1:after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: #ff4d4f;
}
.page-body {
    max-width: 820px;
    padding: 42px 0 0;
    margin: 0 auto;
    color: #3f4652;
    font-size: 16px;
    line-height: 1.95;
}
.page-body > *:first-child {
    margin-top: 0;
}

/* 8. Footer */
#footer {
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid #eee;
    background: #fff;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.footer-flex {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    align-items: flex-start;
    gap: 32px;
}
.footer-brand { min-width: 260px; text-align: left; }
.footer-copy { margin: 0; color: #1a1a1a; font-size: 16px; font-weight: 800; }
.footer-copy a { color: #1a1a1a; text-decoration: none; }
.footer-name { margin: 12px 0 5px; color: #444; font-size: 14px; font-weight: 600; }
.footer-desc { margin: 0; color: #888; font-size: 13px; line-height: 1.6; }
.footer-links { text-align: left; }
.footer-heading { margin: 0 0 12px; color: #1a1a1a; font-size: 14px; font-weight: 800; }
.footer-links a { display: block; margin-bottom: 8px; color: #777; font-size: 13px; }
.footer-btn-area { text-align: right; }
.footer-support-btn {
    display: inline-block;
    color: #ff4d4f;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #ff4d4f;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
}
.footer-support-note { margin: 12px 0 0; color: #aaa; font-size: 12px; line-height: 1.6; }
#back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    line-height: 45px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================
   9. 手机端深度适配补丁 (解决截图中的错位)
   ========================================== */
@media screen and (max-width: 1000px) {
    .main {
        width: 100%;
        margin-top: 0;
        border-radius: 0;
    }
    .content { width: 100% !important; padding: 0 20px !important; }
    .header { width: 100% !important; padding: 0 20px !important; border-radius: 0; }
}

@media screen and (max-width: 780px) {
    .header {
        min-height: 68px;
        height: auto !important;
        padding: 0 16px !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        column-gap: 10px !important;
        row-gap: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header .site_title_container {
        flex: 1 1 calc(100% - 58px) !important;
        width: calc(100% - 58px) !important;
        max-width: calc(100% - 58px) !important;
        min-width: 0 !important;
        text-align: left !important;
        margin: 0 !important;
    }
    .header .site_title_container .site_title a { font-size: 18px !important; }
    .header .site_title_container .site_title img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 92px !important;
        object-fit: contain;
    }

    .hamburger {
        display: flex;
        flex: 0 0 44px !important;
        margin-left: auto !important;
    }

    .my_menu {
        flex: 0 0 100%;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0 !important;
        padding: 0 !important;
        transition: max-height .24s ease, opacity .2s ease, padding .2s ease;
    }
    .my_menu.open {
        max-height: 460px;
        opacity: 1;
        padding: 8px 0 14px !important;
    }
    .my_menu ul,
    #nav_menu {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .my_menu li,
    #nav_menu > li {
        margin: 0 !important;
        border-top: 1px solid #f1f3f5;
    }
    .my_menu a {
        display: flex !important;
        min-height: 56px;
        align-items: center;
        justify-content: flex-start;
        padding: 0 6px !important;
        border-radius: 6px;
        color: #30343b !important;
        font-size: 16px !important;
        font-weight: 600;
        white-space: nowrap !important;
    }
    .my_menu a:hover,
    .my_menu a.current {
        color: #f5222d !important;
        background: #fff1f0;
    }
    .my_menu .nav-support {
        color: #f5222d !important;
        font-weight: 800;
    }
    .nav-search-item {
        padding: 12px 0 !important;
        border-top: 1px solid #f1f3f5;
    }
    .title-search-form {
        width: 100%;
        height: 46px;
        box-shadow: none;
    }
    .title-search-input {
        font-size: 15px;
        padding-right: 16px;
    }
    .title-search-submit {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    /* 专题报告列表在手机端的间距优化 */
    .post { padding: 15px 0 !important; margin-top: 15px !important; }
    .post .post_title h2 { font-size: 16px !important; }
    .single-page { padding-bottom: 40px; }
    .page-hero { padding: 48px 18px 32px; }
    .page-breadcrumb { margin-bottom: 18px; font-size: 13px; }
    .page-hero h1 { font-size: 26px; }
    .page-hero h1:after { width: 34px; height: 3px; margin-top: 14px; }
    .page-body { padding-top: 28px; font-size: 15px; line-height: 1.85; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-item { padding: 28px 18px; }
    .feature-icon { font-size: 34px; }
    .feature-h3 { font-size: 16px; }
    .feature-p { font-size: 13px; line-height: 1.65; }
    .faq-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 64px 16px 56px; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 16px; }
    .hero-points { gap: 8px; }
    .hero-points li { font-size: 12px; }
    .btn-main { width: 100%; max-width: 320px; padding-left: 0; padding-right: 0; }
    .post-list-section { padding: 0 4px 12px; }
    .post-list-title { margin-bottom: 12px; font-size: 16px; }
    .news-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px;
        padding: 14px 0 !important;
    }
    .news-item a {
        min-width: 0;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-right: 0;
        line-height: 1.5;
        font-size: 14px;
    }
    .news-item .date-span {
        width: 86px;
        text-align: right;
        font-size: 12px;
    }
    #footer { margin-top: 42px; padding: 34px 0 28px; }
    .footer-container { padding: 0 20px; }
    .footer-flex { display: block; text-align: center; }
    .footer-flex div { text-align: center; width: 100%; margin-bottom: 16px; }
    .footer-brand { margin-bottom: 18px; }
    .footer-copy { margin-top: 18px; color: #999; font-size: 12px; font-weight: 600; }
    .footer-name { margin: 0 0 8px; color: #1f2329; font-size: 18px; font-weight: 900; }
    .footer-desc { max-width: 300px; margin: 0 auto; color: #8a8f99; font-size: 13px; line-height: 1.7; }
    .footer-links { padding: 14px 0 2px; border-top: 1px solid #f0f2f5; }
    .footer-heading { margin-bottom: 10px; font-size: 13px; }
    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        margin: 0 4px 8px;
        padding: 0 10px;
        border-radius: 6px;
        background: #f7f8fa;
        color: #666;
        font-size: 12px;
    }
    .footer-btn-area { margin-top: 2px; padding-top: 2px; }
    .footer-support-btn { padding: 7px 16px; border-color: #ffb3b3; background: #fffafa; font-size: 13px; }
    .footer-support-note { margin-top: 10px; font-size: 12px; }
    #back-to-top { width: 40px; height: 40px; line-height: 40px; right: 14px; bottom: 18px; }
}

@media (max-width: 420px) {
    .feature-grid { gap: 14px; }
    .feature-item { padding: 24px 14px; }
    .feature-icon { font-size: 30px; }
    .feature-h3 { font-size: 15px; }
    .feature-p { font-size: 12px; }
}

/* 动画效果 */
.animated { animation: fadeInDown 0.6s both; }
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
