/* 凡人钣金网站与授权后台样式 */

/* 1. 设计变量 ------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* 品牌色阶 */
  --brand-50: #eefbfb;
  --brand-100: #d3f3f4;
  --brand-200: #a6e7e9;
  --brand-300: #6fd5d9;
  --brand-400: #2fbcc1;
  --brand: #009a9e;
  --brand-600: #067f83;
  --brand-700: #0a666a;
  --brand-800: #0b5054;
  --brand-900: #093c40;
  --brand-ink: #06282b;

  /* 中性色阶 */
  --ink: #16232b;
  --ink-2: #33454f;
  --muted: #5d7280;
  --soft-text: #8496a1;
  --line: #e2eaee;
  --light-line: #edf2f4;
  --bg: #ffffff;
  --soft: #f5f8f9;
  --soft-2: #eef4f6;
  --panel: #ffffff;

  /* 功能色 */
  --blue: #2e6fce;
  --gold: #d99025;
  --danger: #c43d3d;
  --success: #0a7f63;

  /* 后台（沿用变量名，避免影响 admin.html） */
  --admin-ink: #16232b;
  --admin-muted: #5d7280;
  --admin-bg: #eef4f6;
  --admin-line: #dde7eb;
  --brand-dark: #067f83;

  /* 排版 */
  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(16, 35, 43, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 35, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 35, 43, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 35, 43, 0.1);
  --shadow-xl: 0 32px 72px rgba(9, 60, 64, 0.16);
  --shadow-brand: 0 14px 32px rgba(0, 154, 158, 0.22);

  /* 节奏 */
  --wrap: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;
}

/* 2. 基础样式 ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

:where(a,
button,
input,
select,
textarea,
[tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.site-wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 通用小标签 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
}

/* 章节标题 */
.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-head .eyebrow {
  justify-content: center;
}

/* 3. 头部导航 ------------------------------------------------------------ */
.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-top.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.site-top .top-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  padding: 0;
}

.site-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.logo-image,
.logo-mark,
.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-mark,
.brand-mark {
  border-radius: var(--r-md);
  color: #fff;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-700));
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.site-logo > span,
.brand > span {
  min-width: 0;
}

.site-logo strong,
.site-logo em,
.brand strong,
.brand em {
  display: block;
  line-height: 1.2;
}

.site-logo strong,
.brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-logo em,
.brand em {
  margin-top: 2px;
  color: var(--soft-text);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.site-nav a.current {
  color: var(--brand-700);
  background: var(--brand-100);
}

/* 语言切换 */
.site-lang {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--soft);
  font-size: 13px;
}

.site-lang span {
  display: none;
}

.site-lang button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-lang button:hover {
  color: var(--brand-700);
}

.site-lang button.current {
  color: var(--brand-700);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  background: #fff;
}

.nav-toggle i {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: var(--r-pill);
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: inherit;
}

.nav-toggle i::before {
  top: -5.5px;
}

.nav-toggle i::after {
  top: 5.5px;
}

.nav-toggle[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i::before {
  top: 0;
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] i::after {
  top: 0;
  transform: rotate(-90deg);
}

/* 8. 悬浮工具 / 弹窗 ----------------------------------------------------- */
.float-tools {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: 62px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%);
}

.float-tools button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 50px;
  padding: 6px 2px;
  border: 0;
  border-radius: var(--r-md);
  color: var(--ink-2);
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.float-tools button::before {
  font-size: 17px;
  line-height: 1;
}

.float-tools [data-modal="service"]::before {
  content: "✉";
}

.float-tools [data-modal="login"]::before {
  content: "☺";
}

.float-tools [data-modal="register"]::before {
  content: "✎";
}

.float-tools button:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

/* 关闭按钮 */
.float-tools > button:first-child {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 700;
}

.float-tools > button:first-child::before {
  content: none;
}

.float-tools > button:first-child:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fff;
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 30, 34, 0.5);
  backdrop-filter: blur(4px);
  animation: modalFade 200ms var(--ease) both;
}

.modal-backdrop[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  animation: modalRise 260ms var(--ease) both;
}

.auth-dialog.is-register-dialog {
  height: auto;
  max-height: none;
  overflow: visible;
}

.auth-dialog h2 {
  margin: 0 0 20px;
  padding-right: 40px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--muted);
  background: var(--soft);
  font-size: 19px;
  line-height: 1;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.modal-close:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--soft-2);
}

/* 二维码面板 */
.qr-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.qr-panel img {
  width: min(260px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

.qr-panel.compact img {
  width: min(210px, 100%);
}

.membership-qr-panel img {
  width: min(250px, 78vw);
}

.auth-message {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.auth-message.small {
  color: var(--soft-text);
  font-size: 13px;
}

.auth-message.success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(10, 127, 99, 0.24);
  border-radius: var(--r-md);
  color: var(--success);
  background: rgba(10, 127, 99, 0.07);
  font-weight: 700;
}

.auth-message.success::before {
  content: "✓";
  font-weight: 800;
}

.wechat-login-box {
  display: grid;
  justify-items: start;
  gap: 10px;
}

/* 个人中心 */
.profile-card {
  display: grid;
  gap: 20px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-line);
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-700));
  box-shadow: var(--shadow-brand);
  font-size: 23px;
  font-weight: 800;
}

.profile-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-head strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.profile-head > div > span {
  display: block;
  margin-top: 4px;
  color: var(--soft-text);
  font-size: 12.5px;
}

.profile-head .svip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.svip-badge.active {
  border: 1px solid rgba(216, 153, 26, 0.5);
  color: #7c4a00;
  background: linear-gradient(180deg, #ffe9ad, #f2bf42);
  box-shadow: 0 6px 14px rgba(216, 153, 26, 0.2);
}

.svip-badge.inactive {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft);
}

.profile-list {
  display: grid;
  margin: 0;
  border: 1px solid var(--light-line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.profile-list div {
  display: grid;
  grid-template-columns: minmax(88px, 0.42fr) 1fr;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--light-line);
  background: #fff;
}

.profile-list div:nth-child(even) {
  background: var(--soft);
}

.profile-list div:last-child {
  border-bottom: 0;
}

.profile-list dt,
.profile-list dd {
  min-width: 0;
  margin: 0;
}

.profile-list dt {
  color: var(--muted);
  font-size: 13px;
}

.profile-list dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions .button {
  flex: 1 1 auto;
  padding-inline: 14px;
}

/* 注册表单 */
.register-form {
  display: grid;
  gap: 15px;
}

.register-type-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.register-type-field legend,
.register-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.register-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-type-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.register-type-option:hover {
  border-color: var(--brand-300);
}

.register-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.register-type-option .check-mark {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1.5px solid #bccbd1;
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.register-type-option .check-mark::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.register-type-option strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.register-type-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(0, 154, 158, 0.1);
}

.register-type-option:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.register-type-option:has(input:checked) .check-mark {
  border-color: var(--brand);
  background: var(--brand);
}

.register-type-option:has(input:checked) .check-mark::after {
  opacity: 1;
}

.register-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.register-form input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 154, 158, 0.13);
}

.register-form-message {
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-size: 13.5px;
  font-weight: 700;
}

/* 邮箱登录、注册与密码重置 */
.auth-dialog.is-email-dialog {
  width: min(540px, 100%);
  height: auto;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
}

.auth-dialog.is-email-dialog::-webkit-scrollbar {
  display: none;
}

.email-auth-form {
  gap: 12px;
}

.email-auth-form label,
.auth-field-pair > *,
.email-code-row > * {
  min-width: 0;
}

.email-auth-form input[readonly],
#verifiedEmail {
  color: var(--muted);
  background: var(--soft);
}

.auth-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.email-code-row .button {
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.email-auth-form button:disabled {
  cursor: default;
  opacity: 0.65;
}

.email-auth-form .register-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-auth-form .register-type-option {
  padding: 0 10px;
  gap: 7px;
  min-height: 40px;
}

.email-auth-form .register-type-option .check-mark {
  margin: 0;
}

.email-auth-form .register-form-message:empty {
  display: none;
}

.email-auth-form .register-form-message.success {
  color: var(--brand-700);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-links.single {
  justify-content: center;
}

.auth-links button {
  padding: 2px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.auth-links button:hover {
  color: var(--brand);
}

.transfer-form .transfer-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.transfer-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--soft);
  font-size: 13px;
}

.transfer-source span { color: var(--muted); }
.transfer-source strong { overflow-wrap: anywhere; }

.transfer-form .transfer-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.transfer-form .transfer-confirm input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.transfer-form .transfer-confirm span {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.transfer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.transfer-actions .button {
  min-width: 0;
  padding: 0 10px;
  font-size: 13px;
}

@media (max-height: 650px), (max-width: 380px) {
  .modal-backdrop:has(.is-transfer-dialog) { padding: 12px; }
  .auth-dialog.is-email-dialog.is-transfer-dialog { padding: 14px; }
  .auth-dialog.is-transfer-dialog h2 { margin-bottom: 12px; }
  .transfer-form { gap: 9px; }
  .transfer-form input, .transfer-form .button { min-height: 36px; }
  .transfer-form .auth-field-pair { gap: 8px; }
  .transfer-form .register-form-message { margin: 0; font-size: 12px; line-height: 1.5; }
  .transfer-form .register-form-message.success { padding: 8px 10px; }
}

.admin-password-login {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  margin: auto;
  text-align: left;
}

.admin-password-login label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-password-login label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.account-email {
  overflow-wrap: anywhere;
}

/* 会员价格 */
.sheet-pricing {
  padding: 84px 0 94px;
  background: #f5f6f8;
  scroll-margin-top: 100px;
}
.pricing-heading {
  margin-bottom: 30px;
  text-align: center;
}
.pricing-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
}
.pricing-heading p {
  margin: 0;
  color: var(--muted);
}
.membership-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.membership-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px 22px;
  border: 1px solid #282c32;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(ellipse at 110% -5%, #6f341b 0, #261c19 23%, #121418 56%);
  box-shadow: 0 10px 25px rgb(10 13 19 / 10%);
}
.membership-plan.featured {
  border-color: #f09645;
}
.plan-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}
.plan-top h3 {
  margin: 0;
  font-size: 19px;
  color: #fff;
}
.plan-badge {
  padding: 3px 7px;
  border: 1px solid #81562f;
  border-radius: 5px;
  color: #ffbc75;
  font-size: 11px;
  white-space: nowrap;
}
.plan-price {
  margin-top: 27px;
  font-size: clamp(34px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffae65;
  letter-spacing: -1px;
}
.plan-price del {
  display: inline-block;
  margin-left: 8px;
  color: #9298a1;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.plan-term {
  min-height: 23px;
  margin: 8px 0 0;
  color: #aeb3bd;
  font-size: 13px;
}
.membership-plan ul {
  display: grid;
  gap: 10px;
  flex: 1;
  margin: 24px 0 27px;
  padding: 0;
  list-style: none;
  color: #d9dce2;
  font-size: 13px;
}
.membership-plan li::before {
  content: '✓';
  margin-right: 8px;
  color: #ffa65b;
}
.plan-button {
  width: 100%;
  height: 52px;
  border: 1px solid #8c603f;
  border-radius: 8px;
  color: #ffc38c;
  background: #39261a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.plan-button:hover {
  border-color: #ffae65;
  background: #52311c;
}
.plan-button:focus-visible {
  outline: 3px solid #ffae65;
  outline-offset: 4px;
}
.membership-plan.featured .plan-button {
  border-color: #ffac61;
  color: #302013;
  background: #ffac61;
}
.membership-qr-panel > strong {
  color: var(--ink);
  font-size: 18px;
}
@media (max-height: 650px) {
  .auth-dialog:has(.membership-qr-panel) {
    padding: 16px 20px;
  }
  .auth-dialog:has(.membership-qr-panel) h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }
  .membership-qr-panel {
    gap: 10px;
  }
  .membership-qr-panel img {
    width: min(220px, 100%);
    padding: 0;
  }
  .membership-qr-panel p {
    font-size: 13px;
    line-height: 1.45;
  }
}
.membership-grant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.membership-grant-row label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .membership-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .membership-plans { grid-template-columns: 1fr; gap: 16px; }
  .sheet-pricing { padding: 50px 0; }
  .membership-plan { padding: 24px; }
  .plan-price { margin-top: 20px; }
  .membership-plan ul { margin: 20px 0; }
}

@media (max-height: 650px) {
  .auth-dialog.is-email-dialog {
    padding: 16px 20px;
  }
  .auth-dialog.is-email-dialog h2 {
    margin-bottom: 12px;
  }
  .email-auth-form {
    gap: 8px;
  }
  .email-auth-form input,
  .email-auth-form .button,
  .email-auth-form .register-type-option {
    min-height: 36px;
  }
  .email-auth-form .register-type-option strong {
    font-size: 12px;
    line-height: 1.3;
  }
  .email-auth-form label span,
  .email-auth-form .register-type-field legend {
    margin-bottom: 4px;
  }
}

/* 9. 页脚 --------------------------------------------------------------- */
.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 24px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 240, 242, 0.62);
  background: #082024;
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}

.footer-main {
  color: rgba(233, 247, 248, 0.86);
  font-weight: 600;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 12.5px;
}

.footer-records a,
.footer-records a:visited {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-records a:hover {
  color: var(--brand-300);
}

/* 10. 钣金系统 ----------------------------------------------------------- */
.sheet-system-view {
  color: var(--ink);
  background: #fff;
}

.sheet-wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.sheet-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft) 0%, #fff 76%);
}

.sheet-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(56px, 6vw, 92px) 0;
}

.sheet-hero-copy {
  min-width: 0;
}

.sheet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sheet-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
}

.sheet-hero-copy h1 {
  margin: 0;
}

.sheet-hero-name,
.sheet-hero-title {
  display: block;
}

.sheet-hero-name {
  color: var(--brand-700);
  font-size: clamp(30px, 3.5vw, 47px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.sheet-hero-title {
  max-width: 20em;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.sheet-hero-tagline {
  max-width: 30em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
}

.sheet-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sheet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.sheet-button:hover {
  transform: translateY(-2px);
}

.sheet-button-brand {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
}

.sheet-button-brand:hover {
  border-color: var(--brand-600);
  background: var(--brand-600);
}

.sheet-button-alt {
  color: var(--ink-2);
  border-color: var(--line);
  background: #fff;
}

.sheet-button-alt:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.sheet-hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 154, 158, 0.07), transparent 52%),
    #fff;
  box-shadow: var(--shadow-md);
}

.sheet-art-logo {
  width: min(100%, 460px);
  max-height: 320px;
  height: auto;
  object-fit: contain;
}

.sheet-features {
  padding: clamp(56px, 6vw, 90px) 0;
  background: var(--soft);
}

.sheet-section-heading {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.sheet-section-heading h2,
.sheet-docs h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sheet-section-heading p,
.sheet-docs-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.sheet-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sheet-feature-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.sheet-feature-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sheet-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  color: var(--brand-700);
  background: var(--brand-100);
  font-size: 20px;
  font-weight: 700;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.sheet-feature-card:hover .sheet-feature-icon {
  color: #fff;
  background: var(--brand);
}

.sheet-feature-card h3 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.sheet-feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.sheet-docs {
  padding: clamp(56px, 6vw, 92px) 0;
  background: #fff;
}

.sheet-docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.sheet-docs h2 {
  text-align: left;
}

.sheet-docs-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sheet-step;
}

.sheet-docs-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-2);
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.sheet-docs-list li:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.sheet-docs-list b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--brand-700);
  background: var(--brand-100);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
}

/* 11. 后台 -------------------------------------------------------------- */
.admin-page {
  min-height: 100vh;
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(0, 154, 158, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(46, 111, 206, 0.08), transparent 40%),
    var(--admin-bg);
}

.admin-page [hidden] {
  display: none !important;
}

.admin-shell {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  padding: 26px 0 48px;
}

.admin-topbar {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.admin-command {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-session {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-command label span,
.login-card label span,
.form-grid label span,
.table-tools label span {
  display: block;
  margin-bottom: 7px;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 600;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-page input,
.admin-page select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-md);
  color: var(--admin-ink);
  background: #fff;
  font-size: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.admin-page input:focus,
.admin-page select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 154, 158, 0.13);
}

.admin-login-panel {
  display: grid;
  justify-items: center;
  margin-top: 36px;
}

.login-copy {
  max-width: 720px;
  margin-bottom: 22px;
  text-align: center;
}

.login-copy h1 {
  margin: 0;
  color: var(--admin-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.login-copy p {
  margin: 12px 0 0;
  color: var(--admin-muted);
  font-size: 15px;
  line-height: 1.75;
}

.login-carousel {
  width: min(520px, 100%);
  overflow: hidden;
  contain: layout paint;
}

.login-switcher {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.login-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-md);
  color: var(--admin-ink);
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.login-arrow:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: var(--brand-50);
}

.login-method-title {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--admin-ink);
}

.login-method-title strong {
  font-size: 17px;
  font-weight: 800;
}

.login-method-title span {
  color: var(--admin-muted);
  font-size: 12px;
}

.login-track-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  clip-path: inset(0 round var(--r-lg));
  contain: paint;
}

.login-track {
  display: flex;
  transition: transform 280ms var(--ease);
  will-change: transform;
}

.login-card.admin-panel {
  flex: 0 0 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  width: 100%;
  min-width: 100%;
  min-height: 290px;
}

.login-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.login-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: #b9c8ce;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.login-dots button.current {
  width: 26px;
  background: var(--brand);
}

.admin-login-message {
  min-height: 28px;
  margin-top: 16px;
  color: var(--admin-muted);
  font-size: 14px;
  text-align: center;
}

.admin-login-message.is-error {
  color: #963030;
}

/* 通用按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-md);
  color: var(--admin-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.button:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.button.primary {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
}

.button.primary:hover {
  border-color: var(--brand-600);
  color: #fff;
  background: var(--brand-600);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--admin-ink);
  border-color: var(--admin-line);
  background: #fff;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 34px 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(circle at 84% 8%, rgba(47, 188, 193, 0.3), transparent 48%),
    linear-gradient(140deg, #0a2a2e, #06666b);
  box-shadow: var(--shadow-lg);
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.admin-hero p {
  max-width: 700px;
  margin: 12px 0 0;
  color: rgba(223, 246, 247, 0.84);
  font-size: 15px;
  line-height: 1.8;
}

.admin-health {
  min-width: 132px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.1);
}

.admin-health span,
.admin-health strong {
  display: block;
}

.admin-health span {
  color: #c9eef0;
  font-size: 12px;
}

.admin-health strong {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
}

.is-ok {
  color: #8ff3c2;
}

.is-bad {
  color: #ffb4a8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-grid article,
.admin-panel {
  border: 1px solid var(--admin-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.metric-grid article {
  padding: 22px 24px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.metric-grid article:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-grid span {
  display: block;
  color: var(--admin-muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--admin-ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.panel-heading p {
  margin: 8px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.admin-manager {
  margin-top: 16px;
}

.admin-manager-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--admin-muted);
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  width: auto;
  min-height: auto;
  accent-color: var(--brand);
}

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

.form-actions.compact {
  margin-top: 10px;
}

.alipay-bind-panel {
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.field-label {
  display: block;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.bind-status {
  margin-top: 8px;
  color: var(--admin-ink);
  font-size: 13px;
  line-height: 1.55;
}

.message {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--admin-muted);
  font-size: 13px;
}

.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.table-message {
  min-height: 32px;
  margin-top: 10px;
  color: var(--admin-muted);
  font-size: 13px;
}

.table-message.is-success {
  color: var(--success);
}

.table-message.is-error {
  color: #963030;
}

.inline-confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.inline-confirm.danger {
  border-color: #f0b8b2;
  background: #fff7f5;
}

.table-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 120px;
  gap: 10px;
  min-width: 480px;
}

.table-wrap {
  margin-top: 4px;
  border: 1px solid var(--light-line);
  border-radius: var(--r-md);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  color: var(--admin-muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

tbody tr {
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

tbody tr:hover {
  background: var(--brand-50);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-chip,
.bind-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
}

.status-chip.active {
  color: var(--success);
  background: #dbf8ee;
}

.status-chip.disabled {
  color: #963030;
  background: #ffe3e0;
}

.status-chip.pending,
.status-chip.rejected,
.status-chip.expired {
  color: #87600f;
  background: #fff0c7;
}

.status-chip.enterprise {
  color: #174ea6;
  background: #e3edff;
}

.bind-chip {
  color: #245fb4;
  background: #e3edff;
}

.bind-chip.empty {
  color: var(--admin-muted);
  background: var(--soft-2);
}

.muted-cell {
  color: var(--admin-muted);
  font-size: 12px;
}

.machine-cell {
  display: grid;
  gap: 6px;
  min-width: 260px;
  white-space: normal;
}

.machine-card {
  display: grid;
  gap: 2px;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-sm);
  background: var(--soft);
}

.machine-card strong,
.machine-card span,
.machine-card code,
.machine-card em {
  overflow-wrap: anywhere;
}

.machine-card strong {
  color: var(--admin-ink);
  font-size: 12px;
}

.machine-card span,
.machine-card em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
}

.machine-card code {
  color: #245fb4;
  font-size: 11px;
  font-family: var(--font-mono);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.mini-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--admin-line);
  border-radius: var(--r-sm);
  color: var(--admin-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.mini-button:disabled,
.mini-button.is-busy {
  cursor: progress;
  opacity: 0.55;
}

.mini-button:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: var(--brand-50);
}

.mini-button.danger {
  color: #963030;
}

.mini-button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fff2f0;
}

code {
  padding: 2px 7px;
  border-radius: var(--r-sm);
  color: inherit;
  background: rgba(0, 154, 158, 0.1);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 12. 动效 -------------------------------------------------------------- */
@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式：≤1100px */
@media (max-width: 1100px) {
  .site-wrap,
.site-top .top-inner,
.sheet-wrap {
    width: calc(100% - 40px);
  }

  .sheet-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-hero-inner,
.sheet-docs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .admin-topbar,
.admin-layout,
.admin-manager-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 响应式：≤900px — 折叠导航 */
@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
  }

  .site-top {
    position: sticky;
  }

  .top-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    border-radius: var(--r-md);
    font-size: 16px;
  }

  .site-lang {
    order: 2;
  }
}

/* 响应式：≤760px */
@media (max-width: 760px) {
  .site-wrap,
.site-top .top-inner,
.sheet-wrap {
    width: calc(100% - 28px);
  }

  .site-logo strong,
.brand strong {
    font-size: 15px;
  }

  .logo-image,
.logo-mark,
.brand-mark {
    width: 36px;
    height: 36px;
  }

  .sheet-feature-grid,
.metric-grid,
.register-type-grid {
    grid-template-columns: 1fr;
  }

  .table-heading,
.admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-tools {
    top: auto;
    right: 12px;
    bottom: 14px;
    display: flex;
    width: auto;
    transform: none;
  }

  .float-tools button {
    min-height: 44px;
    padding: 5px 10px;
  }

  .float-tools > button:first-child {
    display: none;
  }

  .auth-dialog {
    padding: 24px 20px;
  }

  .admin-command,
.table-tools {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sheet-hero-art {
    padding: 22px;
  }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
*::before,
*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
