/* 商小会 · 样式
   视觉方向：参考精灵传说官网的蓝紫梦幻天空 + 金色徽标，配合干净的卡片式电商布局 */

:root {
  --bg: #f4f5fb;
  --surface: #fff;
  --ink: #1b1f3b;
  --ink-2: #474d70;
  --muted: #8b90ad;
  --line: #e6e8f2;
  --line-2: #f0f1f8;
  --primary: #5a54f5;
  --primary-600: #4a43e0;
  --primary-50: #efeffe;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --sky: #38bdf8;
  --gold-1: #ffe38f;
  --gold-2: #ffb534;
  --gold-ink: #5e3500;
  --red: #ef4444;
  --green: #10b981;
  --price: #f2542d;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 80, .05), 0 3px 10px rgba(27, 31, 80, .04);
  --shadow: 0 14px 34px -14px rgba(38, 42, 120, .24);
  --shadow-lg: 0 28px 70px -24px rgba(38, 42, 120, .38);
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 14px/1.6 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
body.no-scroll { overflow: hidden; }
#main { flex: 1; padding-top: var(--header-h); }
body[data-hero="1"] #main { padding-top: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; background: var(--line-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: #c7c4ff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 640px; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.block { display: block; }
.mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; }
.pad { padding: 20px; }
.pad-x { padding: 0 4px 10px; }
.w80 { width: 80px !important; }
.w120 { width: 120px; }

/* —— 按钮 —— */
.btn {
  --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--h); padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  background: var(--surface); color: var(--ink); position: relative; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.loading { color: transparent !important; }
.btn.loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-soft.loading::after, .btn-ghost.loading::after, .btn-outline.loading::after { border-color: rgba(90, 84, 245, .3); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12px; }
.btn-lg { --h: 48px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #6a63ff, #5146ec 60%, #7a4ff0); color: #fff; box-shadow: 0 8px 20px -8px rgba(90, 84, 245, .65); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(90, 84, 245, .75); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #ffe89e 0%, #ffc53d 55%, #ffad1f 100%); color: var(--gold-ink);
  border-color: #f5a623; box-shadow: 0 8px 20px -8px rgba(255, 166, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .7); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(255, 166, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-gold.loading::after { border-color: rgba(94, 53, 0, .3); border-top-color: var(--gold-ink); }
.btn-outline { border-color: #cfcdfb; color: var(--primary); background: #fff; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-soft { background: var(--primary-50); color: var(--primary); }
.btn-soft:hover { background: #e2e1fe; color: var(--primary-600); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #d6d8e6; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #f87171, #e11d48); color: #fff; box-shadow: 0 8px 20px -10px rgba(225, 29, 72, .7); }
.btn-danger:hover { color: #fff; }
.danger-text { color: var(--red) !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; font-size: 13px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; position: relative;
  background: transparent; border: 0; color: inherit; transition: background .2s;
}
.icon-btn:hover { background: rgba(90, 84, 245, .08); }

/* —— 标签 —— */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.pill.sm { height: 20px; padding: 0 8px; font-size: 11px; }
.pill-green { background: #dcfce7; color: #15803d; }
.pill-gray { background: #eef0f5; color: #6b7090; }
.pill-red { background: #ffe4e6; color: #e11d48; }
.pill-blue { background: #e0f2fe; color: #0369a1; }
.pill-violet { background: #ede9fe; color: #6d28d9; }
.pill-gold { background: #fff3cd; color: #a15c00; }

/* —— 输入 —— */
.input {
  width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 14px;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: #a5a1fb; box-shadow: 0 0 0 4px rgba(90, 84, 245, .12); }
.input-lg { height: 48px; font-size: 15px; }
.input-cell { height: 34px; border-radius: 9px; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238b90ad' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 20px; padding-right: 36px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field > span i { color: var(--red); font-style: normal; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.field.err .input { border-color: #fca5a5; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); }
.hint { color: var(--muted); font-size: 12px; }
.form-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.check input, .radio input { accent-color: var(--primary); width: 16px; height: 16px; }
.radio-list { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: #a5a1fb; background: var(--primary-50); }
.switch { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #d7d9e6; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch:checked { background: linear-gradient(135deg, #6a63ff, #8b5cf6); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.switch-row.inline { justify-content: flex-start; font-weight: 400; font-size: 13px; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

/* —— 顶栏 —— */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(230, 232, 242, .8); transition: background .3s, border-color .3s, box-shadow .3s;
}
#header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(38, 42, 120, .18); }
#header.is-overlay { background: linear-gradient(180deg, rgba(20, 16, 60, .45), rgba(20, 16, 60, 0)); border-bottom-width: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; filter: drop-shadow(0 2px 4px rgba(40, 30, 120, .25)); transition: transform .2s; }
.brand:hover .brand-logo { transform: scale(1.04) rotate(-1deg); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--primary); background: var(--primary-50); }
.nav a.active { color: var(--primary); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: linear-gradient(90deg, #6a63ff, #ec4899); }
.is-overlay .nav a { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(20, 10, 60, .35); }
.is-overlay .nav a:hover, .is-overlay .nav a.active { color: #fff; background: rgba(255, 255, 255, .14); }
.is-overlay .nav a.active::after { background: var(--gold-1); }
.header-search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.header-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.header-search input { width: 100%; height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: #f6f7fc; padding: 0 14px 0 38px; outline: none; transition: all .2s; }
.header-search input:focus { background: #fff; border-color: #a5a1fb; box-shadow: 0 0 0 4px rgba(90, 84, 245, .12); }
.is-overlay .header-search input { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.is-overlay .header-search input::placeholder { color: rgba(255, 255, 255, .75); }
.is-overlay .header-search .i { color: rgba(255, 255, 255, .8); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.is-overlay .header-actions .icon-btn, .is-overlay .user-btn { color: #fff; }
#header:not(.is-overlay) .btn-ghost-light { color: var(--ink-2); border-color: var(--line); background: transparent; }
.dot-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.dot-badge.static { position: static; border: 0; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 3px 6px 3px 3px; border-radius: 99px; color: var(--ink); transition: background .2s; }
.user-btn:hover { background: rgba(90, 84, 245, .08); }
.user-nick { font-weight: 600; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 18px; height: 18px; opacity: .6; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: all .18s;
}
.user-menu.open .user-drop { opacity: 1; transform: none; pointer-events: auto; }
.user-drop-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.user-drop-head b { display: block; }
.user-drop-head small { color: var(--muted); }
.user-drop a, .user-drop button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); background: none; border: 0; text-align: left; font-size: 14px; }
.user-drop a:hover, .user-drop button:hover { background: var(--primary-50); color: var(--primary); }
.user-drop .drop-admin { color: #7c3aed; font-weight: 600; }
.drop-logout { color: var(--muted) !important; border-top: 1px solid var(--line-2) !important; margin-top: 6px; border-radius: 0 0 10px 10px !important; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

/* —— 首屏 —— */
.hero { position: relative; min-height: 680px; padding-top: var(--header-h); color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background: url(/img/hero-bg.webp) center 40% / cover no-repeat; z-index: -3; transform: scale(1.04); animation: heroZoom 20s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 60% 70% at 18% 50%, rgba(30, 20, 90, .62), transparent 70%),
  linear-gradient(90deg, rgba(28, 20, 86, .55) 0%, rgba(28, 20, 86, .15) 50%, transparent 75%),
  linear-gradient(0deg, rgba(40, 30, 110, .35), transparent 30%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 600px; position: relative; }
.hero-copy { position: relative; z-index: 2; padding: 40px 0 90px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.spark { width: 18px; height: 18px; background: radial-gradient(circle, #fff 0 2px, transparent 3px), conic-gradient(from 0deg, transparent 0 40deg, #ffe38f 45deg, transparent 50deg 130deg, #ffe38f 135deg, transparent 140deg 220deg, #ffe38f 225deg, transparent 230deg 310deg, #ffe38f 315deg, transparent 320deg); border-radius: 50%; animation: spin 6s linear infinite; }
.hero-title { margin: 22px 0 18px; font-size: 56px; line-height: 1.18; font-weight: 900; letter-spacing: 1px; text-shadow: 0 4px 24px rgba(30, 10, 80, .45); }
.hero-title-hl { background: linear-gradient(180deg, #fff6c9 10%, #ffd45c 55%, #ffad2f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(120, 60, 0, .35)); padding: 0 4px; }
.hero-title-hl.alt { background-image: linear-gradient(180deg, #e9f7ff 10%, #9fdcff 55%, #7aa8ff 100%); filter: drop-shadow(0 3px 0 rgba(30, 40, 120, .4)); }
.hero-sub { font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .92); max-width: 600px; text-shadow: 0 1px 8px rgba(20, 10, 60, .5); text-wrap: pretty; }
.hero-search {
  margin-top: 30px; display: flex; align-items: center; max-width: 580px; height: 62px; padding: 7px; gap: 4px;
  background: rgba(255, 255, 255, .96); border-radius: 999px; box-shadow: 0 20px 50px -16px rgba(20, 10, 80, .55), 0 0 0 6px rgba(255, 255, 255, .18);
}
.hero-search select { border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a54f5' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 4px center / 18px; appearance: none; padding: 0 26px 0 18px; height: 100%; font-weight: 700; color: var(--primary); outline: none; border-right: 1.5px solid var(--line); border-radius: 0; cursor: pointer; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; height: 100%; background: transparent; font-size: 15px; color: var(--ink); }
.hero-search .btn { --h: 48px; padding: 0 30px; font-size: 16px; }
.hero-hot { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .8); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hero-hot a { color: #fff; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s; }
.hero-hot a:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.hero-art { position: relative; height: 600px; align-self: end; }
.hero-glow { position: absolute; left: 50%; bottom: 40px; width: 460px; height: 460px; margin-left: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 170, .55), rgba(255, 200, 255, .15) 55%, transparent 70%); filter: blur(10px); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .8; } }
.hero-char { position: absolute; bottom: -10px; left: 50%; height: 640px; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 20px 40px rgba(30, 10, 90, .45)); animation: charIn 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes charIn { from { opacity: 0; transform: translate(-46%, 30px); } }
.hero-egg { position: absolute; width: 112px; filter: drop-shadow(0 12px 18px rgba(30, 10, 90, .35)); animation: float 5s ease-in-out infinite; }
.hero-egg.e1 { left: 2%; top: 22%; animation-delay: -1s; }
.hero-egg.e2 { right: 0; top: 14%; width: 96px; animation-delay: -2.5s; }
.hero-egg.e3 { left: 8%; bottom: 14%; width: 92px; animation-delay: -3.5s; }
.hero-egg.e4 { right: 6%; bottom: 22%; width: 104px; animation-delay: -.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--bg); z-index: 1; }

/* 数据条 */
.stats-bar { position: relative; z-index: 3; margin-top: -64px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px 8px; max-width: 1080px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--line); }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: .5px; background: linear-gradient(135deg, #4a43e0, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* —— 区块 —— */
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.center-head { justify-content: center; text-align: center; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 6px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #6a63ff, #ec4899); }
.center-head .section-title { justify-content: center; }
.section-sub { color: var(--muted); margin-top: 6px; }
.more-link { font-weight: 600; }

/* 分类砖 */
.cat-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px 14px; border-radius: 20px;
  color: var(--ink); font-weight: 700; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm);
}
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 50%); pointer-events: none; }
.cat-tile img { width: 76px; height: 76px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 8px 10px rgba(40, 30, 120, .18)); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover img { transform: scale(1.12) rotate(-4deg); }

/* 分类背景色 */
.cat-bg-egg { background: linear-gradient(145deg, #e3faf6, #d9ecff); }
.cat-bg-equip { background: linear-gradient(145deg, #e4eaff, #dde5ff); }
.cat-bg-fashion { background: linear-gradient(145deg, #ffe6f1, #fdf0fa); }
.cat-bg-potion { background: linear-gradient(145deg, #ffe9e5, #e9edff); }
.cat-bg-material { background: linear-gradient(145deg, #efe7ff, #f8f0e6); }
.cat-bg-prop { background: linear-gradient(145deg, #fff4d8, #ffeaf1); }
.cat-bg-book { background: linear-gradient(145deg, #e3edff, #efe6ff); }
.cat-bg-mount { background: linear-gradient(145deg, #e6f5ff, #f3edff); }
.cat-bg-other { background: linear-gradient(145deg, #ece9ff, #f7eaff); }

/* —— 卡片网格 —— */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid.is-empty, .grid:has(> .empty) { grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(230, 232, 242, .7); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.media-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .media-cover { transform: scale(1.05); }
.media-icon { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40, 30, 120, .2)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.media-icon.big { width: 56%; height: 56%; }
a.card:hover .media-icon { transform: scale(1.08) translateY(-3px); }
.badge-tool {
  position: absolute; left: 10px; top: 10px; z-index: 1; padding: 3px 9px 3px 22px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #38bdf8, #6366f1) ; box-shadow: 0 4px 10px -4px rgba(56, 120, 248, .7);
}
.badge-tool::before { content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.badge-tool.lg { left: 16px; top: 16px; font-size: 13px; padding: 5px 12px 5px 26px; }
.badge-status { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 32, 60, .45); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 2px; backdrop-filter: grayscale(1); z-index: 1; }
.badge-amount { position: absolute; right: 10px; bottom: 10px; padding: 1px 8px; border-radius: 8px; background: rgba(27, 31, 59, .72); color: #fff; font-size: 12px; font-weight: 700; z-index: 1; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; height: 20px; overflow: hidden; }
.card-tags span { font-size: 11px; color: var(--ink-2); background: var(--line-2); padding: 1px 7px; border-radius: 6px; }
.card-price { margin-top: 2px; }
.card-foot { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.card-seller { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-foot > span:last-child { flex: none; }

/* 价格 */
.price { display: inline-flex; align-items: center; gap: 4px; color: var(--price); font-variant-numeric: tabular-nums; line-height: 1; }
.price b { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.price em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .85; }
.price-icon { width: 20px; height: 20px; }
.price-crystal { color: #7c3aed; }
.price-rmb { color: #e11d48; }
.price.sm b { font-size: 14px; }
.price.sm .price-icon { width: 16px; height: 16px; }
.price.xl b { font-size: 40px; }
.price.xl em { font-size: 16px; }
.price.xl .price-icon { width: 40px; height: 40px; }

/* 骨架屏 */
.skeleton .card-media { background: linear-gradient(90deg, #eef0f7 25%, #f6f7fb 50%, #eef0f7 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 12px; border-radius: 6px; background: #eef0f7; margin-bottom: 4px; }
.sk-line.tall { height: 20px; }
.w70 { width: 70%; } .w40 { width: 40%; } .w50 { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 空状态 */
.empty { text-align: center; padding: 50px 20px; }
.empty img { width: 150px; margin: 0 auto 10px; opacity: .95; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); margin: 6px 0 16px; }

/* —— 助手推广条 —— */
.promo { position: relative; margin-top: 80px; padding: 70px 0; color: #fff; overflow: hidden; background: radial-gradient(ellipse at 20% 0%, #5b3fd8 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #c2418f 0%, transparent 50%), linear-gradient(135deg, #1d1758, #2c1f7a 50%, #3a1d6e); }
.promo-stars { position: absolute; inset: 0; opacity: .7; background-image:
  radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 55% 30%, #ffe38f, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent),
  radial-gradient(2px 2px at 88% 15%, #fff, transparent), radial-gradient(1px 1px at 45% 90%, #c4b5fd, transparent),
  radial-gradient(1.5px 1.5px at 65% 55%, #fff, transparent), radial-gradient(1px 1px at 20% 50%, #ffe38f, transparent);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }
.promo-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.promo-art img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.promo-kicker { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255, 227, 143, .16); color: var(--gold-1); font-weight: 700; font-size: 13px; border: 1px solid rgba(255, 227, 143, .35); }
.promo h2 { font-size: 38px; font-weight: 900; margin: 16px 0 14px; line-height: 1.3; }
.promo p { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.8; max-width: 500px; }
.promo-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.promo-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); max-width: 480px; }
.promo-steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffe89e, #ffb534); color: var(--gold-ink); font-weight: 900; }
.promo-steps strong { display: block; }
.promo-steps span { color: rgba(255, 255, 255, .7); font-size: 13px; }
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 安心交易 */
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safe-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.safe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.safe-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.safe-ico.s1 { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 20px -8px rgba(249, 115, 22, .6); }
.safe-ico.s2 { background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 10px 20px -8px rgba(14, 165, 233, .6); }
.safe-ico.s3 { background: linear-gradient(135deg, #f472b6, #8b5cf6); box-shadow: 0 10px 20px -8px rgba(139, 92, 246, .6); }
.safe-card h3 { font-size: 18px; margin-bottom: 8px; }
.safe-card p { color: var(--ink-2); line-height: 1.8; }

/* —— 页脚 —— */
#footer { margin-top: 90px; background: #15123d; color: rgba(255, 255, 255, .65); position: relative; }
body[data-layout="admin"] #footer, body[data-layout="auth"] #footer { display: none; }
.footer-wave { position: absolute; top: -40px; left: 0; right: 0; height: 41px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%2315123d' d='M0 40V20C240 0 480 0 720 14s480 26 720 6v20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 50px 24px 36px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer-brand p { line-height: 1.9; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255, 255, 255, .6); padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: var(--gold-1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; flex-wrap: wrap; }

/* —— 页面横幅 —— */
.page-banner { position: relative; padding: 44px 0 40px; color: #fff; overflow: hidden; background: linear-gradient(120deg, rgba(42, 30, 120, .92), rgba(90, 60, 200, .78) 55%, rgba(200, 90, 170, .6)), url(/img/hero-bg.webp) center 30% / cover; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); }
.page-banner.small { padding: 20px 0 30px; }
.page-banner h1 { font-size: 32px; font-weight: 900; margin-top: 8px; text-shadow: 0 2px 12px rgba(20, 10, 60, .35); }
.page-banner p { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.page-banner p a { color: var(--gold-1); font-weight: 600; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .75); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .9); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .5; }

/* —— 面板 —— */
.panel { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(230, 232, 242, .8); }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-title em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head.wrap { flex-wrap: wrap; }
.panel-head .panel-title { margin: 0; }
.loading-panel { color: var(--muted); text-align: center; padding: 60px; }

/* 标签页 */
.tabs { display: inline-flex; gap: 4px; background: #eef0f7; padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; color: var(--ink-2); font-size: 13px; transition: all .2s; }
.tab small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.tab:hover { color: var(--primary); }
.tab.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px -2px rgba(40, 44, 120, .2); }

/* —— 集市 —— */
.market { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; margin-top: 10px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: grid; gap: 18px; }
.filter-block h4 { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 10px; letter-spacing: .5px; }
.filter-cats { display: grid; gap: 2px; }
.fcat { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; cursor: pointer; transition: background .15s; }
.fcat img { width: 26px; height: 26px; }
.fcat:hover { background: var(--line-2); color: var(--ink); }
.fcat.on { background: var(--primary-50); color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.chip img { width: 16px; height: 16px; }
.chip:hover { border-color: #c7c4fb; }
.chip.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.price-range .input { height: 36px; padding: 0 10px; }
.price-range .btn { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.toolbar-search { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.result-info { margin: 14px 4px; color: var(--muted); font-size: 13px; }
.result-info b { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pg { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); transition: all .15s; }
.pg:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg.active { background: linear-gradient(135deg, #6a63ff, #5146ec); color: #fff; border-color: transparent; }
.pg:disabled { opacity: .4; cursor: not-allowed; }
.pg-gap { align-self: center; color: var(--muted); }

/* —— 详情 —— */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; margin-top: 10px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .7); }
.gallery-main > img#g-main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; filter: drop-shadow(0 10px 24px rgba(40, 30, 120, .18)); }
.gallery-main .media-icon { width: 46%; height: 46%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; padding: 0; border: 2.5px solid transparent; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on { border-color: var(--primary); }
.lightbox-img { width: 100%; border-radius: 12px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-title { font-size: 30px; font-weight: 900; margin: 12px 0 18px; line-height: 1.35; word-break: break-all; }
.detail-title small { font-size: 18px; color: var(--muted); font-weight: 700; }
.price-panel { position: relative; padding: 20px 24px; border-radius: 18px; background: linear-gradient(120deg, #fff6e0, #ffeef0 60%, #f3eeff); border: 1px solid #ffe3c2; overflow: hidden; }
.price-panel::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 80, .35), transparent 70%); }
.price-label { color: #b4690e; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.price-exact { color: var(--muted); font-size: 12px; margin-top: 6px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 16px; overflow: hidden; margin: 18px 0; border: 1px solid var(--line); }
.meta-grid > div { background: #fff; padding: 12px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.meta-grid dt { color: var(--muted); font-size: 12px; }
.meta-grid dd { margin: 2px 0 0; font-weight: 700; word-break: break-all; }
.detail-actions { display: flex; gap: 12px; }
.detail-actions .btn { flex: 1; }
.owner-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--primary-50); color: var(--primary); font-weight: 600; flex-wrap: wrap; }
.owner-bar span { margin-right: auto; }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.8; border: 1px solid; }
.notice b:first-child { display: block; margin-bottom: 2px; }
.notice-blue { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.notice-amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-green { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.detail-lower { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 30px; align-items: start; }
.attr-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.attr-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.attr-row span { color: var(--muted); }
.note-text { white-space: pre-wrap; word-break: break-word; line-height: 1.85; color: var(--ink-2); }
.seller-card { position: sticky; top: calc(var(--header-h) + 16px); transition: box-shadow .3s; }
.seller-card.flash { box-shadow: 0 0 0 4px rgba(255, 181, 52, .5), var(--shadow); }
.seller-head { display: flex; gap: 14px; align-items: center; }
.seller-name { font-size: 18px; font-weight: 800; color: var(--ink); display: block; }
.seller-head small { color: var(--muted); }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; background: var(--line-2); border-radius: 14px; padding: 12px; text-align: center; }
.seller-stats b { display: block; font-size: 22px; font-weight: 800; }
.seller-stats span { color: var(--muted); font-size: 12px; }
.seller-contact { display: grid; gap: 8px; margin-bottom: 12px; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.contact-row b { flex: 1; font-variant-numeric: tabular-nums; word-break: break-all; }
.c-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.c-ico.qq { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.c-ico.wx { background: linear-gradient(135deg, #4ade80, #16a34a); }
.report-link { display: block; margin: 14px auto 0; color: var(--muted); font-weight: 400; font-size: 12px; }
.report-link:hover { color: var(--red); }

/* 卖家主页 */
.seller-banner { padding: 46px 0 50px; color: #fff; background: linear-gradient(120deg, rgba(42, 30, 120, .9), rgba(140, 70, 200, .7)), url(/img/hero-bg.webp) center 60% / cover; }
.seller-banner-inner { display: flex; align-items: center; gap: 22px; }
.seller-banner h1 { font-size: 28px; font-weight: 900; }
.seller-banner p { color: rgba(255, 255, 255, .85); margin-top: 6px; }

/* 留言 */
.chat { display: flex; flex-direction: column; height: min(70vh, 600px); margin: -6px; }
.chat-loading { margin: auto; color: var(--muted); }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.bubble-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.bubble-row.me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #f1f2f9; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.bubble-row.me .bubble { background: linear-gradient(135deg, #6a63ff, #7c4ff0); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble-row time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-input { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; outline: none; }
.chat-input textarea:focus { border-color: #a5a1fb; }

/* —— 发布 —— */
.publish { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 10px; }
.publish-form .panel { padding: 24px 28px; }
.publish-form .panel > .field + .field, .publish-form .panel > .row-3 + .field, .publish-form .panel > .field + .row-3 { margin-top: 16px; }
.step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, #6a63ff, #8b5cf6); }
.cat-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.cat-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: 13px; transition: all .15s; background: #fff; }
.cat-opt input { display: none; }
.cat-opt img { width: 46px; height: 46px; transition: transform .2s; }
.cat-opt:hover { border-color: #c7c4fb; }
.cat-opt.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.cat-opt.on img { transform: scale(1.1); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg-item { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-weight: 700; color: var(--ink-2); transition: all .15s; background: #fff; }
.seg-item input { display: none; }
.seg-item img { width: 22px; height: 22px; }
.seg-item:hover { border-color: #c7c4fb; }
.seg-item.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.attr-edit { display: grid; grid-template-columns: 1fr 1.4fr 38px; gap: 8px; margin-bottom: 8px; }
.attr-edit .del { color: var(--muted); font-size: 20px; }
.attr-edit .del:hover { color: var(--red); background: #fff1f2; }
.uploader { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; border-radius: 16px; border: 2px dashed var(--line); transition: all .2s; }
.uploader.drag { border-color: var(--primary); background: var(--primary-50); }
.up-list { display: contents; }
.up-item { position: relative; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-cover { position: absolute; left: 0; top: 0; background: linear-gradient(135deg, #ffd45c, #ffad2f); color: var(--gold-ink); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 0 0 10px 0; }
.up-del { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(20, 20, 40, .6); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.up-del:hover { background: var(--red); }
.up-drop { width: 112px; height: 112px; border-radius: 14px; background: var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 12px; transition: all .15s; }
.up-drop .i { width: 30px; height: 30px; }
.up-drop:hover { background: var(--primary-50); color: var(--primary); }
.publish-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); flex-wrap: wrap; }
.publish-form > .form-err { margin-top: 18px; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.side-title { font-weight: 800; color: var(--muted); font-size: 13px; margin-bottom: 10px; letter-spacing: .5px; }
#preview .card { pointer-events: none; box-shadow: var(--shadow); }
.tips { margin-top: 18px; background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.tips h4 { font-size: 14px; margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 2; font-size: 13px; }

/* —— 个人中心 —— */
.me-banner { padding: 40px 0 46px; color: #fff; background: linear-gradient(120deg, rgba(42, 30, 120, .9), rgba(90, 60, 200, .75) 60%, rgba(200, 90, 170, .55)), url(/img/hero-bg.webp) center 70% / cover; }
.me-banner-inner { display: flex; align-items: center; gap: 20px; }
.me-banner-inner > div { flex: 1; }
.me-banner h1 { font-size: 26px; font-weight: 900; }
.me-banner p { color: rgba(255, 255, 255, .8); margin-top: 4px; }
.me { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: -20px; position: relative; align-items: start; }
.me-nav { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 16px); }
.me-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 600; }
.me-nav a .pill { margin-left: auto; }
.me-nav a:hover { background: var(--line-2); color: var(--ink); }
.me-nav a.on { background: linear-gradient(135deg, #6a63ff, #7c4ff0); color: #fff; box-shadow: 0 8px 18px -8px rgba(90, 84, 245, .7); }
.me-nav .me-nav-ext { margin-top: 6px; border-top: 1px solid var(--line-2); border-radius: 0; font-size: 12px; color: var(--muted); }
.my-list { display: grid; }
.my-row { display: grid; grid-template-columns: 72px 1fr 130px 110px auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.my-row:last-child { border-bottom: 0; }
.my-media { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; position: relative; display: grid; place-items: center; }
.my-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.my-sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.my-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.conv-list { display: grid; }
.conv { display: flex; gap: 14px; align-items: center; width: 100%; padding: 14px 10px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; border-radius: 12px; transition: background .15s; }
.conv:hover { background: var(--line-2); }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; gap: 8px; align-items: center; }
.conv-top time { margin-left: auto; color: var(--muted); font-size: 12px; }
.conv-item { font-size: 12px; color: var(--ink-2); margin: 3px 0; display: flex; align-items: center; gap: 6px; }
.conv-last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-last { color: var(--ink); font-weight: 600; }
.token-intro { display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, #f4f2ff, #fdf2fb); }
.token-intro p { color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }
.token-intro img { width: 200px; flex: none; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { height: 38px; min-width: 200px; }
.token-box { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: #1b1f3b; margin: 16px 0; }
.token-box code { flex: 1; background: none; color: #a5f3fc; font-size: 14px; word-break: break-all; }
.howto { margin: 0; padding-left: 22px; line-height: 2; color: var(--ink-2); }
.howto li { padding-left: 4px; }
.howto li::marker { color: var(--primary); font-weight: 800; }
.howto.big li { margin-bottom: 8px; font-size: 15px; }
.narrow-form { max-width: 440px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 12px; padding: 10px 10px; border-bottom: 1px solid var(--line); background: #fafbfe; white-space: nowrap; }
.table th.right { text-align: right; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: #fafbff; }
.table.compact td { padding: 8px 10px; }
.cell-item { display: flex; gap: 10px; align-items: center; }
.cell-item a { font-weight: 700; color: var(--ink); }
.cell-item small, .cell-user small { display: block; color: var(--muted); font-size: 11px; }
.cell-user { display: flex; gap: 10px; align-items: center; }
.mini-media { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; position: relative; display: grid; place-items: center; flex: none; }
.mini-media .media-icon { width: 80%; height: 80%; }

/* —— 文档页 —— */
.doc { max-width: 900px; margin-top: 10px; }
.doc-sec h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.doc-sec p { line-height: 1.9; color: var(--ink-2); }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.8; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #34d399, #0ea5e9); }
.faq { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 18px; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 8px; }
.tool-banner { padding: 40px 0 30px; }
.tool-banner-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; }
.tool-banner-inner img { max-height: 300px; margin-left: auto; filter: drop-shadow(0 16px 30px rgba(20, 10, 60, .4)); }
.tool-banner .btn { margin-top: 20px; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.feature img { width: 64px; height: 64px; margin: 0 auto 10px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* —— 登录注册 —— */
body[data-layout="auth"] #main { padding-top: var(--header-h); }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-art { position: relative; overflow: hidden; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 14, 70, .85), rgba(20, 14, 70, .1) 55%); }
.auth-art-copy { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 1; color: #fff; }
.auth-logo { height: 90px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); }
.auth-art-copy p { font-size: 20px; font-weight: 700; line-height: 1.7; }
.auth-art-copy span { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .75); }
.auth-side { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(ellipse at 80% 0%, #ece8ff, transparent 60%), radial-gradient(ellipse at 0% 100%, #ffeaf5, transparent 50%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 36px 36px 28px; box-shadow: var(--shadow-lg); position: relative; }
.auth-mascot { width: 92px; position: absolute; right: 24px; top: -52px; filter: drop-shadow(0 10px 14px rgba(40, 30, 120, .25)); animation: float 4s ease-in-out infinite; }
.auth-card h1 { font-size: 26px; font-weight: 900; }
.auth-sub { color: var(--muted); margin: 6px 0 24px; }
.auth-alt { text-align: center; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.auth-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: -8px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-img { flex: none; width: 140px; height: 48px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #f1f0ff; }
.captcha-img img { width: 100%; height: 100%; }

/* —— 弹窗 / 提示 —— */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(18, 16, 48, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-mask.show { opacity: 1; }
.modal { position: relative; width: 100%; background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; overflow-y: auto; }
.modal-mask.show .modal { transform: none; }
.modal-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--line-2); font-size: 20px; line-height: 1; color: var(--muted); z-index: 2; }
.modal-x:hover { background: #e5e7f0; color: var(--ink); }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; padding-right: 30px; }
.modal-text { color: var(--ink-2); line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#toasts { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); font-weight: 600; opacity: 0; transform: translateY(-10px); transition: all .25s; border: 1px solid var(--line); }
.toast.show { opacity: 1; transform: none; }
.toast-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; flex: none; }
.toast-ok .toast-icon { background: var(--green); }
.toast-warn .toast-icon { background: #f59e0b; }
.toast-err .toast-icon { background: var(--red); }

/* 启动 / 错误页 */
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.boot-mascot { width: 110px; animation: float 2s ease-in-out infinite; }
.error-page { text-align: center; padding: 80px 24px; }
.error-art { width: 180px; margin: 0 auto 16px; }
.error-page h1 { font-size: 26px; }
.error-page p { margin: 8px 0 22px; }
.page-enter { animation: pageIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* —— 管理后台 —— */
body[data-layout="admin"] #header { display: none; }
body[data-layout="admin"] #main { padding-top: 0; }
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, #1a1650, #241b63 60%, #2d1c66); color: rgba(255, 255, 255, .75); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 18px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-brand img { height: 54px; width: auto; }
.admin-brand span { color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: 3px; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(255, 255, 255, .72); font-weight: 600; transition: all .15s; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side nav a.on { background: linear-gradient(135deg, rgba(122, 114, 255, .9), rgba(139, 92, 246, .9)); color: #fff; box-shadow: 0 8px 20px -8px rgba(122, 114, 255, .8); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #f43f5e; color: #fff; font-size: 11px; display: grid; place-items: center; }
.nav-count:empty { display: none; }
.admin-back { margin-top: auto; color: rgba(255, 255, 255, .55); padding: 10px 14px; font-size: 13px; }
.admin-back:hover { color: #fff; }
.admin-main { min-width: 0; }
.admin-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-top h1 { font-size: 19px; font-weight: 800; }
.admin-me { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-body { padding: 24px 28px 40px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.kpi[href]:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-value { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; color: var(--ink); line-height: 1.2; }
.kpi-sub { font-size: 12px; color: var(--ink-2); }
.admin-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.admin-grid-2 .panel + .panel { margin-top: 0; }
.seg-mini { display: inline-flex; background: #eef0f7; border-radius: 10px; padding: 3px; }
.seg-mini button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.seg-mini button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(40, 44, 120, .15); }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #eceef5; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font); }
.chart .bar { fill: #6366f1; transition: opacity .15s; }
.chart .hit { fill: transparent; }
.chart .col.hover .bar { fill: #4f46e5; }
.chart:has(.col.hover) .col:not(.hover) .bar { opacity: .45; }
.chart-tip { position: absolute; transform: translate(-50%, -100%); background: #1b1f3b; color: #fff; padding: 6px 10px; border-radius: 9px; font-size: 12px; pointer-events: none; white-space: nowrap; display: flex; gap: 8px; box-shadow: var(--shadow); }
.chart-tip b { color: rgba(255, 255, 255, .7); font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; line-height: 1.6; border-bottom: 1px dashed var(--line-2); }
.feed li > div { min-width: 0; word-break: break-all; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7c9da; margin-top: 7px; flex: none; }
.feed-dot.adm { background: #8b5cf6; }
.feed time { display: block; color: var(--muted); font-size: 11px; }
.report-list { display: grid; gap: 10px; }
.report { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.report-main { display: grid; gap: 6px; min-width: 0; }
.report-main a { color: var(--ink); }
.report-detail { background: var(--line-2); padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13px; white-space: pre-wrap; }
.report-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 300px; }
.icon-swatch { width: 44px; height: 44px; border-radius: 12px; border: 0; padding: 4px; display: grid; place-items: center; }
.icon-swatch img { width: 100%; height: 100%; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick label { width: 60px; height: 60px; border-radius: 14px; border: 2px solid var(--line); padding: 6px; cursor: pointer; transition: all .15s; }
.icon-pick label input { display: none; }
.icon-pick label.on { border-color: var(--primary); background: var(--primary-50); }
.icon-pick img { width: 100%; height: 100%; }

/* —— 响应式 —— */
@media (max-width: 1200px) {
  .grid, .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-title { font-size: 46px; }
  .header-search { max-width: 220px; }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #fff; padding: 10px; box-shadow: var(--shadow-lg); display: none; }
  #header.menu-open .nav { display: flex; }
  #header.menu-open .nav a { color: var(--ink-2); text-shadow: none; }
  .menu-toggle { display: inline-grid; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .hide-sm, .user-nick { display: none; }
  .brand-logo { height: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-copy { padding-bottom: 110px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 18px; width: auto; margin-left: 16px; margin-right: 16px; }
  .stat:nth-child(3)::before { display: none; }
  .market, .publish, .detail, .detail-lower, .me, .admin-grid-2, .promo-inner, .tool-banner-inner { grid-template-columns: 1fr; }
  .filters, .seller-card, .sticky, .me-nav { position: static; }
  .publish-side { order: -1; }
  .publish-side #preview { max-width: 260px; }
  .cat-pick { grid-template-columns: repeat(5, 1fr); }
  .grid, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .safe-grid, .feature-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { grid-template-columns: repeat(4, 1fr); }
  .admin-body { padding: 16px; overflow-x: auto; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .my-row { grid-template-columns: 64px 1fr auto; }
  .my-price, .my-status { grid-column: 2; }
  .my-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .me-nav { grid-auto-flow: column; overflow-x: auto; }
  .me-nav .me-nav-ext { display: none; }
  .tool-banner-inner img { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .hero { min-height: 600px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 14px; }
  .hero-search { height: 56px; }
  .hero-search select { padding: 0 22px 0 12px; max-width: 110px; }
  .hero-search .btn { padding: 0 16px; }
  .grid, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tile img { width: 56px; height: 56px; }
  .section-title { font-size: 21px; }
  .promo h2 { font-size: 28px; }
  .safe-grid, .feature-row, .row-3 { grid-template-columns: 1fr; }
  .cat-pick { grid-template-columns: repeat(3, 1fr); }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .attr-table { grid-template-columns: 1fr; }
  .detail-title { font-size: 24px; }
  .price.xl b { font-size: 32px; }
  .panel { padding: 18px; }
  .publish-form .panel { padding: 18px; }
  .token-intro img { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 28px 22px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form .input { min-width: 0; flex: 1; }
  .admin-side nav { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 10px; }
  .price b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
