/* ===== 习思封闭集训 · 全站样式（桌面 + 手机端自适应） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand: #2E7FA8;
    --brand-dark: #16324F;
    --accent: #E8683A;
    --accent-soft: #FDF1EA;
    --ink: #22303E;
    --muted: #5B6B7B;
    --bg: #F5F8FB;
    --card: #FFFFFF;
    --line: #E3EAF1;
    --pain: #C0392B;
    --pain-bg: #FBEDEB;
    --solve: #1E8E5A;
    --solve-bg: #E9F6EF;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(22, 50, 79, .08);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.jx-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.jx-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.jx-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--brand-dark); }
.jx-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--brand); }
.jx-logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.jx-links { display: flex; align-items: center; gap: 4px; }
.jx-links a {
    padding: 8px 14px; border-radius: 10px; font-size: 15px; color: var(--ink);
    transition: background .2s, color .2s;
}
.jx-links a:hover { background: var(--accent-soft); color: var(--accent); }
.jx-links a.active { background: var(--brand); color: #fff; font-weight: 600; }
.jx-links a.home-link { border: 1px solid var(--line); color: var(--muted); margin-left: 8px; }
.jx-links a.home-link:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.jx-toggle {
    display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
    width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: var(--brand-dark);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #16324F 0%, #2E7FA8 60%, #3E97C4 100%);
    color: #fff; padding: 72px 0 96px; text-align: center;
    position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(232, 104, 58, .18);
}
.hero .badge {
    display: inline-block; padding: 6px 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 42px; line-height: 1.35; margin-bottom: 18px; font-weight: 800; }
.hero h1 .hl { color: #FFC53D; }
.hero .slogan { font-size: 17px; max-width: 760px; margin: 0 auto 26px; opacity: .92; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 1; }
.hero-feats span {
    padding: 6px 16px; border-radius: 999px; font-size: 14px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}

/* ===== Highlight 横幅 ===== */
.hl-banner {
    background: linear-gradient(90deg, var(--accent), #F08A4B);
    color: #fff; text-align: center; padding: 16px 20px;
    font-size: 16px; font-weight: 600; letter-spacing: .5px;
}
.hl-banner small { display: block; font-weight: 400; font-size: 13px; opacity: .9; margin-top: 2px; }

/* ===== 核心数据栏 ===== */
.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin: -52px auto 0; position: relative; z-index: 2; padding-bottom: 8px;
}
.stats-strip.flat { margin-top: 32px; }
.stat {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 16px; text-align: center; border-top: 4px solid var(--accent);
}
.stat b { display: block; font-size: 30px; color: var(--brand-dark); line-height: 1.2; }
.stat b em { font-style: normal; font-size: 16px; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }

/* ===== 通用 Section ===== */
section.block { padding: 56px 0 8px; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-label { font-size: 13px; letter-spacing: 2px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.sec-title { font-size: 30px; color: var(--brand-dark); margin: 6px 0 8px; }
.sec-desc { color: var(--muted); font-size: 15px; }

/* ===== 产品线卡片（首页） ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s; border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(22, 50, 79, .14); }
.pc-band { height: 8px; }
.pc-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-icon { font-size: 34px; margin-bottom: 10px; }
.pc-body h3 { font-size: 20px; color: var(--brand-dark); margin-bottom: 6px; }
.pc-sub { font-size: 14px; color: var(--muted); flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.pc-tags span {
    font-size: 12px; padding: 3px 10px; border-radius: 999px;
    background: var(--bg); color: var(--brand-dark); border: 1px solid var(--line);
}
.pc-go { font-size: 14px; color: var(--accent); font-weight: 600; }

/* ===== 优势卡片 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card {
    background: var(--card); border-radius: var(--radius); padding: 26px 20px;
    box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center;
}
.adv-card .ico { font-size: 36px; margin-bottom: 12px; }
.adv-card h3 { font-size: 18px; color: var(--brand-dark); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--muted); }

/* ===== 痛点 vs 解决方案 双栏 ===== */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-col { border-radius: var(--radius); padding: 26px 24px; }
.vs-col.pain { background: var(--pain-bg); border: 1px solid #F2D2CC; }
.vs-col.solve { background: var(--solve-bg); border: 1px solid #C8E7D6; }
.vs-col h3 { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.vs-col.pain h3 { color: var(--pain); }
.vs-col.solve h3 { color: var(--solve); }
.vs-item {
    background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(22, 50, 79, .05);
}
.vs-item:last-child { margin-bottom: 0; }
.vs-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.vs-col.pain .vs-item b { color: var(--pain); }
.vs-col.solve .vs-item b { color: var(--solve); }
.vs-item p { font-size: 13.5px; color: var(--muted); }
.vs-arrow { display: none; }

/* ===== 课程模块卡片 ===== */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mod-card {
    background: var(--card); border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line); border-left: 6px solid var(--brand);
}
.mod-card h3 { font-size: 18px; color: var(--brand-dark); margin-bottom: 4px; }
.mod-card .hours { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }
.mod-card ul { list-style: none; }
.mod-card li { font-size: 14px; color: var(--muted); padding: 4px 0 4px 20px; position: relative; }
.mod-card li::before { content: "▸"; position: absolute; left: 2px; color: var(--brand); }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
    content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
}
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
    content: ""; position: absolute; left: -31px; top: 6px;
    width: 15px; height: 15px; border-radius: 50%;
    background: #fff; border: 4px solid var(--accent);
}
.tl-item .tl-phase {
    display: inline-block; font-size: 13px; font-weight: 700; color: #fff;
    background: var(--brand); border-radius: 999px; padding: 2px 14px; margin-bottom: 6px;
}
.tl-item h4 { font-size: 17px; color: var(--brand-dark); margin-bottom: 4px; }
.tl-item p { font-size: 14px; color: var(--muted); }

/* ===== 封闭管理细则 ===== */
.mgmt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mgmt-card {
    background: var(--card); border-radius: var(--radius); padding: 24px 20px;
    box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--brand);
}
.mgmt-card .ico { font-size: 30px; margin-bottom: 8px; }
.mgmt-card h3 { font-size: 17px; color: var(--brand-dark); margin-bottom: 8px; }
.mgmt-card p { font-size: 13.5px; color: var(--muted); }

/* ===== 本地适配 ===== */
.local-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.local-item {
    display: flex; gap: 14px; background: var(--card); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.local-item .n {
    flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}
.local-item b { display: block; font-size: 15.5px; color: var(--brand-dark); }
.local-item p { font-size: 13.5px; color: var(--muted); }

/* ===== 数据表 ===== */
.table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
table.jx-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.jx-table th, .jx-table td { padding: 13px 16px; text-align: left; font-size: 14px; }
.jx-table thead th {
    background: var(--brand-dark); color: #fff; font-weight: 600; white-space: nowrap;
}
.jx-table tbody tr:nth-child(even) { background: #F2F7FB; }
.jx-table tbody tr:hover { background: var(--accent-soft); }
.jx-table td:first-child { font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 10px; padding-left: 4px; }

/* ===== 口号条 ===== */
.motto {
    text-align: center; padding: 44px 20px; margin: 48px 0;
    background: linear-gradient(135deg, #16324F, #2E7FA8);
    border-radius: var(--radius); color: #fff;
}
.motto p { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.motto small { font-size: 13px; opacity: .85; }

/* ===== 页脚 ===== */
.jx-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .82); margin-top: 64px; }
.jx-footer .f-inner {
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
    padding: 36px 24px 20px; font-size: 14px;
}
.f-brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.jx-footer a { color: rgba(255, 255, 255, .82); }
.jx-footer a:hover { color: #FFC53D; }
.f-declare {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 14px 24px 22px; text-align: center;
    font-size: 12.5px; color: rgba(255, 255, 255, .55);
}

/* ===== 动效 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 手机端适配 ===== */
@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .mgmt-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 34px; }
}

@media (max-width: 720px) {
    .container { padding: 0 16px; }

    /* 导航折叠 */
    .jx-toggle { display: block; }
    .jx-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 10px 16px 16px; gap: 4px;
        border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(22, 50, 79, .12);
    }
    .jx-links.open { display: flex; }
    .jx-links a { padding: 12px 14px; font-size: 16px; }
    .jx-links a.home-link { margin-left: 0; text-align: center; }

    .hero { padding: 52px 0 88px; }
    .hero h1 { font-size: 27px; }
    .hero .slogan { font-size: 15px; }
    .hl-banner { font-size: 14.5px; }

    .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -46px; }
    .stat { padding: 16px 10px; }
    .stat b { font-size: 24px; }

    section.block { padding: 42px 0 4px; }
    .sec-title { font-size: 24px; }

    .product-grid, .adv-grid, .mod-grid, .mgmt-grid, .local-list { grid-template-columns: 1fr; }
    .vs-grid { grid-template-columns: 1fr; }

    .motto p { font-size: 18px; }
    .jx-footer .f-inner { flex-direction: column; gap: 14px; }
}
