/* ═══════════════════════════════════════════════
   观复茶苑官方网站 — 全站共享样式
   品牌色: #FF5820 / #FEF9F4 / #2C2A28 / #6B5A4A / #8F7A64
   ═══════════════════════════════════════════════ */

:root {
  --orange: #FF5820;
  --bg-warm: #FEF9F4;
  --text-dark: #2C2A28;
  --text-gray: #6B5A4A;
  --text-light: #8F7A64;
  --white: #FFFFFF;
  --dark-bg: #1a1a1a;
  --dark-bg2: #2a221e;
  --transition: 0.25s ease;
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ Navigation ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(254, 249, 244, 0.95);
  /* 注意: 不能加 backdrop-filter/filter — 会让窄屏下 .nav-links(position:fixed)
     相对导航条定位而非视口, 导致全屏菜单塌缩只露出一项 */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: 3px;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 15px; color: var(--text-gray); letter-spacing: 1px;
  transition: color var(--transition); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* ═══ Hero ═══ */
.hero {
  background: linear-gradient(170deg, var(--dark-bg) 0%, var(--dark-bg2) 50%, #3a2a1a 100%);
  color: var(--white); text-align: center;
  padding: 120px 40px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: var(--orange); opacity: .05; border-radius: 50%;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 700;
  letter-spacing: 8px; line-height: 1.25; position: relative; z-index: 1;
}
.hero .hero-sub {
  font-size: clamp(18px, 2.5vw, 26px);
  color: rgba(255,255,255,.4); letter-spacing: 6px; margin-top: 14px;
}
.hero .hero-hook {
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--orange); font-weight: 600; letter-spacing: 3px;
  margin-top: 28px; line-height: 1.7;
}
.hero .hero-cta {
  display: inline-flex; gap: 16px; margin-top: 36px;
  position: relative; z-index: 1;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 40px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; transition: all var(--transition);
  min-height: 50px; line-height: 22px; text-align: center;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border: 2px solid var(--orange);
}
.btn-primary:hover { background: #e64d16; border-color: #e64d16; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 18px 48px; font-size: 18px; min-height: 58px; }

/* ═══ Sections ═══ */
.section { padding: 80px 40px; text-align: center; }
.section-white { background: var(--white); text-align: center; }
.section-dark { background: linear-gradient(170deg, var(--dark-bg) 0%, var(--dark-bg2) 100%); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 14px; color: var(--orange); letter-spacing: 6px;
  font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  letter-spacing: 3px; line-height: 1.3; margin-bottom: 12px;
}
.section-line {
  width: 44px; height: 4px; background: var(--orange); margin: 0 auto 32px;
}
.section-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-gray); line-height: 1.8; max-width: 720px;
  margin-left: auto; margin-right: auto;
}

/* ═══ Cards ═══ */
.card-grid { display: grid; gap: 20px; margin-top: 32px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: 12px;
  padding: 32px 28px; transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04); text-align: center;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card-icon { font-size: 44px; margin-bottom: 12px; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 16px; color: var(--text-gray); line-height: 1.65; }

.card-accent {
  border-top: 4px solid var(--orange);
}
.card-left-line {
  border-left: 4px solid var(--orange);
  border-top: none;
}

/* ═══ Quote ═══ */
.quote-block {
  background: var(--white); border-left: 5px solid var(--orange);
  padding: 28px 34px; margin: 32px 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 3px 16px rgba(0,0,0,.05);
}
.quote-block p {
  font-size: 20px; color: var(--text-gray); line-height: 1.8; margin: 0;
}
.quote-large {
  text-align: center; padding: 60px 40px;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600; color: var(--text-dark);
  line-height: 1.7; letter-spacing: 2px;
}
.quote-large::before { content: '"'; color: var(--orange); font-size: 2em; }
.quote-large::after { content: '"'; color: var(--orange); font-size: 2em; }

/* ═══ Table ═══ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; }
table {
  width: 100%; border-collapse: collapse; font-size: 16px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
thead th {
  background: var(--text-dark); color: var(--white);
  padding: 14px 18px; font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-align: left;
}
tbody td {
  padding: 12px 18px; border-bottom: 1.5px solid #f0ebe0;
  color: var(--text-gray); line-height: 1.6; vertical-align: top;
}
tbody td:first-child { color: var(--text-dark); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--white); }
tbody tr:nth-child(odd) { background: #fefaf7; }
tbody tr:last-child td { border-bottom: none; }

/* ═══ Timeline ═══ */
.timeline { position: relative; padding-left: 40px; margin: 32px 0; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: #e8e0d4;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -30px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--bg-warm);
}
.timeline-item h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark);
}
.timeline-item p {
  font-size: 16px; color: var(--text-gray); line-height: 1.7;
}

/* ═══ Stat Cards ═══ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.stat-card {
  background: var(--white); border-radius: 12px; padding: 24px 20px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.stat-num { font-size: 36px; font-weight: 800; color: var(--orange); line-height: 1.2; }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 6px; letter-spacing: 1px; }

/* ═══ Tab Switch ═══ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e8e0d4; margin-bottom: 32px; }
.tab-btn {
  padding: 14px 32px; font-size: 16px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); letter-spacing: 2px;
  transition: color var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══ CTA Section ═══ */
.cta-section { text-align: center; padding: 80px 40px; }
.cta-section h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: 3px; margin-bottom: 14px; }
.cta-section .cta-desc { font-size: 18px; color: var(--text-gray); margin-bottom: 32px; line-height: 1.7; }

/* ═══ Footer ═══ */
.footer {
  background: var(--text-dark); color: var(--text-light);
  text-align: center; padding: 40px; font-size: 14px; letter-spacing: 2px; line-height: 2;
}
.footer b { color: var(--white); font-weight: 600; }
.footer .footer-warning {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.8; max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ═══ Compliance Warning ═══ */
.compliance {
  background: #faf5ef; padding: 32px 40px; text-align: center;
  font-size: 13px; color: var(--text-light); line-height: 2;
  max-width: 800px; margin: 0 auto; border-radius: 10px;
}

/* ═══ Vision Quote ═══ */
.vision-block {
  text-align: center; padding: 60px 40px; color: var(--white);
}
.vision-block h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: 5px; margin-bottom: 24px;
}
.vision-block p {
  font-size: 20px; line-height: 2; max-width: 680px; margin: 0 auto 10px;
}

/* ═══ Placeholder ═══ */
.placeholder-state {
  text-align: center; padding: 80px 40px;
}
.placeholder-state .icon { font-size: 64px; margin-bottom: 20px; }
.placeholder-state h3 { font-size: 24px; color: var(--text-dark); margin-bottom: 12px; }
.placeholder-state p { font-size: 17px; color: var(--text-gray); line-height: 1.7; }

/* ═══ Modal Form ═══ */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 9999;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 16px;
  padding: 40px 36px; max-width: 440px; width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  text-align: center; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text-light);
}
.modal h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: 2px; }
.modal .modal-sub { font-size: 15px; color: var(--text-gray); margin-bottom: 24px; }
.modal .field {
  text-align: left; margin-bottom: 16px;
}
.modal .field label {
  display: block; font-size: 14px; color: var(--text-dark); font-weight: 600;
  margin-bottom: 6px; letter-spacing: 1px;
}
.modal .field input, .modal .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #e8e0d4;
  border-radius: 10px; font-size: 16px; font-family: inherit;
  color: var(--text-dark); background: var(--bg-warm);
  transition: border-color var(--transition); outline: none;
}
.modal .field input:focus, .modal .field textarea:focus { border-color: var(--orange); }
.modal .field textarea { min-height: 100px; resize: vertical; }
.modal .btn-submit {
  width: 100%; margin-top: 8px;
}
.modal .success-msg { display: none; padding: 20px 0; }
.modal .success-msg .icon { font-size: 56px; margin-bottom: 12px; }
.modal .success-msg h3 { margin-bottom: 8px; }
.modal .success-msg p { font-size: 16px; color: var(--text-gray); }
.brand-intro { text-align: center; }
.brand-intro .keywords {
  display: flex; justify-content: center; gap: 48px; margin-top: 28px;
  flex-wrap: wrap;
}
.brand-intro .kw {
  text-align: center;
}
.brand-intro .kw .icon { font-size: 48px; margin-bottom: 8px; }
.brand-intro .kw .label { font-size: 18px; font-weight: 700; letter-spacing: 3px; }

/* ═══ Teacher Profile Card ═══ */
.profile-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  background: var(--white); border-radius: 16px; padding: 36px;
  box-shadow: 0 3px 16px rgba(0,0,0,.05);
  margin-top: 28px;
}
.profile-card img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--orange);
}
.profile-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.profile-card .tag { font-size: 14px; color: var(--orange); letter-spacing: 3px; font-weight: 600; margin-bottom: 10px; }
.profile-card p { font-size: 16px; color: var(--text-gray); }

/* ═══ Contact Grid ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.contact-info p { font-size: 17px; margin-bottom: 12px; line-height: 1.8; }
.contact-info .label { font-weight: 700; color: var(--text-dark); }
.contact-qr { text-align: center; }
.contact-qr img { width: 180px; margin: 0 auto 12px; border-radius: 8px; }
.contact-qr .qr-label { font-size: 14px; color: var(--text-light); }

/* ═══ Page Header (non-home) ═══ */
.page-header {
  background: linear-gradient(170deg, var(--dark-bg) 0%, var(--dark-bg2) 100%);
  color: var(--white); text-align: center; padding: 100px 40px 60px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--orange); opacity: .04; border-radius: 50%;
}
.page-header h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: 6px; position: relative; z-index: 1; }
.page-header .sub { font-size: 16px; color: rgba(255,255,255,.4); letter-spacing: 4px; margin-top: 10px; }

/* ═══ Gold Phrases ═══ */
.phrase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.phrase-item {
  background: var(--white); padding: 20px 24px; border-radius: 10px;
  border-left: 3px solid var(--orange); box-shadow: 0 2px 8px rgba(0,0,0,.03);
  font-size: 16px; color: var(--text-dark); line-height: 1.6;
}
.phrase-item .cat {
  font-size: 12px; color: var(--orange); letter-spacing: 3px; font-weight: 600; margin-bottom: 4px;
}

/* ═══ Mobile Nav ═══ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg-warm); flex-direction: column; padding: 40px 20px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: block; }
  .section { padding: 50px 20px; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 100px 24px 60px; }
  .hero h1 { font-size: 36px; letter-spacing: 4px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { padding: 28px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .phrase-grid { grid-template-columns: 1fr; }
  .brand-intro .keywords { gap: 24px; }
  .page-header { padding: 90px 24px 50px; }
  .tabs { overflow-x: auto; }
  .tab-btn { padding: 12px 20px; font-size: 14px; white-space: nowrap; }
}
