:root {
  --navy: #0b1a2e;
  --navy-2: #0e2438;
  --navy-3: #14324d;
  --gold: #d4a84b;
  --gold-2: #f0b429;
  --blue: #1f8ad6;
  --blue-dark: #1569a6;
  --bg: #f5f7fa;
  --line: #e6ebf1;
  --text: #22303f;
  --muted: #6b7c8d;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 26, 46, 0.10);
  --shadow-sm: 0 4px 14px rgba(11, 26, 46, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), #e08a1e);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px;
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 1px; color: var(--navy); }
.brand-en { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; color: var(--text); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: 12px; transition: all .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), #e08a1e); color: #fff; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,138,214,.12), transparent 60%),
    linear-gradient(180deg, #eef3f8 0%, var(--bg) 100%);
  padding: 70px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.2; color: var(--navy); margin: 16px 0; }
.hero h1 .en { display: block; font-size: 22px; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--line);
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.stat b { font-size: 26px; color: var(--navy); }
.stat span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-dark { background: var(--navy); color: #e8eef5; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--gold); letter-spacing: 3px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: 32px; margin: 10px 0; color: inherit; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #9fb4c8; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 18px; margin: 14px 0 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 14px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #eef5fc;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}

/* ---------- 导师介绍 ---------- */
.tutor-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.tutor-photo {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  border-radius: 22px; padding: 24px; color: #fff;
}
.tutor-photo .photo-box {
  width: 100%; aspect-ratio: 1/1; border-radius: 16px; background: #fff;
  object-fit: contain; display: block; overflow: hidden;
}
.tutor-photo h3 { margin-top: 18px; font-size: 24px; }
.tutor-photo .role { color: var(--gold); font-weight: 600; }
.tutor-list { list-style: none; margin-top: 14px; }
.tutor-list li { padding: 6px 0; color: #cdd9e5; font-size: 14px; }
.tutor-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.tutor-info p { color: var(--muted); margin-bottom: 14px; }
.tutor-books { background: #fff8ec; border: 1px solid #f3e2bd; border-radius: 16px; padding: 20px; margin-top: 18px; }
.tutor-books h4 { color: #9a6b16; font-size: 15px; margin-bottom: 10px; }
.tutor-books ul { padding-left: 18px; color: #6b5626; font-size: 14px; }
.books-row { display: flex; gap: 18px; align-items: flex-start; }
.book-cover { width: 118px; flex: none; border-radius: 8px; box-shadow: 0 6px 16px rgba(120, 84, 12, .25); }

/* ---------- 课程包 ---------- */
.package-box {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
}
.package-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.package-banner h3 { font-size: 24px; }
.package-banner p { color: #b9cbdb; margin-top: 6px; }
.price-tag { font-size: 30px; color: var(--gold-2); font-weight: 800; }
.price-tag small { font-size: 14px; color: #b9cbdb; }

/* ---------- 目录 ---------- */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 28px; }
.catalog-item {
  display: flex; gap: 12px; align-items: baseline; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.catalog-item .no { color: var(--gold); font-weight: 700; min-width: 30px; }
.catalog-item .t { font-size: 14px; }
.catalog-item .m { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-row label .req { color: #d9534f; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; background: #fbfcfe; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--blue); background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(7, 18, 30, .62); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 820px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 20px; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 28px; max-height: 62vh; overflow-y: auto; }
.modal-foot { padding: 20px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.agreement-body { font-size: 14px; color: var(--text); }
.agreement-body h4 { color: var(--navy); margin: 16px 0 6px; font-size: 15px; }
.agreement-body p { color: var(--muted); }
.check-list { margin-top: 18px; display: grid; gap: 12px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.check-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.check-item span { font-size: 14px; }

.qr-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qr-box { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.qr-box .qr-img {
  width: 200px; margin: 0 auto 12px; border-radius: 12px; background: #eef2f6;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden;
}
.qr-box .qr-img img { width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block; }
.qr-box h4 { font-size: 16px; color: var(--navy); }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff4e5; color: #b9770e; }
.badge-paid { background: #e8f3fc; color: var(--blue-dark); }
.badge-delivered { background: #e8f6ec; color: #2e8b57; }
.badge-expired { background: #fdecea; color: #c0392b; }
.badge-soon { background: #fff8e1; color: #b8860b; }

/* ---------- 表格（后台） ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f7f9fc; color: var(--muted); font-weight: 600; font-size: 13px; }
table.data tr:last-child td { border-bottom: none; }
table.data td .sub { color: var(--muted); font-size: 12px; }

/* ---------- 后台布局 ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #cdd9e5; padding: 24px 0; }
.admin-side .brand-name { color: #fff; }
.admin-side ul { list-style: none; margin-top: 28px; }
.admin-side li a { display: block; padding: 13px 26px; font-size: 15px; }
.admin-side li a.active, .admin-side li a:hover { background: var(--navy-3); color: #fff; }
.admin-main { padding: 30px; background: var(--bg); }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-top h2 { font-size: 24px; color: var(--navy); }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat-card b { font-size: 28px; color: var(--navy); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #9fb4c8; padding: 50px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { padding: 5px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; font-size: 13px; color: #7e93a8; }

/* ---------- 提示条 ---------- */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-warn { background: #fff8e1; color: #8a6d1a; border: 1px solid #f0d98a; }
.alert-info { background: #eef5fc; color: var(--blue-dark); border: 1px solid #c9e2f5; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .tutor-grid { grid-template-columns: 1fr; }
  .card-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .catalog, .qr-wrap, .form-grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side ul { display: flex; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .card-grid, .stat-row, .stat-cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
}
