/* =========================================================
   云汐商城 CloudMart · 全站样式
   ========================================================= */

:root {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #f2f3fa;
  --ink: #14162a;
  --ink-2: #3c4158;
  --muted: #7d8298;
  --line: #e9ebf5;
  --primary: #5146e5;
  --primary-600: #4338ca;
  --primary-soft: #edebfe;
  --accent: #f05a28;
  --accent-soft: #fff0e9;
  --green: #0a9d70;
  --green-soft: #e7f8f1;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --warning: #b45309;
  --warning-soft: #fff4e5;
  --shadow-sm: 0 2px 10px rgba(20, 22, 42, 0.04);
  --shadow-md: 0 18px 40px -26px rgba(24, 26, 60, 0.35);
  --shadow-lg: 0 30px 70px -35px rgba(24, 26, 60, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 12% -8%, #eae7ff 0%, rgba(234, 231, 255, 0) 62%),
    radial-gradient(900px 420px at 98% -4%, #ffefe6 0%, rgba(255, 239, 230, 0) 58%),
    var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
  padding-bottom: 72px;
}

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

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

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

button {
  cursor: pointer;
}

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

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

::selection {
  background: rgba(81, 70, 229, 0.18);
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.page {
  padding-top: 30px;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--accent);
}

.stars {
  color: #f5a524;
  letter-spacing: 0.08em;
  font-size: 13px;
  white-space: nowrap;
}

.stars-empty {
  color: #e1e3ee;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(118deg, #5b50ec, #7c4df0 55%, #9c5bf5);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(81, 70, 229, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px -14px rgba(81, 70, 229, 0.95);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(118deg, #ff7a4d, #f0522d);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(240, 82, 45, 0.9);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(240, 82, 45, 0.95);
}

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

.btn-dark:hover {
  background: #24263f;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover {
  border-color: #c9c5f7;
  color: var(--primary);
  background: #fbfaff;
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-soft:hover {
  background: #e3dffd;
}

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

.btn-danger:hover {
  background: #d13b40;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--ink-2);
  display: inline-grid;
  place-items: center;
  transition: 0.18s ease;
}

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

.icon-btn:hover {
  background: #e7e8f2;
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(233, 235, 245, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(135deg, #5b50ec 0%, #8b5cf6 58%, #ff7a59 120%);
  box-shadow: 0 10px 20px -10px rgba(91, 80, 236, 0.9);
  transform: rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-text small {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: 0.16s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 350px;
  margin-left: auto;
  padding: 5px 5px 5px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  transition: 0.18s ease;
}

.header-search:focus-within,
.mobile-search:focus-within {
  background: #fff;
  border-color: #c9c4fb;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.09);
}

.search-icon {
  display: inline-flex;
  color: var(--muted);
}

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

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

.header-search button,
.mobile-search button {
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-action {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.18s ease;
}

.icon-action svg {
  width: 20px;
  height: 20px;
}

.icon-action:hover {
  color: var(--primary);
  border-color: #d6d2fb;
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu summary:hover {
  border-color: #d6d2fb;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: var(--avatar, #6366f1);
  flex-shrink: 0;
}

.user-chip-name {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.user-chip-chevron {
  display: inline-flex;
  color: var(--muted);
}

.user-chip-chevron svg {
  width: 14px;
  height: 14px;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 238px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: menu-pop 0.16s ease;
}

@keyframes menu-pop {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.menu-user {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-user strong {
  font-size: 14px;
}

.menu-user span {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-panel a,
.menu-panel > button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
  transition: 0.15s ease;
}

.menu-panel a:hover,
.menu-panel > button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu-panel > button[data-logout] {
  color: var(--danger);
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  padding: 0;
  place-items: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(5.8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-5.8px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 4vw 18px;
  animation: menu-pop 0.18s ease;
}

.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-nav .nav-link {
  background: var(--surface-2);
}

.mobile-search {
  max-width: none;
  margin: 0 0 12px;
}

.mobile-auth {
  display: flex;
  gap: 10px;
}

.mobile-auth .btn {
  flex: 1;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  flex-shrink: 0;
  margin-top: 40px;
  background: #15162a;
  color: #c7c9dd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 42px;
  padding: 54px 0 40px;
}

.footer-brand p {
  margin: 16px 0 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #9295b3;
  max-width: 300px;
}

.brand-light .brand-text {
  color: #fff;
}

.brand-light .brand-text small {
  color: #7e82a3;
}

.footer-badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #34364f;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8f93b4;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.footer-col a {
  color: #9295b3;
  width: fit-content;
  transition: 0.16s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #26283f;
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #717594;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  margin-top: 28px;
  padding: 50px 52px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(600px 320px at 92% 12%, rgba(255, 196, 150, 0.55) 0%, rgba(255, 196, 150, 0) 65%),
    radial-gradient(680px 360px at 8% 92%, rgba(160, 148, 255, 0.45) 0%, rgba(160, 148, 255, 0) 68%),
    linear-gradient(116deg, #eeecff 0%, #f8f2ff 46%, #fff2e8 100%);
  overflow: hidden;
  box-shadow: 0 40px 80px -60px rgba(61, 44, 150, 0.55);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(81, 70, 229, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 35%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 650;
  color: var(--primary);
  backdrop-filter: blur(6px);
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.14);
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(35px, 4.1vw, 55px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #5146e5 10%, #8b5cf6 55%, #f05a28 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 470px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.hero-search {
  display: flex;
  gap: 6px;
  margin-top: 25px;
  padding: 7px 7px 7px 18px;
  background: #fff;
  border-radius: 16px;
  max-width: 515px;
  box-shadow: 0 22px 45px -28px rgba(48, 34, 110, 0.55);
}

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

.hero-search button {
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  background: linear-gradient(118deg, #5b50ec, #8b5cf6);
  color: #fff;
  font-weight: 650;
  font-size: 13.5px;
  transition: 0.18s ease;
}

.hero-search button:hover {
  filter: brightness(1.06);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.hero-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 11.5px;
  transition: 0.16s ease;
}

.hero-tags a:hover {
  color: var(--primary);
  background: #fff;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(81, 70, 229, 0.13);
  max-width: 500px;
}

.hero-stat strong {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat span {
  font-size: 11.5px;
  color: var(--muted);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.art-stage {
  position: relative;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 58%),
    linear-gradient(135deg, rgba(124, 108, 255, 0.42), rgba(255, 172, 124, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 40px 70px -40px rgba(62, 42, 150, 0.55);
}

.art-stage::before,
.art-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.art-stage::before {
  inset: -22px;
}

.art-stage::after {
  inset: -48px;
  border-color: rgba(255, 255, 255, 0.32);
}

.art-stage-emoji {
  font-size: 126px;
  line-height: 1;
  filter: drop-shadow(0 26px 30px rgba(56, 38, 140, 0.28));
  animation: float 6s ease-in-out infinite;
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fff;
  box-shadow: 0 20px 40px -24px rgba(50, 36, 120, 0.55);
  backdrop-filter: blur(10px);
  animation: float 5.5s ease-in-out infinite;
}

.hero-float .hf-emoji {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 19px;
}

.hero-float strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.hero-float span {
  font-size: 10.5px;
  color: var(--muted);
}

.hero-float.hf-1 {
  top: 5%;
  left: -2%;
}

.hero-float.hf-2 {
  top: 38%;
  right: -5%;
  animation-delay: -1.6s;
}

.hero-float.hf-3 {
  bottom: 6%;
  left: 2%;
  animation-delay: -3.2s;
}

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

/* ---------------- 首页区块 ---------------- */

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-title p {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.16s ease;
  white-space: nowrap;
}

.link-more svg {
  width: 15px;
  height: 15px;
}

.link-more:hover {
  color: var(--primary);
  gap: 9px;
}

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid #eef0f8;
  background: linear-gradient(158deg, #fff 0%, hsl(var(--h) 72% 97%) 100%);
  overflow: hidden;
  transition: 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -34px;
  bottom: -42px;
  background: hsl(var(--h) 80% 90%);
  opacity: 0.55;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--h) 60% 88%);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: hsl(var(--h) 85% 93%);
}

.category-name {
  font-size: 14px;
  font-weight: 700;
}

.category-count {
  font-size: 11px;
  color: var(--muted);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}

.promo-card {
  position: relative;
  min-height: 190px;
  padding: 30px 32px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.promo-card .promo-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.promo-card h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.promo-card p {
  font-size: 12.5px;
  opacity: 0.72;
  max-width: 320px;
}

.promo-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.promo-card .promo-emoji {
  position: absolute;
  right: 26px;
  bottom: -16px;
  font-size: 128px;
  opacity: 0.9;
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.15));
}

.promo-card.new-user {
  background:
    radial-gradient(360px 220px at 90% 20%, rgba(255, 138, 101, 0.35), transparent 70%),
    linear-gradient(120deg, #1a1934, #352a7c 62%, #6d3f9e);
  color: #fff;
}

.promo-card.seller-promo {
  background: linear-gradient(120deg, #fff2e3, #ffe0cc);
  color: #4a2a18;
}

.promo-card.seller-promo .btn {
  background: #4a2a18;
  color: #fff;
}

.promo-card.seller-promo .promo-emoji {
  font-size: 118px;
  right: 18px;
  opacity: 0.95;
}

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

.feature {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--surface-2);
  flex-shrink: 0;
}

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

.feature span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- 商品卡片 ---------------- */

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

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eceef7;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #dedbf8;
  box-shadow: 0 28px 50px -34px rgba(30, 28, 80, 0.45);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 18% 8%, hsl(var(--h) 92% 96%) 0%, hsl(var(--h) 78% 89%) 100%);
}

.product-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(52px, 5vw, 76px);
  line-height: 1;
  filter: drop-shadow(0 18px 22px rgba(40, 30, 90, 0.18));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-emoji {
  transform: scale(1.09) rotate(-4deg);
}

.art-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.ring-a {
  width: 76%;
  height: 76%;
}

.ring-b {
  width: 54%;
  height: 54%;
  border-color: rgba(255, 255, 255, 0.38);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 22, 42, 0.78);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.product-badge.badge-muted {
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

.quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: rgba(20, 22, 42, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.22s ease;
}

.quick-add svg {
  width: 15px;
  height: 15px;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: none;
}

.quick-add:hover {
  background: var(--primary);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px 15px;
  flex: 1;
}

.product-cat {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink);
  min-height: 2.9em;
}

.product-title:hover {
  color: var(--primary);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.product-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #b7791f;
  font-weight: 600;
}

.product-meta .rating svg {
  width: 11px;
  height: 11px;
  color: #f5a524;
}

.meta-dot {
  color: #c9cbdb;
}

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

.price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.price-original {
  font-size: 11px;
  color: #a9adc0;
  text-decoration: line-through;
}

.add-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  transition: 0.18s ease;
}

.add-btn svg {
  width: 16px;
  height: 16px;
}

.add-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.add-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #eef0f7;
  border-radius: 8px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-media {
  aspect-ratio: 1 / 0.92;
  border-radius: 0;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 35%;
}

.skeleton-line.tiny {
  width: 60%;
}

/* ---------------- 页面标题 / 面包屑 ---------------- */

.page-head {
  padding: 34px 0 0;
}

.page-head h1 {
  font-size: 31px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.breadcrumb .sep {
  color: #c9cbdb;
}

.breadcrumb .current {
  color: var(--ink-2);
}

/* ---------------- 商品列表 / 筛选 ---------------- */

.catalog {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}

.filter-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.filter-group + .filter-group {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: 0.15s ease;
}

.filter-item:hover {
  background: var(--surface-2);
}

.filter-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}

.filter-item .count {
  font-size: 10.5px;
  color: var(--muted);
}

.filter-item.active .count {
  color: var(--primary);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 7px;
}

.input,
.price-range input,
.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  outline: none;
  font-size: 12.5px;
  transition: 0.16s ease;
}

.input:focus,
.price-range input:focus,
.filter-select:focus {
  border-color: #b3adf7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(81, 70, 229, 0.08);
}

.price-range span {
  color: var(--muted);
  font-size: 11px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.filter-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 11.5px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 2px;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.result-info {
  font-size: 12.5px;
  color: var(--muted);
}

.result-info strong {
  color: var(--ink);
  font-size: 15px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.sort-tab {
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: 0.15s ease;
}

.sort-tab:hover {
  color: var(--ink);
}

.sort-tab.active {
  background: var(--ink);
  color: #fff;
}

.active-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 550;
}

.chip button {
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}

.page-btn:hover {
  border-color: #c9c4fb;
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 450px) minmax(0, 1fr);
  gap: 46px;
  margin-top: 26px;
  align-items: start;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.detail-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(110% 110% at 22% 10%, hsl(var(--h) 92% 97%) 0%, hsl(var(--h) 76% 88%) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.detail-art::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.detail-art::after {
  content: "";
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.detail-emoji {
  position: relative;
  z-index: 1;
  font-size: 158px;
  line-height: 1;
  filter: drop-shadow(0 30px 36px rgba(35, 25, 85, 0.22));
  transition: transform 0.4s ease;
}

.detail-art:hover .detail-emoji {
  transform: scale(1.04) rotate(-3deg);
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: hsl(var(--h) 82% 93%);
  cursor: pointer;
  transition: 0.18s ease;
}

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

.thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(81, 70, 229, 0.1);
}

.detail-aside-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.detail-aside-note .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9cbdb;
}

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

.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-title {
  margin: 13px 0 8px;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.detail-subtitle {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.detail-rating .score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 17px;
  font-weight: 800;
  color: #b7791f;
}

.detail-rating .score small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.price-panel {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid #ece7ff;
  background: linear-gradient(118deg, #f7f4ff 0%, #fff6f0 100%);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-main .now {
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.price-main .now small {
  font-size: 18px;
  font-weight: 700;
  margin-right: 1px;
}

.price-main .was {
  color: #a9adc0;
  text-decoration: line-through;
  font-size: 13px;
}

.price-main .save {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
}

.price-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: #f5f6fb;
  border: 1px solid #edeef7;
  color: var(--ink-2);
  font-size: 10.5px;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

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

.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  width: 38px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 17px;
  transition: 0.15s ease;
}

.qty-stepper button:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.qty-stepper input {
  width: 46px;
  height: 100%;
  border: none;
  border-inline: 1px solid var(--line);
  outline: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stock-hint {
  font-size: 11.5px;
  color: var(--muted);
}

.buy-actions {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.buy-actions .btn {
  min-width: 150px;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  transition: 0.18s ease;
}

.fav-btn svg {
  width: 17px;
  height: 17px;
}

.fav-btn:hover {
  border-color: #f7c9c9;
  color: var(--danger);
}

.fav-btn.active {
  background: var(--danger-soft);
  border-color: #f8cccc;
  color: var(--danger);
}

.fav-btn.active svg {
  fill: currentColor;
}

.perk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.perk .tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-meta {
  flex: 1;
  min-width: 0;
}

.seller-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.verified {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.seller-meta span {
  font-size: 11px;
  color: var(--muted);
}

.seller-stats {
  display: flex;
  gap: 16px;
  text-align: right;
  font-size: 10.5px;
  color: var(--muted);
}

.seller-stats strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.detail-tabs {
  margin-top: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: clip;
}

.tab-nav {
  display: flex;
  gap: 4px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 5;
  overflow-x: auto;
}

.tab-btn {
  padding: 9px 17px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.16s ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.tab-panel {
  padding: 28px;
}

.prose {
  max-width: 780px;
  color: var(--ink-2);
  line-height: 2;
  font-size: 13.5px;
  white-space: pre-line;
}

.spec-table {
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
  border-collapse: collapse;
}

.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}

.spec-table td:first-child {
  width: 140px;
  color: var(--muted);
  background: #fbfbfe;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #fbf8ff, #fff7f1);
  border: 1px solid #f0ecff;
  margin-bottom: 22px;
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
  color: #b7791f;
}

.review-score small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.review-summary-text {
  font-size: 12px;
  color: var(--muted);
}

.review-summary-text strong {
  color: var(--ink);
}

.review-list {
  display: flex;
  flex-direction: column;
}

.review-item {
  display: flex;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: none;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.review-main {
  flex: 1;
  min-width: 0;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.review-head strong {
  font-size: 12.5px;
}

.review-head time {
  font-size: 10.5px;
  color: #a9adc0;
}

.review-content {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.review-form {
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed #d9d4fb;
  border-radius: 16px;
  background: #fcfbff;
}

.review-form h4 {
  font-size: 14px;
  margin-bottom: 10px;
}

.star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.star-input button {
  border: none;
  background: none;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: #e1e3ee;
  transition: 0.12s ease;
}

.star-input button.on {
  color: #f5a524;
}

.star-input button:hover {
  transform: scale(1.1);
}

.review-form textarea {
  min-height: 92px;
  resize: vertical;
}

.form-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.form-error {
  margin-bottom: 15px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid #f7cfcf;
  color: #b42318;
  font-size: 11.5px;
  line-height: 1.6;
}

.favorite-wrap {
  position: relative;
}

.favorite-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(20, 22, 42, 0.12);
  transition: 0.16s ease;
}

.favorite-remove svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.favorite-remove:hover {
  background: var(--danger);
  color: #fff;
}

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

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

.cart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfe;
  font-size: 11.5px;
  color: var(--muted);
}

.cart-head strong {
  color: var(--ink);
  font-size: 13px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 100px 116px 38px;
  gap: 15px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-art {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(135deg, hsl(var(--h) 92% 95%), hsl(var(--h) 75% 87%));
}

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

.cart-cat {
  font-size: 10px;
  color: var(--muted);
}

.cart-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  margin: 3px 0 4px;
}

.cart-title:hover {
  color: var(--primary);
}

.cart-price {
  font-size: 13px;
  color: var(--ink-2);
}

.cart-qty .qty-stepper {
  height: 36px;
}

.cart-qty .qty-stepper button {
  width: 30px;
  font-size: 15px;
}

.cart-qty .qty-stepper input {
  width: 38px;
  font-size: 12px;
}

.cart-subtotal {
  text-align: right;
  font-size: 15px;
  font-weight: 750;
}

.cart-remove {
  border: none;
  background: none;
  color: #b6b9c9;
  padding: 4px;
  border-radius: 6px;
  transition: 0.15s ease;
}

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

.cart-remove svg {
  width: 16px;
  height: 16px;
}

.cart-unavailable {
  font-size: 10px;
  color: var(--danger);
  margin-top: 3px;
}

.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.summary-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.summary-row span:last-child {
  font-weight: 600;
}

.summary-row.free {
  color: var(--green);
}

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

.summary-total .label {
  font-size: 12px;
  color: var(--muted);
}

.summary-total .amount {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.summary-total .amount small {
  font-size: 14px;
}

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

.summary-note {
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.free-progress {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbf8ff;
  font-size: 11px;
  color: var(--primary);
}

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

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 24px;
  flex-wrap: wrap;
}

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

.step-index {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef0f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.step.active {
  color: var(--ink);
  font-weight: 650;
}

.step.active .step-index {
  background: var(--primary);
  color: #fff;
}

.step.done .step-index {
  background: var(--green);
  color: #fff;
}

.step-line {
  width: 34px;
  height: 1px;
  background: var(--line);
}

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

.checkout-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

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

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row h2,
.section-title-row h3 {
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-row .num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

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

.address-option {
  position: relative;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: 0.16s ease;
}

.address-option:hover {
  border-color: #c9c4fb;
}

.address-option.active {
  border-color: var(--primary);
  background: #fbfaff;
  box-shadow: 0 0 0 3px rgba(81, 70, 229, 0.07);
}

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

.address-option .addr-name {
  font-size: 13px;
  font-weight: 700;
}

.address-option .addr-phone {
  font-size: 11.5px;
  color: var(--muted);
}

.address-option .addr-detail {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.default-tag {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.address-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 105px;
  border-style: dashed;
  color: var(--muted);
  font-size: 12px;
  background: #fbfbfe;
}

.address-add:hover {
  color: var(--primary);
  background: #fbfaff;
}

.address-add .plus {
  font-size: 22px;
  line-height: 1;
}

.checkout-items {
  border-top: 1px solid var(--line);
}

.checkout-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item:first-child {
  padding-top: 0;
  border-top: none;
}

.checkout-art {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, hsl(var(--h) 92% 95%), hsl(var(--h) 75% 87%));
}

.checkout-item-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.checkout-item-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.checkout-item-price {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

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

.pay-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  transition: 0.16s ease;
}

.pay-option:hover {
  border-color: #c9c4fb;
}

.pay-option.active {
  border-color: var(--primary);
  background: #fbfaff;
  box-shadow: 0 0 0 3px rgba(81, 70, 229, 0.07);
}

.pay-option .pay-emoji {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.pay-option strong {
  font-size: 12.5px;
}

.pay-option span:last-child {
  font-size: 10px;
  color: var(--muted);
}

.checkout-summary .summary-product {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 0;
}

.checkout-summary .summary-product span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-panel {
  max-width: 620px;
  margin: 34px auto 0;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.pay-panel h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.pay-panel .pay-amount {
  margin: 18px 0;
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.pay-panel .pay-amount small {
  font-size: 18px;
}

.pay-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: left;
}

.success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
  animation: pop-in 0.4s ease;
}

@keyframes pop-in {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: none; opacity: 1; }
}

.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pay-steps {
  margin-top: 30px;
}

/* ---------------- 订单 ---------------- */

.orders-tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  margin: 22px 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.orders-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: 0.16s ease;
}

.orders-tab:hover {
  background: var(--surface-2);
}

.orders-tab.active {
  background: var(--ink);
  color: #fff;
}

.orders-tab .tab-count {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.orders-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: 0.18s ease;
}

.order-card:hover {
  border-color: #ddd9f8;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 19px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.order-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.order-no {
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-paid { background: #eef2ff; color: #4338ca; }
.status-shipped { background: #e0f2fe; color: #0369a1; }
.status-completed { background: var(--green-soft); color: #047857; }
.status-cancelled { background: #f1f2f6; color: #6b7280; }
.status-on { background: var(--green-soft); color: #047857; }
.status-off { background: #f1f2f6; color: #6b7280; }

.order-items {
  padding: 4px 19px;
}

.order-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f4f5fb;
}

.order-item:last-child {
  border-bottom: none;
}

.order-art {
  width: 64px;
  height: 64px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: linear-gradient(135deg, hsl(var(--h) 92% 95%), hsl(var(--h) 75% 87%));
}

.order-item-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.order-item-title:hover {
  color: var(--primary);
}

.order-item-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.order-item-price {
  text-align: right;
  font-size: 12.5px;
  font-weight: 650;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 19px;
  border-top: 1px dashed var(--line);
  background: #fff;
}

.order-total {
  font-size: 11.5px;
  color: var(--muted);
}

.order-total strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin-left: 3px;
  letter-spacing: -0.02em;
}

.order-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.order-actions .btn {
  padding: 7px 14px;
  font-size: 11.5px;
}

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

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(400px 200px at 92% 10%, rgba(255, 138, 101, 0.4), transparent 70%),
    linear-gradient(120deg, #17162e, #352a7c);
  margin-bottom: 18px;
}

.status-banner h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.status-banner h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.status-banner p {
  font-size: 12px;
  color: #c3c2e2;
}

.status-banner .status-emoji {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

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

.panel h3 {
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.timeline li {
  position: relative;
  padding: 0 0 19px 22px;
  font-size: 12px;
  color: var(--muted);
}

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

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8dae8;
  box-shadow: 0 0 0 3px #fff;
  border: 1px solid #d8dae8;
}

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

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

.timeline li.done::before {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline li strong {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline li time {
  font-size: 10.5px;
  color: #a9adc0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.info-row span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.info-row span:last-child {
  text-align: right;
  color: var(--ink-2);
}

.address-block {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.address-block strong {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 3px;
}

.address-block .muted {
  font-size: 11px;
}

.amount-list {
  font-size: 12px;
}

.amount-list .summary-row {
  margin: 8px 0;
}

.amount-list .summary-total {
  margin-top: 12px;
  padding-top: 12px;
}

.amount-list .summary-total .amount {
  font-size: 24px;
}

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

.auth-page {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  padding: 36px 0 20px;
  min-height: calc(100vh - var(--header-h) - 220px);
}

.auth-aside {
  position: relative;
  min-height: 560px;
  padding: 44px;
  border-radius: 30px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(460px 300px at 86% 18%, rgba(255, 138, 101, 0.42), transparent 68%),
    radial-gradient(420px 300px at 12% 88%, rgba(139, 92, 246, 0.55), transparent 70%),
    linear-gradient(135deg, #16152e 0%, #2e2668 55%, #653a95 100%);
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside .brand-text {
  color: #fff;
}

.auth-aside .brand-text small {
  color: #a9a5d6;
}

.auth-quote {
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 40px;
}

.auth-quote em {
  font-style: normal;
  color: #ffb38f;
}

.auth-sub {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #bdb9e2;
  max-width: 380px;
}

.auth-art {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.auth-tile {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}

.auth-tile:nth-child(2) { animation-delay: -1.4s; }
.auth-tile:nth-child(3) { animation-delay: -2.8s; }
.auth-tile:nth-child(4) { animation-delay: -4.2s; }

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  color: #ddd9f5;
}

.auth-points span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-points .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
}

.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 70px -45px rgba(25, 25, 70, 0.4);
}

.auth-card h1 {
  font-size: 27px;
  letter-spacing: -0.02em;
}

.auth-card .auth-subtitle {
  margin: 7px 0 24px;
  color: var(--muted);
  font-size: 12.5px;
}

.form-row {
  margin-bottom: 15px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.form-label .optional {
  color: #a9adc0;
  font-weight: 400;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 42px;
}

.input-wrap textarea {
  padding-right: 14px;
}

.input-action {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 4px;
}

.input-action:hover {
  color: var(--primary);
}

.field-hint {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
}

.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.role-option {
  position: relative;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transition: 0.16s ease;
}

.role-option:hover {
  border-color: #c9c4fb;
}

.role-option.active {
  border-color: var(--primary);
  background: #fbfaff;
}

.role-option .role-emoji {
  font-size: 18px;
  line-height: 1.3;
}

.role-option strong {
  display: block;
  font-size: 12px;
}

.role-option span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 4px 0 16px;
}

.checkbox-line input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-line a {
  color: var(--primary);
}

.auth-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-foot a {
  color: var(--primary);
  font-weight: 600;
}

.demo-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fbfbfe;
  border: 1px dashed #e2e3ef;
}

.demo-box .demo-title {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 7px;
}

.demo-accounts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  color: var(--ink-2);
  transition: 0.15s ease;
}

.demo-chip:hover {
  border-color: #c9c4fb;
  color: var(--primary);
}

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

.account-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.account-layout > * {
  min-width: 0;
}

.account-nav {
  max-width: 100%;
}

.account-card {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(300px 180px at 90% 10%, rgba(255, 138, 101, 0.38), transparent 68%),
    linear-gradient(140deg, #1a1934, #352a7c 70%, #5c3690);
}

.account-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  right: -40px;
  bottom: -50px;
}

.account-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 750;
  background: var(--avatar, #6366f1);
  border: 3px solid rgba(255, 255, 255, 0.22);
}

.account-name {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 750;
}

.account-role {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9.5px;
  color: #e4e1ff;
}

.account-email {
  margin-top: 4px;
  font-size: 10.5px;
  color: #a9a6cf;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.account-stats strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
}

.account-stats span {
  font-size: 9.5px;
  color: #b3b0d8;
}

.account-nav {
  margin-top: 14px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav button,
.account-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: 0.15s ease;
}

.account-nav .nav-emoji {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.account-nav button:hover,
.account-nav a:hover {
  background: var(--surface-2);
}

.account-nav button.active,
.account-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}

.account-nav .logout-link {
  color: var(--danger);
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  margin-top: 4px;
}

.account-main {
  min-width: 0;
}

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

.panel-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-card-header h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.panel-card-header p {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.profile-form {
  max-width: 620px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.avatar-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  transition: 0.15s ease;
}

.avatar-color.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: 0.16s ease;
}

.address-card:hover {
  border-color: #d8d4f8;
}

.address-card.is-default {
  border-color: #cfcaf9;
  background: #fbfaff;
}

.address-card .addr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.address-card .addr-head strong {
  font-size: 13px;
}

.address-card .addr-body {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.address-card .addr-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
}

.addr-actions button {
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.addr-actions button:hover {
  color: var(--primary);
}

.addr-actions button.danger:hover {
  color: var(--danger);
}

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

/* ---------------- 商家 / 管理后台 ---------------- */

.dash-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 30px 32px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(420px 240px at 90% 5%, rgba(255, 138, 101, 0.4), transparent 68%),
    linear-gradient(120deg, #16152e, #302668 60%, #5c3690);
}

.dash-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(110deg, transparent 40%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.dash-hero > * {
  position: relative;
  z-index: 1;
}

.dash-hero .dash-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #a9a5d6;
  text-transform: uppercase;
}

.dash-hero h1 {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.dash-hero p {
  margin-top: 5px;
  font-size: 12px;
  color: #bdb9e2;
}

.dash-hero .dash-emoji {
  font-size: 58px;
  line-height: 1;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3));
}

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

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

.stat-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -26px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--stat-tint, var(--primary-soft));
  opacity: 0.7;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
}

.stat-value {
  margin-top: 5px;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-value small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.stat-foot {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}

.panel-tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.panel-tab {
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.16s ease;
}

.panel-tab:hover {
  color: var(--ink);
}

.panel-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.panel-tab .badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9px;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  padding: 12px 16px;
  background: #fbfbfe;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f4f5fb;
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: #fcfcff;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.table-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, hsl(var(--h) 92% 95%), hsl(var(--h) 75% 87%));
}

.table-product strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-product span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.table-actions button {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 11px;
}

.table-actions button:hover {
  text-decoration: underline;
}

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

.table-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table-toolbar .search-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 220px;
}

.table-toolbar .search-mini input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 11.5px;
  width: 100%;
}

.table-toolbar .search-mini svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.mini-tabs {
  display: flex;
  gap: 4px;
}

.mini-tab {
  padding: 6px 11px;
  border: none;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.mini-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.role-select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
}

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

.product-form .full {
  grid-column: 1 / -1;
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-option {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 17px;
  display: grid;
  place-items: center;
}

.emoji-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.cat-select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: var(--ink-2);
}

.cat-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.admin-overview .panel {
  margin-bottom: 0;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 4px;
}

.bar-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.bar-value {
  text-align: right;
  font-weight: 700;
  color: var(--ink-2);
}

.top-product-list {
  display: flex;
  flex-direction: column;
}

.top-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f4f5fb;
}

.top-product:last-child {
  border-bottom: none;
}

.top-rank {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.top-rank.hot {
  background: var(--accent-soft);
  color: var(--accent);
}

.top-product .table-thumb {
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.top-product-info {
  flex: 1;
  min-width: 0;
}

.top-product-info strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.top-product-sales {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(81, 70, 229, 0.08);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

/* ---------------- 空状态 / 错误页 ---------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 64px 20px;
  background: #fff;
  border: 1px dashed #dfe1ee;
  border-radius: 20px;
  text-align: center;
}

.empty-emoji {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(140deg, #f3f0ff, #fff3ea);
  margin-bottom: 6px;
}

.empty-state h3 {
  font-size: 17px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 340px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.error-page .code {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(120deg, #5146e5, #a855f7 60%, #f05a28);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-size: 24px;
  margin: 14px 0 8px;
}

.error-page p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

/* ---------------- 弹窗 / Toast ---------------- */

.no-scroll {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 20, 38, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.22s ease;
}

.modal-backdrop.is-open .modal {
  transform: none;
}

.modal-sm {
  width: min(430px, 100%);
}

.modal-lg {
  width: min(780px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 22px 24px;
}

.modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.confirm-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.toast-root {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
  max-width: calc(100vw - 44px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -22px rgba(20, 22, 42, 0.45);
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateX(18px);
  transition: 0.24s ease;
  pointer-events: auto;
  max-width: 360px;
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast-icon {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.toast-error .toast-icon {
  background: var(--danger);
}

.toast-info .toast-icon {
  background: var(--primary);
}

/* ---------------- 通用页面块 ---------------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 11.5px;
  line-height: 1.7;
}

.notice.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 54px 20px;
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #e2e4f0;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-search {
    max-width: 280px;
  }
  .hero {
    padding: 44px 40px;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-search {
    max-width: 320px;
  }
  .mobile-panel:not([hidden]) {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 30px;
  }
  .detail-emoji {
    font-size: 126px;
  }
  .cart-layout,
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 32px;
  }
  .hero-art {
    min-height: 300px;
    margin-top: 8px;
  }
  .art-stage {
    width: 250px;
    height: 250px;
  }
  .art-stage-emoji {
    font-size: 104px;
  }
  .hero-float.hf-1 {
    left: 4%;
  }
  .hero-float.hf-2 {
    right: 2%;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .filter-card {
    position: static;
    padding: 16px;
  }
  .filter-groups {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0 24px;
  }
  .filter-group + .filter-group {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .catalog-toolbar {
    margin-top: 4px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .detail-media {
    position: static;
    max-width: 520px;
  }
  .detail-art {
    aspect-ratio: 1.15 / 1;
  }
  .cart-layout,
  .checkout-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .order-detail-side {
    order: 2;
  }
  .auth-page {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-aside {
    display: none;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
  }
  .account-card .account-avatar {
    grid-row: span 3;
  }
  .account-name {
    margin-top: 0;
  }
  .account-stats {
    grid-column: 1 / -1;
  }
  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 12px;
  }
  .account-nav button,
  .account-nav a {
    width: auto;
    white-space: nowrap;
  }
  .account-nav .logout-link {
    border-top: none;
    margin-top: 0;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .address-grid,
  .address-list {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .admin-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }
  .container {
    width: 92vw;
  }
  .header-inner {
    gap: 12px;
    height: var(--header-h);
  }
  .header-search {
    display: none;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
  }
  .brand-text {
    font-size: 16px;
  }
  .brand-text small {
    font-size: 8px;
  }
  .user-chip-name,
  .user-chip-chevron {
    display: none;
  }
  .user-menu summary {
    padding: 3px;
    border: none;
    background: transparent;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .guest-actions .btn-ghost {
    display: none;
  }
  .icon-action {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
    border: none;
  }
  .hero {
    margin-top: 18px;
    border-radius: 24px;
    padding: 30px 24px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-lead {
    font-size: 13px;
  }
  .hero-stats {
    gap: 22px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-art {
    min-height: 250px;
  }
  .art-stage {
    width: 210px;
    height: 210px;
  }
  .art-stage-emoji {
    font-size: 86px;
  }
  .hero-float {
    padding: 8px 10px;
  }
  .hero-float.hf-3 {
    display: none;
  }
  .section {
    margin-top: 38px;
  }
  .section-title h2 {
    font-size: 21px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-body {
    padding: 11px 12px 12px;
  }
  .product-title {
    font-size: 13px;
  }
  .price {
    font-size: 18px;
  }
  .quick-add {
    display: none;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .category-card {
    padding: 14px 12px;
  }
  .category-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 19px;
  }
  .category-name {
    font-size: 12.5px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .promo-card {
    padding: 24px;
    min-height: 160px;
  }
  .promo-card h3 {
    font-size: 21px;
  }
  .promo-card .promo-emoji {
    font-size: 96px;
    right: 12px;
    bottom: -10px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px 0 28px;
    gap: 26px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .form-grid,
  .product-form {
    grid-template-columns: 1fr;
  }
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .pay-option {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .pay-option span:last-child {
    margin-left: auto;
  }
  .step-line {
    width: 18px;
  }
  .cart-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 14px;
  }
  .cart-art {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }
  .cart-qty {
    grid-column: 2 / 3;
  }
  .cart-subtotal {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
  .cart-remove {
    grid-column: 3 / 4;
    justify-self: end;
  }
  .cart-head {
    padding: 12px 14px;
  }
  .order-top,
  .order-items,
  .order-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .order-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .order-art {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }
  .order-item-price {
    grid-column: 2 / 3;
    text-align: left;
    font-size: 11px;
    color: var(--muted);
  }
  .detail-tabs {
    margin-top: 30px;
  }
  .tab-panel {
    padding: 18px;
  }
  .review-summary {
    gap: 14px;
  }
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-card {
    padding: 26px 22px;
  }
  .auth-page {
    padding: 16px 0;
  }
  .panel-card {
    padding: 20px 16px;
  }
  .status-banner {
    padding: 22px;
  }
  .status-banner h2 {
    font-size: 20px;
  }
  .dash-hero {
    padding: 24px;
  }
  .dash-hero h1 {
    font-size: 23px;
  }
  .dash-hero .dash-emoji {
    font-size: 44px;
  }
  .toast-root {
    top: calc(var(--header-h) + 10px);
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .toast {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 26px 20px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-search {
    margin-top: 18px;
    padding: 5px 5px 5px 13px;
  }
  .hero-search button {
    padding: 10px 16px;
  }
  .hero-tags {
    display: none;
  }
  .hero-stats {
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-art {
    display: none;
  }
  .section-head {
    align-items: center;
  }
  .link-more {
    font-size: 11px;
  }
  .product-grid {
    gap: 10px;
  }
  .product-meta {
    font-size: 9.5px;
  }
  .product-cat {
    font-size: 9.5px;
  }
  .product-title {
    font-size: 12.5px;
    min-height: 2.8em;
  }
  .price {
    font-size: 16px;
  }
  .price-original {
    font-size: 9.5px;
  }
  .add-btn {
    width: 30px;
    height: 30px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 4px;
  }
  .checkout-section {
    padding: 16px;
  }
  .price-main .now {
    font-size: 32px;
  }
  .buy-actions .btn {
    flex: 1;
    min-width: 0;
  }
  .buy-actions .fav-btn {
    flex: 0 0 46px;
    padding: 0;
  }
  .buy-actions .fav-btn span {
    display: none;
  }
  .account-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    overflow: visible;
  }
  .account-nav button,
  .account-nav a {
    width: 100%;
    white-space: nowrap;
  }
  .account-nav .logout-link {
    border-top: none;
    margin-top: 0;
  }
  .qty-stepper {
    height: 40px;
  }
  .detail-art {
    aspect-ratio: 1 / 0.9;
    border-radius: 20px;
  }
  .detail-emoji {
    font-size: 104px;
  }
  .detail-thumbs {
    gap: 7px;
  }
  .thumb {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .orders-tab {
    padding: 7px 11px;
  }
  .account-card {
    padding: 18px;
  }
  .account-stats strong {
    font-size: 15px;
  }
  .step {
    font-size: 10.5px;
  }
  .step-line {
    display: none;
  }
  .steps {
    gap: 14px;
  }
  .pay-panel {
    padding: 26px 18px;
  }
  .auth-card h1 {
    font-size: 23px;
  }
  .role-options {
    grid-template-columns: 1fr;
  }
  .favorites-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 22px;
  }
}
