/* ==========================================================================
 * 设计系统 · 柔粉轻奢（Soft Blush Luxe）
 * 令牌层：色彩 / 字体层级 / 间距 / 圆角 / 阴影 / 动效
 * 组件层：按钮 / 表单 / 卡片 / 表格 / 徽标 / 提示 / 价格 / 分页 / Toast / 品牌
 * --------------------------------------------------------------------------
 * 说明：类名与旧版保持兼容，页面层只允许引用变量，禁止硬编码颜色。
 * ========================================================================== */

:root {
  /* ---------- 色彩：暖调基底 ---------- */
  --cream: #fdfaf7;
  --cream-deep: #fff6f1;
  --blush: #f7ede7;
  --blush-deep: #f2e0d8;

  --ink-900: #2e2523;
  --ink-800: #3b302d;
  --ink-700: #4a3d39;
  --ink-500: #6b5a55;

  --text: #2e2523;
  --text-sub: #6b5a55;
  --muted: #9c8b86;

  /* ---------- 色彩：主色（裸粉）与点缀（暖金） ---------- */
  --brand: #b8737c;
  --brand-600: #a2606a;
  --brand-700: #8c4f59;
  --brand-soft: #f6e3e4;
  --brand-tint: #fdf1f0;

  --rose: #dba0a6;
  --rose-light: #e9c9cb;
  --gold: #c2a06b;
  --gold-600: #a88752;
  --gold-soft: #f6ecdc;

  --accent: #c2a06b;
  --accent-600: #a88752;
  --accent-soft: #f6ecdc;

  --line: #efe1da;
  --line-strong: #e2cdc4;
  --line-gold: rgba(194, 160, 107, 0.35);
  --bg: #fdfaf7;
  --bg-alt: #f9f1ea;
  --white: #ffffff;

  /* ---------- 语义色 ---------- */
  --success: #4e8f76;
  --success-soft: #e6f2ec;
  --warning: #c58a2e;
  --warning-soft: #fbf0dd;
  --danger: #c4565f;
  --danger-soft: #fbe9ea;
  --info: #8a6e52;
  --info-soft: #f3ece1;

  /* ---------- 圆角 ---------- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---------- 阴影（暖色低透明度、多层柔化） ---------- */
  --sh-1: 0 1px 2px rgba(88, 56, 44, 0.04), 0 4px 14px rgba(88, 56, 44, 0.05);
  --sh-2: 0 8px 26px rgba(88, 56, 44, 0.08), 0 2px 8px rgba(88, 56, 44, 0.04);
  --sh-3: 0 20px 52px rgba(88, 56, 44, 0.14);
  --sh-glow: 0 14px 34px rgba(184, 115, 124, 0.22);
  --sh-gold: 0 12px 28px rgba(194, 160, 107, 0.22);
  --ring: rgba(184, 115, 124, 0.18);
  --ring-accent: rgba(194, 160, 107, 0.26);

  /* ---------- 间距（4 / 8 基数） ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* ---------- 动效 ---------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.5, 1);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 480ms;

  /* ---------- 版式 ---------- */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'HarmonyOS Sans SC',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Playfair Display', 'Didot', 'Times New Roman', 'Songti SC', Georgia, serif;
  --section-gap: clamp(48px, 6vw, 88px);
}

/* ---------- 基础重置 ---------- */
* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

::focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--rose-light);
  color: var(--ink-900);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* overflow: clip 不建立滚动容器，保证 position: sticky 的头部在部分浏览器可用 */
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

/* 头部收缩会改变文档高度：关闭滚动锚定，避免浏览器回拉 scrollY 造成抖动 */
html {
  overflow-anchor: none;
}

/* 页面柔光：晨光与珠光两处暖色光晕 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(820px 460px at 8% -6%, rgba(219, 160, 166, 0.18), transparent 68%),
    radial-gradient(720px 420px at 94% 2%, rgba(194, 160, 107, 0.16), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 42%, var(--blush) 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--brand);
}

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

button {
  font-family: inherit;
}

::placeholder {
  color: var(--muted);
}

/* 细滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--rose);
  background-clip: padding-box;
}

/* ---------- 字体层级 ---------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-3);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

h1 {
  font-size: clamp(26px, 2.6vw, 38px);
}

h2 {
  font-size: clamp(21px, 1.9vw, 28px);
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 var(--sp-2);
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

strong {
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- 容器与区块节奏 ---------- */
.container {
  width: var(--container);
  max-width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
}

.container-narrow {
  width: 880px;
}

.main-content {
  padding: var(--sp-8) 0 var(--sp-16);
  min-height: 62vh;
}

.section {
  margin-bottom: var(--section-gap);
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
}

.section-head .section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

.section-head .section-link:hover {
  gap: 12px;
  color: var(--brand-700);
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
}

.gold-line {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  margin: var(--sp-6) 0;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.btn:hover {
  color: var(--brand-700);
  border-color: var(--brand-soft);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(184, 115, 124, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(184, 115, 124, 0.34);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%);
  color: #fff;
  box-shadow: var(--sh-gold);
}

.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--info) 100%);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(168, 135, 82, 0.32);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-700);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.7);
}

.btn-danger {
  border-color: var(--danger-soft);
  color: var(--danger);
  background: var(--white);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 12px 24px rgba(196, 86, 95, 0.24);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-sub);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--ink-900);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 磁吸按钮：指针靠近时轻微跟随（由 ui.js 驱动 data-magnetic） */
.btn[data-magnetic] {
  will-change: transform;
}

/* 圆形图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-700);
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring), border-color var(--t) var(--ease),
    color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}

.icon-btn:hover {
  color: var(--brand-700);
  border-color: var(--brand-soft);
  background: var(--white);
  box-shadow: var(--sh-1);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* ---------- 表单 ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}

input[type='text'],
input[type='search'],
input[type='password'],
input[type='number'],
input[type='tel'],
input[type='url'],
input[type='email'],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--cream-deep);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  background: var(--blush);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--ring);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.75;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

input[type='file'] {
  font-size: 13px;
  color: var(--text-sub);
}

.form-row {
  margin-bottom: var(--sp-4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sp-4);
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--sp-4);
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--sp-2);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13.5px;
  color: var(--text);
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

/* 搜索胶囊：输入与按钮合体 */
.search-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 5px 5px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease);
}

.search-pill:focus-within {
  border-color: var(--rose);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--ring);
}

.search-pill input[type='search'] {
  border: none;
  background: transparent;
  padding: 8px 0;
  box-shadow: none;
}

.search-pill input[type='search']:focus {
  box-shadow: none;
  background: transparent;
}

/* ---------- 卡片 / 面板 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--sp-6);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.card:hover {
  box-shadow: var(--sh-2);
}

.card + .card {
  margin-top: var(--sp-4);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.card-title h3 {
  margin: 0;
  font-size: 16px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-4);
}

.panel-soft {
  background: linear-gradient(160deg, var(--cream-deep) 0%, var(--blush) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.page-head h1,
.page-head h2 {
  margin: 0;
}

.page-head-sub {
  color: var(--text-sub);
  font-size: 13.5px;
  margin-top: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--brand-700);
}

.breadcrumb .sep {
  color: var(--line-strong);
}

/* ---------- 表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background-color var(--t-fast) var(--ease);
}

.data-table tbody tr:hover {
  background: var(--brand-tint);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .col-actions {
  white-space: nowrap;
}

.data-table .col-actions form {
  display: inline-block;
  margin-right: var(--sp-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
}

/* ---------- 徽标 / 状态 ---------- */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  background: var(--bg-alt);
  color: var(--text-sub);
  white-space: nowrap;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge-brand {
  background: var(--brand-soft);
  color: var(--brand-700);
}
.badge-gold {
  background: var(--gold-soft);
  color: var(--gold-600);
}

.status-0 {
  color: var(--warning);
}
.status-1 {
  color: var(--info);
}
.status-2 {
  color: var(--info);
}
.status-3 {
  color: var(--success);
}
.status-4 {
  color: var(--muted);
}

/* 胶囊标签（类目、筛选项） */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--text-sub);
  transition: all var(--t) var(--ease);
}

.chip:hover {
  border-color: var(--rose);
  color: var(--brand-700);
  background: var(--white);
  transform: translateY(-1px);
}

.chip.is-active,
.chip.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(184, 115, 124, 0.24);
}

/* ---------- 提示条 ---------- */
.alert {
  position: relative;
  padding: 13px 18px 13px 20px;
  border-radius: var(--r);
  margin-bottom: var(--sp-4);
  font-size: 13.5px;
  border: 1px solid transparent;
  animation: rise var(--t-slow) var(--ease) both;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: var(--r-pill);
  background: currentColor;
  opacity: 0.5;
}

.alert-success {
  background: var(--success-soft);
  color: #3c7861;
  border-color: #cfe7db;
}

.alert-error {
  background: var(--danger-soft);
  color: #a8434c;
  border-color: #f3d3d6;
}

.alert-warning {
  background: var(--warning-soft);
  color: #a2731f;
  border-color: #f0dcb9;
}

.alert-info {
  background: var(--brand-tint);
  color: var(--brand-700);
  border-color: var(--brand-soft);
}

/* ---------- 价格 ---------- */
.price {
  color: var(--brand-700);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.price-lg {
  font-size: clamp(24px, 2.2vw, 30px);
  font-family: var(--font-display);
  font-weight: 600;
}

.price-suffix {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 2px;
}

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

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: all var(--t) var(--ease);
}

.pagination a:hover {
  border-color: var(--rose);
  color: var(--brand-700);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}

.pagination .active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--rose) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-glow);
}

.pagination .disabled {
  opacity: 0.4;
}

.pagination .ellipsis,
.pagination .page-total {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* ---------- 空状态 / 错误页 ---------- */
.empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-5);
  color: var(--muted);
  background: linear-gradient(160deg, var(--cream-deep), var(--blush));
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: var(--sp-3);
  opacity: 0.55;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-700);
  margin-bottom: var(--sp-2);
}

.error-page {
  text-align: center;
  padding: var(--sp-16) var(--sp-5);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: var(--sp-3);
}

.error-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

/* ---------- 工具类 ---------- */
.muted {
  color: var(--muted);
}
.text-sub {
  color: var(--text-sub);
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.text-danger {
  color: var(--danger);
}
.text-gold {
  color: var(--gold-600);
}
.mt-8 {
  margin-top: var(--sp-2);
}
.mt-16 {
  margin-top: var(--sp-4);
}
.mt-24 {
  margin-top: var(--sp-6);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-8 {
  margin-bottom: var(--sp-2);
}
.mb-16 {
  margin-bottom: var(--sp-4);
}
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.flex-center {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.flex-wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 104px;
  transform: translateX(-50%);
  padding: 12px 26px;
  border-radius: var(--r-pill);
  background: rgba(46, 37, 35, 0.92);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 400;
  box-shadow: var(--sh-3);
  max-width: 80vw;
  text-align: center;
  animation: toast-in var(--t-slow) var(--ease) both;
  backdrop-filter: blur(8px);
}

.toast-success {
  background: rgba(78, 143, 118, 0.95);
}

.toast-error {
  background: rgba(196, 86, 95, 0.95);
}

/* ---------- 动效关键帧 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes zoom-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -220% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

/* ---------- 滚动渐显（由 ui.js 添加 .is-visible） ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal.is-visible {
  will-change: auto;
}

/* 页面进入渐显 */
.page-buyer .site-main,
.page-console .console-main {
  animation: fade var(--t-slow) var(--ease-out) both;
}

/* 磁吸/视差元素避免选中抖动 */
[data-parallax],
[data-magnetic] {
  backface-visibility: hidden;
}

/* ---------- 站点标识（Logo） ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r);
  color: var(--ink-900);
  transition: background-color var(--t) var(--ease);
}

.brand:hover {
  background: rgba(246, 227, 228, 0.5);
}

.brand-emblem {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-light) 0%, var(--rose) 46%, var(--brand) 100%);
  box-shadow: 0 10px 22px rgba(184, 115, 124, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--t-slow) var(--ease-spring), box-shadow var(--t-slow) var(--ease);
}

.brand-emblem::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.55), transparent 62%);
}

.brand-emblem-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  opacity: 0;
  transform: scale(0.9) rotate(0deg);
  transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease);
}

.brand-emblem-icon {
  position: relative;
  width: 26px;
  height: 26px;
}

.brand:hover .brand-emblem {
  transform: translateY(-2px) rotate(-6deg) scale(1.04);
  box-shadow: 0 16px 30px rgba(184, 115, 124, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand:hover .brand-emblem-ring {
  opacity: 1;
  transform: scale(1) rotate(18deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
}

.brand-badge {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--gold-600);
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
}

.brand-slogan {
  max-width: 260px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 紧凑版：控制台头部 */
.brand-compact {
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2);
}

.brand-compact .brand-emblem {
  width: 36px;
  height: 36px;
}

.brand-compact .brand-emblem-icon {
  width: 20px;
  height: 20px;
}

.brand-compact .brand-name {
  font-size: 17px;
}

/* 大号版：登录 / 入驻独立页 */
.brand-hero {
  gap: var(--sp-3);
}

.brand-hero .brand-emblem {
  width: 58px;
  height: 58px;
}

.brand-hero .brand-emblem-icon {
  width: 32px;
  height: 32px;
}

.brand-hero .brand-name {
  font-size: 24px;
}

/* 深色底版 */
.brand-light {
  color: #fff;
}

.brand-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-light .brand-slogan {
  color: rgba(255, 255, 255, 0.62);
}

.brand-light .brand-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.brand-light .brand-emblem-ring {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- 响应式基础 ---------- */
@media (max-width: 900px) {
  .form-grid,
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }
  .brand-slogan {
    display: none;
  }
  .main-content {
    padding-top: var(--sp-5);
  }
  .card {
    padding: var(--sp-4);
    border-radius: var(--r);
  }
  .section-head {
    align-items: center;
  }
}

/* ---------- 无障碍：减少动效 ---------- */
@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;
  }

  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
