/* 集市小程序开放平台 · 设计系统（参考 sso.ssemarket.cn / join.ssemarket.cn） */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfa;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --fill: #f4f4f4;
  --fill-hover: #ededed;
  --ink: #171717;
  --ink-2: #262626;
  --muted: #5f6368;
  --muted-2: #9b9a94;
  --line: #e8e8e8;
  --line-soft: #f0f0f0;
  --line-strong: #d2d1cb;
  --brand: #3370ff;
  --brand-ink: #245bdb;
  --brand-soft: #eaf1ff;
  --brand-tint: #f5f8ff;
  --ok: #256b45;
  --ok-soft: #f3f8f4;
  --danger: #b42318;
  --danger-soft: #fff6f4;
  --warn: #8a5a00;
  --warn-soft: #fff9ed;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .14);
  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 14px;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--brand-soft); }

/* 网格纸背景 */
.grid-paper {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(23, 23, 23, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── 基础组件 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 17px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), opacity .16s;
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; border-color: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.btn-soft:hover { background: #dfe9ff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f6d9d5; }
.btn-danger:hover { background: #ffece8; }
.btn-sm { height: 31px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 46px; padding: 0 23px; font-size: 14px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.link { color: var(--brand-ink); cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.card-pad { padding: 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .btn { justify-content: flex-start; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--fill); color: var(--muted); white-space: nowrap; border: 1px solid transparent;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.published, .pill.approved { background: var(--brand-soft); color: var(--brand-ink); }
.pill.reviewing { background: var(--warn-soft); color: var(--warn); }
.pill.rejected { background: var(--danger-soft); color: var(--danger); }
.pill.draft, .pill.offline { background: var(--fill); color: var(--muted); }
.pill.public { background: var(--brand-soft); color: var(--brand-ink); }
.pill.logged_in { background: var(--fill); color: var(--ink-2); }
.pill.allowlist { background: #f3f0ff; color: #5b45c9; }

/* ── 表单 ───────────────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid transparent; border-radius: 10px;
  background: var(--fill); color: var(--ink); font-family: inherit; font-size: 13.5px;
  padding: 0 13px; height: 42px; transition: .15s; outline: none;
}
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { background: var(--fill-hover); }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 112, 255, .1); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .15s; background: #fff; }
.check:hover { border-color: var(--line-strong); background: var(--surface-2); }
.check input { margin-top: 2px; accent-color: var(--brand); }
.check.on { border-color: var(--brand); background: var(--brand-tint); }
.check .ci-title { font-weight: 600; font-size: 12.5px; }
.check .ci-desc { color: var(--muted); font-size: 11.5px; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: 12.5px; border: 1px solid #f6d9d5; }
.form-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ── 站点头部 ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1160px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; display: block; flex: none; }
.brand small { display: block; font-size: 9.5px; color: var(--muted-2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { color: #fff; }
.nav-links .btn-ghost { color: var(--ink); }

/* ── 落地页 ─────────────────────────────────────────────── */
.landing { min-height: 100vh; background-color: var(--bg); background-image: linear-gradient(to right, rgba(23,23,23,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,23,23,.045) 1px, transparent 1px); background-size: 44px 44px; }
.hero { max-width: 1160px; margin: 0 auto; padding: 76px 28px 60px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-bottom: 22px; }
.eyebrow-line { width: 32px; height: 1px; background: var(--line-strong); display: inline-block; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; font-weight: 700; }
.hero h1 .grad { color: var(--brand); }
.hero .lead { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.85; }
.hero-actions { display: flex; gap: 11px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; margin-top: 42px; flex-wrap: wrap; }
.hero-meta > div { padding: 0 22px; border-left: 1px solid var(--line); }
.hero-meta > div:first-child { padding-left: 0; border-left: 0; }
.hero-meta .num { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.hero-meta .lab { color: var(--muted-2); font-size: 11.5px; margin-top: 4px; }
.hero-visual { position: relative; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 470px; margin-left: auto; display: grid; place-items: center; background: repeating-radial-gradient(circle at 50% 50%, rgba(51,112,255,.14) 0 1px, transparent 1px 13px); border-radius: 50%; }
.hero-art::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(51,112,255,.13); border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; inset: 30%; border: 1px dashed rgba(51,112,255,.16); border-radius: 50%; }
.hero-logo { width: 27%; filter: drop-shadow(0 24px 44px rgba(51,112,255,.20)); position: relative; z-index: 1; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(51,112,255,.12); }
.orbit-dot.a { top: 7%; left: 48%; }
.orbit-dot.b { top: 56%; right: 5%; background: var(--ink); box-shadow: 0 0 0 5px rgba(23,23,23,.08); }
.orbit-label { position: absolute; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }
.orbit-label.tl { top: 12%; left: 6%; }
.orbit-label.br { bottom: 10%; right: 4%; }

.section { max-width: 1160px; margin: 0 auto; padding: 78px 28px; }
.section-lined { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: 34px; letter-spacing: -.04em; line-height: 1.2; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--brand); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 14px; line-height: 1.85; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; counter-reset: feature; }
.feature { border-top: 1px solid var(--line); padding: 22px 0 8px; counter-increment: feature; }
.feature::before { content: "0" counter(feature); display: block; font-family: var(--mono); font-size: 10.5px; color: var(--brand); letter-spacing: .12em; margin-bottom: 14px; }
.feature .fi { display: none; }
.feature h3 { font-size: 15.5px; margin-bottom: 8px; letter-spacing: -.02em; }
.feature p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding: 20px 0 0; counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--mono); font-size: 10.5px; color: var(--brand); letter-spacing: .12em; }
.step h4 { margin: 12px 0 6px; font-size: 14px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 12px; line-height: 1.75; }

.ecosystem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eco-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; align-items: flex-start; gap: 12px; transition: .18s var(--ease); color: inherit; }
.eco-card:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.eco-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; flex: none; color: var(--brand-ink); overflow: hidden; }
.eco-icon img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.eco-card b { font-size: 13px; font-weight: 650; display: block; }
.eco-card span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; line-height: 1.55; }

.code-showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.code-showcase h2 { font-size: 34px; letter-spacing: -.04em; }
.code-showcase p { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 14px; }
.window { background: #171717; border-radius: 14px; padding: 16px; color: #e7e7e4; box-shadow: 0 30px 70px rgba(0,0,0,.14); border: 1px solid #262626; }
.window-bar { display: flex; gap: 6px; margin-bottom: 12px; align-items: center; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-title { margin-left: auto; font-size: 10px; color: #8a8a86; font-family: var(--mono); letter-spacing: .04em; }
.code-block { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; padding: 4px 2px 8px; }
.code-block .k { color: #8ab4ff; } .code-block .s { color: #b7e1c1; } .code-block .c { color: #7c7c78; } .code-block .n { color: #ffc9c9; }
.floating-card { position: absolute; right: -10px; bottom: -24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center; }
.floating-card .fc-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.floating-card b { display: block; font-size: 12px; } .floating-card span { font-size: 10.5px; color: var(--muted); }
.hero-visual .window { transform: rotate(-.4deg); }

.cta-band { background: #171717; border-radius: 18px; padding: 46px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.cta-band h2 { color: #fff; font-size: 28px; letter-spacing: -.04em; }
.cta-band p { color: #a3a3a3; margin-top: 8px; font-size: 13.5px; }
.cta-band .btn { background: #fff; color: #171717; border-color: #fff; }
.cta-band .btn.ghost-dark { background: transparent; color: #fff; border-color: #3a3a3a; }
.footer { max-width: 1160px; margin: 0 auto; padding: 32px 28px 54px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11.5px; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }

/* ── 登录 / 注册 ────────────────────────────────────────── */
.auth-page { min-height: 100vh; position: relative; display: grid; grid-template-columns: 1fr 400px; gap: 70px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 100px 32px 60px; background-color: var(--bg); background-image: linear-gradient(to right, rgba(23,23,23,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,23,23,.045) 1px, transparent 1px); background-size: 44px 44px; }
.auth-brand { position: absolute; top: 34px; left: 32px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.auth-brand:hover { text-decoration: none; }
.auth-brand img { width: 28px; height: 28px; object-fit: contain; }
.auth-left { display: flex; align-items: center; gap: 26px; }
.auth-quote { max-width: 420px; }
.auth-quote .eyebrow { margin-bottom: 18px; }
.auth-quote h1 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.32; letter-spacing: -.045em; font-weight: 600; }
.auth-quote cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted-2); font-size: 12px; }
.auth-art { flex: 1; min-width: 240px; aspect-ratio: 1; max-width: 400px; position: relative; display: grid; place-items: center; background: repeating-radial-gradient(circle at 50% 50%, rgba(51,112,255,.13) 0 1px, transparent 1px 12px); border-radius: 50%; }
.auth-art::before { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(51,112,255,.12); border-radius: 50%; }
.auth-art::after { content: ""; position: absolute; inset: 31%; border: 1px dashed rgba(51,112,255,.16); border-radius: 50%; }
.auth-art img { width: 26%; opacity: .92; filter: drop-shadow(0 18px 36px rgba(51,112,255,.18)); position: relative; z-index: 1; }
.auth-art .orbit-label.tl { top: 13%; left: 2%; }
.auth-art .orbit-label.br { bottom: 12%; right: 0; }
.auth-panel { width: 100%; max-width: 400px; }
.auth-panel > .eyebrow { margin-bottom: 14px; }
.auth-panel h2 { font-size: 26px; letter-spacing: -.04em; }
.auth-panel .sub { color: var(--muted); margin: 7px 0 26px; font-size: 12.5px; line-height: 1.7; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button { border: 0; background: transparent; padding: 0 0 11px; font-size: 13px; font-weight: 600; color: var(--muted-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.auth-panel .input { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; height: 46px; padding: 0 2px; font-size: 14px; }
.auth-panel .input:hover { background: transparent; border-bottom-color: var(--ink); }
.auth-panel .input:focus { background: transparent; border-bottom-color: var(--brand); box-shadow: none; }
.auth-panel .field > label { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.auth-panel .btn-primary { width: 100%; height: 48px; margin-top: 6px; font-size: 14px; }
.auth-sso { width: 100%; height: 46px; border-color: var(--line-strong); background: #fff; margin-bottom: 4px; }
.auth-sso:hover { background: var(--surface-2); }
.sso-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted-2); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-panel .form-note { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 0 0; }
.auth-foot { margin-top: 18px; color: var(--muted-2); font-size: 11.5px; line-height: 1.75; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 12.5px; }
.auth-switch .link { font-weight: 600; }
.auth-wrap { display: none; }

/* ── 控制台 ─────────────────────────────────────────────── */
.console { min-height: 100vh; display: flex; background: var(--bg); }
.sidebar { width: 244px; flex: 0 0 244px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 13px; position: sticky; top: 0; height: 100vh; z-index: 30; }
.sidebar .brand { padding: 4px 10px 20px; color: var(--ink); font-size: 14px; }
.sidebar .brand small { color: var(--muted-2); }
.nav-group { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); padding: 14px 11px 7px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 2px; border: 1px solid transparent; transition: .15s var(--ease); text-decoration: none; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item.on { background: var(--brand-tint); color: var(--brand-ink); border-color: var(--brand-soft); font-weight: 600; }
.nav-item svg { opacity: .85; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 31px; height: 31px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.user-chip .un { font-size: 12.5px; color: var(--ink); font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .ue { font-size: 10.5px; color: var(--muted-2); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .icon-btn { color: var(--muted-2); background: transparent; border: 0; cursor: pointer; padding: 6px; border-radius: 7px; }
.sidebar-foot .icon-btn:hover { color: var(--ink); background: var(--surface-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: rgba(251, 251, 250, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 14px; position: sticky; top: 0; z-index: 20; }
.topbar h2 { font-size: 15px; letter-spacing: -.02em; font-weight: 650; }
.topbar .crumb { color: var(--muted-2); font-size: 11px; margin-top: 1px; }
.content { padding: 28px 30px 64px; max-width: 1240px; width: 100%; margin: 0 auto; }
.mobile-menu { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; letter-spacing: -.04em; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 19px; }
.stat .lab { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 7px; letter-spacing: .01em; }
.stat .val { font-size: 30px; font-weight: 700; letter-spacing: -.04em; margin-top: 10px; line-height: 1; }
.stat .sub { color: var(--muted-2); font-size: 11px; margin-top: 9px; }
.stat .val small { font-size: 12px; color: var(--muted-2); font-weight: 500; margin-left: 4px; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: .18s var(--ease); display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.app-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card-head { display: flex; align-items: flex-start; gap: 11px; }
.app-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand-ink); flex: none; overflow: hidden; border: 1px solid var(--line-soft); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { font-size: 14.5px; margin-bottom: 1px; letter-spacing: -.02em; }
.app-card .key { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.app-card .desc { color: var(--muted); font-size: 12px; line-height: 1.65; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.app-card .actions { display: flex; gap: 7px; }
.app-card .actions .btn { flex: 1; }

.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.list-row .grow { min-width: 0; }
.list-row .t { font-weight: 600; font-size: 12.5px; }
.list-row .d { color: var(--muted-2); font-size: 11px; margin-top: 1px; }

.empty { padding: 58px 24px; text-align: center; }
.empty .ei { width: 50px; height: 50px; border-radius: 14px; background: var(--surface-2); color: var(--muted-2); display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid var(--line); }
.empty h3 { font-size: 14.5px; margin-bottom: 5px; }
.empty p { color: var(--muted); font-size: 12px; margin-bottom: 18px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 320px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search input { padding-left: 36px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; color: var(--muted); cursor: pointer; font-weight: 550; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }

.detail-head { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-head .app-icon { width: 58px; height: 58px; border-radius: 14px; }
.detail-head h1 { font-size: 26px; letter-spacing: -.04em; }
.detail-head .sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 0 0 11px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 550; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.config-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 10px; font-size: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted-2); }
.kv .v { color: var(--ink-2); word-break: break-all; }
.copy-field { display: flex; gap: 7px; align-items: center; }
.copy-field input { background: var(--surface-2); font-family: var(--mono); font-size: 12px; }
.secret-box { display: flex; gap: 7px; align-items: center; }
.secret-box code { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font-weight: 600; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfcfb; }

.barchart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 16px 4px 0; border-bottom: 1px solid var(--line); }
.bar { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; transition: .2s; opacity: .82; }
.bar:hover { opacity: 1; }
.bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 10px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; z-index: 3; }
.bar:hover .tip { opacity: 1; }
.chart-labels { display: flex; gap: 6px; padding: 8px 4px 0; }
.chart-labels span { flex: 1; text-align: center; font-size: 9px; color: var(--muted-2); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 0 0 3px #fff; }
.tl-item .tl-time { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.tl-item .tl-title { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.tl-item .tl-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 12px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f2e2c4; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #f6d9d5; }
.alert-info { background: var(--brand-tint); color: var(--brand-ink); border: 1px solid #dfe9ff; }
.alert-success { background: var(--ok-soft); color: var(--ok); border: 1px solid #dcebe2; }

.code-box { background: #171717; color: #e7e7e4; border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.9; overflow-x: auto; max-width: 100%; white-space: pre; position: relative; }
.code-box .copy { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.08); color: #d4d4d4; border: 0; border-radius: 6px; padding: 4px 8px; font-size: 10px; cursor: pointer; }
.code-box .copy:hover { background: rgba(255,255,255,.16); }
.code-tabs { display: flex; gap: 5px; margin-bottom: 10px; }
.code-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 29px; padding: 0 12px; font-size: 11px; color: var(--muted); cursor: pointer; }
.code-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.onboarding-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; background-image: linear-gradient(to right, rgba(51,112,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(51,112,255,.05) 1px, transparent 1px); background-size: 36px 36px; }
.onboarding-card h2 { font-size: 22px; letter-spacing: -.035em; margin-top: 6px; }
.onboarding-card p { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.onboarding-eyebrow { font-size: 11px; color: var(--brand-ink); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

/* ── 弹窗 / Toast ──────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(23, 23, 23, .42); backdrop-filter: blur(5px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 88vh; display: flex; flex-direction: column; animation: pop .18s var(--ease); border: 1px solid var(--line); }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { padding: 21px 22px 12px; display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; letter-spacing: -.03em; }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.icon-close { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; padding: 5px; border-radius: 7px; }
.icon-close:hover { background: var(--surface-2); color: var(--ink); }
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 15px; font-size: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: slidein .2s var(--ease); max-width: 360px; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fa8ff; }
.toast.err::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff8f87; }

.skeleton { background: linear-gradient(90deg, #f0f0ee 25%, #f8f8f6 37%, #f0f0ee 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.loading-line { height: 14px; margin: 10px 0; }
.loading-block { height: 140px; }

/* ── 文档 ───────────────────────────────────────────────── */
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 42px; align-items: start; }
.doc-layout > div { min-width: 0; }
.doc-shell { padding: 10px 28px 30px; }
.doc-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.doc-nav a { color: var(--muted); font-size: 12px; padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent; }
.doc-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.doc-section { scroll-margin-top: 92px; margin-bottom: 50px; min-width: 0; }
.doc-section h2 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; }
.doc-section h2::after { content: ""; display: block; width: 34px; height: 2px; background: var(--brand); margin-top: 12px; }
.doc-section h3 { font-size: 14px; margin: 24px 0 8px; letter-spacing: -.02em; }
.doc-section p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin-bottom: 10px; }
.doc-section ul { color: var(--muted); font-size: 12.5px; line-height: 2; padding-left: 20px; margin: 8px 0; }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; background: #fff; font-size: 12px; }
.endpoint .method { font-family: var(--mono); font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink); min-width: 46px; text-align: center; letter-spacing: .04em; }
.endpoint .method.post { background: var(--ink); color: #fff; }
.endpoint .method.put { background: var(--warn-soft); color: var(--warn); }
.endpoint .method.delete { background: var(--danger-soft); color: var(--danger); }
.endpoint code { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.endpoint .desc { color: var(--muted); margin-left: auto; font-size: 11px; }

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-art { margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { display: none; }
  .code-showcase { grid-template-columns: 1fr; gap: 30px; }
  .auth-page { grid-template-columns: 1fr 380px; gap: 30px; }
  .auth-art { display: none; }
}
@media (max-width: 980px) {
  .content .grid[style*="1.55fr"],
  .content .grid[style*="1.5fr"],
  .content .grid[style*="1.4fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; max-width: 560px; padding: 92px 24px 50px; }
  .auth-left { display: none; }
  .auth-panel { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .22s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 18px; }
  .content { padding: 22px 18px 52px; }
  .nav-links { display: flex; gap: 8px; }
  .nav-links > a:not(.btn) { display: none; }
  .nav-links .btn-sm { height: 32px; padding: 0 13px; }
  .hero { padding-top: 44px; }
  .section { padding: 52px 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px; }
  .footer { padding: 26px 20px 44px; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar > .btn:not(.mobile-menu), .topbar > a.btn { display: none; }
  .topbar h2 { white-space: nowrap; font-size: 15px; }
}
@media (max-width: 620px) {
  .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hero-meta > div { padding: 0 12px; }
  .hero-meta > div:first-child { padding-left: 0; }
  .hero-meta .lab { font-size: 10px; line-height: 1.5; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid[style] { grid-template-columns: 1fr !important; }
  .app-grid, .feature-grid, .ecosystem, .steps, .grid-2 { grid-template-columns: 1fr; }
  .doc-shell { padding: 4px 14px 18px; }
  .page-head h1 { font-size: 22px; }
  .detail-head h1 { font-size: 22px; }
  .auth-quote h1 { font-size: 30px; }
}
/* ── Sharp / transparent surface theme ───────────────────────────────
   去掉圆角矩形与卡片实底：页面/面板保持透明，仅用细线分隔；
   主按钮改为透明描边，hover 才实心。 */
:root { --radius: 0; --radius-sm: 0; --radius-lg: 0; }

.btn,
.btn-sm,
.btn-lg,
.btn-icon,
.pill,
.seg,
.seg button,
.input,
.select,
.textarea,
.check,
.form-note,
.form-error,
.alert,
.card,
.stat,
.app-card,
.list-card,
.list-row,
.eco-card,
.eco-icon,
.app-icon,
.avatar,
.table-wrap,
.search,
.modal,
.modal-foot,
.code-box,
.code-tabs button,
.endpoint,
.doc-shell,
.auth-sso,
.onboarding-card,
.floating-card,
.skeleton,
.empty .ei,
.bar,
.barchart .bar,
.nav-item,
.user-chip,
.cta-band,
.window,
.review-card,
.admin-badge,
.admin-table-wrap,
.scope-pill,
.auth-tabs button {
  border-radius: 0 !important;
}

.card,
.stat,
.app-card,
.list-card,
.eco-card,
.review-card,
.admin-table-wrap,
.table-wrap,
.onboarding-card,
.doc-shell,
.doc-section .endpoint,
.form-note,
.check,
.admin-login .card,
.admin-login .form-note,
.auth-panel .form-note {
  background: transparent !important;
  box-shadow: none !important;
}

.onboarding-card { background-image: none !important; }

.input,
.select,
.textarea {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
}
.input:hover,
.select:hover,
.textarea:hover { background: transparent !important; border-color: var(--ink) !important; }
.input:focus,
.select:focus,
.textarea:focus { background: transparent !important; border-color: var(--brand) !important; box-shadow: none !important; }

.auth-panel .input { border: 0 !important; border-bottom: 1px solid var(--line-strong) !important; }
.auth-panel .input:focus { border-bottom-color: var(--brand) !important; }

.btn { background: transparent !important; }
.seg, .code-tabs button { background: transparent !important; }
.btn-primary {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.btn-primary:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.btn-ghost { background: transparent !important; }
.btn-soft { background: transparent !important; border-color: var(--brand) !important; color: var(--brand-ink) !important; }
.btn-soft:hover { background: var(--brand-tint) !important; }
.btn-danger { background: transparent !important; border-color: #e7b4ae !important; }
.btn-danger:hover { background: var(--danger-soft) !important; }

.pill,
.admin-badge,
.scope-pill {
  background: transparent !important;
  border: 1px solid currentColor !important;
}
.pill .pill-dot { background: currentColor; }

.sidebar,
.topbar,
.sidebar-foot,
.content,
.main,
.console {
  background: transparent !important;
}
.sidebar { border-right: 1px solid var(--line); }
.topbar { background: rgba(251, 251, 250, .72) !important; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-item.on { background: transparent !important; border-color: transparent !important; color: var(--brand-ink) !important; box-shadow: inset 2px 0 0 var(--brand); }
.nav-item:hover, .user-chip:hover { background: transparent !important; }
.nav-item:hover { color: var(--ink) !important; }

.table th, .table td { background: transparent !important; }
.table th { border-bottom: 1px solid var(--line-strong); }
.table tr:hover td { background: transparent !important; }

.modal { background: rgba(251, 251, 250, .96) !important; backdrop-filter: blur(16px); }
.modal-foot { background: transparent !important; }
.toast { border-radius: 0 !important; }

.cta-band {
  background: transparent !important;
  background-image: none !important;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink) !important;
}
.cta-band h2 { color: var(--ink) !important; }
.cta-band p { color: var(--muted) !important; }
.cta-band .btn { background: transparent !important; color: var(--ink) !important; border-color: var(--ink) !important; }
.cta-band .btn:hover { background: var(--ink) !important; color: #fff !important; }
.cta-band .btn.ghost-dark { background: transparent !important; color: var(--muted) !important; border-color: var(--line-strong) !important; }

.window { background: #171717 !important; }
.code-box { background: #171717 !important; }

.site-header { background: rgba(251, 251, 250, .82) !important; }
.header-inner { border: 0; }

.app-icon { background: transparent !important; border: 1px solid var(--line); }
.eco-icon { background: transparent !important; border: 1px solid var(--line); }
.avatar { background: var(--fill) !important; color: var(--ink) !important; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.has-img { background: transparent !important; border: 1px solid var(--line); }

.btn:hover { transform: none !important; }
.app-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--ink) !important; }
.eco-card:hover { transform: none !important; border-color: var(--ink) !important; }
.bar { border-radius: 0 !important; }
.tl-item::before { border-radius: 50% !important; }
.orbit-dot { border-radius: 50% !important; }
.hero-art { border-radius: 50% !important; }
.auth-art { border-radius: 50% !important; }
.phone { border-radius: 44px; }

/* ── 首页圆环动画 ──────────────────────────────────────── */
.hero-sweep,
.hero-ring {
  position: absolute;
  border-radius: 50% !important;
  pointer-events: none;
}
.hero-sweep {
  inset: 5%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 292deg,
    rgba(51, 112, 255, .04) 316deg,
    rgba(51, 112, 255, .20) 344deg,
    transparent 360deg
  );
  animation: mp-orbit-spin 14s linear infinite;
  filter: blur(.2px);
  opacity: .75;
  -webkit-mask: radial-gradient(circle, transparent 0 36%, #000 39% 96%, transparent 98%);
  mask: radial-gradient(circle, transparent 0 36%, #000 39% 96%, transparent 98%);
  will-change: transform;
}
.hero-art .hero-sweep { animation-duration: 16s; }
.hero-ring { z-index: 1; }
.hero-ring.r1 {
  inset: 8%;
  border: 1px dashed rgba(51, 112, 255, .20);
  animation: mp-orbit-spin 56s linear infinite;
}
.hero-ring.r2 {
  inset: 21%;
  border: 1px solid transparent;
  border-top-color: rgba(51, 112, 255, .55);
  border-right-color: rgba(51, 112, 255, .10);
  animation: mp-orbit-spin 18s linear infinite;
}
.hero-ring.r3 {
  inset: 34%;
  border: 1px solid transparent;
  border-bottom-color: rgba(51, 112, 255, .45);
  border-left-color: rgba(51, 112, 255, .10);
  animation: mp-orbit-spin-reverse 27s linear infinite;
}
.hero-logo {
  animation: mp-orbit-float 6s ease-in-out infinite;
  z-index: 3 !important;
}
.orbit-dot { z-index: 4; }
.orbit-dot.a { animation: mp-orbit-pulse 3.2s ease-in-out infinite; }
.orbit-dot.b { animation: mp-orbit-pulse 3.2s ease-in-out 1.6s infinite; }
.auth-art .hero-sweep { animation-duration: 12s; }
.auth-art .hero-ring.r2 { animation-duration: 14s; }
.auth-art .hero-ring.r3 { animation-duration: 22s; }
.auth-art img { animation: mp-orbit-float 7s ease-in-out infinite; }

@keyframes mp-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes mp-orbit-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes mp-orbit-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.012); }
}
@keyframes mp-orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sweep,
  .hero-ring,
  .hero-logo,
  .orbit-dot,
  .auth-art img {
    animation: none !important;
  }
}

/* ── 主页文字轻微倾斜 + 无边框按钮 ─────────────────────── */
.hero h1,
.section-head h2,
.code-showcase h2,
.cta-band h2 {
  transform: skewX(-4deg);
  transform-origin: left bottom;
}
.hero h1 .grad {
  display: inline-block;
  transform: skewX(-2.5deg);
}

.btn,
.btn-primary,
.btn-ghost,
.btn-soft,
.btn-danger,
.btn-icon,
.auth-sso,
.code-tabs button,
.cta-band .btn {
  border: 0 !important;
}
.btn { padding-left: 11px; padding-right: 11px; }
.btn-primary {
  background: var(--ink) !important;
  color: #fff !important;
}
.btn-primary:hover { background: #000 !important; color: #fff !important; }
.btn-ghost { background: transparent !important; color: var(--ink) !important; }
.btn-ghost:hover { background: rgba(23, 23, 23, .055) !important; }
.btn-soft { background: transparent !important; color: var(--brand-ink) !important; }
.btn-soft:hover { background: var(--brand-tint) !important; }
.btn-danger { background: transparent !important; color: var(--danger) !important; }
.btn-danger:hover { background: var(--danger-soft) !important; }
.auth-sso:hover { background: var(--surface-2) !important; }
.code-tabs button { background: transparent !important; color: var(--muted) !important; }
.code-tabs button.on { background: var(--ink) !important; color: #fff !important; }

.cta-band .btn {
  background: transparent !important;
  color: var(--ink) !important;
  padding-left: 2px;
  padding-right: 2px;
}
.cta-band .btn:hover { background: transparent !important; color: #000 !important; text-decoration: underline; }
.cta-band .btn:first-of-type {
  background: var(--ink) !important;
  color: #fff !important;
  padding-left: 18px;
  padding-right: 18px;
}
.cta-band .btn:first-of-type:hover { background: #000 !important; color: #fff !important; text-decoration: none; }

@media (max-width: 620px) {
  .hero h1 { transform: skewX(-3deg); }
}

/* 所有按钮一律透明背景：不使用实底矩形、不使用边框 */
.btn,
.btn-primary,
.btn-ghost,
.btn-soft,
.btn-danger,
.btn-icon,
.auth-sso,
.code-tabs button,
.cta-band .btn,
.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover,
.btn-danger:hover,
.auth-sso:hover,
.cta-band .btn:hover,
.cta-band .btn:first-of-type,
.cta-band .btn:first-of-type:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-primary {
  color: var(--brand-ink) !important;
  font-weight: 650;
}
.btn-primary:hover {
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-ghost { color: var(--ink) !important; }
.btn-ghost:hover {
  color: var(--brand-ink) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-soft { color: var(--brand-ink) !important; }
.btn-soft:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 4px; }
.btn-danger { color: var(--danger) !important; }
.btn-danger:hover { color: #8f1a13 !important; text-decoration: underline; text-underline-offset: 4px; }
.auth-sso { color: var(--ink) !important; }
.auth-sso:hover { color: var(--brand-ink) !important; text-decoration: underline; text-underline-offset: 4px; }

.cta-band .btn { color: var(--ink) !important; padding-left: 0 !important; padding-right: 0 !important; }
.cta-band .btn:first-of-type { color: var(--brand-ink) !important; font-weight: 650; }
.cta-band .btn:hover,
.cta-band .btn:first-of-type:hover { color: var(--ink) !important; text-decoration: underline; }

.seg button.on,
.code-tabs button.on {
  background: transparent !important;
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
