/* ==========================================================================
   拾光商城 · SHIGUANG MALL
   自适应商城演示 · 设计系统
   ========================================================================== */

:root {
  --bg: #f4f0e6;
  --bg-deep: #ece5d6;
  --surface: #fffdf7;
  --surface-2: #f8f3e8;
  --surface-3: #f1ebdd;
  --ink: #1c2a23;
  --ink-soft: #3b4a41;
  --muted: #7c857c;
  --muted-2: #9aa298;
  --line: #e3dccd;
  --line-strong: #d2c8b5;
  --brand: #1d4d3a;
  --brand-2: #2b6a4e;
  --brand-3: #3d7b5c;
  --brand-soft: #e5ede3;
  --brand-mist: #eef2e9;
  --cream: #f7f2e6;
  --gold: #b5853e;
  --gold-soft: #f2e5cd;
  --wechat: #07c160;
  --wechat-dark: #06ad56;
  --danger: #a94a36;
  --danger-soft: #f6e5e0;
  --amber: #9a651c;
  --amber-soft: #f9efd9;
  --blue: #34617b;
  --blue-soft: #e7eff4;
  --purple: #63508b;
  --purple-soft: #eee9f6;
  --green: #2f6b46;
  --green-soft: #e4efe4;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 18px rgba(35, 45, 36, 0.05);
  --shadow-md: 0 18px 45px rgba(35, 45, 36, 0.08);
  --shadow-lg: 0 30px 80px rgba(24, 40, 30, 0.16);
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 92% -8%, rgba(208, 222, 204, 0.55), transparent 60%),
    radial-gradient(900px 500px at -5% 20%, rgba(238, 222, 197, 0.5), transparent 55%);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: rgba(29, 77, 58, 0.18);
}

[hidden] {
  display: none !important;
}

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

.container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.page {
  min-height: calc(100vh - var(--header-h));
  padding: 0 0 96px;
}

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

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   按钮 / 链接 / 标签
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-primary {
  background: var(--brand);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(29, 77, 58, 0.18);
}

.btn-primary:hover {
  background: var(--brand-2);
}

.btn-cream {
  background: var(--cream);
  color: var(--brand);
}

.btn-cream:hover {
  background: #fffaf0;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.55);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--cream);
}

.btn-wechat {
  background: var(--wechat);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.22);
}

.btn-wechat:hover {
  background: var(--wechat-dark);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #913b29;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-xs {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  gap: 5px;
}

.btn-xs .icon {
  width: 14px;
  height: 14px;
}

.btn-lg {
  height: 54px;
  padding: 0 30px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  transition: gap 0.25s;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  gap: 11px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button.danger {
  color: var(--danger);
}

.text-button .icon {
  width: 15px;
  height: 15px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: rgba(29, 77, 58, 0.07);
  color: var(--brand);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 26px;
  color: var(--muted);
  font-size: 12.5px;
}

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

.breadcrumb em {
  color: var(--ink-soft);
  font-style: normal;
}

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

.page-head {
  padding: 62px 0 36px;
}

.page-head h1 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.page-head p {
  max-width: 640px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.compact-head {
  padding: 48px 0 28px;
}

.compact-head h1 {
  font-size: 40px;
}

.compact-head h1 small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 68px 0 28px;
}

.section-head h2 {
  margin-top: 9px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head .eyebrow::before {
  display: none;
}

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
  color: var(--brand);
  gap: 10px;
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   状态 / 复选 / 步进器
   -------------------------------------------------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-purple { background: var(--purple-soft); color: var(--purple); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-gray { background: #efede7; color: #777d74; }
.tone-red { background: var(--danger-soft); color: var(--danger); }

.default-badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.check-box .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s, transform 0.15s;
}

.check input:checked + .check-box {
  border-color: var(--brand);
  background: var(--brand);
}

.check input:checked + .check-box .icon {
  opacity: 1;
  transform: scale(1);
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s;
}

.stepper button:hover {
  background: var(--brand-mist);
  color: var(--brand);
}

.stepper button .icon {
  width: 15px;
  height: 15px;
}

.stepper span {
  min-width: 34px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stepper-sm {
  height: 34px;
}

.stepper-sm button {
  width: 31px;
}

.stepper-sm span {
  min-width: 27px;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   头部 / 底部导航 / 页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid rgba(211, 202, 185, 0.65);
  background: rgba(244, 240, 230, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--brand);
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 12px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
}

.main-nav a.active::after {
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 252px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--muted);
  transition: width 0.3s var(--ease), border-color 0.2s, background 0.2s;
}

.header-search:focus-within {
  width: 292px;
  border-color: var(--line-strong);
  background: var(--surface);
}

.header-search .icon {
  width: 17px;
  height: 17px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.header-search input::placeholder {
  color: var(--muted-2);
}

.search-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1;
}

.mobile-search-btn {
  display: none;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

.cart-count.is-hidden {
  display: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.62);
  transition: border-color 0.2s, background 0.2s;
}

.user-chip:hover {
  border-color: var(--brand-3);
  background: var(--surface);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.user-chip-name {
  max-width: 72px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-login {
  margin-left: 2px;
}

.bottom-nav {
  display: none;
}

.site-footer {
  margin-top: 96px;
  padding: 62px 0 26px;
  background: #17392b;
  color: rgba(247, 242, 230, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: 54px;
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer .brand-text small {
  color: rgba(247, 242, 230, 0.5);
}

.footer-brand p {
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.9;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(247, 242, 230, 0.16);
  border-radius: 999px;
  color: rgba(247, 242, 230, 0.6);
  font-size: 10.5px;
}

.footer-note .icon {
  width: 14px;
  height: 14px;
  color: #c9a45f;
}

.footer-col h4 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 11px;
  color: rgba(247, 242, 230, 0.62);
  font-size: 12.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #d9bd86;
  font-size: 13px;
  font-weight: 600;
}

.footer-phone .icon {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 230, 0.12);
  color: rgba(247, 242, 230, 0.4);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.home-container {
  padding-top: 26px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 548px;
  padding: 64px 64px 56px;
  border-radius: 34px;
  background:
    radial-gradient(760px 420px at 82% 18%, rgba(146, 185, 141, 0.22), transparent 62%),
    linear-gradient(122deg, #15372a 0%, #1f4b37 52%, #356247 100%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(120deg, #000, transparent 70%);
}

.hero-glow {
  position: absolute;
  right: -120px;
  top: -160px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 75, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 242, 230, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7b06a;
  box-shadow: 0 0 0 4px rgba(215, 176, 106, 0.14);
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.hero h1 em {
  color: #e6c88f;
  font-style: normal;
}

.hero-lead {
  margin-top: 24px;
  color: rgba(247, 242, 230, 0.7);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(247, 242, 230, 0.82);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(247, 242, 230, 0.28);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-link:hover {
  color: #fff;
  border-color: #fff;
}

.hero-link .icon {
  width: 14px;
  height: 14px;
}

.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: auto;
  padding-top: 42px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-meta strong {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.hero-meta span {
  color: rgba(247, 242, 230, 0.48);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-art {
  position: relative;
  min-height: 100%;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(247, 242, 230, 0.12);
  border-radius: 50%;
}

.ring-a {
  width: 430px;
  height: 430px;
  right: -60px;
  top: -20px;
}

.ring-b {
  width: 300px;
  height: 300px;
  right: 15px;
  bottom: -70px;
  border-style: dashed;
}

.hero-card {
  position: absolute;
  display: block;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(8, 24, 16, 0.28);
  transition: transform 0.45s var(--ease);
}

.hero-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
}

.hero-card-a {
  top: 20px;
  right: 26px;
  width: 310px;
  transform: rotate(-6deg);
}

.hero-card-a .hero-card-inner {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #e6ede5;
  aspect-ratio: 1;
}

.hero-card-a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 8px 6px;
}

.hero-card-label small {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-card-label strong {
  font-size: 13px;
  font-weight: 600;
}

.hero-card-label em {
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}

.hero-card-b {
  left: 6px;
  bottom: 34px;
  width: 196px;
  transform: rotate(5deg);
  padding: 8px;
}

.hero-card-b img {
  border-radius: 16px;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-mini-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.hero-mini-label .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.hero-stamp {
  position: absolute;
  right: 6px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(230, 200, 143, 0.55);
  border-radius: 50%;
  color: #e6c88f;
  text-align: center;
  transform: rotate(9deg);
}

.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(230, 200, 143, 0.22);
  border-radius: 50%;
}

.hero-stamp span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.hero-stamp i {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: normal;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: #d7b06a;
}

.dot-a {
  width: 8px;
  height: 8px;
  top: 74px;
  left: 26px;
}

.dot-b {
  width: 5px;
  height: 5px;
  right: 66px;
  bottom: 174px;
  opacity: 0.6;
}

.hero-plus {
  position: absolute;
  left: 60px;
  top: 150px;
  color: rgba(247, 242, 230, 0.25);
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.62);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.category-pill:hover {
  border-color: var(--brand-3);
  background: var(--surface);
  transform: translateY(-3px);
}

.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.cat-icon .icon {
  width: 21px;
  height: 21px;
}

.cat-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-copy strong {
  font-size: 13.5px;
  font-weight: 600;
}

.cat-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.cat-arrow {
  margin-left: auto;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.cat-arrow .icon {
  width: 15px;
  height: 15px;
}

.category-pill:hover .cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
}

.product-card {
  min-width: 0;
  transition: transform 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-media-wrap {
  position: relative;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--surface-2);
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(28, 42, 35, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 23px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 23px;
}

.product-soldout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 42, 35, 0.35);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.quick-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(28, 42, 35, 0.14);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.quick-add .icon {
  width: 18px;
  height: 18px;
}

.product-card:hover .quick-add,
.quick-add:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.quick-add:hover {
  background: var(--brand);
  color: var(--cream);
}

.product-body {
  padding: 14px 3px 0;
}

.product-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sub {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-price del {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
}

.product-sales {
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

.editorial {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  margin-top: 76px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  overflow: hidden;
}

.editorial-media {
  position: relative;
  min-height: 460px;
  background: var(--surface-2);
}

.editorial-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(8px);
}

.editorial-badge span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.editorial-badge strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}

.editorial-card {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(29, 77, 58, 0.9);
  color: var(--cream);
  backdrop-filter: blur(10px);
}

.editorial-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 242, 230, 0.12);
}

.editorial-card .icon {
  width: 18px;
  height: 18px;
}

.editorial-card small {
  display: block;
  color: rgba(247, 242, 230, 0.55);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.editorial-card strong {
  font-size: 12px;
  font-weight: 500;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px;
}

.editorial-copy h2 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.32;
}

.editorial-copy p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

.editorial-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 24px 0 30px;
}

.editorial-points span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.editorial-points .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 82px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.manifesto-num {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.manifesto-item h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.manifesto-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   商品列表
   -------------------------------------------------------------------------- */

.shop-head {
  max-width: 760px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(480px, 100%);
  height: 48px;
  padding: 0 7px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
}

.shop-search .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.shop-search .btn {
  height: 36px;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.shop-sort .icon {
  width: 16px;
  height: 16px;
}

.shop-sort label {
  color: var(--muted-2);
}

.shop-sort select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  font-size: 12px;
  outline: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-pill span {
  color: var(--muted-2);
  font-size: 10px;
}

.filter-pill:hover {
  border-color: var(--brand-3);
}

.filter-pill.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--cream);
}

.filter-pill.active span {
  color: rgba(247, 242, 230, 0.6);
}

.result-count {
  color: var(--muted);
  font-size: 11.5px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #77551f;
  font-size: 12px;
}

.search-chip .icon {
  width: 14px;
  height: 14px;
}

.search-chip a {
  margin-left: 4px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   商品详情
   -------------------------------------------------------------------------- */

.detail-container {
  padding-bottom: 40px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 62px;
  padding-top: 22px;
}

.detail-gallery {
  position: sticky;
  top: 106px;
  align-self: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--surface-2);
  overflow: hidden;
}

.gallery-zoom {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.gallery-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.gallery-count {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(28, 42, 35, 0.38);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery-thumb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}

.gallery-thumb .thumb-img {
  display: block;
  aspect-ratio: 1.3;
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  color: var(--brand);
}

.gallery-thumb.active .thumb-img {
  border-color: var(--brand);
}

.detail-info {
  padding-top: 12px;
}

.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-tags span {
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.detail-tags .detail-category {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-info h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.detail-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.detail-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.stars {
  color: #c08d44;
  font-size: 12px;
  letter-spacing: 2px;
}

.stock-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
}

.stock-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-3);
}

.stock-dot.low {
  color: var(--danger);
}

.stock-dot.low::before {
  background: var(--danger);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price strong {
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.detail-price del {
  color: var(--muted-2);
  font-size: 13px;
}

.save-tag {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: #805b22;
  font-size: 10px;
  font-weight: 600;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.spec-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.spec-name {
  width: 46px;
  flex: 0 0 auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-options button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.spec-options button:hover {
  border-color: var(--brand-3);
}

.spec-options button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.detail-buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.detail-actions {
  display: flex;
  flex: 1;
  gap: 10px;
}

.detail-actions .btn {
  flex: 1;
  padding: 0 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.service-grid .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.detail-accordion {
  margin-top: 8px;
}

.detail-accordion details {
  border-bottom: 1px solid var(--line);
}

.detail-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.detail-accordion summary::-webkit-details-marker {
  display: none;
}

.detail-accordion summary span {
  color: var(--muted);
  transition: transform 0.25s;
}

.detail-accordion details[open] summary span {
  transform: rotate(180deg);
}

.detail-accordion summary .icon {
  width: 16px;
  height: 16px;
}

.accordion-body {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
}

.accordion-body p + p {
  margin-top: 10px;
}

.related-section {
  margin-top: 60px;
}

/* --------------------------------------------------------------------------
   购物车
   -------------------------------------------------------------------------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 378px;
  gap: 30px;
  align-items: start;
}

.cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.6);
  font-size: 12.5px;
}

.cart-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.cart-toolbar-note .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 22px 92px minmax(0, 1fr) 88px 118px 82px 26px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.cart-check {
  align-self: center;
}

.cart-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info {
  min-width: 0;
}

.cart-name {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-spec {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-stock {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.cart-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
}

.cart-price del {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.cart-qty {
  justify-self: start;
}

.cart-line-total {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  transition: background 0.2s, color 0.2s;
}

.cart-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.cart-remove .icon {
  width: 15px;
  height: 15px;
}

.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 11px;
}

.cart-aside {
  position: sticky;
  top: 102px;
}

.summary-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-card h3 {
  margin: 9px 0 20px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-row strong {
  color: var(--ink-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary-row.discount strong {
  color: var(--danger);
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-total span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.summary-total strong {
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.summary-card .btn-block {
  margin-top: 20px;
}

.summary-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

.summary-tip .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.summary-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.summary-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summary-badges .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   结算
   -------------------------------------------------------------------------- */

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 11px;
}

.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.checkout-steps i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  font-size: 9.5px;
}

.checkout-steps i .icon {
  width: 11px;
  height: 11px;
}

.checkout-steps span.done {
  color: var(--brand);
}

.checkout-steps span.done i {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--cream);
}

.checkout-steps span.current {
  color: var(--ink);
  font-weight: 600;
}

.checkout-steps span.current i {
  border-color: var(--brand);
  color: var(--brand);
}

.checkout-steps em {
  width: 28px;
  height: 1px;
  background: var(--line);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 378px;
  gap: 30px;
  align-items: start;
  padding-top: 26px;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.panel-head h3 .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-3);
}

.panel-note {
  color: var(--muted-2);
  font-size: 10.5px;
}

.panel-empty {
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.address-panel .panel-head {
  margin-bottom: 14px;
}

.address-card {
  padding: 4px 0;
}

.address-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.address-top strong {
  font-size: 14.5px;
  font-weight: 600;
}

.address-top > span {
  color: var(--muted);
  font-size: 12px;
}

.address-top em {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #805b22;
  font-size: 9px;
  font-style: normal;
}

.address-card p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.address-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
}

.address-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
}

.address-empty strong {
  display: block;
  font-size: 13px;
}

.address-empty p {
  color: var(--muted);
  font-size: 11px;
}

.address-empty .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.delivery-option:hover {
  border-color: var(--line-strong);
}

.delivery-option.selected {
  border-color: var(--brand);
  background: var(--brand-mist);
}

.delivery-option.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--surface);
  color: var(--brand);
}

.delivery-icon .icon {
  width: 19px;
  height: 19px;
}

.delivery-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.delivery-copy strong {
  font-size: 13px;
  font-weight: 600;
}

.delivery-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.delivery-copy em {
  color: var(--muted-2);
  font-size: 9.5px;
  font-style: normal;
}

.delivery-fee {
  margin-left: auto;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.pickup-info {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-soft);
}

.pickup-info > .icon {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.pickup-info div {
  display: flex;
  flex-direction: column;
}

.pickup-info strong {
  font-size: 11.5px;
  font-weight: 600;
}

.pickup-info span {
  color: var(--muted);
  font-size: 9.5px;
}

.checkout-items,
.order-detail-items {
  display: flex;
  flex-direction: column;
}

.checkout-item,
.order-detail-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.checkout-item:first-child,
.order-detail-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.checkout-thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checkout-item-info a {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item-info span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-item-price {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.checkout-item > strong,
.order-detail-item > strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.textarea {
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.7;
  outline: 0;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}

.textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--brand-mist);
}

.wechat-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wechat);
  color: #fff;
}

.wechat-logo .icon {
  width: 22px;
  height: 22px;
}

.pay-method div {
  display: flex;
  flex-direction: column;
}

.pay-method strong {
  font-size: 13px;
}

.pay-method small {
  color: var(--muted);
  font-size: 10px;
}

.radio-dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
}

.radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.secure-note .icon {
  width: 13px;
  height: 13px;
}

.checkout-aside {
  position: sticky;
  top: 102px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-help {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.checkout-help strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.checkout-mobile-bar {
  display: none;
}

.cart-mobile-bar {
  display: none;
}

/* --------------------------------------------------------------------------
   支付
   -------------------------------------------------------------------------- */

.pay-page {
  background:
    radial-gradient(720px 460px at 50% 0%, rgba(211, 226, 206, 0.65), transparent 68%),
    var(--bg);
}

.pay-container {
  max-width: 600px;
  padding-top: 48px;
}

.pay-head {
  text-align: center;
  margin-bottom: 28px;
}

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

.pay-head .eyebrow::before {
  display: none;
}

.pay-head h1 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pay-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.pay-card {
  padding: 26px 32px 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.pay-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pay-order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pay-order-product img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
}

.pay-order-product div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pay-order-product strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-order-product span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.pay-amount {
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pay-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 4px;
}

.qr-frame {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 40, 30, 0.08);
}

.pay-qr {
  width: 214px;
  height: 214px;
}

.pay-qr svg {
  width: 100%;
  height: 100%;
}

.qr-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 11px;
}

.qr-fallback .icon {
  width: 40px;
  height: 40px;
  color: var(--wechat);
}

.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--wechat);
  opacity: 0.55;
}

.qr-tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.qr-tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.qr-bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.qr-br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.pay-countdown {
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.pay-countdown strong {
  color: var(--brand);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pay-countdown strong.urgent {
  color: var(--danger);
}

.pay-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.wechat-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7, 193, 96, 0.1);
  color: var(--wechat);
}

.wechat-round .icon {
  width: 18px;
  height: 18px;
}

.demo-pay {
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
}

.demo-pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.demo-pay-note .icon {
  width: 13px;
  height: 13px;
}

.demo-pay .btn {
  width: 100%;
  margin-top: 12px;
}

.pay-expired {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
}

.pay-expired > .icon {
  width: 38px;
  height: 38px;
  color: var(--muted);
}

.pay-expired h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.pay-expired p {
  color: var(--muted);
  font-size: 11.5px;
}

.pay-expired .btn {
  margin-top: 8px;
}

.pay-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.pay-footer-actions a:hover {
  color: var(--brand);
}

.pay-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 9.5px;
}

.pay-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pay-assurance .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.pay-result-body {
  background:
    radial-gradient(700px 460px at 50% 6%, rgba(214, 231, 208, 0.7), transparent 66%),
    var(--bg);
}

.pay-result-container {
  max-width: 560px;
  padding-top: 62px;
  text-align: center;
}

.success-card {
  padding: 44px 40px 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--wechat);
  color: #fff;
  box-shadow: 0 14px 30px rgba(7, 193, 96, 0.24);
  animation: pop-in 0.55s var(--ease);
}

.success-mark .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

.success-card h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
}

.success-card > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.success-amount {
  margin: 24px 0 20px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.success-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.success-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
}

.success-info span {
  color: var(--muted);
}

.success-info strong {
  font-weight: 600;
}

.success-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.success-actions .btn {
  flex: 1;
}

.success-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.success-note .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.success-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.success-product img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.status-panel {
  padding: 46px;
  text-align: center;
}

.status-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.status-panel-icon.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-panel-icon .icon {
  width: 28px;
  height: 28px;
}

.status-panel h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.status-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   订单列表 / 订单详情
   -------------------------------------------------------------------------- */

.order-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.order-tabs::-webkit-scrollbar {
  display: none;
}

.order-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.order-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
}

.order-tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.order-tab.active {
  background: var(--brand);
  color: var(--cream);
}

.order-tab.active span {
  background: rgba(247, 242, 230, 0.18);
  color: var(--cream);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.order-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 232, 0.5);
}

.order-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 10.5px;
}

.order-no {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.order-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 26px;
  padding: 18px 22px;
  align-items: center;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.order-thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.order-item-info a {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-info span {
  color: var(--muted);
  font-size: 9.5px;
}

.order-item-price {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 12px;
  white-space: nowrap;
}

.order-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.order-summary span {
  color: var(--muted);
  font-size: 9.5px;
}

.order-summary strong {
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.order-summary small {
  color: var(--muted-2);
  font-size: 9px;
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}

.order-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.order-delivery .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.order-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 30px 34px;
  border-radius: 24px;
  background: linear-gradient(120deg, #1a4432, #2a5e42);
  color: var(--cream);
  overflow: hidden;
}

.order-hero.tone-amber { background: linear-gradient(120deg, #4a3a20, #7d5b2a); }
.order-hero.tone-blue { background: linear-gradient(120deg, #1e3b4a, #315c70); }
.order-hero.tone-purple { background: linear-gradient(120deg, #342c4b, #554573); }
.order-hero.tone-gray { background: linear-gradient(120deg, #353b36, #555d55); }
.order-hero.tone-red { background: linear-gradient(120deg, #4d2b24, #7a4537); }

.order-hero-glow {
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.order-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 242, 230, 0.2);
  border-radius: 50%;
  background: rgba(247, 242, 230, 0.1);
}

.order-hero-icon .icon {
  width: 26px;
  height: 26px;
}

.order-hero-copy {
  position: relative;
  z-index: 1;
}

.order-hero .eyebrow {
  color: rgba(247, 242, 230, 0.55);
}

.order-hero .eyebrow::before {
  display: none;
}

.order-hero h1 {
  margin: 4px 0 2px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
}

.order-hero-copy p {
  color: rgba(247, 242, 230, 0.68);
  font-size: 11.5px;
}

.order-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  margin-left: auto;
}

.order-hero-actions .btn-primary {
  background: var(--cream);
  color: var(--brand);
}

.order-hero-actions .btn-ghost {
  border-color: rgba(247, 242, 230, 0.3);
  background: transparent;
  color: var(--cream);
}

.order-hero-actions .btn-ghost:hover {
  background: rgba(247, 242, 230, 0.12);
  color: #fff;
}

.tracking-panel {
  margin-top: 14px;
}

.tracking-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.tracking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.tracking-icon .icon {
  width: 19px;
  height: 19px;
}

.tracking-head > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.tracking-head span {
  color: var(--muted);
  font-size: 9.5px;
}

.tracking-head strong {
  font-size: 12.5px;
  font-weight: 600;
}

.tracking-head .text-button {
  margin-left: auto;
}

.tracking-steps {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 82px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}

.tracking-step i {
  width: 9px;
  height: 9px;
  margin-bottom: 5px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.tracking-step.done {
  color: var(--brand);
}

.tracking-step.done i {
  border-color: var(--brand);
  background: var(--brand);
}

.tracking-step small {
  font-size: 8.5px;
  opacity: 0.75;
}

.tracking-line {
  flex: 1;
  height: 1px;
  margin-top: 4px;
  background: var(--line);
}

.tracking-line.done {
  background: var(--brand-2);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.order-detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline {
  position: relative;
  padding-left: 2px;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 13px;
  padding-bottom: 18px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline i {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.timeline li.current i {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.timeline div {
  display: flex;
  flex-direction: column;
}

.timeline strong {
  font-size: 11.5px;
  font-weight: 500;
}

.timeline span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.order-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.order-delivery-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-delivery-row .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.amount-panel .summary-total {
  margin-top: 8px;
}

.amount-panel .summary-total strong {
  font-size: 26px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10.5px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  color: var(--muted);
  white-space: nowrap;
}

.info-row strong {
  max-width: 200px;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.order-help-card {
  display: flex;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.order-help-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
}

.order-help-card .icon {
  width: 18px;
  height: 18px;
}

.order-help-card strong {
  font-size: 12px;
}

.order-help-card p {
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   地址
   -------------------------------------------------------------------------- */

.address-container {
  max-width: 1000px;
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.address-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.address-tile:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.address-tile.is-default {
  border-color: var(--brand-3);
}

.address-tile-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.address-tile-top strong {
  font-size: 15px;
  font-weight: 600;
}

.address-tile-top > span {
  color: var(--muted);
  font-size: 11.5px;
}

.address-tile-top em {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #805b22;
  font-size: 9px;
  font-style: normal;
}

.address-tile p {
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.address-tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.address-tile-actions > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.address-current {
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
}

.address-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.address-add-tile .icon {
  width: 26px;
  height: 26px;
}

.address-add-tile:hover {
  border-color: var(--brand);
  background: rgba(255, 253, 247, 0.6);
  color: var(--brand);
}

.address-form-container {
  max-width: 860px;
}

.address-form {
  padding: 30px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.field > span em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 12.5px;
  outline: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(29, 77, 58, 0.08);
}

.field input::placeholder {
  color: var(--muted-2);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c857c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-options button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 11.5px;
}

.tag-options button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.switch-field input:checked + .switch {
  background: var(--brand);
}

.switch-field input:checked + .switch::after {
  transform: translateX(16px);
}

.switch-field > span:last-child {
  display: flex;
  flex-direction: column;
}

.switch-field strong {
  font-size: 11.5px;
  font-weight: 600;
}

.switch-field small {
  color: var(--muted);
  font-size: 9.5px;
}

.form-error {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11.5px;
}

.address-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   个人中心
   -------------------------------------------------------------------------- */

.profile-container {
  padding-top: 34px;
}

.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 38px 40px;
  border-radius: 28px;
  background:
    radial-gradient(500px 280px at 88% 20%, rgba(201, 154, 75, 0.2), transparent 70%),
    linear-gradient(120deg, #173b2c, #2a5a41);
  color: var(--cream);
  overflow: hidden;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 242, 230, 0.3);
  border-radius: 50%;
  background: rgba(247, 242, 230, 0.1);
  font-family: var(--font-serif);
  font-size: 34px;
}

.profile-identity {
  position: relative;
  z-index: 1;
}

.profile-hero .eyebrow {
  color: rgba(247, 242, 230, 0.5);
  font-size: 9px;
}

.profile-hero .eyebrow::before {
  display: none;
}

.profile-identity h1 {
  margin: 3px 0 2px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}

.profile-identity p {
  color: rgba(247, 242, 230, 0.62);
  font-size: 11.5px;
}

.member-chip,
.admin-chip {
  display: inline-flex;
  margin-top: 9px;
  padding: 3px 9px;
  border: 1px solid rgba(230, 200, 143, 0.4);
  border-radius: 999px;
  color: #e6c88f;
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.admin-chip {
  border-color: rgba(247, 242, 230, 0.3);
  color: rgba(247, 242, 230, 0.8);
}

.profile-hero-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.profile-hero-actions .btn-outline {
  border-color: rgba(247, 242, 230, 0.32);
  color: var(--cream);
}

.profile-hero-actions .btn-outline:hover {
  background: rgba(247, 242, 230, 0.12);
  border-color: rgba(247, 242, 230, 0.5);
  color: #fff;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 14px;
  padding: 18px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.profile-stats a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-left: 1px solid var(--line);
  transition: color 0.2s;
}

.profile-stats a:first-child {
  border-left: 0;
}

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

.profile-stats strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.profile-stats span {
  color: var(--muted);
  font-size: 9.5px;
}

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

.profile-menu {
  padding: 10px 24px;
}

.profile-menu .panel-head {
  margin: 12px 0 6px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  transition: color 0.2s;
}

.menu-row:first-of-type {
  border-top: 0;
}

.menu-row > .icon:first-child {
  width: 19px;
  height: 19px;
  color: var(--brand-3);
}

.menu-row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.menu-row strong {
  font-size: 12.5px;
  font-weight: 600;
}

.menu-row small {
  color: var(--muted);
  font-size: 9.5px;
}

.menu-row > .icon:last-child {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.menu-row:hover {
  color: var(--brand);
}

.menu-row.danger:hover {
  color: var(--danger);
}

.profile-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(260px 200px at 88% 22%, rgba(230, 200, 143, 0.28), transparent 70%),
    linear-gradient(130deg, #2c3a30, #475c47);
  color: var(--cream);
  overflow: hidden;
}

.member-card .eyebrow {
  color: rgba(230, 200, 143, 0.85);
  font-size: 8.5px;
}

.member-card .eyebrow::before {
  display: none;
}

.member-card h3 {
  margin-top: 9px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.member-card p {
  position: relative;
  z-index: 1;
  max-width: 240px;
  margin-top: 8px;
  color: rgba(247, 242, 230, 0.6);
  font-size: 10.5px;
  line-height: 1.8;
}

.member-code {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: rgba(247, 242, 230, 0.42);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.member-leaf {
  position: absolute;
  right: -12px;
  bottom: -18px;
  color: rgba(247, 242, 230, 0.08);
  transform: rotate(-12deg);
}

.member-leaf .icon {
  width: 150px;
  height: 150px;
}

.profile-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.profile-note strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.profile-note strong .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.profile-note span {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */

.auth-body {
  background: var(--bg);
}

.auth-page {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 54px 32px;
  background:
    radial-gradient(620px 480px at 72% 32%, rgba(146, 185, 141, 0.25), transparent 60%),
    linear-gradient(135deg, #15372a, #234f3a 58%, #3a674c);
  color: var(--cream);
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(140deg, #000, transparent 72%);
}

.auth-visual-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  color: var(--cream);
}

.auth-brand .brand-mark rect {
  fill: rgba(247, 242, 230, 0.12);
}

.auth-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.auth-brand strong {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.16em;
}

.auth-brand small {
  margin-top: 3px;
  color: rgba(247, 242, 230, 0.45);
  font-size: 7.5px;
  letter-spacing: 0.2em;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(247, 242, 230, 0.6);
  font-size: 10.5px;
}

.auth-back:hover {
  color: var(--cream);
}

.auth-back .icon {
  width: 13px;
  height: 13px;
}

.auth-visual-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin-top: 9vh;
}

.auth-visual-copy .eyebrow {
  color: rgba(230, 200, 143, 0.85);
  font-size: 9px;
}

.auth-visual-copy .eyebrow::before {
  display: none;
}

.auth-visual-copy h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.auth-visual-copy h1 em {
  color: #e6c88f;
  font-style: normal;
}

.auth-visual-copy p {
  margin-top: 20px;
  color: rgba(247, 242, 230, 0.62);
  font-size: 12.5px;
  line-height: 1.9;
}

.auth-visual-image {
  position: relative;
  z-index: 2;
  width: 270px;
  margin: auto 0 0 auto;
  transform: rotate(-4deg);
}

.auth-visual-image > img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(8, 24, 16, 0.3);
}

.auth-float-card {
  position: absolute;
  left: -80px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(247, 242, 230, 0.16);
  border-radius: 13px;
  background: rgba(21, 55, 42, 0.88);
  backdrop-filter: blur(12px);
}

.auth-float-card > span {
  display: inline-flex;
  color: #e6c88f;
}

.auth-float-card .icon {
  width: 18px;
  height: 18px;
}

.auth-float-card div {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.auth-float-card strong {
  font-size: 11.5px;
  font-weight: 600;
}

.auth-float-card small {
  color: rgba(247, 242, 230, 0.5);
  font-size: 8.5px;
}

.auth-visual-foot {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 26px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 242, 230, 0.12);
  color: rgba(247, 242, 230, 0.5);
  font-size: 9.5px;
}

.auth-visual-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-visual-foot .icon {
  width: 13px;
  height: 13px;
  color: rgba(230, 200, 143, 0.8);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-mobile-head {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card > .eyebrow {
  font-size: 9px;
}

.auth-card > .eyebrow::before {
  display: none;
}

.auth-card h2 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.auth-tabs {
  display: flex;
  gap: 26px;
  margin: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.auth-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.auth-tabs button.active {
  color: var(--ink);
}

.auth-tabs button.active::after {
  transform: scaleX(1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-form .field > span {
  font-size: 10.5px;
}

.auth-form .field input {
  height: 48px;
}

.auth-form .btn {
  margin-top: 7px;
}

.demo-box {
  margin-top: 22px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.55);
}

.demo-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.demo-box-head strong {
  font-size: 10.5px;
  font-weight: 600;
}

.demo-box-head span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.demo-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: background 0.2s;
}

.demo-account:hover {
  background: var(--surface);
}

.demo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.demo-avatar.admin {
  background: var(--gold-soft);
  color: #805b22;
}

.demo-avatar .icon {
  width: 15px;
  height: 15px;
}

.demo-account > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.demo-account strong {
  font-size: 10.5px;
  font-weight: 600;
}

.demo-account small {
  color: var(--muted);
  font-size: 9px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.demo-account > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.auth-legal {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   管理后台
   -------------------------------------------------------------------------- */

.admin-body {
  background: #f2eee4;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 20px;
  background:
    radial-gradient(420px 300px at 30% 0%, rgba(146, 185, 141, 0.14), transparent 70%),
    #17392b;
  color: rgba(247, 242, 230, 0.7);
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 26px;
  color: var(--cream);
}

.admin-brand .brand-mark {
  width: 38px;
  height: 38px;
  color: var(--cream);
}

.admin-brand .brand-mark rect {
  fill: rgba(247, 242, 230, 0.12);
}

.admin-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.admin-brand strong {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.1em;
}

.admin-brand small {
  margin-top: 4px;
  color: rgba(247, 242, 230, 0.4);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  color: rgba(247, 242, 230, 0.62);
  font-size: 12.5px;
  transition: background 0.2s, color 0.2s;
}

.admin-nav a .icon {
  width: 18px;
  height: 18px;
}

.admin-nav a:hover {
  background: rgba(247, 242, 230, 0.06);
  color: var(--cream);
}

.admin-nav a.active {
  background: rgba(247, 242, 230, 0.1);
  color: var(--cream);
  box-shadow: inset 2px 0 0 #d7b06a;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}

.admin-store-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 242, 230, 0.1);
  border-radius: 9px;
  color: rgba(247, 242, 230, 0.55);
  font-size: 10px;
}

.admin-store-link .icon {
  width: 14px;
  height: 14px;
}

.admin-store-link .icon:last-child {
  margin-left: auto;
}

.admin-store-link:hover {
  color: var(--cream);
  border-color: rgba(247, 242, 230, 0.25);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 8px;
  border-top: 1px solid rgba(247, 242, 230, 0.1);
}

.admin-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(247, 242, 230, 0.12);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 14px;
}

.admin-user div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.admin-user strong {
  overflow: hidden;
  color: var(--cream);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: rgba(247, 242, 230, 0.4);
  font-size: 8.5px;
}

.admin-user .icon-btn {
  width: 30px;
  height: 30px;
  color: rgba(247, 242, 230, 0.5);
}

.admin-user .icon-btn:hover {
  background: rgba(247, 242, 230, 0.1);
  color: var(--cream);
}

.admin-user .icon-btn .icon {
  width: 15px;
  height: 15px;
}

.admin-main {
  min-width: 0;
  padding: 34px 38px 60px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-topbar .eyebrow {
  font-size: 8.5px;
}

.admin-topbar .eyebrow::before {
  display: none;
}

.admin-topbar h1 {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.admin-topbar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-date {
  color: var(--muted);
  font-size: 10.5px;
}

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

.stat-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.stat-card-top i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.stat-card-top .icon {
  width: 15px;
  height: 15px;
}

.stat-card > strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-card > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.stat-accent {
  border-color: transparent;
  background:
    radial-gradient(280px 180px at 88% 0%, rgba(201, 154, 75, 0.24), transparent 70%),
    linear-gradient(130deg, #173d2d, #2a5c41);
  color: var(--cream);
}

.stat-accent .stat-card-top {
  color: rgba(247, 242, 230, 0.6);
}

.stat-accent .stat-card-top i {
  background: rgba(247, 242, 230, 0.1);
  color: #e6c88f;
}

.stat-accent > small {
  color: rgba(247, 242, 230, 0.5);
}

.stat-spark {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  opacity: 0.55;
}

.stat-spark span {
  width: 4px;
  border-radius: 2px;
  background: rgba(230, 200, 143, 0.7);
}

.stat-spark span:nth-child(1) { height: 9px; }
.stat-spark span:nth-child(2) { height: 15px; }
.stat-spark span:nth-child(3) { height: 11px; }
.stat-spark span:nth-child(4) { height: 21px; }
.stat-spark span:nth-child(5) { height: 17px; }
.stat-spark span:nth-child(6) { height: 26px; }
.stat-spark span:nth-child(7) { height: 22px; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.admin-panel-head .eyebrow {
  font-size: 8px;
}

.admin-panel-head .eyebrow::before {
  display: none;
}

.admin-panel-head h2 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.admin-panel-head .text-link {
  font-size: 10px;
}

.admin-panel-head .text-link .icon {
  width: 13px;
  height: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.admin-table th {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 232, 0.6);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.admin-table tbody tr:hover {
  background: rgba(248, 243, 232, 0.4);
}

.table-link {
  display: block;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9.5px;
  font-weight: 600;
}

.table-link:hover {
  color: var(--brand);
}

.table-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-family: var(--font-sans);
  font-weight: 400;
}

.table-amount {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.table-time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.table-product {
  color: var(--ink-soft);
  font-weight: 500;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.stock-list {
  display: flex;
  flex-direction: column;
  padding: 0 14px;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}

.stock-row:first-child {
  border-top: 0;
}

.stock-row img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.stock-row div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.stock-row strong {
  font-size: 10px;
  font-weight: 500;
}

.stock-row span {
  color: var(--muted);
  font-size: 8.5px;
}

.stock-row em {
  color: var(--amber);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.stock-row em.danger {
  color: var(--danger);
}

.stock-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 16px 16px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 8.5px;
}

.stock-tip .icon {
  width: 12px;
  height: 12px;
}

.admin-empty {
  padding: 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
}

.admin-empty-state .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--line-strong);
}

.admin-empty-state h3 {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.admin-empty-state p {
  margin-top: 4px;
  font-size: 10.5px;
}

.admin-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.quick-card:hover {
  border-color: var(--brand-3);
  transform: translateY(-2px);
}

.quick-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.quick-card > span .icon {
  width: 18px;
  height: 18px;
}

.quick-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.quick-card strong {
  font-size: 11px;
  font-weight: 600;
}

.quick-card small {
  color: var(--muted);
  font-size: 9px;
}

.quick-card > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.admin-filter-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.admin-filter-tabs a {
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.admin-filter-tabs a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.admin-filter-tabs a.active {
  background: var(--brand);
  color: var(--cream);
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.admin-search .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.admin-search input {
  width: 190px;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 10.5px;
}

.admin-search .btn {
  height: 28px;
  padding: 0 11px;
  font-size: 9.5px;
}

.products-toolbar {
  align-items: flex-end;
}

.admin-toolbar-title .eyebrow {
  font-size: 8px;
}

.admin-toolbar-title .eyebrow::before {
  display: none;
}

.admin-toolbar-title h2 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.admin-toolbar-title h2 small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
}

.orders-table th:last-child,
.orders-table td:last-child,
.products-table th:last-child,
.products-table td:last-child {
  padding-right: 20px;
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.table-product-cell img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.table-product-cell div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-product-cell strong {
  font-size: 10.5px;
  font-weight: 500;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
}

.stock-badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.stock-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill-on,
.pill-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8.5px;
  font-weight: 600;
}

.pill-on::before,
.pill-off::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.pill-off {
  background: #efede7;
  color: #777d74;
}

.admin-denied {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
}

.admin-denied-card {
  width: min(460px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.admin-denied-card h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}

.admin-denied-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.admin-denied-account {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
}

.admin-denied-account > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #805b22;
}

.admin-denied-account .icon {
  width: 17px;
  height: 17px;
}

.admin-denied-account div {
  display: flex;
  flex-direction: column;
}

.admin-denied-account strong {
  font-size: 11.5px;
}

.admin-denied-account small {
  color: var(--muted);
  font-size: 9.5px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.admin-denied-actions {
  display: flex;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   弹窗 / Toast / 表单辅助
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 28, 21, 0.46);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s;
  overflow-y: auto;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal {
  width: min(540px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s var(--ease);
}

.modal-backdrop.show .modal {
  transform: translateY(0) scale(1);
}

.modal-sm {
  width: min(440px, 100%);
}

.modal-lg {
  width: min(720px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 14px;
}

.modal-head h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -4px -6px 0 0;
}

.modal-close .icon {
  width: 17px;
  height: 17px;
}

.modal-body {
  padding: 4px 24px 22px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(248, 243, 232, 0.5);
}

.confirm-text {
  padding: 4px 0 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.modal-empty {
  padding: 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.modal-address-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  margin: -4px 0 0;
  overflow-y: auto;
}

.modal-address {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.modal-address:hover {
  border-color: var(--line-strong);
}

.modal-address.active {
  border-color: var(--brand);
  background: var(--brand-mist);
}

.modal-address-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-address-top strong {
  font-size: 12.5px;
  font-weight: 600;
}

.modal-address-top > span {
  color: var(--muted);
  font-size: 10px;
}

.modal-address-top em {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #805b22;
  font-size: 8.5px;
  font-style: normal;
}

.modal-address-line {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.modal-address-check {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--brand);
}

.modal-address-check .icon {
  width: 16px;
  height: 16px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.stack-form .form-grid {
  margin-bottom: 0;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
}

.form-hint .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  cursor: pointer;
}

.check-line input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
}

.refund-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: #77551f;
  font-size: 9.5px;
  line-height: 1.7;
}

.refund-warning .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.image-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.image-option {
  position: relative;
  cursor: pointer;
}

.image-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.image-option > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  transition: border-color 0.2s;
}

.image-option img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-option small {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.image-option input:checked + span {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

#toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(86vw, 420px);
  padding: 10px 16px;
  border: 1px solid rgba(247, 242, 230, 0.12);
  border-radius: 999px;
  background: rgba(23, 57, 43, 0.95);
  color: var(--cream);
  font-size: 11.5px;
  box-shadow: 0 12px 30px rgba(15, 28, 21, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .icon {
  width: 15px;
  height: 15px;
  color: #9cc9a8;
}

.toast.error .icon {
  color: #e6b09e;
}

/* --------------------------------------------------------------------------
   加载 / 空状态 / 辅助
   -------------------------------------------------------------------------- */

.boot-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100vh;
  color: var(--muted);
}

.boot-mark {
  width: 54px;
  height: 54px;
}

.boot-mark svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.boot-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.boot-word span {
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 7.5px;
  letter-spacing: 0.24em;
}

.boot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}

.boot-error h1 {
  font-family: var(--font-serif);
  font-size: 32px;
}

.boot-error p {
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(29, 77, 58, 0.18);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-light {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
}

.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  text-align: center;
}

.empty-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted-2);
}

.empty-art .icon {
  width: 32px;
  height: 32px;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.empty-state p {
  max-width: 380px;
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.narrow-container {
  max-width: 760px;
  padding-top: 50px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-media {
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--surface-2), #fdf9ef, var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-2);
}

.skeleton-line.short {
  width: 60%;
}

.noscript {
  display: block;
  padding: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .container {
    width: calc(100% - 48px);
  }

  .header-inner {
    gap: 22px;
  }

  .main-nav {
    gap: 22px;
  }

  .header-search {
    width: 200px;
  }

  .header-search:focus-within {
    width: 230px;
  }

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

  .category-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .category-pill {
    padding: 13px 12px;
  }

  .cat-icon {
    width: 38px;
    height: 38px;
  }

  .cat-copy strong {
    font-size: 12px;
  }

  .hero {
    padding: 50px 44px 44px;
  }

  .hero-card-a {
    width: 270px;
  }

  .hero-card-b {
    width: 168px;
  }

  .detail-grid {
    gap: 40px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
  }

  .cart-item {
    grid-template-columns: 22px 80px minmax(0, 1fr) 76px 106px 74px 24px;
    gap: 12px;
    padding: 15px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-main {
    padding: 30px 26px 50px;
  }

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

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .header-search {
    width: 220px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 44px 38px 38px;
    gap: 28px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-art {
    min-height: 360px;
    margin-top: 6px;
  }

  .hero-card-a {
    width: 300px;
    right: 4%;
    top: 0;
  }

  .hero-card-b {
    width: 190px;
    left: 4%;
    bottom: 0;
  }

  .hero-meta {
    padding-top: 32px;
  }

  .category-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    min-width: 188px;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-media {
    min-height: 340px;
  }

  .editorial-copy {
    padding: 38px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-gallery {
    position: static;
    max-width: 620px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-aside,
  .checkout-aside {
    position: static;
  }

  .checkout-aside {
    display: none;
  }

  .checkout-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 247, 0.96);
    backdrop-filter: blur(14px);
  }

  .checkout-mobile-bar > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }

  .checkout-mobile-bar span {
    color: var(--muted);
    font-size: 10px;
  }

  .checkout-mobile-bar strong {
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
  }

  .checkout-mobile-bar small {
    color: var(--muted-2);
    font-size: 8.5px;
  }

  .checkout-mobile-bar .btn {
    height: 44px;
    padding: 0 28px;
  }

  .checkout-page {
    padding-bottom: 90px;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .order-help-card {
    grid-column: 1 / -1;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-quick {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .admin-brand {
    padding: 0;
    margin-right: auto;
  }

  .admin-nav {
    order: 3;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(247, 242, 230, 0.1);
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav a {
    height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .admin-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
  }

  .admin-store-link {
    display: none;
  }

  .admin-user {
    margin-top: 0;
    padding: 0;
    border-top: 0;
  }

  .admin-user div {
    display: none;
  }

  .admin-main {
    padding: 26px 20px 50px;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 64px;
  }

  :root {
    --header-h: 64px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .header-search {
    display: none;
  }

  .mobile-search-btn {
    display: inline-flex;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .user-chip {
    height: 36px;
    padding: 0 4px;
    border: 0;
    background: transparent;
  }

  .user-chip-name {
    display: none;
  }

  .header-login {
    height: 34px;
    padding: 0 16px;
    font-size: 12px;
  }

  .cart-count {
    top: 0;
    right: -1px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: stretch;
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 247, 0.96);
    backdrop-filter: blur(16px);
  }

  .bottom-nav a {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted-2);
    font-size: 9.5px;
  }

  .bottom-nav a.active {
    color: var(--brand);
    font-weight: 600;
  }

  .bottom-icon {
    position: relative;
    display: inline-flex;
  }

  .bottom-icon .icon {
    width: 21px;
    height: 21px;
  }

  .bottom-icon .cart-count {
    top: -5px;
    right: -8px;
  }

  .page {
    padding-bottom: 92px;
  }

  .site-footer {
    margin-top: 56px;
    padding: 40px 0 86px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 32px;
  }

  .home-container {
    padding-top: 14px;
  }

  .hero {
    min-height: auto;
    padding: 34px 24px 28px;
    border-radius: 24px;
    gap: 22px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 37px;
  }

  .hero-lead {
    margin-top: 15px;
    font-size: 12.5px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 23px;
    gap: 18px;
  }

  .hero-actions .btn {
    height: 46px;
    padding: 0 20px;
    font-size: 13px;
  }

  .hero-link {
    font-size: 11px;
  }

  .hero-meta {
    gap: 26px;
    padding-top: 26px;
  }

  .hero-meta strong {
    font-size: 18px;
  }

  .hero-art {
    min-height: 270px;
  }

  .hero-card-a {
    width: 218px;
    right: 2%;
    top: 0;
    border-radius: 18px;
  }

  .hero-card-label {
    padding: 8px 5px 3px;
  }

  .hero-card-label strong {
    font-size: 11px;
  }

  .hero-card-label em {
    font-size: 13px;
  }

  .hero-card-b {
    width: 132px;
    left: 1%;
    bottom: 4px;
  }

  .hero-mini-label {
    font-size: 8.5px;
    padding: 6px 2px 0;
  }

  .hero-stamp {
    width: 74px;
    height: 74px;
    right: 0;
    bottom: 0;
  }

  .hero-stamp span {
    font-size: 6px;
  }

  .hero-stamp i {
    font-size: 12px;
  }

  .hero-plus,
  .dot-b {
    display: none;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 14px 0;
    font-size: 10.5px;
  }

  .trust-strip .icon {
    width: 15px;
    height: 15px;
  }

  .section-head {
    align-items: flex-end;
    margin: 44px 0 20px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .section-head .text-link {
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 13px;
  }

  .product-media {
    border-radius: 15px;
  }

  .product-tag {
    top: 8px;
    left: 8px;
    height: 20px;
    padding: 0 7px;
    font-size: 8px;
    line-height: 20px;
  }

  .quick-add {
    width: 34px;
    height: 34px;
    right: 8px;
    bottom: 8px;
    opacity: 1;
    transform: none;
  }

  .quick-add .icon {
    width: 15px;
    height: 15px;
  }

  .product-body {
    padding-top: 10px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-sub {
    font-size: 10px;
  }

  .product-price {
    font-size: 14.5px;
    gap: 5px;
  }

  .product-price del {
    font-size: 9px;
  }

  .product-sales {
    font-size: 8.5px;
  }

  .category-strip {
    margin-right: -16px;
    padding-right: 16px;
  }

  .category-pill {
    min-width: 168px;
    padding: 12px;
    border-radius: 14px;
  }

  .cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .cat-icon .icon {
    width: 18px;
    height: 18px;
  }

  .cat-copy strong {
    font-size: 11.5px;
  }

  .cat-copy small {
    font-size: 9px;
  }

  .cat-arrow {
    display: none;
  }

  .section-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 10px;
  }

  .section-foot .btn {
    width: 100%;
  }

  .editorial {
    margin-top: 44px;
    border-radius: 22px;
  }

  .editorial-media {
    min-height: 260px;
  }

  .editorial-copy {
    padding: 26px 22px;
  }

  .editorial-copy h2 {
    font-size: 25px;
  }

  .editorial-copy p {
    margin-top: 14px;
    font-size: 12px;
  }

  .editorial-badge {
    top: 14px;
    left: 14px;
  }

  .editorial-card {
    left: 14px;
    bottom: 14px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 44px;
    padding-top: 26px;
  }

  .manifesto-item h3 {
    font-size: 19px;
  }

  .page-head {
    padding: 40px 0 24px;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .page-head p {
    font-size: 12px;
  }

  .compact-head {
    padding: 30px 0 22px;
  }

  .compact-head h1 {
    font-size: 32px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
  }

  .shop-search {
    width: 100%;
  }

  .shop-sort {
    justify-content: flex-end;
  }

  .filter-row {
    padding: 16px 0 22px;
  }

  .filter-pills {
    gap: 6px;
  }

  .filter-pill {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .filter-pill span {
    display: none;
  }

  .result-count {
    font-size: 10px;
  }

  .breadcrumb {
    padding-top: 16px;
    gap: 6px;
    font-size: 10.5px;
  }

  .detail-grid {
    padding-top: 14px;
    gap: 24px;
  }

  .gallery-main {
    border-radius: 18px;
  }

  .gallery-tag {
    top: 12px;
    left: 12px;
  }

  .gallery-thumbs {
    gap: 6px;
    margin-top: 6px;
  }

  .gallery-thumb small {
    font-size: 8px;
  }

  .detail-info h1 {
    font-size: 28px;
  }

  .detail-sub {
    font-size: 12px;
  }

  .detail-price {
    margin: 16px 0;
    padding: 14px 0;
  }

  .detail-price strong {
    font-size: 30px;
  }

  .detail-buy-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .detail-qty {
    justify-content: space-between;
  }

  .detail-actions .btn {
    height: 48px;
    font-size: 13px;
  }

  .spec-group {
    gap: 12px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-grid span {
    font-size: 10.5px;
  }

  .related-section {
    margin-top: 40px;
  }

  .cart-item {
    grid-template-columns: 20px 76px minmax(0, 1fr) 24px;
    grid-template-areas:
      "check thumb info remove"
      "check thumb price remove"
      "qty qty qty total";
    gap: 8px 11px;
    padding: 14px;
    border-radius: 16px;
  }

  .cart-check { grid-area: check; align-self: start; margin-top: 3px; }
  .cart-thumb { grid-area: thumb; width: 76px; height: 76px; }
  .cart-info { grid-area: info; }
  .cart-price { grid-area: price; flex-direction: row; align-items: baseline; gap: 6px; font-size: 13px; }
  .cart-qty { grid-area: qty; margin-top: 5px; }
  .cart-line-total { grid-area: total; font-size: 14px; }
  .cart-remove { grid-area: remove; align-self: start; }

  .cart-toolbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .cart-toolbar-note {
    display: none;
  }

  .cart-name {
    font-size: 12.5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .cart-spec {
    white-space: normal;
  }

  .cart-foot {
    display: none;
  }

  .cart-page {
    padding-bottom: 156px;
  }

  .cart-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));
    z-index: 75;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 247, 0.97);
    backdrop-filter: blur(14px);
  }

  .cart-mobile-bar > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }

  .cart-mobile-bar span {
    color: var(--muted);
    font-size: 10px;
  }

  .cart-mobile-bar strong {
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
  }

  .cart-mobile-bar small {
    color: var(--muted-2);
    font-size: 9px;
  }

  .cart-mobile-bar .btn {
    height: 42px;
    padding: 0 26px;
    font-size: 13px;
  }

  .cart-aside .btn-block {
    display: none;
  }

  .summary-card {
    padding: 22px;
  }

  .summary-total strong {
    font-size: 26px;
  }

  .checkout-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0 20px;
  }

  .checkout-steps {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .checkout-steps em {
    flex: 1;
    width: auto;
  }

  .checkout-layout {
    padding-top: 18px;
  }

  .panel {
    padding: 19px 17px;
    border-radius: 16px;
  }

  .panel-head h3 {
    font-size: 13px;
  }

  .address-empty {
    flex-wrap: wrap;
    gap: 12px;
  }

  .address-empty .btn {
    width: 100%;
    margin-left: 0;
  }

  .delivery-option {
    padding: 12px;
    gap: 10px;
  }

  .delivery-icon {
    width: 34px;
    height: 34px;
  }

  .delivery-copy strong {
    font-size: 12px;
  }

  .delivery-copy em {
    display: none;
  }

  .checkout-item,
  .order-detail-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .checkout-thumb {
    width: 48px;
    height: 48px;
  }

  .checkout-item-price {
    display: none;
  }

  .checkout-item > strong,
  .order-detail-item > strong {
    font-size: 12.5px;
  }

  .checkout-item-info a {
    font-size: 11.5px;
  }

  .checkout-mobile-bar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .checkout-mobile-bar strong {
    font-size: 20px;
  }

  .checkout-mobile-bar .btn {
    height: 42px;
    padding: 0 22px;
    font-size: 13px;
  }

  .pay-container {
    padding-top: 26px;
  }

  .pay-head {
    margin-bottom: 20px;
  }

  .pay-head h1 {
    font-size: 30px;
  }

  .pay-card {
    padding: 18px 17px 16px;
    border-radius: 20px;
  }

  .pay-amount {
    font-size: 23px;
  }

  .pay-order-product img {
    width: 40px;
    height: 40px;
  }

  .pay-stage {
    padding-top: 20px;
  }

  .pay-qr {
    width: 190px;
    height: 190px;
  }

  .demo-pay .btn {
    height: 48px;
  }

  .pay-result-container {
    padding-top: 34px;
  }

  .success-card {
    padding: 32px 22px 28px;
    border-radius: 22px;
  }

  .success-card h1 {
    font-size: 28px;
  }

  .success-amount {
    font-size: 36px;
  }

  .success-info div {
    font-size: 10.5px;
  }

  .success-actions {
    flex-direction: column;
  }

  .status-panel {
    padding: 32px 22px;
  }

  .order-tabs {
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  .order-tab {
    height: 34px;
    padding: 0 13px;
    font-size: 11.5px;
  }

  .order-card-head {
    padding: 12px 16px;
  }

  .order-meta {
    gap: 8px;
    font-size: 9.5px;
  }

  .order-no {
    font-size: 9.5px;
  }

  .order-card-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .order-summary {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .order-summary strong {
    margin-left: auto;
    font-size: 19px;
  }

  .order-summary small {
    display: none;
  }

  .order-card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .order-actions {
    justify-content: flex-end;
  }

  .order-hero {
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px;
    border-radius: 18px;
  }

  .order-hero-icon {
    width: 46px;
    height: 46px;
  }

  .order-hero h1 {
    font-size: 24px;
  }

  .order-hero-actions {
    width: 100%;
    margin-left: 0;
  }

  .order-hero-actions .btn {
    flex: 1;
  }

  .tracking-head {
    gap: 10px;
  }

  .tracking-steps {
    margin-top: 16px;
  }

  .tracking-step {
    width: 62px;
    font-size: 8.5px;
  }

  .order-detail-aside {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .address-tile {
    padding: 19px;
  }

  .address-form {
    padding: 20px 17px;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .form-grid {
    gap: 13px;
    margin-bottom: 13px;
  }

  .address-form-actions {
    flex-direction: column-reverse;
  }

  .address-form-actions .btn {
    width: 100%;
  }

  .profile-container {
    padding-top: 18px;
  }

  .profile-hero {
    flex-wrap: wrap;
    gap: 15px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 25px;
  }

  .profile-identity h1 {
    font-size: 25px;
  }

  .profile-identity p {
    font-size: 9.5px;
  }

  .profile-hero-actions {
    width: 100%;
    margin-left: 0;
  }

  .profile-hero-actions .btn {
    flex: 1;
    height: 40px;
    font-size: 11px;
  }

  .profile-stats {
    grid-template-columns: repeat(5, 1fr);
    padding: 14px 0;
  }

  .profile-stats strong {
    font-size: 19px;
  }

  .profile-stats span {
    font-size: 8.5px;
  }

  .profile-aside {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    padding: 8px 18px;
  }

  .member-card {
    padding: 24px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-main {
    padding: 28px 22px 54px;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .auth-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(420px, 100%);
    margin-bottom: 28px;
    padding-top: 4px;
  }

  .auth-mobile-head .auth-brand {
    color: var(--brand);
    gap: 9px;
  }

  .auth-mobile-head .auth-brand .brand-mark {
    width: 34px;
    height: 34px;
    color: var(--brand);
  }

  .auth-mobile-head .auth-brand .brand-mark rect {
    fill: var(--brand);
  }

  .auth-mobile-head .auth-brand strong {
    font-size: 19px;
  }

  .auth-mobile-head .auth-brand small {
    color: var(--muted);
    font-size: 7px;
  }

  .auth-mobile-head .auth-back {
    color: var(--muted);
    font-size: 10.5px;
  }

  .auth-mobile-head .auth-back .icon {
    width: 13px;
    height: 13px;
  }

  .auth-card {
    padding-top: 0;
  }

  .auth-card h2 {
    font-size: 31px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .admin-topbar h1 {
    font-size: 28px;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-main {
    padding: 22px 14px 46px;
  }

  .admin-sidebar {
    padding: 13px 14px;
  }

  .admin-brand .brand-mark {
    width: 32px;
    height: 32px;
  }

  .admin-brand strong {
    font-size: 16px;
  }

  .admin-brand small {
    display: none;
  }

  .admin-nav a {
    height: 36px;
    font-size: 11px;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card > strong {
    font-size: 25px;
  }

  .stat-card-top span {
    font-size: 9px;
  }

  .admin-panel-head {
    padding: 16px 16px 12px;
  }

  .admin-panel-head h2 {
    font-size: 18px;
  }

  .admin-panel-head .text-link {
    font-size: 9px;
  }

  .admin-toolbar {
    padding: 13px 14px;
    align-items: stretch;
  }

  .admin-filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .admin-search {
    width: 100%;
  }

  .admin-search input {
    flex: 1;
    width: auto;
  }

  .admin-quick {
    gap: 10px;
  }

  .admin-table {
    min-width: 760px;
  }

  .products-table {
    min-width: 720px;
  }

  .admin-denied-card {
    padding: 32px 24px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(30px);
  }

  .modal-head {
    padding: 20px 18px 12px;
  }

  .modal-head h3 {
    font-size: 21px;
  }

  .modal-body {
    padding: 4px 18px 18px;
  }

  .modal-foot {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  }

  .modal-form-actions {
    flex-direction: column-reverse;
  }

  .modal-form-actions .btn {
    width: 100%;
  }

  .image-picker {
    grid-template-columns: repeat(4, 1fr);
  }

  #toast-root {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .auth-body #toast-root {
    bottom: 28px;
  }

  .pay-page #toast-root,
  .pay-result-body #toast-root {
    bottom: 28px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 28px 18px 22px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-meta {
    gap: 18px;
  }

  .hero-card-a {
    width: 190px;
  }

  .hero-card-b {
    width: 116px;
  }

  .hero-art {
    min-height: 235px;
  }

  .brand-text small {
    display: none;
  }

  .profile-stats {
    overflow-x: auto;
  }

  .profile-stats a {
    min-width: 62px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .order-summary small {
    display: none;
  }

  .pay-qr {
    width: 170px;
    height: 170px;
  }

  .success-card {
    padding: 28px 16px 24px;
  }

  .image-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}
