/* ============================================================
   班级管理系统 · 项目静态站
   零依赖，纯手写
   ============================================================ */

:root {
    --ink:        #0b1524;
    --ink-2:      #16233a;
    --text:       #1e293b;
    --muted:      #64748b;
    --faint:      #94a3b8;
    --line:       #e3e9f2;
    --bg:         #f7f9fc;
    --white:      #ffffff;

    --teal:       #0ea5a4;
    --teal-2:     #14b8a6;
    --cyan:       #06b6d4;
    --blue:       #2563eb;

    --radius:     18px;
    --radius-sm:  12px;
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow:     0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg:  0 30px 70px -30px rgba(15, 23, 42, .35);

    --wrap:       1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
                 "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }

p { margin: 0; }

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin-inline: auto;
}

.wrap--narrow { width: min(760px, calc(100% - 48px)); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, var(--teal-2), var(--cyan));
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(14, 165, 164, .9);
}

.btn--primary:hover { box-shadow: 0 16px 28px -14px rgba(14, 165, 164, .95); }

.btn--outline {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

.btn--ghost {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn--lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------------- 导航 ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 21, 36, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .25s ease, box-shadow .25s ease;
}

.nav.is-stuck {
    background: rgba(11, 21, 36, .94);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .8);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.nav__brand img { border-radius: 9px; }

.nav__brand span { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand strong { font-size: 15px; font-weight: 700; }
.nav__brand em {
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: .16em;
    color: var(--teal-2);
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav__links a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #b6c4d6;
    transition: color .18s ease, background .18s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 78% -8%, rgba(20, 184, 166, .22), transparent 62%),
        radial-gradient(900px 500px at 8% 10%, rgba(37, 99, 235, .18), transparent 60%),
        linear-gradient(180deg, #0b1524 0%, #0d1a2c 68%, #f7f9fc 68.1%);
    color: #fff;
    padding: 74px 0 96px;
}

.hero__glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 460px;
    background: radial-gradient(closest-side, rgba(6, 182, 212, .28), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px 6px 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
    color: #cbd5e1;
}

.pill b {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .22);
    color: #5eead4;
    font-size: 11.5px;
    letter-spacing: .02em;
}

.hero h1 {
    margin: 20px 0 0;
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.grad {
    background: linear-gradient(100deg, #5eead4 0%, #22d3ee 48%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin-top: 18px;
    max-width: 480px;
    font-size: 15.5px;
    color: #a9b8cb;
}

.hero__lead strong { color: #e2e8f0; font-weight: 600; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: #7f92aa;
}

.hero__facts li { display: flex; align-items: center; gap: 7px; }

.hero__facts li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal-2);
}

.hero__visual { position: relative; }

.shot {
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow-lg);
}

.shot img { width: 100%; height: auto; }

.shot--hero {
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform .5s ease;
}

.hero__visual:hover .shot--hero {
    transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 12px;
    animation: floaty 6s ease-in-out infinite;
}

.float b { display: block; font-size: 12.5px; }
.float small { color: var(--muted); font-size: 11px; }

.float--a { left: -34px; bottom: 78px; }
.float--b { right: -22px; top: 46px; animation-delay: -3s; }

.float__num {
    font-size: 22px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------------- 统计条 ---------------- */
.stats { margin-top: -34px; position: relative; z-index: 3; }

.stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 8px;
}

.stat { text-align: center; }

.stat b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(120deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 区块通用 ---------------- */
.section { padding: 92px 0; }

.section--soft { background: #fff; }

.section--dark {
    background:
        radial-gradient(900px 420px at 88% 0%, rgba(20, 184, 166, .16), transparent 60%),
        linear-gradient(180deg, #0b1524, #0e1b2e);
    color: #fff;
}

.section__head {
    max-width: 640px;
    margin-bottom: 44px;
}

.section__head--light p { color: #9fb0c6; }

.eyebrow {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 164, .1);
    color: var(--teal);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
}

.section__head h2 {
    margin: 14px 0 12px;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section__head p {
    font-size: 15px;
    color: var(--muted);
}

.section__head--light h2 { color: #fff; }

/* ---------------- 网格与卡片 ---------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #cfe3e2;
    box-shadow: var(--shadow);
}

.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(6, 182, 212, .12));
    margin-bottom: 16px;
}

.card h3 { font-size: 16.5px; font-weight: 700; }

.card > p {
    margin-top: 8px;
    font-size: 13.6px;
    color: var(--muted);
}

.card__list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    font-size: 12.8px;
    color: #475569;
}

.card__list li {
    position: relative;
    padding-left: 16px;
}

.card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal-2);
}

/* ---------------- 一体机 ---------------- */
.kiosk {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.kiosk__points { display: grid; gap: 26px; }

.point__tag {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(20, 184, 166, .16);
    color: #5eead4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
}

.point h3 { font-size: 16px; font-weight: 700; }

.point p {
    margin-top: 6px;
    font-size: 13.4px;
    color: #9fb0c6;
}

.shot--tilt {
    transform: perspective(1600px) rotateY(4deg);
    transform-origin: right center;
    border-color: rgba(255, 255, 255, .14);
}

.kiosk__shot { padding-right: 4px; }

/* ---------------- 截图浏览器 ---------------- */
.viewer {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.viewer__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s ease;
}

.tab:hover { border-color: var(--teal); color: var(--teal); }

.tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.viewer__stage {
    border-radius: 12px;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--line);
}

.viewer__stage img {
    width: 100%;
    height: auto;
    transition: opacity .18s ease;
}

.viewer__stage img.is-swapping { opacity: .35; }

.viewer__hint {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--faint);
    text-align: center;
}

/* ---------------- 安全 ---------------- */
.mini {
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.mini h3 { font-size: 14px; font-weight: 700; }

.mini p {
    margin-top: 7px;
    font-size: 12.8px;
    color: var(--muted);
}

/* ---------------- 下载 ---------------- */
.dl { align-items: stretch; }

.dl-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .22s ease, transform .18s ease;
}

.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.dl-card__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .1);
    color: var(--blue);
    font-size: 11.5px;
    font-weight: 700;
}

.dl-card__badge--teal {
    background: rgba(20, 184, 166, .12);
    color: #0d9488;
}

.dl-card h3 {
    margin-top: 12px;
    font-size: 16px;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-weight: 700;
    word-break: break-all;
}

.dl-card__head > p {
    margin-top: 8px;
    font-size: 13.4px;
    color: var(--muted);
}

.dl-card__list {
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 12.9px;
    color: #475569;
}

.dl-card__list li {
    position: relative;
    padding-left: 20px;
}

.dl-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.dl-card .btn { margin-top: auto; }

.dl-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--faint);
}

/* 在线更新包：横向一条，不跟安装包抢视觉 */
.dl-update {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.dl-update__head { flex: 1; min-width: 0; }

.dl-update__head h3 {
    margin: 10px 0 6px;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 14.5px;
    font-weight: 700;
    word-break: break-all;
}

.dl-update__head p {
    font-size: 13px;
    color: var(--muted);
    max-width: 640px;
}

.dl-update__head strong { color: var(--text); }

.dl-update__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.dl-update__size {
    font-size: 12.5px;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.dl-card__badge--ghost {
    background: rgba(15, 23, 42, .06);
    color: var(--muted);
}

.dl-extra a {
    color: var(--muted);
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 1px;
}

.dl-extra a:hover { color: var(--teal); border-color: var(--teal); }

.note {
    margin-top: 26px;
    padding: 16px 20px;
    border-left: 3px solid var(--teal);
    background: rgba(14, 165, 164, .06);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: #475569;
}

.note b {
    display: inline-block;
    margin-right: 8px;
    color: var(--teal);
}

/* ---------------- 路线图 ---------------- */
.road {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.road__item {
    position: relative;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.road__no {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--teal);
    margin-bottom: 10px;
}

.road__item h3 { font-size: 15px; font-weight: 700; }

.road__item p {
    margin-top: 8px;
    font-size: 12.9px;
    color: var(--muted);
}

.road__item b { color: var(--text); }

.road__note {
    margin-top: 22px;
    padding: 15px 20px;
    background: #fff;
    border: 1px dashed #cfe0e0;
    border-radius: 12px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------------- FAQ ---------------- */
.faq {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 22px;
    margin-bottom: 12px;
    transition: box-shadow .2s ease;
}

.faq[open] { box-shadow: var(--shadow-sm); }

.faq summary {
    padding: 17px 0;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    font-size: 19px;
    font-weight: 400;
    color: var(--faint);
    transition: transform .2s ease;
}

.faq[open] summary::after { content: "−"; }

.faq p {
    padding: 0 0 18px;
    font-size: 13.5px;
    color: var(--muted);
    max-width: 92%;
}

.faq code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, .06);
    font-size: 12.6px;
}

/* ---------------- 页脚 ---------------- */
.foot {
    background: var(--ink);
    color: #94a3b8;
    padding: 44px 0 40px;
}

.foot__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.foot__brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.foot__brand img { border-radius: 10px; }

.foot__brand div { display: flex; flex-direction: column; line-height: 1.35; }
.foot__brand strong { color: #e2e8f0; font-size: 14px; }
.foot__brand span { font-size: 12px; color: #64748b; }

.foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: auto;
    font-size: 13px;
}

.foot__links a:hover { color: var(--teal-2); }

.foot__meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #526179;
}

/* ---------------- 滚动淡入 ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .float { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 44px; }
    .hero__lead { max-width: none; }
    .hero__visual { max-width: 640px; }
    .float--a { left: 6px; }
    .float--b { right: 6px; }

    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .road { grid-template-columns: repeat(2, 1fr); }
    .kiosk { grid-template-columns: 1fr; gap: 40px; }
    .kiosk__points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }

    .nav__links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 10px 16px 16px;
        background: rgba(11, 21, 36, .97);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: none;
    }

    .nav__links.is-open { display: flex; }

    .nav__toggle { display: flex; }
    .nav__actions .btn--ghost { display: none; }

    .hero { padding: 52px 0 84px; }
    .hero h1 { font-size: 34px; }

    .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .stat b { font-size: 26px; }

    .section { padding: 64px 0; }

    .grid--2, .grid--3, .grid--4, .road, .kiosk__points { grid-template-columns: 1fr; }

    .dl-update { flex-direction: column; align-items: flex-start; gap: 16px; }
    .dl-update__side { align-items: stretch; width: 100%; }
    .dl-update__side .btn { width: 100%; }
    .dl-update__size { text-align: right; }

    .float--a { left: 2px; bottom: 12px; padding: 9px 12px; }
    .float--b { right: 2px; top: 8px; padding: 9px 12px; }

    .foot__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .foot__links, .foot__meta { margin-left: 0; }
}
