/* ============================================================
   枫叶英语 · Design System
   毛玻璃 / 暖调枫红 / 自适应
   ============================================================ */

:root {
  --ink: #2a1a16;
  --ink-2: #4a342d;
  --ink-3: #7c625a;
  --maple: #d8462a;
  --maple-deep: #b1331c;
  --amber: #f0a05c;
  --amber-soft: #ffd9b8;
  --line: rgba(168, 96, 72, 0.16);
  --line-soft: rgba(168, 96, 72, 0.1);

  --glass: linear-gradient(152deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.44));
  --glass-soft: linear-gradient(152deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32));
  --glass-brd: rgba(255, 255, 255, 0.78);
  --blur: blur(26px) saturate(175%);

  --shadow-sm: 0 10px 24px -16px rgba(122, 48, 26, 0.45);
  --shadow-md: 0 24px 50px -30px rgba(122, 48, 26, 0.5);
  --shadow-lg: 0 40px 90px -40px rgba(122, 48, 26, 0.45);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --maxw: 1220px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: rgba(216, 70, 42, 0.18);
  color: var(--maple-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #fdf3ea;
  background-image: radial-gradient(1200px 720px at 8% -12%, #ffe7d2 0%, rgba(255, 231, 210, 0) 62%),
    radial-gradient(1000px 640px at 92% -6%, #ffd8cb 0%, rgba(255, 216, 203, 0) 58%),
    radial-gradient(980px 760px at 74% 108%, #ffe9cb 0%, rgba(255, 233, 203, 0) 60%),
    radial-gradient(760px 620px at 4% 96%, #ffdfd3 0%, rgba(255, 223, 211, 0) 62%),
    linear-gradient(180deg, #ffFAF5 0%, #fdf1e7 46%, #fbe9df 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 光斑 */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, #ffb185 0%, rgba(255, 177, 133, 0) 70%);
  animation: drift 22s var(--ease) infinite alternate;
}
.orb-2 {
  width: 520px;
  height: 520px;
  top: 12%;
  right: -160px;
  background: radial-gradient(circle, #ff9d8a 0%, rgba(255, 157, 138, 0) 70%);
  animation: drift 26s var(--ease) infinite alternate-reverse;
}
.orb-3 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 38%;
  background: radial-gradient(circle, #ffd08a 0%, rgba(255, 208, 138, 0) 70%);
  animation: drift 30s var(--ease) infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, 50px, 0) scale(1.12);
  }
}

img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

/* ---------------- 顶栏 ---------------- */
.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px clamp(12px, 3vw, 24px) 0;
}
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 20px;
  background: var(--glass-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.topbar.scrolled {
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e8502f, #f2a25c);
  box-shadow: 0 10px 20px -10px rgba(205, 62, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 11px;
  transition: 0.22s var(--ease);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--maple);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: 0.24s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e04a2b, #ef9350);
  box-shadow: 0 12px 26px -12px rgba(205, 62, 32, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -12px rgba(205, 62, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-inset);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--maple);
}
.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 10px;
}
.btn-danger {
  color: #b1331c;
  background: rgba(255, 236, 230, 0.9);
  border: 1px solid rgba(216, 70, 42, 0.24);
}
.btn-danger:hover {
  background: #ffe3d9;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding-top: clamp(44px, 7vw, 86px);
  padding-bottom: clamp(30px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
}
.hero-leaf {
  position: absolute;
  right: -40px;
  top: -10px;
  width: min(46vw, 420px);
  opacity: 0.09;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-leaf svg {
  width: 100%;
  height: auto;
  fill: var(--maple);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-inset), 0 8px 20px -16px rgba(122, 48, 26, 0.6);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maple);
  box-shadow: 0 0 0 0 rgba(216, 70, 42, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(216, 70, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 70, 42, 0);
  }
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 850;
}
.hero h1 .grad {
  display: block;
  background: linear-gradient(112deg, #c9391f 0%, #e85c33 38%, #f2a25c 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--ink-3);
  font-weight: 450;
}
.hero-stats {
  margin: 32px auto 0;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 6px;
  border-radius: 20px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-brd);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.hero-stats .stat {
  padding: 10px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
}
.hero-stats .stat + .stat {
  border-left: 1px solid var(--line);
}
.hero-stats b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #c9391f, #ef9350);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
}

/* ---------------- 选择面板 ---------------- */
.panel {
  position: relative;
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(20px, 3.2vw, 38px);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  overflow: visible;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(700px 240px at 8% -10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-title h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 780;
  letter-spacing: -0.01em;
}
.panel-title .hint {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  color: var(--maple);
}
.panel-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------------- 教材选择条 ---------------- */
.picker {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.picker-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 168px;
}
.picker-stage {
  flex: 0 0 auto;
}
.picker-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  padding-left: 2px;
}
.picker-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}
.picker-actions .btn {
  height: 46px;
}

.gselect {
  position: relative;
  width: 100%;
}
.gselect-trigger {
  position: relative;
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 122, 96, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.gselect-trigger:hover {
  background: #fff;
  border-color: rgba(216, 70, 42, 0.32);
}
.gselect.open .gselect-trigger,
.gselect-trigger:focus-visible {
  background: #fff;
  border-color: rgba(216, 70, 42, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 70, 42, 0.1);
  outline: none;
}
.gselect-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gselect-value.is-placeholder {
  color: #ab918a;
  font-weight: 500;
}
.gselect-flag {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #c9391f;
  background: rgba(216, 70, 42, 0.1);
}
.gselect.is-disabled .gselect-trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.45);
}
.gselect-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 11px;
  height: 8px;
  margin-top: -4px;
  color: var(--ink-3);
  transition: transform 0.28s var(--ease);
}
.gselect.open .gselect-arrow {
  transform: rotate(180deg);
  color: var(--maple);
}
.gselect-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(360px, 76vw);
  max-height: 292px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 60px -26px rgba(90, 40, 22, 0.5), inset 0 1px 0 #fff;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
#bookSelect .gselect-panel {
  left: auto;
  right: 0;
}
.gselect.open .gselect-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.gselect-panel::-webkit-scrollbar {
  width: 6px;
}
.gselect-panel::-webkit-scrollbar-thumb {
  background: rgba(180, 120, 100, 0.26);
  border-radius: 99px;
}
.gselect-option {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  text-align: left;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.gselect-option-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gselect-option:hover {
  background: rgba(216, 70, 42, 0.07);
  color: var(--maple-deep);
}
.gselect-option.is-selected {
  background: linear-gradient(135deg, rgba(224, 74, 43, 0.12), rgba(240, 149, 79, 0.12));
  color: var(--maple-deep);
  font-weight: 700;
}
.gselect-option .flag {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #c9391f;
  background: rgba(216, 70, 42, 0.09);
}
.gselect-option .tick {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--maple);
}
.gselect-option.is-selected .tick {
  opacity: 1;
}

#selector {
  position: relative;
  z-index: 3;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(12px, 2vw, 22px);
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.step:last-of-type {
  border-bottom: none;
  padding-bottom: 4px;
}
.step-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.step-label i {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #e04a2b, #ef9350);
  box-shadow: 0 6px 14px -8px rgba(205, 62, 32, 0.9);
  flex-shrink: 0;
}
.step-body {
  min-width: 0;
}

.segmented {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 3px rgba(150, 80, 55, 0.07), 0 10px 24px -22px rgba(122, 48, 26, 0.8);
}
.segmented button {
  position: relative;
  z-index: 1;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-3);
  border-radius: 11px;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.segmented button:hover {
  color: var(--maple-deep);
}
.segmented button small {
  font-size: 10.5px;
  opacity: 0.72;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.segmented button.active {
  color: #fff;
  background: linear-gradient(135deg, #e04a2b, #f0954f);
  box-shadow: 0 10px 22px -10px rgba(205, 62, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.segmented button.active small {
  opacity: 0.92;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(150, 80, 55, 0.05);
  transition: 0.25s var(--ease);
  width: min(260px, 100%);
}
.search:focus-within {
  background: #fff;
  border-color: rgba(216, 70, 42, 0.4);
  box-shadow: 0 0 0 4px rgba(216, 70, 42, 0.09);
}
.search svg {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.search input {
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  width: 100%;
  padding: 0 0 0 8px;
}
.search input::placeholder {
  color: #ab918a;
}
.count-pill {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chips.scroll {
  max-height: 224px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.chips.scroll::-webkit-scrollbar {
  width: 6px;
}
.chips.scroll::-webkit-scrollbar-thumb {
  background: rgba(180, 120, 100, 0.28);
  border-radius: 99px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 11px;
  font-size: 13.2px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(190, 122, 96, 0.2);
  transition: 0.22s var(--ease);
  text-align: left;
}
.chip:hover {
  background: #fff;
  border-color: rgba(216, 70, 42, 0.34);
  transform: translateY(-1.5px);
  box-shadow: 0 12px 24px -18px rgba(140, 55, 30, 0.9);
  color: var(--maple-deep);
}
.chip .flag {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(216, 70, 42, 0.09);
  color: #c9391f;
  flex-shrink: 0;
}
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, #df4929, #ef9350);
  border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(205, 62, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.chip.active .flag {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.chip.empty-hint {
  opacity: 0.55;
  font-size: 12.5px;
  cursor: default;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 550;
}
.summary .sep {
  color: #c9ada3;
}
.summary b {
  color: var(--ink);
  font-weight: 750;
}
.summary .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maple);
  box-shadow: 0 0 0 3px rgba(216, 70, 42, 0.12);
}
.panel-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}

/* ---------------- 结果区 ---------------- */
.results-section {
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: 20px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 820;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2 .bar {
  width: 4px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, #e04a2b, #f0a05c);
}
.section-head .meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 550;
}
.section-head .meta b {
  color: var(--maple);
  font-weight: 800;
}
.head-left {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.result-search {
  width: min(260px, 100%);
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}
.result-search input {
  font-size: 13.5px;
}
.search-clear {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  color: #8b6f66;
  background: rgba(160, 110, 90, 0.12);
  transition: 0.2s;
}
.search-clear:hover {
  background: rgba(216, 70, 42, 0.16);
  color: var(--maple);
}
.result-search input::-webkit-search-cancel-button {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  transition: opacity 0.25s var(--ease);
}
.grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.card {
  position: relative;
  padding: 11px 11px 4px;
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.48));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 44px -30px rgba(122, 48, 26, 0.55), var(--shadow-inset);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: cardIn 0.55s var(--ease) backwards;
}
@keyframes cardIn {
  from {
    transform: translateY(14px);
  }
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(216, 70, 42, 0.32);
  box-shadow: 0 34px 64px -32px rgba(122, 48, 26, 0.6), var(--shadow-inset);
}
.cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(150deg, #f8e9de, #f4dccd);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.card:hover .cover-wrap img {
  transform: scale(1.045);
}
.cover-wrap .no-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c9a998;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.card-body {
  padding: 12px 5px 10px;
}
.card-title {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
  letter-spacing: 0.005em;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--maple);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price .cur {
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-2px);
}
.price .num {
  font-size: 21px;
}
.price.free .num {
  font-size: 16px;
  letter-spacing: 0.02em;
}
.card-tag {
  font-size: 10.5px;
  font-weight: 650;
  color: #8a5b47;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(190, 122, 96, 0.16);
  padding: 3.5px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

/* ---------------- 合集卡片 ---------------- */
.bundle-card {
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(16px, 2.2vw, 26px);
  padding: 16px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 236, 0.88));
  border: 1px solid rgba(216, 70, 42, 0.18);
  box-shadow: 0 30px 66px -40px rgba(160, 60, 30, 0.6), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}
.bundle-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 92, 0.22), rgba(240, 160, 92, 0) 70%);
  pointer-events: none;
}
.bundle-poster {
  position: relative;
  flex: 0 0 246px;
  min-height: 200px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(150deg, #e04a2b, #f0954f 68%, #f7bb7a);
  box-shadow: 0 20px 40px -22px rgba(200, 60, 30, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.bundle-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 90px at 85% 10%, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.bundle-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.bundle-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.bundle-count b {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 18px rgba(140, 40, 20, 0.28);
}
.bundle-count i {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 650;
  opacity: 0.9;
}
.bundle-poster-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.bundle-now {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.bundle-original {
  font-size: 12px;
  opacity: 0.78;
  text-decoration: line-through;
}
.bundle-ribbon {
  position: absolute;
  right: -30px;
  top: 16px;
  transform: rotate(38deg);
  background: #fff;
  color: #c9391f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 34px;
  box-shadow: 0 8px 18px -12px rgba(120, 30, 10, 0.8);
}
.bundle-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 4px 6px 4px 0;
}
.bundle-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bundle-head h3 {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.bundle-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--maple);
  background: rgba(216, 70, 42, 0.1);
}
.bundle-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}
.bundle-desc b {
  color: var(--ink-2);
  font-weight: 700;
}
.bundle-desc .hl {
  color: var(--maple);
  font-weight: 800;
  font-size: 15px;
}
.bundle-facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.bundle-facts > div {
  flex: 1 1 96px;
  min-width: 96px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.bundle-facts span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.bundle-facts b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.bundle-facts b.hl {
  color: var(--maple);
}

@media (max-width: 720px) {
  .bundle-card {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  /* 移动端：海报改成横向条，大幅压缩高度 */
  .bundle-poster {
    flex: 0 0 auto;
    min-height: 0;
    padding: 11px 13px;
    border-radius: 13px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .bundle-badge {
    position: absolute;
    top: 8px;
    left: 13px;
    font-size: 9px;
    padding: 2px 7px;
    letter-spacing: 0.1em;
  }
  .bundle-count {
    margin-top: 12px;
    gap: 4px;
  }
  .bundle-count b {
    font-size: 30px;
  }
  .bundle-count i {
    font-size: 11px;
  }
  .bundle-poster-price {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    margin-top: 12px;
  }
  .bundle-now {
    font-size: 23px;
  }
  .bundle-original {
    font-size: 10.5px;
  }
  .bundle-ribbon {
    top: 9px;
    right: -30px;
    padding: 3px 32px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }
  .bundle-body {
    padding: 0;
    gap: 5px;
  }
  .bundle-head {
    gap: 7px;
  }
  .bundle-head h3 {
    font-size: 14.5px;
    line-height: 1.35;
  }
  .bundle-pill {
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .bundle-desc {
    font-size: 11.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bundle-desc .hl {
    font-size: 13px;
  }
  /* 移动端数字已在描述里，四宫格省略，省一大块高度 */
  .bundle-facts {
    display: none;
  }
}

/* 客服二维码上传 */
.qr-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(190, 122, 96, 0.4);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.qr-uploader:hover {
  border-color: rgba(216, 70, 42, 0.45);
  background: #fff;
}
.qr-uploader.busy {
  opacity: 0.6;
  pointer-events: none;
}
.qr-preview {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.8) center/contain no-repeat;
  border: 1px solid rgba(190, 122, 96, 0.18);
}
.qr-preview.has-img {
  border-style: solid;
}
.qr-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qr-upload-text b {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
}
.qr-upload-text span {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------------- 客服弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(58, 26, 16, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal-card {
  position: relative;
  width: min(340px, 100%);
  padding: 26px 24px 22px;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 40px 90px -32px rgba(90, 40, 22, 0.6), inset 0 1px 0 #fff;
  animation: modalIn 0.26s var(--ease);
}
@keyframes modalIn {
  from {
    transform: translateY(10px) scale(0.97);
  }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: rgba(120, 80, 60, 0.07);
  transition: 0.2s;
}
.modal-close:hover {
  background: rgba(216, 70, 42, 0.12);
  color: var(--maple);
}
.modal-close svg {
  width: 14px;
  height: 14px;
}
.modal-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.modal-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.qr-box {
  position: relative;
  width: 208px;
  height: 208px;
  margin: 16px auto 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(216, 70, 42, 0.16);
  box-shadow: 0 14px 32px -20px rgba(120, 50, 30, 0.55);
}
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-empty {
  font-size: 12px;
  color: var(--ink-3);
}
.wechat-line {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.wechat-line b {
  font-weight: 800;
  color: var(--maple);
  letter-spacing: 0.02em;
}
.copy-btn {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--maple);
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(216, 70, 42, 0.09);
  transition: 0.2s;
}
.copy-btn:hover {
  background: rgba(216, 70, 42, 0.16);
}
body.modal-open {
  overflow: hidden;
}
.link-like {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.link-like:hover {
  color: var(--maple);
}

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.pager:empty {
  display: none;
}
.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-inset), 0 8px 18px -16px rgba(122, 48, 26, 0.7);
  transition: 0.2s var(--ease);
}
.pager-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--maple);
  transform: translateY(-1px);
}
.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pager-btn.is-current {
  color: #fff;
  background: linear-gradient(135deg, #e04a2b, #f0954f);
  border-color: transparent;
  box-shadow: 0 12px 24px -12px rgba(205, 62, 32, 0.85);
}
.pager-gap {
  padding: 0 2px;
  color: var(--ink-3);
  font-size: 13px;
}
.pager-total {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 550;
}

/* 骨架屏 */
.skeleton-card {
  border-radius: 22px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.sk {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0.85) 37%, rgba(255, 255, 255, 0.5) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
}
.sk-cover {
  aspect-ratio: 3 / 4;
}
.sk-line {
  height: 12px;
  margin-top: 12px;
  border-radius: 6px;
}
.sk-line.short {
  width: 42%;
  margin-bottom: 6px;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* 空状态 */
.empty {
  padding: clamp(38px, 6vw, 66px) 24px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--glass-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px dashed rgba(190, 122, 96, 0.3);
  box-shadow: var(--shadow-inset);
}
.empty-art {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 238, 228, 0.7));
  border: 1px solid #fff;
  box-shadow: 0 20px 40px -24px rgba(140, 55, 30, 0.6);
  color: #e2704a;
}
.empty-art svg {
  width: 40px;
  height: 40px;
}
.empty h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}
.empty p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.empty .btn {
  margin-top: 20px;
}

/* ---------------- 特性区 ---------------- */
.features {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(20px, 3vw, 30px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition: 0.35s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 231, 216, 0.75));
  border: 1px solid #fff;
  color: var(--maple);
  box-shadow: 0 12px 24px -18px rgba(140, 55, 30, 0.8);
  margin-bottom: 15px;
}
.feature-icon svg {
  width: 21px;
  height: 21px;
}
.feature h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: clamp(30px, 5vw, 56px);
  padding: 28px 0 34px;
  border-top: 1px solid rgba(190, 122, 96, 0.16);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
}
.footer-inner [data-site-contact]::before {
  content: " · ";
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--ink-2);
  font-size: 13.5px;
}
.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.footer-brand .brand-mark svg {
  width: 17px;
  height: 17px;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--maple);
}

/* ---------------- 后台 ---------------- */
.admin-body {
  min-height: 100vh;
}
.admin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 0;
}
.admin-top .brand {
  padding: 8px 14px 8px 10px;
  border-radius: 15px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-brd);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.admin-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.storage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  box-shadow: var(--shadow-inset);
}
.storage-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8a03f;
  box-shadow: 0 0 0 3px rgba(216, 160, 63, 0.16);
}
.storage-badge.ok i {
  background: #3fa06a;
  box-shadow: 0 0 0 3px rgba(63, 160, 106, 0.16);
}

.login-wrap {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 30px 0 60px;
}
.login-card {
  width: min(410px, 100%);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}
.login-card h1 {
  margin: 18px 0 6px;
  font-size: 25px;
  font-weight: 820;
  letter-spacing: -0.02em;
}
.login-card p {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}
.login-card .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}
.login-card .brand-mark svg {
  width: 26px;
  height: 26px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field label .req {
  color: var(--maple);
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 122, 96, 0.22);
  outline: none;
  transition: 0.22s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237c625a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field input:focus,
.field select:focus {
  background-color: #fff;
  border-color: rgba(216, 70, 42, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 70, 42, 0.1);
}
.field input::placeholder {
  color: #b39a92;
}
.field .hint {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.link-btn {
  margin-top: 8px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--maple);
  text-decoration: underline;
  text-decoration-color: rgba(216, 70, 42, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.link-btn:hover {
  color: var(--maple-deep);
}
.link-btn[disabled] {
  color: var(--ink-3);
  text-decoration: none;
  cursor: default;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.input-affix {
  position: relative;
}
.input-affix .affix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--maple);
  pointer-events: none;
}
.input-affix input {
  padding-left: 30px;
}

.uploader {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border-radius: 16px;
  border: 1.5px dashed rgba(190, 122, 96, 0.35);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: 0.25s var(--ease);
  cursor: pointer;
  min-height: 132px;
  overflow: hidden;
}
.uploader:hover,
.uploader.drag {
  border-color: rgba(216, 70, 42, 0.55);
  background: rgba(255, 250, 246, 0.9);
}
.uploader input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.uploader .up-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #ffe9dd);
  color: var(--maple);
  box-shadow: 0 10px 20px -16px rgba(140, 55, 30, 0.9);
}
.uploader .up-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.uploader .up-sub {
  font-size: 11.5px;
  color: var(--ink-3);
}
.uploader .preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
}
.uploader .preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(40, 20, 12, 0.55));
}
.uploader .preview .pv-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.uploader .preview .pv-actions button {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}
.uploader .preview .pv-actions button:hover {
  background: rgba(255, 255, 255, 0.34);
}
.uploader.busy {
  pointer-events: none;
}
.uploader.busy .up-title::after {
  content: "";
  animation: dots 1.2s infinite steps(4);
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

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

/* 后台标签页 */
.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 22px 0 0;
  flex-wrap: wrap;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-inset);
  transition: 0.22s var(--ease);
}
.admin-tab svg {
  width: 16px;
  height: 16px;
}
.admin-tab:hover {
  background: #fff;
  color: var(--maple);
}
.admin-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #e04a2b, #f0954f);
  border-color: transparent;
  box-shadow: 0 12px 26px -14px rgba(205, 62, 32, 0.85);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 60px;
  align-items: start;
}
.settings-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.settings-actions .btn {
  height: 42px;
}
.settings-actions .btn-sm {
  height: 36px;
}
.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 160, 92, 0.12);
  border: 1px solid rgba(216, 70, 42, 0.16);
  font-size: 11.5px;
  line-height: 1.65;
  color: #8a5b47;
}
.admin-card {
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.admin-card-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 780;
  letter-spacing: -0.01em;
}
.admin-card-head .tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 4px 9px;
  border-radius: 7px;
}
.admin-card-body {
  padding: 20px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.form-actions .btn {
  height: 46px;
  flex: 1;
}
.form-actions .btn-ghost {
  flex: 0 0 auto;
  padding: 0 18px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-search {
  height: 34px;
  width: 168px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 9px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(190, 122, 96, 0.2);
  transition: 0.2s var(--ease);
}
.filter-search::placeholder {
  color: #b39c95;
}
.filter-search:focus {
  outline: none;
  background: #fff;
  border-color: rgba(216, 70, 42, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 70, 42, 0.09);
}

/* 开关 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.switch-text label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: rgba(160, 120, 105, 0.3);
  transition: 0.24s var(--ease);
}
.switch .slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(120, 60, 40, 0.28);
  transition: 0.24s var(--ease);
}
.switch input:checked + .slider {
  background: linear-gradient(135deg, #e04a2b, #f0954f);
}
.switch input:checked + .slider::after {
  transform: translateX(20px);
}
.filters select {
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(190, 122, 96, 0.2);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237c625a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  max-width: 100%;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}
.list::-webkit-scrollbar {
  width: 6px;
}
.list::-webkit-scrollbar-thumb {
  background: rgba(180, 120, 100, 0.25);
  border-radius: 99px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: 0.22s var(--ease);
}
.row.is-selected {
  background: rgba(216, 70, 42, 0.07);
  border-color: rgba(216, 70, 42, 0.28);
}
.row-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.row-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--maple);
  cursor: pointer;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.82);
}
.check-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.check-all input {
  width: 15px;
  height: 15px;
  accent-color: var(--maple);
  cursor: pointer;
}
.sel-count {
  font-size: 12px;
  color: var(--ink-3);
}
.list-toolbar .btn-danger {
  margin-left: auto;
}
.row:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px -22px rgba(122, 48, 26, 0.7);
}
.row .thumb {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f6e7dd;
  flex-shrink: 0;
}
.row .thumb.blank {
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #c1a294;
}
.row .info {
  min-width: 0;
  flex: 1;
}
.row .info h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .info .path {
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .info .path span {
  color: #c2a79d;
  margin: 0 4px;
}
.row .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--maple);
  flex-shrink: 0;
}
.row .ops {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.row .ops button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(190, 122, 96, 0.16);
  transition: 0.2s;
}
.row .ops button:hover {
  color: var(--maple);
  background: #fff;
  border-color: rgba(216, 70, 42, 0.3);
}
.row .ops button.del:hover {
  color: #b1331c;
  background: #ffe8e0;
}
.row .ops svg {
  width: 14px;
  height: 14px;
}

.list-empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* Toast */
.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px -24px rgba(90, 40, 22, 0.6);
  animation: toastIn 0.34s var(--ease);
}
.toast.err {
  border-color: rgba(216, 70, 42, 0.3);
}
.toast .bar {
  width: 3px;
  border-radius: 99px;
  align-self: stretch;
  background: linear-gradient(180deg, #e04a2b, #f0a05c);
  flex-shrink: 0;
}
.toast.err .bar {
  background: linear-gradient(180deg, #c0261c, #e2704a);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
  .segmented button small {
    display: none;
  }
}

@media (max-width: 1080px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .list {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .picker {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .picker-field {
    flex: 1 1 auto;
  }
  .picker-stage .segmented {
    width: 100%;
  }
  .picker-actions {
    margin-left: 0;
  }
  .picker-actions .btn {
    flex: 1;
  }
  .gselect-panel {
    max-height: 248px;
  }
  .hero-leaf {
    width: 60vw;
    right: -60px;
    opacity: 0.07;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .step-label {
    padding-top: 0;
  }
  .chips.scroll {
    max-height: 190px;
  }
  .panel-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-actions {
    margin-left: 0;
  }
  .panel-actions .btn {
    flex: 1;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
  }
  .segmented button small {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 58px;
    border-radius: 17px;
    gap: 10px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 16px;
  }
  .topbar-right .btn span {
    display: none;
  }
  .topbar-right .btn {
    padding: 0 12px;
  }
  .hero {
    padding-top: 34px;
    text-align: left;
  }
  .hero h1 {
    font-size: clamp(32px, 9.6vw, 42px);
  }
  .hero-sub {
    margin-left: 0;
    font-size: 14px;
  }
  .hero-stats {
    width: 100%;
    display: flex;
  }
  .hero-stats .stat {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
  }
  .hero-stats b {
    font-size: 19px;
  }
  .hero-stats span {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    height: 30px;
  }
  .panel {
    padding: 18px 16px;
    border-radius: 24px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
  }
  .section-head {
    align-items: stretch;
  }
  .result-search {
    width: 100%;
  }
  .card {
    border-radius: 18px;
    padding: 9px 9px 2px;
  }
  .card-title {
    font-size: 13px;
    min-height: 39px;
  }
  .price .num {
    font-size: 18px;
  }
  .card-tag {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .row .price {
    font-size: 13px;
  }
  .row .ops button {
    width: 28px;
    height: 28px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
