/* ============================================================
 * 海外官网落地页（site.html / overseas 部署首页）
 * 视觉基调对齐 bigmodel.cn：浅色底、超大居中标题、极光光晕、
 * 白卡片 + 强调渐变卡、页尾黑色品牌带与黑色页脚。
 * 动效三层：初次加载 splash（#site-loader）/ 英雄区逐项入场
 * （data-hero-item）/ 下滑上移渐入（data-reveal + IntersectionObserver）。
 * 配色仍从 base.css 变量出发，本页在 body 上覆写为浅色主题
 * （弹窗/提示随之变浅色，整页观感一致）。
 * ============================================================ */

body[data-page="site"] {
  /* 浅色主题变量覆写：本页所有组件（含 common.js 的弹窗）随之变浅 */
  --bg: #ffffff;
  --bg2: #f6f7fa;
  --panel: #ffffff;
  --line: #e7e9f0;
  --txt: #17181c;
  --muted: #6b7280;
  --acc: #a16b0a;          /* 品牌金加深到浅底可读 */
  --acc2: #5b7fd4;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--txt);
}

/* ---------- 初次加载 splash ---------- */

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background:
    radial-gradient(700px 340px at 50% 18%, rgba(244, 214, 160, .5), transparent 70%),
    #fff;
  transition: opacity .55s ease, visibility .55s ease;
}

#site-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-cn {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 14px;
  text-indent: 14px;
  color: #17181c;
  animation: loaderGlow 1.6s ease infinite alternate;
}

.loader-en {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 6px;
  color: #a16b0a;
  font-weight: 600;
}

@keyframes loaderGlow {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.loader-bar {
  width: 168px;
  height: 3px;
  border-radius: 3px;
  background: #eceef3;
  overflow: hidden;
}

.loader-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8c987, #a16b0a);
  animation: loaderSlide 1.1s ease infinite;
}

@keyframes loaderSlide {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}

/* ---------- 顶栏 ---------- */

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(14px, 4vw, 44px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.site-topbar.scrolled {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-logo-en {
  margin-left: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 3px;
}

.site-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.site-nav a {
  color: #3c4048;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: color .2s;
}

.site-nav a:hover { color: var(--txt); }

.site-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.site-lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  font-size: 13px;
  cursor: pointer;
}

.site-lang button.on { background: #17181c; color: #fff; font-weight: 600; }

/* 顶栏用户区：昵称胶囊 + 下拉（退出登录） */
.site-user { position: relative; }

.site-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 180px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--txt);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-user-chip::before { content: "👤"; font-size: 13px; }
.site-user-chip:hover { border-color: #17181c; }

.site-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(23, 24, 28, .14);
  padding: 6px;
  z-index: 30;
}

.site-user-menu.open { display: block; }

.site-user-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--txt);
  font-size: 14px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.site-user-menu button:hover { background: var(--bg2); }

/* 按钮体系：黑胶囊主按钮 + 白底描边副按钮 + 金色强调（bigmodel 口味） */
.site-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.site-btn.primary {
  background: #17181c;
  color: #fff;
  font-weight: 600;
}

.site-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 24, 28, .18);
}

.site-btn.accent {
  background: linear-gradient(135deg, #f0b64f, #cf8318);
  color: #2b1c04;
  font-weight: 700;
}

.site-btn.accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(207, 131, 24, .35);
}

.site-btn.ghost {
  background: #fff;
  border-color: #d8dbe4;
  color: var(--txt);
}

.site-btn.ghost:hover { border-color: #17181c; }
.site-btn.big { padding: 13px 34px; font-size: 16px; }
.site-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero + 极光背景 ---------- */

.site-main { flex: 1; }

.site-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(72px, 12vw, 150px) 20px clamp(56px, 9vw, 110px);
}

/* 极光光晕：三团模糊色块缓漂（GPU 合成，不重绘整页） */
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  z-index: 0;
}

.hero-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}

.hero-aurora .a1 {
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  left: 8%; top: 6%;
  background: radial-gradient(circle, #ffe4b3, transparent 65%);
  animation: drift1 14s ease-in-out infinite alternate;
}

.hero-aurora .a2 {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  right: 6%; top: 0;
  background: radial-gradient(circle, #ffd2e8, transparent 65%);
  animation: drift2 17s ease-in-out infinite alternate;
}

.hero-aurora .a3 {
  width: 44vw; height: 44vw; max-width: 540px; max-height: 540px;
  left: 32%; top: 26%;
  background: radial-gradient(circle, #d5dcff, transparent 65%);
  animation: drift3 20s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(9vw, 5vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, 7vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(5vw, -6vh) scale(1.18); } }

.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.site-hero-badge {
  display: inline-block;
  border: 1px solid #e3e6ee;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  color: #5a6070;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px);
}

.site-hero-title {
  margin: 22px 0 6px;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: clamp(6px, 1.4vw, 16px);
  text-indent: clamp(6px, 1.4vw, 16px);
  color: #101116;
}

.site-hero-tagline {
  margin: 12px auto 8px;
  max-width: 720px;
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 600;
  color: #26282e;
}

.site-hero-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.site-hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 英雄区逐项入场：页面加载后按 --d 依次上浮 */
[data-hero-item] {
  opacity: 0;
  animation: heroUp .9s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 下滑上移渐入（JS 加 body.has-reveal 后才启用隐藏，防 JS 失效吞内容） ---------- */

body.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

body.has-reveal [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- 通用区块 ---------- */

.site-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(46px, 8vw, 88px) 20px;
}

.site-section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #101116;
  text-align: center;
}

.site-sub {
  margin: 0 auto 34px;
  max-width: 640px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* 特色卡片：白卡 + 黑色图标章 + 悬停上浮 */

.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.site-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform .3s, box-shadow .3s;
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23, 24, 28, .08);
}

.site-card-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #17181c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.site-card h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
}

.site-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 充值区 ---------- */

.site-buy .buy-panel,
.site-buy .buy-login {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(23, 24, 28, .06);
}

.buy-login p { margin: 4px 0 18px; color: var(--txt); }

.buy-balance { margin-bottom: 18px; font-size: 14px; }
.buy-balance b { color: var(--acc); font-size: 20px; }

.buy-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 12px;
}

.buy-tier {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfbfd;
  color: var(--txt);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.buy-tier b { font-size: 18px; color: var(--txt); }
.buy-tier span { font-size: 12px; color: var(--muted); }
.buy-tier:hover { transform: translateY(-3px); border-color: #c9ccd8; }

/* 首档 = 强调渐变卡（对应 bigmodel 首屏的蓝色主推卡） */
.buy-tier.featured {
  background: linear-gradient(150deg, #f5c56a, #cf8318);
  border-color: transparent;
  color: #2b1c04;
  box-shadow: 0 14px 30px rgba(207, 131, 24, .28);
}

.buy-tier.featured b, .buy-tier.featured span { color: #2b1c04; }

.buy-tier.on {
  border-color: #17181c;
  box-shadow: 0 0 0 2px #17181c inset;
}

.buy-tier.featured.on { box-shadow: 0 0 0 2px #2b1c04 inset, 0 14px 30px rgba(207, 131, 24, .28); }

.buy-actions { margin-top: 22px; }
.buy-actions .site-btn { min-width: 240px; }

.buy-status { margin-top: 12px; min-height: 18px; font-size: 13px; }
.buy-note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; }

/* ---------- 下载区 ---------- */

.site-dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.site-dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 26px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--txt);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.site-dl b { font-size: 19px; letter-spacing: 2px; color: var(--txt); }
.site-dl span { font-size: 13px; color: var(--muted); }
.site-dl:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(23, 24, 28, .09); }

/* ---------- FAQ ---------- */

.site-faq { max-width: 740px; }

.site-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.site-faq-item summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--txt);
  font-weight: 600;
}

.site-faq-item p {
  margin: 10px 0 2px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 品牌带（黑色收尾段，对应 bigmodel 的「让机器像人一样思考」） ---------- */

.site-band {
  margin-top: clamp(30px, 6vw, 60px);
  background: #0a0a0d;
  color: #fff;
  text-align: center;
  padding: clamp(70px, 11vw, 120px) 20px;
}

.band-logo {
  display: block;
  width: clamp(76px, 10vw, 104px);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(245, 197, 106, .22);
}

.band-slogan {
  margin: 0 0 34px;
  font-size: clamp(24px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
}

/* ---------- 页脚（黑色延续） ---------- */

.site-foot {
  background: #0a0a0d;
  color: #c9ccd6;
  border-top: 1px solid #1d1f26;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px) 26px;
}

.site-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  max-width: 1080px;
  margin: 0 auto;
}

.site-foot-logo { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.site-foot-logo span { margin-left: 7px; font-size: 12px; color: #cf8318; letter-spacing: 3px; }
.site-foot-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.8; }

.site-foot-col { display: flex; flex-direction: column; gap: 10px; }
.site-foot-head { font-size: 13px; color: #7b8090; margin-bottom: 4px; }
.site-foot-col a { color: #c9ccd6; text-decoration: none; font-size: 14px; }
.site-foot-col a:hover { color: #fff; }

.site-foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid #1d1f26;
  font-size: 12px;
}

.site-foot-bottom .muted { color: #7b8090; }

/* ---------- 登录/注册页浅色皮肤 ----------
 * login.html 在 head 里检测 next=/site 时给 <html> 挂 login-light：
 * 从官网跳来的登录/注册保持官网观感，国内入口不受影响。 */

.login-light {
  --bg: #ffffff;
  --bg2: #f6f7fa;
  --panel: #ffffff;
  --line: #e7e9f0;
  --txt: #17181c;
  --muted: #6b7280;
  --acc: #a16b0a;
  --acc2: #5b7fd4;
}

.login-light body {
  background:
    radial-gradient(700px 340px at 50% -60px, rgba(244, 214, 160, .4), transparent 70%),
    #fff;
}

.login-light .mask { background: rgba(240, 241, 246, .92); }

.login-light .card {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23, 24, 28, .1);
  border-color: #eef0f5;
}

.login-light .page-foot { color: #9aa0ae; }

/* 登录卡按钮：对齐官网「黑胶囊主按钮 + 白底描边副按钮」体系，
   覆掉 base.css button.primary 的深金底深棕字（用户圈过的丑点） */
.login-light .card button.primary,
.login-light .card button.ghost {
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  letter-spacing: 2px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.login-light .card button.primary {
  background: #17181c;
  border-color: #17181c;
  color: #fff;
  font-weight: 600;
}

.login-light .card button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 24, 28, .2);
  filter: none;
}

.login-light .card button.primary:active { transform: none; box-shadow: none; }

.login-light .card button.ghost {
  background: #fff;
  border-color: #d8dbe4;
  color: var(--txt);
  letter-spacing: 1px;
}

.login-light .card button.ghost:hover { border-color: #17181c; }

/* 输入框与验证码图：圆角、聚焦描黑，贴官网输入观感 */
.login-light .card input {
  border-radius: 10px;
  padding: 10px 12px;
  border-color: #e3e6ee;
  transition: border-color .2s;
}

.login-light .card input:focus { border-color: #17181c; outline: none; }
.login-light .captcha-img { border-radius: 10px; }

/* ---------- 动效弱化偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-hero-item], body.has-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 手机端 ---------- */

@media (max-width: 760px) {
  .site-topbar { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .site-topbar.scrolled { background: rgba(255, 255, 255, .92); }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }
  .site-nav a { font-size: 13px; }
  .site-top-actions { gap: 8px; }
  .site-btn.big { padding: 12px 24px; }
  .site-hero { padding-top: 52px; }
  .hero-aurora i { filter: blur(52px); opacity: .5; }
  .site-buy .buy-panel, .site-buy .buy-login { padding: 22px 16px; }
  .buy-actions .site-btn { width: 100%; min-width: 0; }
  .site-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-foot-bottom { flex-direction: column; }
}
