/* 晨读会成长学院 · 前台样式 —— 基于说明书第12章 UI Design System */
:root {
  --brand: #2E7D32;      /* 品牌主色 · 成长/自然 */
  --brand-d: #1B5E20;
  --brand-l: #E8F3E9;
  --ai: #4F46E5;         /* AI 与科技 */
  --accent: #F59E0B;     /* CTA 强调 */
  --accent-d: #D97706;
  --bg: #F8FAFC;         /* 阅读背景 */
  --surface: #FFFFFF;
  --text: #1F2937;       /* 正文 */
  --muted: #6B7280;
  --line: #E5E7EB;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --maxw: 1200px;
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: .5px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--radius); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(245, 158, 11, .35); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-d); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; }
.brand .logo { height: 34px; width: auto; display: block; }
.brand-suffix { font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: .5px; white-space: nowrap; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
/* 「课程」下拉 */
.nav-dd { position: relative; }
.nav-dd-t { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: 15px; font-weight: 500; padding: 6px 0; white-space: nowrap; cursor: pointer; }
.nav-dd-t:hover, .nav-dd:hover .nav-dd-t { color: var(--brand); }
.nav-dd-t.on { color: var(--brand); font-weight: 700; }
.nav-dd-t .caret { font-size: 10px; opacity: .6; transition: transform .15s; }
.nav-dd:hover .caret { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: 100%; left: -14px; padding-top: 10px; min-width: 220px; z-index: 60; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu > a { display: block; background: #fff; padding: 10px 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.nav-dd-menu > a:first-child { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; padding-top: 12px; }
.nav-dd-menu > a:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-bottom: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.nav-dd-menu > a:hover { background: #F8FAFC; }
.nav-dd-menu b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.nav-dd-menu a.on b { color: var(--brand); }
.nav-dd-menu small { display: block; font-size: 12px; color: #6B7280; margin-top: 2px; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hamburger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 42px; height: 42px; cursor: pointer; flex: none; }
/* 中等屏收紧间距：7 个导航项 + 右侧按钮容易挤 */
@media (max-width: 1200px) {
  .nav { gap: 16px; }
  .nav-links { gap: 14px; margin-left: 4px; }
  .nav-links a { font-size: 14px; }
}
/* 放不下就收进汉堡菜单（只管导航，不动页面布局——布局断点在 991/640） */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: inline-block; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; gap: 4px; z-index: 50;
    max-height: calc(100vh - 64px); overflow-y: auto; }
  /* 汉堡里下拉退化成常驻展开的一段，不再靠 hover */
  .nav-dd { position: static; }
  .nav-dd-t { pointer-events: none; color: #9CA3AF; font-size: 12px; font-weight: 700; padding: 10px 0 2px; letter-spacing: .5px; }
  .nav-dd-t .caret { display: none; }
  .nav-dd-menu { display: block; position: static; padding-top: 0; min-width: 0; }
  .nav-dd-menu > a { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent; padding: 8px 0 8px 12px; }
  .nav-dd-menu small { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1000px 400px at 15% -10%, rgba(46,125,50,.10), transparent 60%),
  radial-gradient(800px 400px at 95% 10%, rgba(79,70,229,.08), transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 60px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 14px 0 16px; letter-spacing: 1px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; }
.hero-stats .st b { font-size: 24px; color: var(--brand); }
.hero-stats .st span { display: block; font-size: 13px; color: var(--muted); }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px; }
.hero-art .card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.map-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-mini .m { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.map-mini .m .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.map-mini .m b { font-size: 15px; }
.map-mini .m small { color: var(--muted); }

/* 今日晨读 */
.reading { background: linear-gradient(180deg, #fff, #fbfdfb); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; }
.reading .body { padding: 34px 36px; }
.reading .tag { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-l); color: var(--brand-d);
  font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.reading h3 { font-size: 26px; margin: 14px 0 12px; }
.reading .quote { border-left: 4px solid var(--accent); padding: 8px 14px; color: #4b5563; background: #fff8ec;
  border-radius: 6px; font-style: italic; margin: 0 0 16px; }
.reading .content { color: #374151; }
.reading .action { margin-top: 18px; background: var(--brand-l); border-radius: 12px; padding: 14px 16px; }
.reading .action b { color: var(--brand-d); }
.reading .side { background: linear-gradient(135deg, var(--brand), #43A047); color: #fff; padding: 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.reading .side .big { font-size: 20px; font-weight: 800; }
.reading .side .btn { background: #fff; color: var(--brand-d); }

/* 成长地图 */
.map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: .18s; position: relative; overflow: hidden; }
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.map-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.map-card h3 { margin: 0 0 6px; font-size: 19px; }
.map-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.map-card .eg { font-size: 13px; color: var(--brand); font-weight: 600; }
.map-arrow { text-align: center; color: var(--muted); margin: 18px 0 -6px; font-size: 14px; }

/* 计划卡片 */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-cover { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 54px;
  background: linear-gradient(135deg, var(--brand-l), #eef2ff); }
.plan-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-cat { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-l); color: var(--brand-d); }
.plan-body h3 { margin: 0; font-size: 18px; }
.plan-body .desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.plan-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.plan-meta .star { color: var(--accent); font-weight: 700; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.plan-foot .teacher { font-size: 13px; color: var(--muted); }

/* 成长故事 */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.story .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.story .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-l); display: grid; place-items: center; font-size: 24px; }
.story .who b { display: block; }
.story .who small { color: var(--muted); }
.story .txt { color: #374151; margin: 0 0 12px; }
.story .plan-ref { font-size: 13px; color: var(--brand); font-weight: 600; }

/* 关于我们 */
.about { background: linear-gradient(135deg, #0f2417, #1B5E20); color: #eaf3ea; border-radius: 20px; padding: 48px; }
.about h2 { margin: 0 0 14px; font-size: 28px; color: #fff; }
.about p { color: #cfe3d1; max-width: 46em; }
.about .vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.about .vm .b { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 20px; }
.about .vm .b b { color: var(--accent); }

/* footer */
footer.site { background: #0b1220; color: #94a3b8; margin-top: 40px; padding: 40px 0 28px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer.site b { color: #e2e8f0; }
footer.site .fbrand { max-width: 22em; }
footer.site .flogo { height: 40px; width: auto; display: block; margin-bottom: 12px; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; padding-top: 18px; font-size: 13px; text-align: center; }
footer.site a:hover { color: #fff; }

.nav-links a.on { color: var(--brand); font-weight: 700; }

/* 用户头像 / 个人中心入口 */
.user-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.user-chip:hover { border-color: var(--brand); }
.user-chip .ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #43A047); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.user-chip .nick { font-size: 14px; font-weight: 600; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 登录 / 注册弹窗 */
.auth-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; place-items: center; z-index: 200; padding: 20px; }
.auth-mask.on { display: grid; }
.auth-card { position: relative; background: #fff; width: 380px; max-width: 100%; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.auth-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.auth-brand { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 6px; }
.auth-brand img { height: 26px; }
.auth-brand b { font-size: 16px; }
.auth-tabs { display: flex; gap: 6px; background: #f1f5f9; border-radius: 10px; padding: 4px; margin: 16px 0 18px; }
.auth-tabs button { flex: 1; height: 38px; border: none; background: none; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.auth-field input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; outline: none; }
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.auth-err { color: #dc2626; font-size: 13px; min-height: 18px; margin-top: 8px; text-align: center; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.auth-switch a { color: var(--brand); font-weight: 600; cursor: pointer; }

/* ===== 个人中心 me.html ===== */
.me-hero { background: linear-gradient(135deg, #0f2417, #1B5E20); color: #eaf3ea; }
.me-hero .wrap { display: flex; align-items: center; gap: 20px; padding: 34px 24px; }
.me-hero .bigava { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 30px; font-weight: 700; border: 2px solid rgba(255,255,255,.25); }
.me-hero h1 { margin: 0 0 4px; font-size: 26px; color: #fff; }
.me-hero .sub { color: #cfe3d1; font-size: 14px; }
.me-hero .sp { flex: 1; }
.report-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -34px 0 24px; }
.report-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); text-align: center; }
.report-card .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.report-card .lab { color: var(--muted); font-size: 13px; margin-top: 4px; }
.me-section h2 { font-size: 20px; margin: 8px 0 16px; }
.me-plan { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.me-plan .cov { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, var(--brand-l), #eef2ff); }
.me-plan h3 { margin: 0 0 8px; font-size: 16px; }
.me-plan .bar { height: 8px; border-radius: 999px; background: #eef2f6; overflow: hidden; max-width: 420px; }
.me-plan .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #43A047); }
.me-plan .pmeta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.me-plan .finished { color: var(--brand); font-weight: 700; font-size: 13px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.recent-item .day { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 8px; }
.recent-item .muted { color: var(--muted); margin-left: auto; font-size: 13px; }
/* 订单表（个人中心） */
.tbl-wrap { overflow-x: auto; }
.me-section table { width: 100%; border-collapse: collapse; }
.me-section th, .me-section td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.me-section th { color: var(--muted); font-weight: 600; font-size: 13px; background: #fafbfc; }
.me-section tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.paid { background: #dcfce7; color: #15803d; }
.badge.pending { background: #fef3c7; color: #b45309; }
.badge.off { background: #f1f5f9; color: #64748b; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }

/* ===== 成长计划列表页 P003 ===== */
.subhero { background:
  radial-gradient(800px 300px at 12% -20%, rgba(46,125,50,.12), transparent 60%),
  linear-gradient(180deg, #fff, #f6faf6); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.subhero h1 { font-size: 32px; margin: 6px 0 8px; }
.subhero p { color: var(--muted); margin: 0; }
.crumb { color: var(--muted); font-size: 14px; }
.crumb a:hover { color: var(--brand); }
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input { height: 40px; width: 240px; max-width: 46vw; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.plan-card { cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty .big { font-size: 44px; }

/* ===== 成长计划详情页 P004 ===== */
.detail-hero { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 34px 0 8px; align-items: start; }
.detail-cover { aspect-ratio: 4/3; border-radius: 16px; display: grid; place-items: center; font-size: 96px;
  background: linear-gradient(135deg, var(--brand-l), #eef2ff); box-shadow: var(--shadow); }
.detail-info .plan-cat { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-l); color: var(--brand-d); }
.detail-info h1 { font-size: 30px; margin: 12px 0 10px; }
.detail-info .lead { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.detail-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-meta .m b { display: block; font-size: 20px; color: var(--brand); }
.detail-meta .m span { font-size: 13px; color: var(--muted); }
.detail-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.detail-cta .teacher { color: var(--muted); font-size: 14px; }
.joined-tip { color: var(--brand); font-weight: 600; font-size: 14px; }

.course-list { display: flex; flex-direction: column; gap: 14px; }
.course-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.course-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.course-head .cidx { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-l); color: var(--brand-d); font-weight: 800; display: grid; place-items: center; flex: none; }
.course-head .ct { flex: 1; }
.course-head .ct b { font-size: 16px; }
.course-head .ct small { color: var(--muted); }
.course-head .type-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.type-badge.video { background: #eef2ff; color: #4338ca; }
.type-badge.article { background: var(--brand-l); color: var(--brand-d); }
.course-head .caret { color: var(--muted); transition: .2s; }
.course-item.open .caret { transform: rotate(90deg); }
.chapter-list { display: none; border-top: 1px solid var(--line); }
.course-item.open .chapter-list { display: block; }
.chapter-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 20px; border-top: 1px solid #f1f5f9; cursor: pointer; }
.chapter-row:first-child { border-top: none; }
.chapter-row:hover { background: #fafdfa; }
.chapter-row .day { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 8px; flex: none; }
.chapter-row .cn { flex: 1; }
.chapter-row .cn b { font-weight: 600; }
.chapter-row .cn small { color: var(--muted); display: block; }
.chapter-row .go { color: var(--brand); font-size: 13px; font-weight: 600; }

/* 价格标签（详情页） */
.price-tag { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 16px; }
.price-tag b { font-size: 28px; color: var(--accent-d); }
.price-tag b.free { color: var(--brand); }
.price-tag span { color: var(--muted); font-size: 13px; }
/* 卡片价格角标 */
.plan-cover { position: relative; }
.price-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--accent-d);
  font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.price-badge.free { color: var(--brand); }

/* ===== 结算页 checkout ===== */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding-bottom: 40px; }
.co-main, .co-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.co-item .cov { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, var(--brand-l), #eef2ff); }
.co-item .ci-txt b { font-size: 16px; }
.co-item .ci-txt small { color: var(--muted); display: block; }
.co-item .amt { font-size: 20px; font-weight: 800; color: var(--accent-d); }
.co-h { font-size: 15px; margin: 18px 0 12px; }
.pay-method { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-weight: 600; }
.pay-method:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.pay-method .pm-ic { width: 26px; height: 26px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.mock-note { margin-top: 14px; background: #fff8ec; border: 1px solid #fde4bf; color: #92610a; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.7; }
.co-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: var(--muted); }
.co-row b { color: var(--text); }
.co-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; margin-bottom: 14px; }
.co-row.total b { font-size: 24px; color: var(--accent-d); }

/* 支付结果 */
.pay-result { text-align: center; padding: 70px 20px 90px; }
.pay-result .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 40px; display: grid; place-items: center; margin: 0 auto 18px; }
.pay-result h1 { font-size: 28px; margin: 0 0 10px; }
.pay-result p { color: var(--muted); max-width: 30em; margin: 0 auto 24px; }
.pay-result .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 学习中心付费锁 */
.lock-panel { text-align: center; padding: 50px 20px; background: linear-gradient(180deg,#fff,#fbfdfb); border: 1px dashed var(--line); border-radius: 12px; }
.lock-panel .big { font-size: 44px; }
.lock-panel h3 { margin: 10px 0 6px; }
.lock-panel p { color: var(--muted); margin: 0 0 18px; }

/* ===== 学习中心 P005 ===== */
.learn-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding: 22px 0 40px; }
.learn-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
.learn-sidebar .sh { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.learn-sidebar .sh b { font-size: 15px; }
.learn-sidebar .progress { height: 8px; border-radius: 999px; background: #eef2f6; margin-top: 10px; overflow: hidden; }
.learn-sidebar .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #43A047); }
.learn-sidebar .pnum { font-size: 12px; color: var(--muted); margin-top: 6px; }
.side-course { padding: 10px 14px 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.side-ch { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; margin: 0 6px 2px; cursor: pointer; font-size: 14px; }
.side-ch:hover { background: #f4f8f4; }
.side-ch.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.side-ch .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; display: grid; place-items: center; font-size: 11px; }
.side-ch.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }

.learn-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px 34px; }
.learn-main .lc-top { color: var(--muted); font-size: 13px; }
.learn-main h1 { font-size: 26px; margin: 8px 0 18px; }
.player { aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg, #0f2417, #1B5E20); color: #eaf3ea;
  display: grid; place-items: center; text-align: center; margin-bottom: 22px; }
.player .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 26px; margin: 0 auto 10px; }
.article-body { font-size: 16px; line-height: 1.9; color: #374151; }
.article-body p { margin: 0 0 14px; white-space: pre-wrap; }
.daily-action { margin: 22px 0; background: var(--brand-l); border: 1px solid #cfe6d1; border-radius: 12px; padding: 18px 20px; }
.daily-action b { color: var(--brand-d); }
.checkin-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.checkin-done { color: var(--brand); font-weight: 700; }
.learn-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.learn-nav .btn.disabled { opacity: .45; pointer-events: none; }

/* 有效期条 */
.learn-sidebar .validity { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--brand-d); background: var(--brand-l); border-radius: 8px; padding: 6px 10px; }
.learn-sidebar .validity.expired { color: #b91c1c; background: #fee2e2; }

/* 作业 */
.homework-box { margin: 22px 0; border: 1px solid #cfe0ff; background: #f5f8ff; border-radius: 12px; padding: 18px 20px; }
.homework-box > b { color: #3730a3; }
.homework-box .hw-q { color: #374151; margin: 8px 0 12px; white-space: pre-wrap; }
.hw-input { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; line-height: 1.6; resize: vertical; outline: none; margin-bottom: 10px; }
.hw-input:focus { border-color: var(--ai); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.hw-status { font-weight: 600; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.hw-status.ok { background: #dcfce7; color: #15803d; }
.hw-status.pending { background: #fef3c7; color: #b45309; }
.hw-status.rej { background: #fee2e2; color: #b91c1c; margin-bottom: 10px; }
.hw-mine { margin-top: 8px; color: #6B7280; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; white-space: pre-wrap; }

/* 阅读资料：视频 / 音频 */
.media-video { width: 100%; border-radius: 12px; background: #000; margin-bottom: 16px; display: block; }
.media-audio { background: var(--brand-l); border: 1px solid #cfe6d1; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.media-audio b { display: block; color: var(--brand-d); margin-bottom: 8px; font-size: 14px; }
.media-audio audio { width: 100%; }

/* 答题 */
.q-list { margin: 12px 0 16px; }
.q-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.q-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.q-head b { flex: 1; font-weight: 600; line-height: 1.6; }
.q-type { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: #4338ca; }
.q-ok { flex: none; font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 6px; }
.q-no { flex: none; font-size: 12px; font-weight: 700; color: #b91c1c; background: #fee2e2; padding: 2px 8px; border-radius: 6px; }
.q-wait { flex: none; font-size: 12px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 6px; }
.q-body .opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-size: 14px; }
.q-body .opt:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.q-body .opt input[disabled] { cursor: default; }
.q-fill { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; outline: none; }
.q-essay { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; line-height: 1.6; resize: vertical; outline: none; }
.q-fill:focus, .q-essay:focus { border-color: var(--ai); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }

/* responsive */
@media (max-width: 991px) {
  .detail-hero { grid-template-columns: 200px 1fr; gap: 22px; }
  .learn-layout { grid-template-columns: 1fr; }
  .learn-sidebar { position: static; max-height: none; order: 2; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid, .stories-grid { grid-template-columns: 1fr 1fr; }
  .reading { grid-template-columns: 1fr; }
  .about .vm { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* 页头右侧收窄：CTA 收起（Hero 区已有同款按钮），只留登录/注册 */
  .nav-cta { display: none; }
  .nav { gap: 10px; }
  .brand-suffix { font-size: 16px; }
  .nav-actions { gap: 8px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 40px 0; }
  .map-grid, .plans-grid, .stories-grid { grid-template-columns: 1fr; }
  .about { padding: 30px; }
  .hero-stats { gap: 18px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-cover { aspect-ratio: 16/9; font-size: 72px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; max-width: none; }
  .learn-main { padding: 22px 18px; }
  .subhero h1 { font-size: 26px; }
  .report-cards { grid-template-columns: 1fr 1fr; }
  .me-hero .wrap { flex-wrap: wrap; }
  .me-plan { grid-template-columns: 48px 1fr; }
  .checkout { grid-template-columns: 1fr; }
}
/* 线下课程详情：窄屏收成单栏，报名卡挪到最上面（否则要滑到底才看到怎么报名） */
@media (max-width: 860px) {
  .off-detail { grid-template-columns: 1fr !important; }
  .off-detail > div:last-child { position: static !important; order: -1; }
}
