/* 麦块云官网首页 —— 单色强调（品牌蓝），渐变只留在 logo 里；系统字体栈，零外部请求 */
:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e9f0;
  --line-strong: #d5dae3;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --brand: #0a6fdc;
  --brand-hover: #085cb8;
  --brand-soft: #eaf3fe;
  --brand-ring: rgba(10, 111, 220, .18);
  --danger: #c2410c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px rgba(15, 23, 42, .10);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--faint); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8eef7; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; }
.btn.is-disabled, .btn.is-disabled:hover {
  background: #eef1f5; color: var(--faint); border-color: transparent; cursor: not-allowed;
}

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1;
}
.tag-brand { background: var(--brand); color: #fff; }
.tag-soft { background: var(--brand-soft); color: var(--brand); }

/* 登录态切换：默认按游客渲染，JS 读到 jwt 后给 html 加 .is-user */
.user-only { display: none !important; }
.is-user .user-only { display: inline-flex !important; }
.is-user .guest-only { display: none !important; }
.guest-only { display: inline-flex; align-items: center; gap: 16px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 40px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 15px; color: var(--ink-2); }
.link-quiet:hover { color: var(--brand); }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 11px 9px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(33, 199, 249, .10), transparent 70%),
    radial-gradient(700px 380px at 5% 0%, rgba(10, 111, 220, .07), transparent 70%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px; align-items: center;
  padding-block: 80px 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.hero h1 {
  font-size: 50px; line-height: 1.18; font-weight: 700; letter-spacing: -.01em;
}
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .guest-only, .hero-cta .user-only { gap: 0; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 52px;
}
.hero-stats > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt { font-size: 13px; color: var(--muted); order: 2; }
.hero-stats dd {
  font-family: var(--num); font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats small { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.hero-stats dd small:first-child { margin-left: 0; margin-right: 1px; }

/* 主推卡 */
.feature-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg);
}
.feature-card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #eba1e2, #2d91ec 45%, #21c7f9);
}
.feature-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.feature-title { margin-top: 16px; font-size: 26px; font-weight: 700; }
.feature-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius);
}
.spec-grid li { padding: 14px 8px; text-align: center; border-right: 1px solid var(--line); }
.spec-grid li:last-child { border-right: 0; }
.spec-grid b { display: block; font-family: var(--num); font-size: 22px; font-weight: 700; line-height: 1.2; }
.spec-grid b small { font-size: 13px; font-weight: 600; margin-left: 1px; color: var(--ink-2); }
.spec-grid span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.feature-head { justify-content: flex-start; gap: 8px; }
.spec-list { margin-top: 18px; }
.spec-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-top: 1px dashed var(--line);
  font-size: 14px;
}
.spec-list > div:first-child { border-top: 0; }
.spec-list dt { color: var(--muted); flex-shrink: 0; }
.spec-list dd { color: var(--ink); text-align: right; font-weight: 500; }
.qq-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: 14px; color: var(--muted);
}
.qq-row b { font-family: var(--num); font-size: 15px; color: var(--ink); letter-spacing: .02em; }
.qq-copy {
  height: 26px; padding: 0 10px; margin-left: 4px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.qq-copy:hover { border-color: var(--brand); color: var(--brand); }
.feature-price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 16px; }
.feature-price .price { font-family: var(--num); font-size: 44px; font-weight: 700; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.feature-price .price small { font-size: 22px; margin-right: 2px; }
.feature-price .cycle { font-size: 15px; color: var(--muted); }
.feature-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.feature-foot a { color: var(--brand); }
.feature-foot a:hover { text-decoration: underline; }


/* ---------- 通用区块 ---------- */
.section { padding-block: 88px; }
.section-soft { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.section-head p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* ---------- 优势 ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why li { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.why svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px;
  background: var(--brand-soft); stroke: var(--brand); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.why h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.why p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- 收尾 ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.closing::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #eba1e2, #2d91ec 45%, #21c7f9);
}
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.closing h2 { font-size: 28px; font-weight: 700; }
.closing p { margin-top: 8px; color: rgba(255, 255, 255, .66); font-size: 15px; }
.closing-cta { display: flex; gap: 12px; flex-shrink: 0; }
.closing-cta .guest-only, .closing-cta .user-only { gap: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; padding-block: 48px 36px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 14px; }
.footer-brand p + p { margin-top: 4px; }
.footer-brand a:hover, .footer-links a:hover, .footer-bottom a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 72px; }
.footer-links h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-links a { display: block; line-height: 2.1; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  padding-block: 18px 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: 42px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 16px; justify-content: space-between; }
  .header-actions { gap: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .feature-card { max-width: 520px; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .header-actions .link-quiet { display: none; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .hero-cta .guest-only, .hero-cta .user-only { flex: 1; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
  .hero-stats > div { padding-right: 12px; margin-right: 12px; }
  .hero-stats dd { font-size: 22px; }
  .hero-stats small { font-size: 12px; }
  .hero-stats dt { font-size: 12px; line-height: 1.4; }
  .feature-card { padding: 22px 18px; }
  .spec-grid b { font-size: 18px; }
  .feature-price .price { font-size: 38px; }
  .section { padding-block: 60px; }
  .section-head h2 { font-size: 26px; }
  .why { grid-template-columns: 1fr; gap: 12px; }
  .why li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .why svg { grid-row: span 2; }
  .why h3 { margin-top: 0; font-size: 16px; }
  .why p { margin-top: 2px; }
  .closing h2 { font-size: 22px; }
  .closing-cta { width: 100%; }
  .closing-cta .btn, .closing-cta .guest-only, .closing-cta .user-only { flex: 1; }
  .footer-links { gap: 40px; flex-wrap: wrap; }
}

/* 细节修正 */
.lead, .section-head p, .closing p, .why p { text-wrap: pretty; }
.tag { white-space: nowrap; }

/* ---------- 品牌分流弹窗 ---------- */
.brand-notice {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.brand-notice[hidden] { display: none; }
.brand-notice-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 18, 32, .52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: notice-fade .2s ease-out;
}
.brand-notice-dialog {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 32px 32px 28px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
  overflow: hidden;
  animation: notice-pop .22s ease-out;
}
.brand-notice-dialog:focus { outline: none; }
.brand-notice-dialog::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #eba1e2, #2d91ec 45%, #21c7f9);
}
.brand-notice-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; padding: 7px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer;
}
.brand-notice-x:hover { background: var(--bg-soft); }
.brand-notice-x svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; fill: none; }
.brand-notice-eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); }
.brand-notice-title { margin-top: 8px; font-size: 22px; line-height: 1.35; font-weight: 700; }
.brand-notice-desc { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.brand-notice-games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-notice-games li {
  height: 28px; padding: 0 12px; line-height: 28px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.brand-notice-note {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.brand-notice-actions { display: flex; gap: 12px; margin-top: 22px; }
.brand-notice-actions .btn { flex: 1; }
.notice-open { overflow: hidden; }

@keyframes notice-fade { from { opacity: 0; } }
@keyframes notice-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .brand-notice-backdrop, .brand-notice-dialog { animation: none; }
}
@media (max-width: 480px) {
  .brand-notice-dialog { padding: 28px 20px 20px; }
  .brand-notice-title { font-size: 20px; }
  .brand-notice-actions { flex-direction: column-reverse; }
  .brand-notice-actions .btn { flex: none; width: 100%; }
}
