/* 全局设计令牌与金融终端暗色主题 */
:root {
  --bg-page: #070b11;
  --bg-surface: #0d131d;
  --bg-elevated: #121a27;
  --bg-card-hover: #162030;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text-primary: #f3f6fa;
  --text-secondary: #9aa7b8;
  --text-muted: #6c7a8e;

  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-border: rgba(52, 211, 153, 0.36);

  --gold: #e5c17b;
  --blue: #38bdf8;

  /* 涨跌颜色变量：美洲市场统一标准（绿涨红跌） */
  --market-up: #10b981;
  --market-up-bg: rgba(16, 185, 129, 0.14);
  --market-down: #f43f5e;
  --market-down-bg: rgba(244, 63, 94, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.42);
  --shadow-phone: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 17, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(16, 185, 129, 0.28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 四国语言与市场切换器 */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-code {
  letter-spacing: 0.03em;
}

.lang-chevron {
  color: var(--text-muted);
  transition: transform 0.18s ease;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 264px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(13, 19, 29, 0.98);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 60;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-border);
}

.lang-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.lang-option-text strong {
  font-size: 13px;
  font-weight: 600;
}

.lang-option-text small {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-check {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.lang-option.active .lang-check {
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}

.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 6px;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.mobile-lang-btn.active {
  border-color: var(--accent-border);
  background: rgba(16, 185, 129, 0.14);
  color: var(--text-primary);
}

/* 通用按钮 */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #05140e;
  border: 1px solid transparent;
  padding: 11px 18px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.mobile-nav {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

/* 实时行情条 */
.ticker-bar {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 19, 29, 0.72);
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding-left: 20px;
  animation: tickerScroll 42s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ticker-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.ticker-price {
  color: var(--text-primary);
  font-weight: 600;
}

.ticker-change {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.ticker-change.up {
  color: var(--market-up);
  background: var(--market-up-bg);
}

.ticker-change.down {
  color: var(--market-down);
  background: var(--market-down-bg);
}

/* Hero 首屏 */
.hero {
  position: relative;
  padding: 64px 0 88px;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
}

.hero-glow-left {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -140px;
  background: rgba(16, 185, 129, 0.24);
}

.hero-glow-right {
  width: 520px;
  height: 520px;
  top: 40px;
  right: -180px;
  background: rgba(56, 189, 248, 0.16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 22px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.1vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.accent-text {
  background: linear-gradient(95deg, #6ee7b7 0%, #34d399 48%, #e5c17b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* 首屏三渠道下载按钮组 */
.hero-downloads {
  background: rgba(13, 19, 29, 0.84);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.downloads-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.device-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-bright);
}

.download-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.store-btn.is-recommended {
  border-color: var(--accent-border);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.16) 0%, rgba(18, 26, 39, 0.96) 75%);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.14);
}

.store-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.store-btn-apk .store-icon {
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.store-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.store-meta small {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-meta strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #04130d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.recommend-tag[hidden] {
  display: none;
}

.hero-download-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-bright);
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity 0.16s ease;
}

.text-link:hover {
  opacity: 0.82;
  text-decoration: underline;
}

/* 首屏数据指标 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-item strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-item span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* 右侧手机终端预览 */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 376px;
}

.phone-frame {
  position: relative;
  background: linear-gradient(155deg, #273244 0%, #101723 32%, #0a0f18 100%);
  padding: 11px;
  border-radius: 40px;
  box-shadow: var(--shadow-phone);
}

.phone-notch {
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #06090f;
  z-index: 3;
}

.phone-screen {
  background: #090e16;
  border-radius: 31px;
  padding: 16px 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 0 4px;
}

.phone-net {
  color: var(--accent-bright);
  font-weight: 600;
}

.stock-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.stock-tab {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  border-radius: 9px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: all 0.16s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-tab.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-identity {
  min-width: 0;
  flex: 1;
}

.quote-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quote-name-row h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-market-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.quote-code {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.quote-price-box {
  text-align: right;
  flex-shrink: 0;
}

.quote-price {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.quote-change {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 2px;
}

.is-up {
  color: var(--market-up);
}

.is-down {
  color: var(--market-down);
}

.timeframe-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tf-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 7px;
  transition: background 0.16s ease, color 0.16s ease;
}

.tf-btn:hover {
  color: var(--text-secondary);
}

.tf-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.chart-legend .ma5 {
  color: var(--gold);
}

.chart-legend .ma10 {
  color: var(--blue);
}

.chart-ohlc {
  margin-left: auto;
  color: var(--text-secondary);
}

.chart-wrap {
  position: relative;
  height: 186px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 26, 39, 0.85) 0%, rgba(10, 15, 24, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
  margin-bottom: 12px;
}

#klineCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.quote-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.09);
  margin-bottom: 12px;
}

.quote-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-stats span {
  font-size: 10px;
  color: var(--text-muted);
}

.quote-stats strong {
  font-size: 10.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orderbook-card {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.orderbook-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.depth-bar {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 9px;
}

.depth-bid {
  background: var(--market-up);
  border-radius: 999px;
}

.depth-ask {
  background: var(--market-down);
  border-radius: 999px;
}

.orderbook-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 10px;
}

.ob-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.ob-label {
  color: var(--text-muted);
}

/* 手机框下方双栏状态条（不遮挡屏幕交互元素） */
.phone-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(13, 19, 29, 0.92);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  min-width: 0;
}

.status-pill > div {
  min-width: 0;
  flex: 1;
}

.status-pill small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.status-pill strong {
  display: block;
  font-size: 11.5px;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill-accent {
  color: var(--accent-bright);
}

.pill-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-indicator.up {
  background: var(--market-up);
  box-shadow: 0 0 0 4px var(--market-up-bg);
}

/* 通用区块 */
.section {
  padding: 84px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(13, 19, 29, 0.72) 0%, rgba(7, 11, 17, 0.4) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 660px;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* Bento 功能网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  grid-column: span 5;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card.bento-wide {
  grid-column: span 7;
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.feature-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.68;
}

.mini-market-strip,
.signal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-market-strip span,
.signal-pills span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* 安全与架构面板 */
.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}

.security-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.24;
}

.security-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.security-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.security-item strong {
  display: block;
  font-size: 15px;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.security-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 三大下载中心卡片 */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dl-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.dl-card-featured {
  border-color: var(--accent-border);
  background: linear-gradient(175deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-surface) 38%);
}

.dl-card.is-recommended-card {
  box-shadow: 0 0 0 1px var(--accent-border), 0 24px 60px rgba(16, 185, 129, 0.12);
}

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dl-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.dl-icon-apk {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-color: rgba(52, 211, 153, 0.25);
}

.dl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.dl-badge-accent {
  color: var(--accent-bright);
}

.dl-card-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.dl-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.dl-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.dl-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dl-specs span {
  color: var(--text-muted);
}

.dl-specs strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.sha-box {
  margin-bottom: 18px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 17, 0.72);
  border: 1px solid var(--border-subtle);
}

.sha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.copy-sha-btn {
  border: none;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.16s ease;
}

.copy-sha-btn:hover {
  background: rgba(16, 185, 129, 0.24);
}

.sha-box code {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.45;
}

.dl-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-btn-full {
  width: 100%;
}

.dl-actions-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.apk-guide {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(7, 11, 17, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.apk-guide[hidden] {
  display: none;
}

.apk-guide ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* FAQ 折叠区 */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-bright);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* 扫码弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(440px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.qr-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 20px;
}

.qr-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 9px;
  transition: background 0.16s ease, color 0.16s ease;
}

.qr-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.qr-canvas-box {
  width: 212px;
  height: 212px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.qr-canvas-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.qr-caption strong {
  font-size: 15px;
}

.qr-caption span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.qr-direct-link {
  margin-top: 8px;
  display: inline-block;
  font-size: 12px;
  color: var(--accent-bright);
  word-break: break-all;
}

.qr-direct-link:hover {
  text-decoration: underline;
}

/* 轻量提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 11px 18px;
  border-radius: 999px;
  background: #131c2b;
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.toast[hidden] {
  display: none;
}

/* 响应式适配 */
@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-copy {
    max-width: 680px;
    width: 100%;
  }

  .download-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .security-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .main-nav,
  #openQrHeaderBtn,
  .header-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .download-btn-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-card,
  .bento-card.bento-wide {
    grid-column: span 12;
  }

  .security-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 40px 0 64px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-item strong {
    font-size: 17px;
  }

  .phone-badges {
    grid-template-columns: minmax(0, 1fr);
  }

  .lang-trigger {
    padding: 0 9px;
    gap: 6px;
  }

  .lang-menu {
    right: -46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track,
  .live-dot {
    animation: none;
  }
}
