* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --gold: #d4a017; --gold-light: #f3d27a; --gold-pale: #fff6d6; --gold-dark: #b8860b; --bg: #0e0c08; --card: #1a1710; --card-2: #221d13; --text: #ede6d6; --muted: #9a8f7a; --border: #2e2718; --success: #2fd68b; --danger: #ff6b5e; --warn: #f0b34d; --radius: 10px; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; background: radial-gradient(130% 120% at 50% 0%, #17130c 0%, #0e0c08 55%, #0a0805 100%); background-attachment: fixed; color: var(--text); line-height: 1.6; min-height: 100vh; }
/* 全屏流光光幕 */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 18% 22%, rgba(212,160,23,.10) 0%, transparent 70%),
    radial-gradient(45% 32% at 82% 72%, rgba(190,125,30,.08) 0%, transparent 70%),
    radial-gradient(40% 30% at 62% 12%, rgba(243,210,122,.07) 0%, transparent 70%),
    linear-gradient(112deg, transparent 30%, rgba(212,160,23,.05) 43%, rgba(243,210,122,.16) 50%, rgba(212,160,23,.05) 57%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 260% 260%;
  animation: full-sweep 7s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes full-sweep {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%, 140% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%, -140% 0%; }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; -webkit-user-select: text; user-select: text; color: var(--text); caret-color: var(--gold-light); }

/* ============ 顶部横幅：霓虹流光 · 金箔颗粒 ============ */
.top-banner {
  position: relative; overflow: hidden; text-align: center; padding: 12px 16px;
  background: radial-gradient(140% 200% at 50% -20%, #201a10 0%, #120e08 50%, #080603 100%);
}
.top-banner::before {
  content: ''; position: absolute; inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .18; mix-blend-mode: overlay;
  animation: grain-shift 7s steps(8) infinite; pointer-events: none;
}
.top-banner::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; width: 74px; left: -110px;
  background: linear-gradient(105deg, transparent 0%, rgba(255,240,190,.15) 18%, rgba(255,250,230,.6) 42%, rgba(255,255,255,.95) 50%, rgba(255,250,230,.6) 58%, rgba(255,240,190,.15) 82%, transparent 100%);
  transform: skewX(-18deg);
  animation: banner-sweep 2.6s cubic-bezier(.4,0,.2,1) infinite;
  pointer-events: none;
}
.banner-text {
  position: relative; z-index: 2; display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 3px;
  background: linear-gradient(100deg, #caa44a 0%, #f3d27a 22%, #fff6d6 40%, #e4bd5d 55%, #fdf0b0 78%, #caa44a 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: banner-shimmer 2.8s linear infinite, banner-breath 4.5s ease-in-out infinite;
}
@keyframes banner-sweep {
  0% { left: -110px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 30px); opacity: 0; }
}
@keyframes banner-shimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }
@keyframes banner-breath { 0%, 100% { filter: drop-shadow(0 0 6px rgba(243,210,122,.18)); } 50% { filter: drop-shadow(0 0 20px rgba(255,246,214,.55)); } }
@keyframes grain-shift { 0%, 100% { transform: translate(0,0); } 20% { transform: translate(-2%,1%); } 40% { transform: translate(1%,-2%); } 60% { transform: translate(-1%,2%); } 80% { transform: translate(2%,-1%); } }

/* ============ 导航 ============ */
.nav { background: rgba(14,12,8,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 800; background: linear-gradient(100deg, #caa44a 0%, #f3d27a 30%, #fff6d6 50%, #e4bd5d 70%, #caa44a 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: banner-shimmer 6s linear infinite; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-btn { padding: 8px 16px; border-radius: 8px; font-size: 14px; color: var(--text); background: transparent; }
.nav-btn:hover { background: #221d13; }
.nav-btn.primary { background: linear-gradient(135deg, #e6b52a, #d4a017 50%, #b8860b); color: #201a10; font-weight: 600; }
.nav-btn.primary:hover { box-shadow: 0 4px 16px rgba(212,160,23,.4); }

.container { max-width: 1120px; margin: 0 auto; padding: 24px 20px 60px; }

/* ============ 工具栏 ============ */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.search { flex: 1; min-width: 200px; display: flex; }
.search input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-size: 14px; background: #14110a; }
.search input:focus { border-color: var(--gold); }
.search button { padding: 0 18px; background: linear-gradient(135deg, #e6b52a, #b8860b); color: #201a10; border-radius: 0 8px 8px 0; font-size: 14px; font-weight: 600; }
select.sorter { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #14110a; font-size: 14px; color: var(--text); }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-pill { padding: 6px 14px; border-radius: 20px; background: #1a1710; border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.cat-pill:hover { border-color: var(--gold); color: var(--gold-light); }
.cat-pill.active { background: linear-gradient(135deg, #e6b52a, #b8860b); color: #201a10; border-color: transparent; font-weight: 600; }

/* ============ 商品网格 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 18px; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; gap: 8px; }
.pcard:hover { border-color: rgba(243,210,122,.5); box-shadow: 0 8px 28px rgba(212,160,23,.16), 0 0 0 1px rgba(243,210,122,.22); transform: translateY(-2px); }
.pcard .cover { height: 120px; border-radius: 8px; background: linear-gradient(135deg, #1e1913, #171208); border: 1px solid #2a2316; display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; }
.pcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard .name { font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 42px; color: var(--text); }
.pcard .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.price { color: var(--gold-light); font-size: 20px; font-weight: 700; text-shadow: 0 0 16px rgba(243,210,122,.35); }
.price .unit { font-size: 13px; }
.btn { padding: 9px 18px; border-radius: 8px; font-size: 14px; background: linear-gradient(135deg, #e6b52a, #d4a017 50%, #b8860b); color: #201a10; font-weight: 600; }
.btn:hover { background: linear-gradient(135deg, #f2c236, #e0ac22 50%, #caa440); box-shadow: 0 4px 18px rgba(212,160,23,.4); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #1a1710; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn.danger { background: linear-gradient(135deg, #ff6b5e, #d94033); color: #fff; }
.btn.success { background: linear-gradient(135deg, #2fd68b, #1a9b64); color: #fff; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ============ 弹窗 ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 26px; position: relative; }
.modal h3 { font-size: 18px; margin-bottom: 16px; color: var(--gold-light); }
.modal .close { position: absolute; top: 14px; right: 16px; font-size: 24px; color: var(--muted); background: none; line-height: 1; }
.modal .close:hover { color: var(--gold-light); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #14110a; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.card-list { background: #14110a; border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 12px 0; }
.card-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px dashed var(--border); font-family: "SF Mono", Consolas, monospace; font-size: 13px; word-break: break-all; color: var(--text); }
.card-item:last-child { border-bottom: none; }
.card-item .copy { background: #221d13; border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--gold-light); white-space: nowrap; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.badge.gray { background: #262218; color: #9a958a; }
.badge.blue { background: #1e2a3a; color: #6ea8ff; }
.badge.green { background: #14352a; color: #4ce0a3; }
.badge.orange { background: #3a2e14; color: #f0b34d; }
.badge.red { background: #3a1c18; color: #ff7a6e; }

.steps { display: flex; gap: 8px; margin: 14px 0; }
.steps .s { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: #1a1710; font-size: 12px; color: var(--muted); border: 1px solid var(--border); }
.steps .s.on { background: rgba(212,160,23,.14); color: var(--gold-light); font-weight: 600; border-color: rgba(243,210,122,.35); }

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { padding: 0 14px; }
  .brand { font-size: 17px; }
  .banner-text { letter-spacing: 1px; }
  .field input, .field textarea, .field select, .search input { font-size: 16px; }
}

/* ============ 全站胶片颗粒 ============ */
body::after {
  content: ''; position: fixed; inset: -40%; z-index: 2147483647; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .05; mix-blend-mode: soft-light;
  animation: grain-shift 8s steps(10) infinite;
}
