/* ===== Design tokens ===== */
:root {
  --bg:        #0f1115;   /* 深炭黑 */
  --bg-alt:    #15181e;   /* 交替区块，略亮 */
  --surface:   #1b1e25;   /* 卡片面 */
  --surface-2: #22262e;
  --border:    rgba(255,255,255,.07);
  --text:      #ececec;   /* 近白 */
  --text-mut:  #989ca5;   /* 中性灰 */
  --brand:     #e8703a;   /* 低饱和橙 · 唯一强调色 */
  --brand-2:   #d65f2c;   /* 略深，用于 hover/描边（非渐变） */
  --accent:    #e8703a;   /* 统一为橙，取消第二强调色 */
  --wechat:    #07c160;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 16px 40px rgba(0,0,0,.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(232,112,58,.25); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-2); box-shadow: 0 12px 28px rgba(232,112,58,.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,18,32,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11,18,32,.9); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 34px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-size: 15px; color: var(--text-mut); font-weight: 500; transition: color .2s; position: relative; }
.nav > a:hover { color: var(--text); }
.nav > a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--brand); transition: width .25s var(--ease); }
.nav > a:hover::after { width: 100%; }

.lang-switch {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.track-line {
  position: absolute; left: -10%; right: -10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewY(-6deg); transform-origin: left;
}
.track-line:nth-child(1) { top: 42%; }
.track-line:nth-child(2) { top: 56%; }
.track-line:nth-child(3) { top: 70%; }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.hero-eyebrow { color: var(--brand); font-weight: 600; letter-spacing: 1px; font-size: 15px; margin-bottom: 18px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  color: var(--text);
}
.hero-sub { color: var(--text-mut); font-size: clamp(1rem, 2vw, 1.2rem); margin: 22px auto 36px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.hero-tags span {
  font-size: 13px; color: var(--text-mut); padding: 7px 16px; border: 1px solid var(--border);
  border-radius: 999px; background: rgba(255,255,255,.02);
}

/* ===== Section base ===== */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow { color: var(--brand); font-weight: 600; letter-spacing: 1px; font-size: 14px; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.section-lead { color: var(--text-mut); font-size: 1.05rem; margin-top: 16px; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 34px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--brand); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.product-card:hover::before { opacity: .55; }
.product-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.product-icon svg { width: 100%; height: 100%; }
.product-badge {
  position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 600;
  color: var(--brand); background: rgba(232,112,58,.12); border: 1px solid rgba(232,112,58,.3);
  padding: 4px 12px; border-radius: 999px;
}
.product-badge--alt { color: var(--text-mut); background: rgba(255,255,255,.05); border-color: var(--border); }
.product-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.product-name span { font-size: 1.1rem; color: var(--text-mut); font-weight: 500; }
.product-desc { color: var(--text-mut); margin-bottom: 22px; }
.product-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.product-points li { position: relative; padding-left: 26px; font-size: 15px; }
.product-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}
.product-link { color: var(--brand); font-weight: 600; font-size: 15px; transition: gap .2s, color .2s; display: inline-block; }
.product-link:hover { color: var(--brand-2); }
.product-link--muted { color: var(--text-mut); font-weight: 500; cursor: default; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text .section-eyebrow, .about-text .section-title { text-align: left; }
.about-p { color: var(--text-mut); margin-top: 18px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(232,112,58,.4); }
.stat-num {
  display: block; font-size: 2rem; font-weight: 800; line-height: 1.1;
  color: var(--brand);
}
.stat-label { display: block; color: var(--text-mut); font-size: 14px; margin-top: 8px; }

/* ===== Join ===== */
.join-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.join-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s var(--ease), border-color .3s;
}
.join-card:hover { transform: translateY(-4px); border-color: rgba(232,112,58,.4); }
.join-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.join-card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; background: var(--brand); vertical-align: middle; }
.join-card p { color: var(--text-mut); font-size: 15px; }
.join-cta { text-align: center; }
.join-cta p { color: var(--text-mut); margin-bottom: 18px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-emails { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card-label { color: var(--text-mut); font-size: 14px; }
.contact-card-value { font-size: 1.15rem; font-weight: 700; color: var(--text); word-break: break-all; }

.contact-qrs { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr img {
  width: 156px; height: 156px; border-radius: var(--radius-sm); background: #fff;
  padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.qr figcaption { font-size: 14px; color: var(--text-mut); display: flex; align-items: center; gap: 7px; }
.qr figcaption::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wechat); }

/* ===== Footer ===== */
.site-footer { background: #070d18; border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-logo { height: 32px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-mut); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-mut); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--text-mut); font-size: 13px;
}
.footer-icp a { color: var(--text-mut); transition: color .2s; }
.footer-icp a:hover { color: var(--text); }
.footer-police a { color: var(--text-mut); transition: color .2s; display: inline-flex; align-items: center; gap: 5px; }
.footer-police a:hover { color: var(--text); }
.footer-police-icon { width: 16px; height: 16px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .join-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,18,32,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 12px 0 20px;
    transform: translateY(-130%); transition: transform .38s var(--ease); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 14px 24px; font-size: 16px; color: var(--text); }
  .nav > a::after { display: none; }
  .lang-switch { margin: 14px 24px 0; align-self: flex-start; }

  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-qrs { gap: 16px; }
  .qr img { width: 132px; height: 132px; }
  .hero-actions .btn { width: 100%; }
}
