/* components.css — 通用组件 */

/* ====== 导航 ====== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--h-header);
  display: flex; align-items: center;
  z-index: 100;
  transition: background var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header.is-scrolled .nav__link,
.site-header.is-scrolled .nav__brand-text { color: var(--c-text); }

.site-header--solid { background: rgba(9,0,5,.6); backdrop-filter: blur(8px); }

.nav {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--s-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
@media (min-width: 768px) { .nav { padding-inline: var(--s-4); } }

.nav__brand { display: flex; align-items: center; gap: var(--s-2); color: #fff; }
.nav__brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
.nav__brand-text {
  font-family: var(--font-en); font-weight: 900; font-size: var(--fs-md);
  letter-spacing: .5px; color: #fff;
}
.nav__brand-text small { display: block; font-size: 11px; opacity: .7; letter-spacing: 4px; font-weight: 500; }

.nav__list {
  display: none;
  gap: var(--s-4);
}
@media (min-width: 1024px) { .nav__list { display: flex; } }

.nav__link {
  color: #fff; font-size: var(--fs-sm); font-weight: 500;
  padding: var(--s-1) 0; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-primary-light); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--c-primary); border-radius: 2px;
}

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; } }

.nav__burger {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: var(--r-btn); color: #fff;
}
@media (min-width: 1024px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .nav__list-mobile {
    position: fixed; top: var(--h-header); left: 0; right: 0;
    background: rgba(9,0,5,.96); backdrop-filter: blur(12px);
    padding: var(--s-4) var(--s-3);
    display: none; flex-direction: column; gap: var(--s-3);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav__list-mobile.is-open { display: flex; }
  .nav__list-mobile a {
    color: #fff; padding: var(--s-2) 0; font-size: var(--fs-md);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}
@media (min-width: 1024px) { .nav__list-mobile { display: none !important; } }

/* ====== 按钮 ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  padding: 12px 24px; min-height: 44px;
  border-radius: var(--r-btn);
  font-weight: 700; font-size: var(--fs-sm);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-deep); transform: translateY(-1px); box-shadow: 0 8px 16px rgba(229,0,127,.25); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--sm { padding: 8px 16px; min-height: 36px; font-size: var(--fs-sm); }
.btn--lg { padding: 16px 32px; min-height: 52px; font-size: var(--fs-md); }

.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ====== 卡片 ====== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  transition: all var(--t-base) var(--ease);
}
.card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-4px); border-color: var(--c-primary-light); }

.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
.card--dark:hover { background: rgba(255,255,255,.08); border-color: var(--c-primary-light); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--c-primary-pale);
  color: var(--c-primary-deep);
}
.tag--dark { background: rgba(229,0,127,.15); color: var(--c-primary-light); }
.tag--cyan { background: rgba(0,148,149,.12); color: var(--c-accent-cyan); }
.tag--warm { background: rgba(224,46,44,.12); color: var(--c-accent-warm); }

/* ====== 表单 ====== */
.form-group { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-surface);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(229,0,127,.12);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ====== Footer ====== */
.site-footer {
  background: var(--c-bg-deep);
  color: rgba(255,255,255,.85);
  padding: var(--s-8) 0 var(--s-4);
}
.site-footer a { color: rgba(255,255,255,.85); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--c-primary-light); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer__brand { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); color: #fff; }
.footer__brand-mark { width: 40px; height: 40px; }
.footer__brand-text { font-family: var(--font-en); font-weight: 900; font-size: var(--fs-lg); }

.footer__col h4 {
  color: #fff; font-size: var(--fs-sm); font-weight: 700;
  margin-bottom: var(--s-3); letter-spacing: 1px; text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.footer__col li a { color: rgba(255,255,255,.7); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-1);
  font-size: var(--fs-xs); color: rgba(255,255,255,.5);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ====== 二维码占位 ====== */
.qr-placeholder {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: var(--r-card);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: var(--fs-xs);
  text-align: center; line-height: 1.2;
}

/* ====== CTA 区（共用组件，所有页面可用） ====== */
.cta-band {
  background: var(--c-bg-deep);
  color: #fff;
  padding: var(--s-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(229,0,127,.2), transparent 60%);
  pointer-events: none;
}
.cta-band__inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--fs-md); margin-bottom: var(--s-4); }
.cta-band__buttons { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }

/* ====== 数据带（共用组件，所有页面可用） ====== */
.stats-band {
  background: var(--c-bg-deep);
  color: #fff;
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(229,0,127,.12), transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4);
  position: relative;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; padding: var(--s-3); }
.stat__num {
  font-family: var(--font-en); font-size: clamp(40px, 5vw, 64px);
  font-weight: 900; color: var(--c-primary-light); line-height: 1;
  margin-bottom: var(--s-1);
}
.stat__num sup { font-size: .5em; vertical-align: top; }
.stat__label { font-size: var(--fs-sm); color: rgba(255,255,255,.7); }
.stats-band .section__head h2 { color: #fff; }
.stats-band .section__head .lead { color: rgba(255,255,255,.85); }
.stats-band .section__head .eyebrow { color: var(--c-primary-light); }