
/* ─── TOKENS ─── */
:root {
  --ink:    #1a1828;
  --ink2:   #3c3a52;
  --ink3:   #6b698a;
  --ink4:   #a8a6c0;
  --bg:     #f7f6f2;
  --white:  #ffffff;
  --bd:     #e4e2da;
  --red:    #6b2d8b;
  --red2:   #8b47b0;
  --gold:   #b07d2e;
  --grn:    #1e7a50;
  --blu:    #1a4f9e;
  --cream:  #fdf8f0;
  --r:      10px;
}

/* ─── 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);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }

/* ─── UTILS ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }
.mono  { font-family: 'DM Mono', monospace; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.badge-red  { background: rgba(107,45,139,.1);  color: var(--red); }
.badge-grn  { background: rgba(30,122,80,.1);  color: var(--grn); }
.badge-blu  { background: rgba(26,79,158,.1);  color: var(--blu); }
.badge-gold { background: rgba(176,125,46,.1); color: var(--gold); }
.badge-ink  { background: var(--ink); color: white; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp   { from { opacity:.2; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse    { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes slideIn  { from { transform: translateX(100%); opacity:0; } to { transform:none; opacity:1; } }
@keyframes floatBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }






/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(247,246,242,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  display: flex; align-items: center; gap: 0;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  margin-right: auto;
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 16px; font-weight: 900; color: white;
}
.nav-logo-text { font-size: 16px; font-weight: 700; color: var(--ink); }
.nav-logo-sub  { font-size: 10px; color: var(--ink3); letter-spacing: .5px; margin-top: -2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; color: var(--ink2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav-cta {
  margin-left: 16px;
  padding: 8px 20px; border-radius: 8px;
  background: var(--red); color: white;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--red2); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  opacity: 1;
  padding: 110px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--bd);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, #f3edf9 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 20px; height: 2px; background: var(--red);
}
.hero h1 {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 52px; font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--red); }
.hero-lead {
  font-size: 17px; color: var(--ink2); line-height: 1.9;
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: relative; z-index: 10; }
.btn-primary {
  padding: 14px 32px; border-radius: 10px;
  background: var(--red); color: white;
  font-size: 15px; position: relative; z-index: 10; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,45,139,.3); }
.btn-secondary {
  padding: 14px 28px; border-radius: 10px;
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--bd);
  position: relative; z-index: 10;
  cursor: pointer; transition: all .15s;
}
.btn-secondary:hover { border-color: var(--ink); }
.hero-trust {
  display: flex; gap: 24px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--bd);
  flex-wrap: wrap;
}
.trust-item .val {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 30px; font-weight: 900; color: var(--ink);
}
.trust-item .val span { color: var(--red); }
.trust-item .lbl { font-size: 12px; color: var(--ink3); }

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  position: relative;
}
.hero-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink3); text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}
.hero-card-name {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px;
}
.hero-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-stage {
  background: var(--bg);
  border-radius: 8px; padding: 12px;
}
.hero-stage .sw { font-size: 10px; color: var(--ink4); font-family: 'DM Mono',monospace; }
.hero-stage .sa { font-size: 18px; font-weight: 900; margin-top: 2px; }
.hero-stage.s1 { background: rgba(200,49,58,.06); }
.hero-stage.s1 .sa { color: var(--red); }
.hero-margin-row {
  display: flex; gap: 8px; margin-top: 16px;
}
.hm { flex:1; text-align:center; padding:8px; border-radius:6px; background:var(--bg); }
.hm .mv { font-size:13px; font-weight:700; color:var(--grn); }
.hm .ml { font-size:9px; color:var(--ink4); font-family:'DM Mono',monospace; }
.hero-badge-float {
  position: absolute; top: -14px; right: 20px;
  background: var(--red); color: white;
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
/* Admit Ticker */
.admit-ticker-wrap {
  overflow: hidden; border-radius: 10px;
  border: 1px solid var(--bd); background: var(--bg);
  margin-bottom: 16px; height: 200px;
  position: relative;
}
.admit-ticker-wrap::before, .admit-ticker-wrap::after {
  content: ''; position: absolute; left:0; right:0; height: 28px; z-index:2;
  pointer-events: none;
}
.admit-ticker-wrap::before { top:0; background: linear-gradient(to bottom, var(--bg), transparent); }
.admit-ticker-wrap::after  { bottom:0; background: linear-gradient(to top, var(--bg), transparent); }
@keyframes tickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.admit-ticker {
  display: flex; flex-direction: column; gap: 0;
  animation: tickerScroll 18s linear infinite;
}
.admit-ticker:hover { animation-play-state: paused; }
.admit-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--bd);
  font-size: 13px;
}
.admit-school {
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.tsinghua { background: rgba(114,46,209,.1); color: #7232d1; }
.pku      { background: rgba(139,0,0,.1);    color: #8b0000; }
.sjtu     { background: rgba(0,84,166,.1);   color: #0054a6; }
.fudan    { background: rgba(160,0,0,.1);    color: #a00000; }
.zju      { background: rgba(0,122,68,.1);   color: #007a44; }
.nju      { background: rgba(91,36,122,.1);  color: #5b247a; }
.admit-name  { font-weight: 700; flex-shrink: 0; }
.admit-major { font-size: 12px; color: var(--ink3); }
.admit-stats-row {
  display: flex; gap: 0; border-top: 1px solid var(--bd); margin-top: 0;
}
.admit-stat {
  flex: 1; padding: 12px 8px; text-align: center;
  border-right: 1px solid var(--bd);
}
.admit-stat:last-child { border-right: none; }
.asv { display:block; font-family:'Noto Serif SC',serif; font-size:18px; font-weight:900; color:var(--red); }
.asl { display:block; font-size:10px; color:var(--ink3); margin-top:2px; }

.hero-stats-float {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: floatBob 3s ease-in-out infinite;
}
.hero-stats-float .val { font-size: 22px; font-weight: 900; }
.hero-stats-float .lbl { font-size: 11px; color: rgba(255,255,255,.6); }

/* ─── SECTION COMMON ─── */
.sec { padding: 64px 0; }
.sec-alt { background: var(--white); }
.sec-hd { text-align: center; margin-bottom: 56px; }
.sec-eyebrow {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.sec-title {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 36px; font-weight: 900; line-height: 1.25;
  margin-bottom: 14px;
}
.sec-sub { font-size: 18px; color: var(--ink2); max-width: 560px; margin: 0 auto; line-height: 1.9; }

/* ─── STRENGTH ─── */
.strength-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.strength-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: 16px; padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.strength-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.strength-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:3px;
}
.sc-1::before { background: var(--red); }
.sc-2::before { background: var(--gold); }
.sc-3::before { background: var(--grn); }
.sc-4::before { background: var(--blu); }
.sc-5::before { background: var(--red); }
.sc-6::before { background: #8b5cf6; }
.strength-num {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 44px; font-weight: 900;
  line-height: 1; margin-bottom: 8px;
}
.strength-label { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.strength-body { font-size: 13px; color: var(--ink3); line-height: 1.8; }

/* ─── PRODUCTS ─── */
.products-wrapper { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.product-card.featured { border: 2px solid var(--grn); }
.pc-head { padding: 24px 24px 0; }
.pc-badge-wrap { margin-bottom: 10px; }
.pc-name { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pc-sub { font-size: 13px; color: var(--ink3); margin-bottom: 18px; line-height: 1.6; }
.pc-old { font-size: 13px; color: var(--ink4); text-decoration: line-through; }
.pc-price {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 40px; font-weight: 900;
  line-height: 1; margin: 4px 0;
}
.pc-price-note { font-size: 12px; color: var(--ink3); margin-bottom: 0; }

.pc-body { padding: 16px 24px 20px; border-top: 1px solid var(--bd); margin-top: 16px; }
.pc-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink4); margin: 12px 0 8px;
}
.pc-item {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; margin-bottom: 8px;
}
.pc-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; margin-top:7px; }
.pc-item-text { color: var(--ink2); line-height: 1.6; }
.pc-item-text strong { color: var(--ink); }
.pc-promise {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.7; font-weight: 500;
}
.pc-upgrade {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  background: rgba(30,122,80,.06);
  font-size: 12px; color: var(--grn);
  display: flex; align-items: center; gap: 6px;
}
.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--bd);
  background: var(--bg);
}
.pc-margin { font-size: 16px; font-weight: 700; color: var(--grn); }
.pc-cost { font-size: 12px; color: var(--ink4); }
.pc-cta {
  width: 100%; padding: 13px;
  margin: 0; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  border-radius: 0 0 14px 14px;
  transition: all .15s;
}
.pc-cta-blue  { background: var(--blu);  color: white; }
.pc-cta-pur   { background: #6b3fa0;     color: white; }
.pc-cta-grn   { background: var(--grn);  color: white; }
.pc-cta:hover { filter: brightness(1.08); }

/* Flagship */
.flagship-card {
  background: var(--ink);
  border-radius: 16px; overflow: hidden;
  color: white;
  box-shadow: 4px 4px 0 var(--red);
}
.flagship-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: start;
  padding: 32px 36px 24px;
}
.flagship-left .fl-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 10px;
}
.flagship-left .fl-name {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 26px; font-weight: 900; margin-bottom: 6px;
}
.flagship-left .fl-sub { font-size: 13px; color: rgba(255,255,255,.55); }
.flagship-right .fl-old { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: line-through; }
.flagship-right .fl-price {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 52px; font-weight: 900; line-height: 1;
}
.flagship-right .fl-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.flagship-stages {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.1);
}
.fl-stage {
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.fl-stage:last-child { border-right: none; }
.fl-stage .fsw { font-size: 10px; color: rgba(255,255,255,.4); font-family:'DM Mono',monospace; }
.fl-stage .fsn { font-size: 13px; font-weight: 600; margin: 4px 0; }
.fl-stage .fsa { font-size: 22px; font-weight: 900; }
.fl-stage .fsh { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }
.fl-stage.hl .fsa { color: #f5c518; }
.flagship-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 36px; border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
}
.fl-margins { display: flex; gap: 8px; }
.flm { padding: 8px 14px; border-radius: 6px; background: rgba(255,255,255,.06); text-align: center; }
.flm .mv { font-size: 14px; font-weight: 700; color: #2dd98a; }
.flm .ml { font-size: 9px; color: rgba(255,255,255,.4); font-family:'DM Mono',monospace; }
.flm.total { background: rgba(45,217,138,.1); border: 1px solid rgba(45,217,138,.2); }
.fl-note { font-size: 13px; color: rgba(255,255,255,.5); flex:1; line-height:1.7; }
.flagship-cta {
  padding: 14px 32px; background: var(--red); color: white;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; border-radius: 8px;
  transition: all .15s; white-space: nowrap;
}
.flagship-cta:hover { background: var(--red2); transform: translateY(-1px); }

/* ─── WHY US ─── */
.compare-wrap {
  background: var(--white);
  border: 1px solid var(--bd); border-radius: 16px; overflow: hidden;
}
.cmp-table { width:100%; border-collapse:collapse; font-size:14px; }
.cmp-table th {
  background: var(--bg); padding:12px 18px;
  text-align:left; font-size:11px; font-weight:700;
  color:var(--ink3); border-bottom:2px solid var(--bd);
  font-family:'DM Mono',monospace; letter-spacing:.5px;
}
.cmp-table td { padding:14px 18px; border-bottom:1px solid var(--bd); color:var(--ink2); vertical-align:middle; }
.cmp-table tr:last-child td { border-bottom:none; }
.cmp-table .us td { background:rgba(30,122,80,.04); }
.cmp-table .us td:first-child { color:var(--grn); font-weight:700; }
.mark-y { color:var(--grn); font-weight:700; }
.mark-n { color:var(--ink4); }

/* ─── CASES ─── */
.cases-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.case-card {
  background:var(--white); border:1px solid var(--bd);
  border-radius:14px; padding:24px;
  transition:transform .2s;
}
.case-card:hover { transform:translateY(-3px); }
.case-header { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.case-avatar {
  width:44px; height:44px; border-radius:50%;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:white; font-weight:700; flex-shrink:0;
}
.case-meta .case-name { font-size:15px; font-weight:700; }
.case-meta .case-info { font-size:14px; color:var(--ink3); }
.case-body { font-size:16px; color:var(--ink2); line-height:1.9; }
.case-result {
  display:inline-flex; align-items:center; gap:6px;
  margin-top:12px; padding:6px 12px; border-radius:6px;
  background:rgba(30,122,80,.08); color:var(--grn);
  font-size:12px; font-weight:700;
}

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--bd); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg); }
.faq-q .arrow { font-size: 12px; color: var(--ink3); transition: transform .2s; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px;
  font-size: 14px; color: var(--ink2); line-height: 1.9;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 18px; }

/* ─── AI CHAT ─── */
.chat-fab {
  position: fixed; bottom: 100px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .15s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.chat-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-fab:hover { background: var(--ink2); transform: scale(1.08); }
.chat-label {
  position: absolute; right: 66px; top: 50%;
  transform: translateY(-50%);
  background: var(--ink); color: white;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; white-space: nowrap;
}

.chat-panel {
  position: fixed; bottom: 170px; right: 24px; z-index: 850;
  width: 360px; max-height: 520px;
  background: var(--white); border: 1px solid var(--bd);
  border-radius: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,.15);
  display: flex; flex-direction: column;
  transform: translateX(400px) scale(.9); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.chat-panel.open {
  transform: none; opacity: 1; pointer-events: all;
}
.chat-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white;
}
.chat-head-info .name { font-size: 14px; font-weight: 700; }
.chat-head-info .status { font-size: 11px; color: var(--grn); display:flex;align-items:center;gap:4px; }
.chat-head-info .status::before { content:''; width:6px;height:6px;border-radius:50%;background:var(--grn); }
.chat-close {
  margin-left:auto; background:none;border:none;cursor:pointer;
  font-size:18px;color:var(--ink3);padding:4px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg { display:flex; gap:8px; max-width:100%; }
.chat-msg.user { flex-direction:row-reverse; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.7;
  max-width: 80%;
}
.chat-msg.bot .msg-bubble { background: var(--bg); color: var(--ink); border-radius: 4px 14px 14px 14px; }
.chat-msg.user .msg-bubble { background: var(--ink); color: white; border-radius: 14px 4px 14px 14px; }
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; margin-top: 2px;
}
.chat-msg.user .msg-avatar { background: var(--red); }
.typing-dots span {
  display:inline-block; width:5px;height:5px;border-radius:50%;
  background:var(--ink3); margin:0 2px;
  animation: fadeUp .6s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay:.15s; }
.typing-dots span:nth-child(3) { animation-delay:.3s; }
.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--bd);
  display: flex; gap: 8px;
}
.chat-input {
  flex:1; padding:10px 14px; border-radius:10px;
  border:1px solid var(--bd);
  font-size:13px; font-family:inherit; outline:none;
  transition:border-color .15s;
}
.chat-input:focus { border-color: var(--ink); }
.chat-send {
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: white;
  border: none; cursor: pointer; font-size: 14px;
  transition: background .15s;
}
.chat-send:hover { background: var(--ink2); }
.qr-nudge {
  background: linear-gradient(135deg, #f7f0ff, #ede4f9);
  border: 1px solid rgba(107,45,139,.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp .4s ease both;
}
.qr-nudge img { width: 68px; height: 68px; border-radius: 8px; flex-shrink: 0; }
.qr-nudge-text { font-size: 12px; line-height: 1.7; color: var(--ink2); }
.qr-nudge-text strong { color: var(--red); font-size: 13px; display: block; margin-bottom: 2px; }
.chat-api-notice {
  padding: 12px 16px; background: #fffbf0; border-top: 1px solid #f0e8c0;
  font-size: 11px; color: var(--gold); text-align:center;
}

/* ─── CONSULT MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: 20px; padding: 40px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform .25s;
  position: relative;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg); border: 1px solid var(--bd);
  border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-size: 16px; color: var(--ink3);
  display:flex;align-items:center;justify-content:center;
}
.modal-title {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 26px; font-weight: 900; margin-bottom: 6px;
}
.modal-sub { font-size: 14px; color: var(--ink3); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display:block; }
.form-input, .form-select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--bd);
  font-size: 14px; font-family: inherit; outline: none;
  background: var(--white);
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus { border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit {
  width: 100%; padding: 15px;
  background: var(--red); color: white;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700;
  transition: all .15s; margin-top: 8px;
}
.form-submit:hover { background: var(--red2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(107,45,139,.3); }
.form-privacy { font-size: 11px; color: var(--ink4); text-align: center; margin-top: 12px; }

/* 提交成功状态 */
.success-state { text-align: center; padding: 20px 0; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-title { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-body { font-size: 14px; color: var(--ink2); line-height: 1.9; margin-bottom: 24px; }
.success-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: var(--ink); color: white;
  font-size: 14px; font-weight: 600;
}

/* ─── FLOATING CONSULT BTN ─── */
.float-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  padding: 14px 24px; border-radius: 50px;
  background: var(--red); color: white;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(107,45,139,.4);
  display: flex; align-items: center; gap: 8px;
  transition: opacity .3s, transform .3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-cta:hover { background: var(--red2); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .fb-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-brand .fb-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 16px; font-weight: 900; color: white;
}
.footer-brand .fb-name { font-size: 16px; font-weight: 700; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-col a {
  display: block; font-size: 13px; margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); margin-left:16px; }
.footer-bottom a:hover { color: white; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 38px; }
  .strength-grid { grid-template-columns: 1fr 1fr; }
  .products-wrapper { grid-template-columns: 1fr; }
  .flagship-inner { grid-template-columns: 1fr; }
  .flagship-stages { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
  .fl-margins { display:none; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .chat-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .float-cta { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hero { padding: 80px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-trust { gap: 16px; }
  .trust-item .val { font-size: 24px; }
  .sec { padding: 48px 0; }
  .sec-title { font-size: 28px; }
  .strength-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .float-cta span:not(:first-child) { display:none; }
}

/* ─── 文章卡片样式 ─── */
#contentGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  transition: all .2s;
  height: 100%;
}

.card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(107,45,139,.12);
  transform: translateY(-2px);
}

.card-body {
  flex: 1;
  padding: 20px;
}

.card-date {
  font-size: 12px;
  color: var(--ink4);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-summary {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--bd);
  background: var(--bg);
}

.content-card { background:var(--white);border:1px solid var(--bd);border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s;cursor:pointer;display:flex;flex-direction:column; }
.content-card:hover { transform:translateY(-4px);box-shadow:0 12px 36px rgba(0,0,0,.08); }
.content-card-body { padding:20px;flex:1; }
.content-card-footer { padding:12px 20px;border-top:1px solid var(--bd);background:var(--bg);display:flex;align-items:center;justify-content:space-between; }
.art-body-rendered h2 { font-family:'Noto Serif SC',serif;font-size:20px;font-weight:700;margin:24px 0 10px;color:var(--ink); }
.art-body-rendered h3 { font-family:'Noto Serif SC',serif;font-size:17px;font-weight:700;margin:20px 0 10px;color:var(--ink); }
.art-body-rendered strong { color:var(--ink);font-weight:700; }
.art-body-rendered p { margin-bottom:14px;color:var(--ink2);line-height:1.9; }
.art-body-rendered ul, .art-body-rendered ol { margin:0 0 16px 20px; color:var(--ink2); padding-left:12px; }
.art-body-rendered li { margin-bottom:8px; line-height:1.9; }
.art-body-rendered blockquote { margin:18px 0; padding:12px 16px; border-left:4px solid rgba(107,45,139,.25); background:#faf8fd; color:var(--ink2); border-radius:0 12px 12px 0; }
.art-body-rendered a { color:var(--red); text-decoration:underline; text-underline-offset:3px; word-break:break-word; }
.art-body-rendered figure { margin:22px 0; }
.art-body-rendered img { display:block; max-width:100%; height:auto; border-radius:14px; border:1px solid var(--bd); }
.art-body-rendered figcaption { margin-top:8px; font-size:12px; color:var(--ink3); text-align:center; }
.art-body-rendered .md-table-wrap { margin:20px 0; overflow-x:auto; border:1px solid var(--bd); border-radius:12px; background:var(--white); }
.art-body-rendered table { width:100%; border-collapse:collapse; min-width:520px; }
.art-body-rendered th, .art-body-rendered td { padding:12px 14px; border-bottom:1px solid var(--bd); text-align:left; vertical-align:top; color:var(--ink2); }
.art-body-rendered thead th { background:#faf8fd; color:var(--ink); font-weight:700; }
.art-body-rendered tbody tr:last-child td { border-bottom:none; }

.card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

/* ─── 标签按钮样式 ─── */
.tag-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: all .2s;
}

.tag-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.tag-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ─── 文章详情弹窗 ─── */
#articlePanel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}

#articlePanel.open {
  opacity: 1;
}

#articlePanel .panel-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

#articlePanelTitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

#articlePanelMeta {
  font-size: 13px;
  color: var(--ink4);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bd);
}

#articlePanelBody {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink2);
}

/* ─── 响应式调整 ─── */
@media (max-width: 900px) {
  #contentGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #contentGrid {
    grid-template-columns: 1fr;
  }
}


