/* 面霸官网与网页端统一视觉系统（mb.gacing.com）
 * 温暖纸白基底、深墨正文、黛蓝主按钮，克制干净，零霓虹渐变、零表情符号
 */
:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-subtle: #F3F1EC;
  --border: #E6E3DC;
  --border-strong: #D4CFC5;
  --fg: #1C1917;
  --fg-secondary: #57534E;
  --muted: #8A847C;
  --accent: #1E3A5F;
  --accent-hover: #152A47;
  --accent-soft: #EDF2F7;
  --danger: #B91C1C;
  --success: #15803D;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04), 0 1px 2px rgba(28, 25, 23, 0.03);
  --shadow-md: 0 10px 30px rgba(28, 25, 23, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.10);
}
textarea { resize: vertical; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--fg-secondary); margin-bottom: 6px; }

.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-subtle); }
.btn-ghost { background: transparent; color: var(--fg-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-subtle); color: var(--fg); }
.btn-danger { background: #FEF2F2; color: var(--danger); border-color: #FECACA; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-lg { padding: 12px 26px; font-size: 15.5px; font-weight: 600; }
.btn-hero { padding: 15px 38px; font-size: 16.5px; font-weight: 600; border-radius: 11px; box-shadow: 0 4px 16px rgba(30, 58, 95, 0.16); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }

.text-link {
  background: none; border: none; padding: 0; color: var(--accent);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.err-msg { font-size: 13px; color: var(--danger); min-height: 18px; margin-top: 8px; }
.ok-msg { font-size: 13px; color: var(--success); margin-top: 8px; }

.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ============ 顶部导航 ============ */
.site-header {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.header-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pill-balance {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(30, 58, 95, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

/* ============ 官网首屏与介绍 ============ */
.landing-wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px 72px; }

.landing-hero {
  padding: 68px 0 54px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-secondary);
  margin-bottom: 18px;
}
.landing-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 0 0 18px;
}
.landing-hero p {
  font-size: 16.5px;
  color: var(--fg-secondary);
  line-height: 1.72;
  margin: 0 auto 32px;
  max-width: 600px;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-subnote { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 拟真提词演示窗 */
.mockup-stage {
  margin: 12px auto 64px;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}
.mockup-steps { display: flex; flex-direction: column; gap: 18px; }
.m-step { display: flex; gap: 12px; align-items: flex-start; }
.m-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.m-step strong { display: block; font-size: 15px; margin-bottom: 2px; }
.m-step span { font-size: 13.5px; color: var(--fg-secondary); }

.mockup-overlay-preview {
  background: #18181B;
  color: #F4F4F5;
  border-radius: 13px;
  padding: 14px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.mp-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 9px; margin-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.mp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; margin-right: 6px; }
.mp-end { background: rgba(220, 38, 38, 0.3); color: #FECACA; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; }
.mp-q { font-size: 12.5px; color: #93C5FD; margin-bottom: 8px; }
.mp-a { font-size: 13.5px; line-height: 1.68; color: #FAFAFA; }
.mp-a strong { color: #FDE68A; }

.section-block { margin: 64px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.section-head h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.015em; }
.section-head p { font-size: 14.5px; color: var(--fg-secondary); margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3, .card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.feature-card p { margin: 0; font-size: 13.5px; color: var(--fg-secondary); line-height: 1.65; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.plan-card.recommended {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.plan-name { font-size: 17px; font-weight: 650; }
.plan-price { font-size: 32px; font-weight: 750; margin: 10px 0 4px; }
.plan-price small { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.plan-tagline { font-size: 13px; color: var(--fg-secondary); margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--fg-secondary); line-height: 1.75; }
.plan-features li::before { content: "· "; font-weight: 700; color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============ 登录弹窗与网页端工作台 ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28, 25, 23, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 80;
}
.modal-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-md);
}
.seg-tabs {
  display: grid; grid-template-columns: 1fr 1.3fr;
  background: var(--surface-subtle); padding: 3px; border-radius: 9px; margin: 16px 0 18px;
}
.seg-tab {
  background: transparent; border: none; padding: 8px 10px;
  font-size: 13px; color: var(--fg-secondary); border-radius: 7px; cursor: pointer;
}
.seg-tab.active { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: var(--shadow-sm); }
.field-group { margin-bottom: 14px; }

.app-wrap { max-width: 820px; margin: 0 auto; padding: 28px 24px 64px; }

.role-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface-subtle); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.chip:hover, .chip.active {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 500;
}

.tag-pill {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
}
.tag-pill.muted { background: #ECE9E2; color: var(--fg-secondary); }

.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* 网页端实时提词舞台 */
.live-stage-card {
  background: #18181B;
  color: #F4F4F5;
  border-radius: 16px;
  padding: 20px 22px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.live-stage-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.live-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 14px 16px;
}
.live-card .q { font-size: 13px; color: #93C5FD; margin-bottom: 6px; font-weight: 500; }
.live-card .a { font-size: 14.5px; line-height: 1.7; color: #FAFAFA; }
.live-card .a strong { color: #FDE68A; }
.live-manual-bar {
  display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.live-manual-bar input {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff;
}

.list-row {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #FCFBF9; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; font-size: 13.5px;
}

/* DET 专项练习组件 */
.det-words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin: 14px 0; }
.det-word-chip {
  padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); text-align: center; cursor: pointer; font-size: 14px;
}
.det-word-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.det-options-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.det-opt-btn {
  text-align: left; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--surface); cursor: pointer;
}
.det-opt-btn.selected { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

@media (max-width: 780px) {
  .mockup-stage, .feature-grid, .plans-grid, .grid-two, .grid-three {
    grid-template-columns: 1fr;
  }
}
