/* BulkMail 官网 / 文档 / 登录注册 共用样式（深色品牌风格） */
:root {
  --bg: #08090b;
  --bg-2: #0d0f13;
  --surface: #12151b;
  --surface-2: #181c24;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #eceef2;
  --muted: #9298a5;
  --faint: #6a7080;
  --accent: #5b8cff;
  --accent-2: #8b6bff;
  --accent-strong: #3b6ef6;
  --ok: #3ccf8e;
  --warn: #f2b84b;
  --bad: #ff6b6b;
  --radius: 12px;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(91, 140, 255, .35); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 9px; font: 600 14px/1 var(--sans);
  border: 1px solid var(--border-strong); color: var(--text); background: transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .22); }
.btn.primary { background: var(--text); color: #0b0c0f; border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent;
  background: rgba(8, 9, 11, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 6px 18px rgba(91, 140, 255, .35);
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 7px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-actions .link { color: var(--muted); font-size: 14px; padding: 6px 8px; }
.nav-actions .link:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .site-header .container { gap: 12px; } }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 96px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(91, 140, 255, .22), transparent 70%) 30% 40% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(139, 107, 255, .18), transparent 70%) 70% 30% / 55% 65% no-repeat;
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px;
}
.pill b { background: rgba(91, 140, 255, .16); color: #a9c1ff; font-weight: 600; padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 750;
  margin: 26px auto 0; max-width: 880px;
}
.grad { background: linear-gradient(92deg, #ffffff 0%, #b9c9ff 45%, #a58cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .fine { color: var(--faint); font-size: 13px; margin-top: 16px; }

/* ---------- 代码窗口 ---------- */
.code-window {
  max-width: 860px; margin: 60px auto 0; text-align: left; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #11141a, #0c0e12); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.code-head { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 46px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e37; }
.code-tabs { display: flex; gap: 2px; }
.code-tabs button {
  background: none; border: 0; color: var(--faint); font: 500 13px var(--sans); padding: 6px 10px; border-radius: 6px; cursor: pointer;
}
.code-tabs button:hover { color: var(--muted); }
.code-tabs button.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.code-head .copy { margin-left: auto; }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 7px; height: 28px; padding: 0 10px; font: 500 12px var(--sans); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.code-body { padding: 22px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; margin: 0; color: #d6dae3; }
.code-body[hidden] { display: none; }
.tok-k { color: #c792ea; } .tok-s { color: #a5d6a7; } .tok-f { color: #82aaff; } .tok-c { color: #5c6370; font-style: italic; }
.tok-n { color: #f78c6c; } .tok-p { color: #89ddff; }

/* ---------- 通用区块 ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 720; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.divider { border-top: 1px solid var(--border); }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feature { padding: 30px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); transition: background .2s; }
.feature:hover { background: var(--surface); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(91, 140, 255, .1); border: 1px solid rgba(91, 140, 255, .22); color: #9db6ff; }
.feature .ic svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16.5px; margin: 18px 0 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .feature:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .feature:last-child { border-bottom: 0 !important; }
}

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.step .num { font: 600 13px var(--mono); color: var(--accent); }
.step h3 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.step p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.step .mini { background: #0a0c10; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: 12.5px/1.7 var(--mono); color: #c6cbd6; overflow-x: auto; white-space: pre; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 投递可视化 */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.checks b { display: block; font-weight: 620; }
.checks span { color: var(--muted); font-size: 14.5px; }
.panel { border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-strong); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head .t { font-weight: 620; }
.panel-head .tag { margin-left: auto; font-size: 12px; color: var(--faint); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; }
.events { list-style: none; margin: 0; padding: 8px 20px 4px; }
.events li { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.events li:last-child { border-bottom: 0; }
.events time { font: 12.5px var(--mono); color: var(--faint); }
.events .who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: rgba(60, 207, 142, .1); }
.badge.info { color: var(--accent); background: rgba(91, 140, 255, .12); }
.badge.warn { color: var(--warn); background: rgba(242, 184, 75, .1); }
.badge.bad { color: var(--bad); background: rgba(255, 107, 107, .1); }
.panel pre { margin: 0; padding: 18px 20px; border-top: 1px solid var(--border); background: #0a0c10; font-size: 12.5px; line-height: 1.7; color: #c6cbd6; overflow-x: auto; }

/* 定价 */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; padding: 30px 28px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.plan.featured { background: linear-gradient(180deg, rgba(91, 140, 255, .1), var(--bg-2) 45%); border-color: rgba(91, 140, 255, .45); box-shadow: 0 0 0 1px rgba(91, 140, 255, .15) inset; }
.plan .name { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.plan .name em { font-style: normal; font-size: 11.5px; font-weight: 650; color: #a9c1ff; background: rgba(91, 140, 255, .16); padding: 2px 8px; border-radius: 99px; }
.plan .price { margin: 18px 0 4px; font-size: 40px; font-weight: 750; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 0 0 22px; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; color: #cfd3db; }
.plan li svg { flex: none; width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); }

/* 结尾 CTA */
.final { text-align: center; padding: 88px 24px; border-radius: 22px; position: relative; overflow: hidden; border: 1px solid var(--border-strong);
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(91, 140, 255, .2), transparent 70%), var(--bg-2); }
.final h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; margin: 0 0 14px; }
.final p { color: var(--muted); margin: 0 0 30px; font-size: 17px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; margin-top: 96px; color: var(--faint); font-size: 14px; }
.site-footer .container { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .cols { display: flex; gap: 56px; margin-left: auto; flex-wrap: wrap; }
.site-footer h4 { color: var(--text); font-size: 13px; margin: 0 0 12px; font-weight: 600; }
.site-footer .cols a { display: block; color: var(--faint); margin-bottom: 8px; }
.site-footer .cols a:hover { color: var(--text); }
.site-footer .copy { margin-top: 14px; }

/* ---------- 登录注册 ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(91, 140, 255, .16), transparent 70%);
}
.auth-top { position: relative; padding: 22px 28px; }
.auth-main { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 16px 80px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.auth-box { background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field > span a { color: var(--accent); font-weight: 500; }
.field input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 9px; font: 15px var(--sans); color: var(--text);
  background: #0a0c10; border: 1px solid var(--border-strong); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #565c69; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .2); }
.field small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.alt a { color: var(--text); font-weight: 600; }
.alt a:hover { text-decoration: underline; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.msg.bad { background: rgba(255, 107, 107, .1); color: #ffb0b0; border: 1px solid rgba(255, 107, 107, .25); }
.msg.ok { background: rgba(60, 207, 142, .1); color: #9ff0c8; border: 1px solid rgba(60, 207, 142, .25); }
.msg[hidden] { display: none; }
.terms { color: var(--faint); font-size: 12.5px; text-align: center; margin-top: 16px; }
.state-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 20px; }
.state-icon.ok { background: rgba(60, 207, 142, .12); color: var(--ok); }
.state-icon.bad { background: rgba(255, 107, 107, .12); color: var(--bad); }
.state-icon.wait { background: rgba(91, 140, 255, .12); color: var(--accent); }
.state-icon svg { width: 26px; height: 26px; }

/* ---------- 文档 ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 48px; }
.docs-nav { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.docs-nav h5 { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.docs-nav a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--border); }
.docs-nav a:hover, .docs-nav a.active { color: var(--text); border-left-color: var(--accent); }
.docs-nav .group + .group { margin-top: 26px; }
.prose { min-width: 0; max-width: 760px; }
.prose h1 { font-size: 36px; letter-spacing: -.025em; margin: 0 0 12px; }
.prose > p.lead { color: var(--muted); font-size: 17px; margin: 0 0 12px; }
.prose h2 { font-size: 24px; letter-spacing: -.015em; margin: 64px 0 14px; padding-top: 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 17px; margin: 32px 0 10px; scroll-margin-top: 80px; }
.prose p, .prose li { color: #c4c9d3; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose code { background: rgba(255, 255, 255, .06); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 13px; color: #e2e6ee; }
.prose pre { position: relative; background: #0a0c10; border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: #d6dae3; margin: 16px 0 22px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose pre .icon-btn { position: absolute; top: 10px; right: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.prose td:first-child { white-space: nowrap; }
.callout { border: 1px solid rgba(91, 140, 255, .3); background: rgba(91, 140, 255, .07); border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: #c9d6ff; font-size: 14.5px; }
.method { display: inline-block; font: 700 11.5px var(--mono); padding: 3px 7px; border-radius: 5px; margin-right: 8px; vertical-align: 2px; }
.method.post { background: rgba(60, 207, 142, .14); color: var(--ok); }
.method.get { background: rgba(91, 140, 255, .14); color: var(--accent); }
.method.put { background: rgba(242, 184, 75, .14); color: var(--warn); }
.method.delete { background: rgba(255, 107, 107, .14); color: var(--bad); }
.endpoint { font: 14px var(--mono); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0 18px; overflow-x: auto; white-space: nowrap; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 0; } .docs-nav { display: none; } }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 140px 16px 60px; }
.nf .code { font: 700 96px/1 var(--sans); letter-spacing: -.05em; }
.nf p { color: var(--muted); margin: 14px 0 30px; }

/* 进入视口时淡入 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
