:root {
  --ink: #151515;
  --muted: #777873;
  --paper: #fffefa;
  --bg: #f3f1ec;
  --line: rgba(21, 21, 21, .12);
  --forest: #14251b;
  --green: #1a7a4b;
  --qq: #12b7f5;
  --gold: #b58b4a;
  --shadow: 0 26px 70px rgba(30, 30, 24, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255, 255, 255, .9), transparent 64%),
    linear-gradient(180deg, #f7f5f0 0%, var(--bg) 54%, #eeece6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: #d7e8ff; color: #111; }

.site-head {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 27px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #171717; color: #fffefa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  flex: none;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy b { font-size: 14px; letter-spacing: .8px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: 1.7px; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px;
  color: #65665f; font-size: 12px; font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover, .site-nav a.is-active { background: rgba(255, 255, 255, .9); color: #171717; }

.login-main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-intro { text-align: center; max-width: 600px; margin-bottom: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: 2.2px;
  color: #90734a; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.login-intro h1 {
  margin: 14px 0 10px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.4px;
  font-weight: 600;
}
.login-intro p { margin: 0; color: #6f7069; font-size: 13px; line-height: 1.8; }

.login-card {
  width: min(430px, 100%);
  background: rgba(255, 254, 250, .94);
  border: 1px solid rgba(21, 21, 21, .1);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.login-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.login-b {
  width: 34px; height: 34px; border-radius: 10px;
  background: #171717; color: #fffefa;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 18px; font-weight: 700;
  flex: none;
}
.login-brand div { display: flex; flex-direction: column; line-height: 1.25; }
.login-brand b { font-size: 12px; letter-spacing: 1.1px; }
.login-brand span { color: #8a8a82; font-size: 9px; letter-spacing: .3px; margin-top: 3px; }
.login-head { margin-top: 24px; }
.login-head h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.7px; }
.login-head p { margin: 0 0 22px; color: #8a8a82; font-size: 12px; }

.qq-btn {
  display: flex; align-items: center; gap: 11px;
  width: 100%; min-height: 54px; padding: 0 18px 0 9px;
  border: 1px solid rgba(9, 132, 190, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, #18bdf8 0%, #0b9ad9 100%);
  color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(18, 183, 245, .2), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.qq-btn:hover { transform: translateY(-1px); filter: saturate(1.04); box-shadow: 0 16px 32px rgba(18, 183, 245, .27), inset 0 1px 0 rgba(255, 255, 255, .32); }
.qq-btn .qq-logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .18);
  font-family: Arial, sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .3px;
  flex: none;
}
.qq-btn .arrow { margin-left: auto; font-size: 17px; opacity: .75; transition: transform .16s ease; }
.qq-btn:hover .arrow { transform: translateX(2px); }
.qq-btn.is-disabled { background: #e6e4de; color: #9a9a91; box-shadow: none; border-color: transparent; cursor: not-allowed; }
.qq-btn.is-disabled:hover { transform: none; filter: none; }

.login-hint { display: flex; align-items: flex-start; gap: 6px; margin: 11px 2px 0; color: #8a8a82; font-size: 10px; line-height: 1.6; }
.login-hint svg { width: 13px; height: 13px; color: #5b7a65; flex: none; margin-top: 1px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #aaa9a1; font-size: 10px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-back { width: 100%; min-height: 42px; border-radius: 12px; font-size: 12px; background: #f8f7f3; }
.login-legal { margin: 17px 0 0; text-align: center; color: #a0a098; font-size: 9px; line-height: 1.7; }
.login-legal a { color: #6b7f70; text-decoration: underline; text-underline-offset: 2px; }

.blog-strip {
  width: min(720px, 100%);
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.blog-strip p { margin: 8px 0 0; color: #77786f; font-size: 11px; line-height: 1.8; max-width: 460px; }
.blog-links { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.blog-links a { color: #5f6f63; font-size: 10px; white-space: nowrap; }
.blog-links a:hover { color: #111; }

.site-foot { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.foot-inner { width: min(1040px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.foot-brand b { font-size: 11px; letter-spacing: .8px; }
.foot-brand span { color: #8f8f86; font-size: 9px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; padding-top: 5px; }
.foot-links a { color: #77786f; font-size: 10px; }
.foot-links a:hover { color: #111; }
.foot-icp { grid-column: 1 / -1; margin: 3px 0 0; display: flex; flex-wrap: wrap; gap: 7px 12px; color: #9a9a91; font-size: 9px; }
.foot-icp a { color: #77786f; }

/* 文档页 */
.doc-shell { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 74px; }
.doc-head { margin-bottom: 24px; }
.doc-head h1 { margin: 12px 0 8px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -1.4px; line-height: 1.14; font-family: Georgia, "Songti SC", serif; font-weight: 600; }
.doc-head p { margin: 0; color: var(--muted); font-size: 11px; }
.doc-card { background: rgba(255, 254, 250, .9); border: 1px solid rgba(21, 21, 21, .1); border-radius: 22px; padding: 32px 34px; box-shadow: 0 16px 42px rgba(30, 30, 24, .05); }
.doc-card h2 { margin: 26px 0 8px; font-size: 18px; letter-spacing: -.3px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card p, .doc-card li { color: #5f6059; font-size: 12.5px; line-height: 1.95; }
.doc-card ul, .doc-card ol { padding-left: 19px; }
.doc-card li { margin: 4px 0; }
.doc-card strong { color: #222; }
.doc-card a { color: #2d6650; text-decoration: underline; text-underline-offset: 2px; }
.doc-note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: #f1f7f2; border: 1px solid #dceadf; color: #4e6656; font-size: 10.5px; line-height: 1.8; }

/* 错误页 */
.error-shell { width: min(680px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.error-card { background: rgba(255, 254, 250, .92); border: 1px solid rgba(21, 21, 21, .1); border-radius: 24px; padding: 38px; box-shadow: var(--shadow); }
.error-code { margin-top: 14px; font-family: Georgia, serif; font-size: 52px; line-height: 1; color: #b58b4a; }
.error-card h1 { margin: 10px 0 8px; font-size: 27px; letter-spacing: -.7px; }
.error-card > p { margin: 0; color: #6f7069; font-size: 12px; line-height: 1.8; }
.error-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.error-note { margin-top: 20px!important; padding-top: 16px; border-top: 1px solid var(--line); color: #9a9a91!important; font-size: 10px!important; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.btn-primary { background: #171717; color: #fffefa; }
.btn-ghost { background: #f7f5f0; border-color: var(--line); color: #333; }
.btn:hover { transform: translateY(-1px); }

/* callback 过渡页 */
.status-shell { width: min(560px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 100px; }
.status-card { background: rgba(255, 254, 250, .94); border: 1px solid rgba(21, 21, 21, .1); border-radius: 24px; padding: 38px; box-shadow: var(--shadow); text-align: center; }
.status-mark { width: 50px; height: 50px; margin: 0 auto 17px; border-radius: 50%; background: #e9f5ec; color: #1d7048; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.status-card h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.6px; }
.status-card p { margin: 0; color: #72736b; font-size: 12px; line-height: 1.8; }
.status-id { display: inline-flex; flex-direction: column; margin: 18px 0 6px; padding: 12px 18px; border: 1px solid #d8e8dc; border-radius: 12px; background: #f4faf5; }
.status-id small { color: #7b8c7f; font-size: 8px; letter-spacing: 1.4px; }
.status-id b { color: #1d5c3f; font-family: "Cascadia Code", Consolas, monospace; font-size: 15px; letter-spacing: .5px; margin-top: 2px; }
.status-note { margin-top: 18px!important; color: #a0a098!important; font-size: 9px!important; }

@media (max-width: 680px) {
  .site-head { width: calc(100% - 28px); padding: 18px 0 12px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
  .brand-copy b { font-size: 12px; } .brand-copy small { font-size: 8px; letter-spacing: 1.2px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: 10px; }
  .site-nav a:nth-child(3), .site-nav a:nth-child(4) { display: none; }
  .login-main { width: calc(100% - 28px); padding: 36px 0 52px; }
  .login-intro { margin-bottom: 22px; }
  .login-intro h1 { font-size: 34px; }
  .login-intro p { font-size: 12px; }
  .login-card { padding: 23px 20px; border-radius: 20px; }
  .login-head h2 { font-size: 21px; }
  .blog-strip { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .blog-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
  .site-foot { padding: 24px 0 28px; }
  .foot-inner { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; padding-top: 0; }
  .doc-shell { width: calc(100% - 28px); padding: 32px 0 52px; }
  .doc-card { padding: 22px 19px; border-radius: 18px; }
  .doc-head h1 { font-size: 32px; }
  .error-shell, .status-shell { width: calc(100% - 28px); padding: 44px 0 64px; }
  .error-card, .status-card { padding: 27px 21px; border-radius: 20px; }
  .error-code { font-size: 42px; }
}
