@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700;900&family=Sora:wght@500;600;700&display=swap");
@import url("./tokens.css");

/* Landing */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(7,21,29,.92) 0%, rgba(11,31,42,.72) 42%, rgba(11,31,42,.35) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(46,230,199,.22), transparent 50%),
    linear-gradient(160deg, #07151d 0%, #0b1f2a 45%, #123041 100%);
  color: #f5fffc;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* 全 bleed 竖屏氛围层（非 inset 卡片） */
.hero-phone {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border-radius: 0;
  background:
    linear-gradient(90deg, rgba(7,21,29,.88) 0%, rgba(7,21,29,.55) 38%, transparent 68%),
    linear-gradient(180deg, rgba(46,230,199,.18), transparent 42%),
    repeating-linear-gradient(
      180deg,
      transparent 0 64px,
      rgba(255,255,255,.03) 64px 65px
    ),
    radial-gradient(ellipse at 78% 48%, #1c4a5c 0%, #0a1820 55%, #07151d 100%);
  border: 0;
  box-shadow: none;
  overflow: hidden;
  transform: none; top: auto; right: auto;
}
.hero-phone::before {
  content: "";
  position: absolute; right: 8%; top: 10%; bottom: 10%;
  width: min(360px, 28vw);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(46,230,199,.25), transparent 35%),
    linear-gradient(165deg, #244556, #0c1c26);
  opacity: .9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero-phone::after {
  content: "";
  position: absolute; right: 12%; top: 18%;
  width: min(280px, 22vw); height: 58%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(46,230,199,.35) 40%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,.08) 28px 29px);
  opacity: .55;
  filter: blur(0.2px);
}
.hero-inner { position: relative; z-index: 2; padding: 8vh 0 12vh; width: min(640px, calc(100% - 40px)); }
.hero .brand { color: #fff; font-size: clamp(42px, 7vw, 72px); line-height: 1.05; }
.hero-claim {
  margin-top: 22px; font-size: clamp(20px, 3vw, 28px); font-weight: 700; max-width: 16em;
}
.hero-sub { margin-top: 14px; color: rgba(245,255,252,.72); max-width: 28em; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }

.section { padding: 72px 0; }
.section h2 {
  font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin: 0 0 10px;
}
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.price-hero {
  display: flex; align-items: baseline; gap: 10px; margin-top: 8px;
  font-family: var(--font-display);
}
.price-hero strong { font-size: 48px; letter-spacing: -0.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--mint); font-weight: 700; margin-bottom: 12px;
  font-family: var(--font-display);
}

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card {
  width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.auth-card h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; }
.form-row { margin-top: 14px; }
.form-actions { margin-top: 22px; display: grid; gap: 10px; }

/* Console */
.console-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.console-side {
  background: var(--ink); color: #e8f7f3; padding: 24px 16px; position: sticky; top: 0; height: 100vh;
}
.console-side .brand { color: #fff; font-size: 20px; padding: 0 8px 24px; }
.console-side a {
  display: block; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.72); font-weight: 600; font-size: 14px;
}
.console-side a:hover, .console-side a.active { background: rgba(46,230,199,.16); color: #fff; }
.console-main { padding: 24px 28px 48px; }
.console-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.balance-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  box-shadow: var(--shadow);
}
.balance-pill strong {
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 14px; font-size: 18px; }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pack {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer;
  background: #fff; transition: border-color .15s, transform .15s;
}
.pack:hover { border-color: var(--mint); transform: translateY(-2px); }
.pack strong { display: block; font-family: var(--font-display); font-size: 28px; }

/* Avoid inline CSS var(--*) in ThinkPHP views — `{` is template syntax */
.page-fog { background: var(--fog); }
.docs-title { font-family: var(--font-display); font-size: 34px; margin: 0 0 10px; }
.brand-accent { color: var(--mint-deep); }
.brand-auth { margin-bottom: 8px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.auth-hint { margin-top: 16px; font-size: 13px; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 40px 0 80px; }
.code-block {
  background: #0b1f2a; color: #d7fff5; border-radius: 14px; padding: 18px;
  overflow: auto; font-size: 13px; line-height: 1.6;
}
.copy-btn { margin-top: 8px; }

/* Admin denser */
.admin-shell .console-side { background: #07151d; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; }

@media (max-width: 900px) {
  .hero-phone::before, .hero-phone::after { opacity: .35; right: -10%; }
  .feature-row, .steps, .pack-grid, .stat-grid, .docs-layout, .console-shell {
    grid-template-columns: 1fr;
  }
  .console-side { position: relative; height: auto; }
}
