/* ===================================================================
   智学引擎 · 演示原型样式
   浅色主题 / 无外部依赖
   =================================================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --teal: #0D9488;
  --orange: #EA580C;
  --yellow: #CA8A04;
  --green: #16A34A;
  --red: #DC2626;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #94A3B8;
  --base: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 44px rgba(15, 23, 42, .09);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 700; }
.accent { color: var(--primary); }

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

/* ---------------- 导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--slate); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--primary); padding: 9px 16px; border-radius: 9px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(700px 380px at 12% 90%, rgba(13, 148, 136, .08), transparent 60%),
    var(--base);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-block: 96px 88px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-light);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-lead { font-size: 17px; color: var(--slate); max-width: 600px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 99, 235, .28); }
.btn-ghost { background: var(--surface); color: var(--slate); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hero-visual { position: relative; min-height: 340px; }
.float-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.fc-main { width: min(100%, 370px); top: 8px; right: 6px; transform: rotate(-1.2deg); }
.fc-top { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.fc-title { font-size: 20px; font-weight: 700; margin: 8px 0 16px; }
.fc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--slate); }
.fc-time { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; min-width: 50px; }
.fc-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #DCFCE7; color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.fc-badge { bottom: 18px; left: 0; font-size: 14px; color: var(--slate); transform: rotate(1.5deg); display: flex; align-items: center; gap: 10px; }
.fc-badge strong { color: var(--primary); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(13, 148, 136, .13); }

/* ---------------- 通用区块 ---------------- */
.section { padding-block: 88px; }
.section-alt { background: #F1F5F9; border-block: 1px solid var(--border); }
.section-head { margin-bottom: 34px; }
.section-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--primary); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; }
.section-head p { color: var(--slate); font-size: 16px; max-width: 760px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* ---------------- 核心闭环 ---------------- */
.loop-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px; align-items: center;
}
.loop-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 18px 22px; box-shadow: var(--shadow); text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.loop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.loop-num {
  position: absolute; top: 12px; right: 14px;
  font-size: 12px; font-weight: 800; color: var(--primary);
  background: var(--primary-light); width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center;
}
.loop-icon {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary);
}
.loop-icon svg { width: 24px; height: 24px; }
.loop-card h3 { font-size: 17px; font-weight: 700; }
.loop-card p { font-size: 13.5px; color: var(--slate); margin-top: 6px; }
.loop-arrow { color: var(--muted); font-size: 22px; text-align: center; }
.loop-foot { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th {
  text-align: left; font-size: 13px; font-weight: 700; color: var(--slate);
  background: #F1F5F9; padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child { border-top-left-radius: 10px; }
.data-table th:last-child { border-top-right-radius: 10px; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--slate); line-height: 1.65; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #F8FAFC; }
.method-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.method-group { margin-bottom: 28px; }
.method-group-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.group-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-diag { background: var(--primary-light); color: var(--primary); }
.tag-act { background: #CCFBF1; color: var(--teal); }
.compliance-note {
  margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--orange);
  background: #FFF7ED; border-radius: 0 10px 10px 0;
  font-size: 13.5px; color: #9A3412;
}

/* ---------------- 通用标签 ---------------- */
.tag { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.tag-success { background: #DCFCE7; color: #15803D; }
.tag-warn { background: #FEF3C7; color: #A16207; }
.tag-orange { background: #FFEDD5; color: #C2410C; }
.tag-yellow { background: #FEF9C3; color: #A16207; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-gray { background: #F1F5F9; color: var(--slate); }

/* ---------------- 诊断 ---------------- */
.diag-card { padding: 30px; }
.diag-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar { width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), #60A5FA); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.diag-name { font-weight: 700; font-size: 17px; }
.diag-name span { font-weight: 400; color: var(--slate); font-size: 14px; }
.diag-score { font-size: 13px; color: var(--muted); }
.diag-score strong { font-size: 22px; color: var(--primary); }
.diag-status { margin-left: auto; font-size: 13px; color: var(--muted); }
.upload-row { display: flex; align-items: center; gap: 14px; background: var(--base); border: 1px dashed var(--border); border-radius: 12px; padding: 16px 18px; margin: 24px 0 20px; }
.file-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.file-icon svg { width: 22px; height: 22px; }
.file-name { font-weight: 700; font-size: 14.5px; }
.file-desc { font-size: 13px; color: var(--slate); margin-top: 2px; }
.file-desc strong { color: var(--ink); }
.upload-row .tag { margin-left: auto; }
.diag-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.diag-hint { font-size: 13px; color: var(--muted); }
.diag-result { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.result-head { font-size: 14px; color: var(--slate); margin-bottom: 16px; }
.result-badge { display: inline-block; background: #DCFCE7; color: #15803D; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-right: 8px; }
.cause-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cause-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--base); }
.cause-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cause-label { font-weight: 700; font-size: 15px; }
.cause-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.cause-prescription { font-size: 13.5px; color: var(--slate); }
.cause-prescription b { color: var(--ink); }
.result-foot { margin-top: 16px; font-size: 13px; color: var(--teal); font-weight: 600; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-icon { display: inline-flex; align-items: center; vertical-align: -.25em; color: var(--primary); }
.inline-icon svg { width: 1.2em; height: 1.2em; }

/* ---------------- 掌握度 ---------------- */
.mastery-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.mastery-cell { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.bar { width: 120px; height: 8px; border-radius: 999px; background: #E2E8F0; overflow: hidden; flex-shrink: 0; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.bar.low > span { background: var(--orange); }
.mastery-num { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 38px; }

/* ---------------- 今日任务 ---------------- */
.status-card { margin-bottom: 16px; }
.status-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.day-chip { background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 14px; border-radius: 999px; }
.status-chip { background: #FFEDD5; color: #9A3412; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.status-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; font-size: 14px; color: var(--slate); }
.status-details .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.status-details strong { color: var(--ink); }
.timeline-card { padding-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.task-item { display: grid; grid-template-columns: 92px 30px 1fr; align-items: start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.task-item:last-child { border-bottom: none; }
.task-time { font-weight: 700; color: var(--primary); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.task-cb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid #CBD5E1; border-radius: 6px; background: #fff; cursor: pointer; position: relative; margin: 2px 0 0; transition: all .15s; }
.task-cb:hover { border-color: var(--primary); }
.task-cb:checked { background: var(--green); border-color: var(--green); }
.task-cb:checked::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.task-main { min-width: 0; }
.task-name { font-weight: 600; font-size: 15px; line-height: 1.5; }
.task-note { font-size: 13px; color: var(--muted); margin-top: 3px; }
.task-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--teal); background: #CCFBF1; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; }
.task-item.done .task-name { text-decoration: line-through; color: var(--muted); }
.task-item.done .task-note { opacity: .6; }
.tomorrow { margin-top: 20px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 14px 18px; font-size: 14px; color: #92400E; }
.tomorrow-label { font-weight: 700; margin-right: 10px; }

/* ---------------- 周安排 ---------------- */
.legend { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-review { background: var(--orange); }
.lg-quiz { background: var(--green); }
.lg-feynman { background: var(--yellow); }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.week-day { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px 13px; box-shadow: var(--shadow); min-height: 190px; }
.week-day.today { border: 2px solid var(--primary); box-shadow: 0 8px 24px rgba(37, 99, 235, .14); }
.day-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.today .day-name { color: var(--primary); }
.today-label { font-size: 10px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px; }
.week-items { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.week-item { font-size: 12px; line-height: 1.45; padding: 7px 9px; border-radius: 8px; background: #F1F5F9; color: var(--slate); border-left: 3px solid transparent; }
.week-item.w-review { background: #FFF7ED; border-left-color: var(--orange); color: #9A3412; }
.week-item.w-quiz { background: #F0FDF4; border-left-color: var(--green); color: #166534; }
.week-item.w-feynman { background: #FEFCE8; border-left-color: var(--yellow); color: #854D0E; }

/* ---------------- 对话 / 三问 / 测验 ---------------- */
.chat-card { padding: 30px; }
.chat-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.text-btn { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.text-btn:hover { background: var(--primary-light); }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.7; }
.ai-bubble { background: #EFF6FF; color: #1E3A8A; border-top-left-radius: 4px; }
.student-bubble { background: #F1F5F9; color: var(--slate); border-top-right-radius: 4px; align-self: flex-end; }
.checkin-questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.checkin-q { border: 1px solid var(--border); border-radius: 12px; padding: 15px; background: var(--base); }
.checkin-q-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--slate); font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkin-feedback { margin-top: 18px; background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; border-radius: 12px; padding: 14px 18px; font-size: 14px; }

.quiz-card { padding: 30px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; }
.quiz-index { background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.quiz-timer { font-size: 13px; color: var(--muted); }
.quiz-question { font-size: 21px; font-weight: 700; margin: 22px 0; letter-spacing: -.01em; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz-option { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 15px 18px; font-size: 15px; color: var(--slate); cursor: pointer; transition: all .16s; font-variant-numeric: tabular-nums; }
.quiz-option:hover:not(:disabled) { border-color: var(--primary); background: #F8FBFF; transform: translateY(-1px); }
.quiz-option.correct { border-color: var(--green); background: #F0FDF4; color: #166534; font-weight: 700; }
.quiz-option.wrong { border-color: var(--red); background: #FEF2F2; color: #991B1B; }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 14px; }
.quiz-feedback.ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.quiz-feedback.no { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.dialogue { display: flex; flex-direction: column; gap: 14px; }
.bubble-enter { animation: bubbleIn .28s ease both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feynman-conclusion { margin-top: 20px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 12px; padding: 15px 18px; font-size: 14px; }

/* ---------------- 图表 ---------------- */
.chart-card { padding: 30px; }
.chart-title { font-weight: 700; font-size: 17px; }
.chart-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate); margin-top: 6px; }
.chart-labels strong { color: var(--primary); }
.chart-wrap { margin-top: 22px; width: 100%; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------------- 家长周报 ---------------- */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report-card { padding: 24px; }
.report-label { font-size: 13px; color: var(--slate); font-weight: 600; }
.report-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.report-trend { font-size: 13px; color: var(--muted); }
.report-trend.trend-up { color: var(--green); font-weight: 600; }
.report-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; font-size: 14.5px; }
.action-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* ---------------- 教师看板 ---------------- */
.alert-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.alert-action { color: var(--primary); font-weight: 600; }
.alert-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--red); }
.alert-dot.warn { background: var(--orange); }
.alert-dot.info { background: var(--yellow); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0F172A; color: #fff; padding: 48px 0 28px; }
.compliance-box { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px 24px; }
.compliance-box strong { color: #93C5FD; font-size: 14px; }
.compliance-box p { color: #CBD5E1; font-size: 13.5px; margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: #94A3B8; }
.footer-brand { font-weight: 700; color: #E2E8F0; }
.footer-brand span { font-weight: 400; color: #94A3B8; }

/* ---------------- 入场动效 ---------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 72px 64px; }
  .hero-visual { min-height: 300px; max-width: 480px; }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-arrow { display: none; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .checkin-questions { grid-template-columns: 1fr; }
  .status-details { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 60px; }
  body { font-size: 15px; }
  .container, .nav-inner { width: min(100% - 28px, var(--maxw)); }
  .nav-inner { height: 60px; gap: 12px; }
  .brand { font-size: 16px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 25px; }
  .section-head p { font-size: 14.5px; }
  .hero-inner { padding-block: 48px 40px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15.5px; }
  .hero-actions { gap: 10px; }
  .btn { min-height: 44px; padding: 10px 16px; }
  .hero-visual { display: none; }
  .loop-grid { grid-template-columns: 1fr; gap: 12px; }
  .loop-card { padding: 20px 16px 18px; }
  .cause-grid { grid-template-columns: 1fr; }
  .status-details { grid-template-columns: 1fr; }
  .task-item { grid-template-columns: 74px 26px 1fr; gap: 8px; }
  .task-name { font-size: 14px; overflow-wrap: anywhere; }
  .task-tag { display: block; margin: 6px 0 0; width: fit-content; }
  .week-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .week-day { min-height: 0; padding: 12px 10px; }
  .week-item { overflow-wrap: anywhere; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-option { min-height: 44px; }
  .quiz-question { font-size: 18px; }
  .checkin-q { padding: 13px; }
  .chip { min-height: 34px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-actions { grid-template-columns: 1fr; }
  .bubble { max-width: 100%; font-size: 14px; padding: 12px 14px; }
  .diag-status { margin-left: 0; width: 100%; }
  .upload-row { flex-wrap: wrap; }
  .upload-row .tag { margin-left: 0; }
  .card, .chat-card, .quiz-card, .chart-card, .diag-card { padding: 18px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }
  .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-wrap svg { min-width: 480px; }
  .footer-bottom { flex-direction: column; }
  .compliance-box { padding: 16px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 28px; }
  .week-grid { grid-template-columns: 1fr; }
  .nav-cta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
