/* ==========================================================================
   DNS 托管解析平台 · 设计系统
   清新蓝绿配色 / 卡片化布局 / 控制台侧边导航
   ========================================================================== */

:root {
  --brand:        #2f6bff;
  --brand-600:    #2258e6;
  --brand-700:    #1c47bd;
  --brand-soft:   #eef3ff;
  --mint:         #10b9a0;
  --mint-soft:    #e6faf6;
  --amber:        #f59e0b;
  --amber-soft:   #fef6e7;
  --rose:         #ef4b6b;
  --rose-soft:    #ffeef1;
  --violet:       #7c5cff;
  --violet-soft:  #f2eeff;

  --ink:          #0d1b2a;
  --ink-2:        #33465c;
  --ink-3:        #66788d;
  --ink-4:        #93a3b8;

  --bg:           #f4f7fb;
  --surface:      #ffffff;
  --surface-2:    #f8fafd;
  --line:         #e6ecf5;
  --line-2:       #eff3f9;

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-full: 999px;

  --sh-1: 0 1px 2px rgba(15, 27, 42, .04);
  --sh-2: 0 2px 6px rgba(15, 27, 42, .05), 0 12px 28px -18px rgba(15, 27, 42, .18);
  --sh-3: 0 24px 60px -30px rgba(15, 27, 42, .35);

  --sidebar-w: 236px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.ico { flex: none; vertical-align: -3px; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.hidden { display: none !important; }

/* ==========================================================================
   通用控件
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: .16s ease;
  text-decoration: none;
}
.btn:hover { border-color: #cbd7e8; background: var(--surface-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(47, 107, 255, .8);
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.btn-soft {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-700);
}
.btn-soft:hover { background: #e3ecff; border-color: transparent; color: var(--brand-700); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }

.btn-danger { color: #c92b4d; border-color: #f7d4dc; background: #fff; }
.btn-danger:hover { background: var(--rose-soft); border-color: #f3bcc8; color: #b32244; }

.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: var(--r-xs); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-4); line-height: 1.5; }

/* 注意：<input> 未写 type 时默认是 text，因此不能只用 input[type="text"] 选择器 */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select, textarea, .input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: .15s ease;
  outline: none;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.65; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
  outline: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input::placeholder, textarea::placeholder { color: #a9b7c8; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid .span-2 { grid-column: span 2; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* 进度条 */
.progress-wrap { margin: 16px 0 4px; }
.progress {
  height: 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transition: width .28s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  background: var(--surface-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-ok   { background: var(--mint-soft);  color: #07836f; border-color: #c7f0e7; }
.badge-warn { background: var(--amber-soft); color: #a86300; border-color: #fae5bc; }
.badge-bad  { background: var(--rose-soft);  color: #c92b4d; border-color: #f9d2db; }
.badge-info { background: var(--brand-soft); color: var(--brand-700); border-color: #dbe6ff; }
.badge-mute { background: #f1f5f9; color: var(--ink-4); }

/* 记录类型色标 */
.type-tag {
  display: inline-block;
  min-width: 46px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .02em;
  background: #eef2f8;
  color: #52657c;
}
.type-A     { background: #e8f0ff; color: #2358d8; }
.type-AAAA  { background: #e6f7f4; color: #0a8a76; }
.type-CNAME { background: #f0ecff; color: #6741d9; }
.type-MX    { background: #fff2e0; color: #b26a00; }
.type-TXT   { background: #eaf6ec; color: #2f7d3d; }
.type-NS    { background: #e9f1fb; color: #31648f; }
.type-SRV   { background: #fdeef6; color: #a8306e; }
.type-CAA   { background: #eef0f6; color: #4b5a72; }
.type-PTR   { background: #f2f5f9; color: #5b6b80; }
.type-SOA   { background: #f4f1ea; color: #7a641f; }

/* 提示条 */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--ink-2);
}
.alert-success { background: var(--mint-soft); border-color: #c7f0e7; color: #086e5e; }
.alert-error   { background: var(--rose-soft); border-color: #f9d2db; color: #b62a49; }
.alert-warn    { background: var(--amber-soft); border-color: #fae5bc; color: #976000; }
.alert-info    { background: var(--brand-soft); border-color: #dbe6ff; color: #1f4dbb; }

/* 空状态 */
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--ink-4);
}
.empty .ico { color: #c3d0e0; margin-bottom: 10px; }
.empty h4 { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.empty p { font-size: 13px; margin-bottom: 14px; }

/* ==========================================================================
   公共站（首页 / 登录 / 注册）
   ========================================================================== */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #5b8cff 45%, var(--mint) 100%);
  box-shadow: 0 6px 14px -8px rgba(47, 107, 255, .9);
  color: #fff;
}
.brand-mark svg { width: 18px; height: 18px; }

.pub-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pub-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.pub-links { display: flex; gap: 26px; font-size: 14px; }
.pub-links a { color: var(--ink-2); font-weight: 500; }
.pub-links a:hover { color: var(--brand); }
.pub-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pub-actions .link { color: var(--ink-2); font-weight: 500; padding: 0 6px; }

.pub-main { max-width: 1140px; margin: 0 auto; padding: 0 24px 80px; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -180px -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(46% 60% at 22% 30%, rgba(47, 107, 255, .14), transparent 70%),
    radial-gradient(40% 55% at 78% 10%, rgba(16, 185, 160, .14), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.hero-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgba(16, 185, 160, .18);
}
.hero-title {
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--brand) 10%, #5b8cff 45%, var(--mint) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { font-size: 16px; color: var(--ink-3); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-ns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-4); }
.hero-ns .chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 7px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}

/* 产品截图（纯 CSS 模拟） */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.mock-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-3);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: #dde5ef; }
.mock-dots span:nth-child(1) { background: #ff6b6b; }
.mock-dots span:nth-child(2) { background: #ffc94a; }
.mock-dots span:nth-child(3) { background: #33d17a; }
.mock-body { padding: 8px 0; }
.mock-row {
  display: grid;
  grid-template-columns: 88px 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.mock-row + .mock-row { border-top: 1px dashed var(--line-2); }
.mock-row .k { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.mock-row .v { font-family: var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .s { color: #0a8a76; font-size: 12px; text-align: right; }
.mock-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-3);
}
.mock-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* 通用区块 */
.section { padding: 64px 0 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-title { font-size: 30px; letter-spacing: -.02em; margin-bottom: 10px; }
.section-desc { color: var(--ink-3); font-size: 15px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: .18s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #d8e3f3; }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
}
.feat-icon.mint { background: var(--mint-soft); color: #0a9c85; }
.feat-icon.violet { background: var(--violet-soft); color: var(--violet); }
.feat-icon.amber { background: var(--amber-soft); color: #c47c00; }
.feat-icon.rose { background: var(--rose-soft); color: var(--rose); }
.feat-icon.sky { background: #e6f4fd; color: #0b86c4; }
.feat-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }

/* 痛点 → 方案 */
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pain-card {
  display: flex; gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.pain-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 13px;
}
.pain-card h4 { font-size: 14.5px; margin-bottom: 6px; }
.pain-card p { font-size: 13.5px; color: var(--ink-3); }

/* 步骤 */
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px; font-weight: 700;
  font-family: var(--mono);
}
.step-card h3 { font-size: 15px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--ink-3); }
.step-card code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; }

/* 记录类型带 */
.type-band {
  margin-top: 18px;
  padding: 26px 28px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.type-band h3 { font-size: 15px; }
.type-band p { font-size: 13px; color: var(--ink-4); }
.type-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* CTA */
.cta-card {
  margin-top: 60px;
  padding: 48px 40px;
  border-radius: 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(120deg, #1f4dbb 0%, #2f6bff 46%, #0fa89a 100%);
  box-shadow: 0 30px 70px -40px rgba(31, 77, 187, .9);
}
.cta-card h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.cta-card p { color: rgba(255, 255, 255, .82); margin-bottom: 24px; }
.cta-card .btn { background: #fff; color: var(--brand-700); border-color: transparent; }
.cta-card .btn:hover { background: #f4f8ff; color: var(--brand-700); }

.pub-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
}
.pub-foot-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.pub-foot-inner .sep { color: #d5dfec; }

/* 登录 / 注册 */
.auth-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
}
.auth-intro h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 14px; }
.auth-intro > p { color: var(--ink-3); font-size: 15px; max-width: 420px; margin-bottom: 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.auth-points li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a9c85' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 30px 28px;
}
.auth-card h2 { font-size: 19px; margin-bottom: 6px; }
.auth-card .card-sub { font-size: 13px; color: var(--ink-4); margin-bottom: 22px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-4); margin-top: 16px; }

/* ==========================================================================
   控制台外壳
   ========================================================================== */

body.console { background: var(--bg); }
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 60;
  transition: transform .22s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-2);
  flex: none;
}
.sidebar-brand .brand-text { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.sidebar-brand .brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-4); letter-spacing: .02em; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.nav-group { margin-bottom: 6px; }
.nav-title {
  padding: 12px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 2px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: .14s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand-700); font-weight: 600; }
.nav-item.is-active .ico { color: var(--brand); }
.nav-item .ico { color: var(--ink-4); }
.nav-item .count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line-2); flex: none; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: .14s;
}
.user-chip:hover { background: var(--surface-2); }
.avatar {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbe6ff, #e6faf6);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.user-meta { min-width: 0; }
.user-meta b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { font-size: 11.5px; color: var(--ink-4); }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-4); }
.crumbs b { color: var(--ink); font-weight: 600; font-size: 14px; }
.crumbs .sep { color: #cfdae8; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: .14s;
  text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.side-toggle { display: none; }

.content { padding: 26px 28px 48px; max-width: 1280px; width: 100%; }

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-title { font-size: 22px; letter-spacing: -.02em; }
.page-desc { font-size: 13.5px; color: var(--ink-3); margin-top: 5px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.card-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.card-sub { font-size: 12.5px; color: var(--ink-4); }
.card-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }
.card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-3);
}

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.stat-ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.stat-ico.mint { background: var(--mint-soft); color: #0a9c85; }
.stat-ico.amber { background: var(--amber-soft); color: #bf7a00; }
.stat-ico.violet { background: var(--violet-soft); color: var(--violet); }
.stat-body { min-width: 0; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--ink-4); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-4);
  text-transform: uppercase;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfcfe; }
table.data td.mono { font-family: var(--mono); font-size: 12.8px; color: var(--ink); }
table.data td.wrap { word-break: break-all; max-width: 340px; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
table.data .row-actions form { display: inline; }

/* 表格内「更多」展开区 */
.more-box > summary { list-style: none; }
.more-box > summary::-webkit-details-marker { display: none; }
.more-box[open] { flex-basis: 100%; }
.more-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
table.data .domain-cell { font-weight: 600; color: var(--ink); }
table.data .domain-cell a { color: var(--ink); font-weight: 600; }
table.data .domain-cell a:hover { color: var(--brand); }

/* 快捷操作卡 */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: .16s ease;
}
.quick-card:hover { border-color: #cddcf5; box-shadow: var(--sh-2); transform: translateY(-1px); }
.quick-card .q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.quick-card b { font-size: 14px; color: var(--ink); font-weight: 650; }
.quick-card p { font-size: 12.8px; color: var(--ink-4); }
.quick-card .q-ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}

/* NS 提示条 */
.ns-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, #f2f7ff, #f0fdfa);
  border: 1px solid #dceaf7;
  margin-bottom: 18px;
}
.ns-bar .ns-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ns-bar .ns-label .ico { color: var(--brand); }
.copy-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #d9e6f5;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.copy-field button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 0; border-radius: 5px;
  background: transparent; color: var(--ink-4); cursor: pointer;
}
.copy-field button:hover { background: var(--brand-soft); color: var(--brand); }
.ns-bar .ns-note { font-size: 12.5px; color: var(--ink-4); }

/* 分段标签 */
.pill-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r-full);
  background: #eef2f8;
}
.pill-tabs a {
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.pill-tabs a:hover { color: var(--ink); }
.pill-tabs a.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }

/* 工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
}
.toolbar .search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.toolbar .search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); }
.toolbar .search input { padding-left: 34px; height: 34px; }

/* 内联表单 */
.inline-form .field-grid { gap: 0 12px; }
.inline-form .field { margin-bottom: 12px; }
.record-add-card { border-color: #dbe8fb; box-shadow: 0 0 0 3px rgba(47, 107, 255, .05); }

/* 两栏批量工具 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.split textarea { min-height: 240px; font-family: var(--mono); font-size: 12.8px; line-height: 1.8; }
.preview-wrap { max-height: 420px; overflow: auto; }

/* 移动端 */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 38px; }
  .feat-grid, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: 1fr; gap: 34px; }
  .auth-intro { text-align: center; }
  .auth-intro > p { margin-left: auto; margin-right: auto; }
  .auth-points { max-width: 380px; margin: 0 auto; }
  .auth-card { max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-3); }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(13, 27, 42, .38);
    z-index: 55;
  }
  .main { margin-left: 0; }
  .side-toggle { display: inline-flex; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .pub-links { display: none; }
  .pub-nav-inner { gap: 12px; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 32px; }
  .hero-title { font-size: 29px; }
  .hero-desc { font-size: 14.5px; }
  .feat-grid, .step-grid, .pain-grid, .quick-grid, .split,
  .field-grid, .field-grid.cols-3 { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: auto; }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 44px 0 0; }
  .section-title { font-size: 23px; }
  .cta-card { padding: 34px 22px; }
  .type-pills { margin-left: 0; }
  .page-head { align-items: flex-start; }
  .page-actions { margin-left: 0; width: 100%; }
  table.data th, table.data td { padding: 10px 12px; }
  .ns-bar { gap: 8px; }
}

/* 分页条 */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.pager-info { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-num, .pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.pager-num:hover, .pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-num.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.pager-btn.is-disabled { opacity: .42; pointer-events: none; }
.pager-dot { color: var(--ink-4); padding: 0 2px; }

/* 下拉菜单（导出等） */
.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ''; }
.menu[open] > summary { border-color: var(--brand); color: var(--brand); }
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 212px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
}
.menu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.menu-list a:hover { background: var(--brand-soft); color: var(--brand); }
.menu-label {
  display: block;
  padding: 6px 10px 4px;
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .02em;
}
.menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* 域名找回：验证记录展示 */
.mono { font-family: var(--mono); }
.verify-box {
  margin: 4px 0 12px;
  padding: 4px 16px;
  border: 1px dashed rgba(47, 107, 255, .45);
  border-radius: var(--r-md);
  background: var(--brand-soft);
}
.verify-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(47, 107, 255, .14);
}
.verify-row:last-child { border-bottom: 0; }
.verify-label { width: 84px; flex: none; font-size: 12.5px; color: var(--ink-3); }
.verify-row b { color: var(--ink); }
.verify-row .copy-field { background: #fff; }
.verify-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-4);
}
@media (max-width: 640px) {
  .verify-row { flex-wrap: wrap; gap: 4px; }
  .verify-label { width: 100%; }
}
