/* ============================================================
   优度教育 · 设计系统
   品牌：每个孩子都有光 · 心智模式决定他亮不亮
   色板：暖米色底 + 深墨文字 + 金色「光」+ 青绿「成长」
   ============================================================ */

:root {
  --paper: #FBF8F2;
  --paper-2: #F4EFE5;
  --card: #FFFFFF;
  --ink: #1F2330;
  --ink-2: #4A5063;
  --ink-3: #8A91A3;
  --line: #EAE4D8;
  --line-2: #DDD5C4;

  --gold: #E8A33D;
  --gold-deep: #C98622;
  --gold-soft: #FBF0DD;

  --green: #0E7A55;
  --green-deep: #0A5F42;
  --green-soft: #E7F4EE;

  --red: #D9534F;

  --shadow-sm: 0 1px 3px rgba(31, 35, 48, .06);
  --shadow-md: 0 12px 34px rgba(31, 35, 48, .10);
  --shadow-lg: 0 24px 60px rgba(31, 35, 48, .14);

  --radius: 14px;
  --radius-lg: 20px;

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

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

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, .9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: .5px;
}
.brand .logo-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 35% 30%, #FFD98A, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(201,134,34,.25), 0 4px 14px rgba(232,163,61,.4);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); transition: .18s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active { color: var(--gold-deep); font-weight: 700; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #fff; transition: .18s;
}
.nav-cta:hover { background: #14161f; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; transition: .2s; text-align: center;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #14161f; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(232,163,61,.4); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============ 标题 ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
h1, h2, h3 { line-height: 1.22; font-weight: 800; letter-spacing: -.3px; }
.h-display { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 20px; }
.h-display em { font-style: normal; color: var(--gold-deep); }
.h-section { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.h-sub { color: var(--ink-2); font-size: 17px; max-width: 720px; }
.section { padding: 84px 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 780px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .h-sub { margin-left: auto; margin-right: auto; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 12% -8%, rgba(232,163,61,.20), transparent 60%),
    radial-gradient(820px 420px at 96% 6%, rgba(14,122,85,.14), transparent 60%),
    linear-gradient(168deg, #211A0E 0%, #241D12 55%, #1B1710 100%);
  color: #F4EDE0; padding: 92px 0 96px;
}
.hero .container { position: relative; z-index: 2; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(232,163,61,.10) 1.2px, transparent 1.2px);
  background-size: 34px 34px;
}
.hero .h-display { color: #FFF7E8; }
.hero .h-display em { color: var(--gold); }
.hero .sub { font-size: 18px; color: #CBBFAB; max-width: 640px; margin-bottom: 34px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 18px 24px; min-width: 150px;
}
.hero .stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.hero .stat span { font-size: 13px; color: #B8AD99; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ 卡片与网格 ============ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px; background: var(--gold-soft);
}
.card .ico--green { background: var(--green-soft); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ============ 徽章 / 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.tag--gold { background: var(--gold-soft); color: var(--gold-deep); }
.tag--green { background: var(--green-soft); color: var(--green-deep); }
.tag--gray { background: var(--paper-2); color: var(--ink-2); }
.tag--red { background: #FBE9E8; color: var(--red); }

/* ============ 表单 ============ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; font-size: 15px; color: var(--ink);
  transition: .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,61,.15);
}
.textarea { min-height: 110px; resize: vertical; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md); max-width: 460px; margin: 0 auto;
}

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--ink-2); font-size: 13px; letter-spacing: .03em; background: var(--paper-2); }
tr:last-child td { border-bottom: none; }
td { color: var(--ink); }

/* ============ 页头（内页 banner） ============ */
.page-hero {
  background: linear-gradient(165deg, #221C11 0%, #241D12 100%);
  color: #F4EDE0; padding: 64px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(rgba(232,163,61,.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); color: #FFF7E8; margin-bottom: 12px; }
.page-hero p { color: #CBBFAB; font-size: 17px; max-width: 680px; }

/* ============ 页脚 ============ */
.site-footer { background: #1B1710; color: #B8AD99; padding: 56px 0 30px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.site-footer h4 { color: #F4EDE0; font-size: 15px; margin-bottom: 14px; }
.site-footer a { display: block; color: #B8AD99; font-size: 14px; padding: 5px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 13px; color: #7E7462; text-align: center; }

/* ============ 提示条 / 空态 ============ */
.alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert--ok { background: var(--green-soft); color: var(--green-deep); }
.alert--err { background: #FBE9E8; color: var(--red); }
.empty {
  text-align: center; padding: 50px 20px; color: var(--ink-3);
}
.empty .ico { font-size: 40px; margin-bottom: 12px; }

/* ============ 会员 / 交付页组件 ============ */
.profile-card {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.avatar {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #FFD98A, var(--gold) 60%, var(--gold-deep));
  display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 800;
}
.kv { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; }
.kv div { font-size: 14px; color: var(--ink-3); }
.kv b { color: var(--ink); font-weight: 700; }

/* ============ 时间线（家会记录） ============ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
  content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.timeline-item .date { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.timeline-item h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline-item p { color: var(--ink-2); font-size: 15px; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero .stat { min-width: 128px; }
  .container { padding: 0 18px; }
}
