/* ============ SportMax — 商品展示站样式 ============ */
:root {
  --blue: #005bff;
  --blue-dark: #0047c7;
  --pink: #f91155;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #0d1421;
  --ink-soft: #5a6478;
  --line: #e6eaf2;
  --radius: 18px;
  --shadow: 0 2px 8px rgba(13, 20, 33, .05), 0 12px 32px rgba(13, 20, 33, .07);
  --shadow-hover: 0 6px 16px rgba(0, 91, 255, .12), 0 20px 48px rgba(13, 20, 33, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 251, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo-dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--blue), var(--pink)); box-shadow: 0 0 12px rgba(0,91,255,.5); }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--ink-soft); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 18px; font-size: .88rem; border-radius: 11px; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0, 91, 255, .35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 91, 255, .45); }
.btn-ozone { background: var(--pink); color: #fff; box-shadow: 0 8px 24px rgba(249, 17, 85, .3); }
.btn-ozone:hover { background: #d90d47; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(249, 17, 85, .25), transparent 60%),
    radial-gradient(700px 420px at 10% 0%, rgba(0, 91, 255, .35), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #101c3a 55%, #0d1830 100%);
  color: #fff;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #9db9ff;
  border: 1px solid rgba(157, 185, 255, .35); border-radius: 99px; padding: 6px 14px;
  background: rgba(0, 91, 255, .15);
  animation: fadeUp .7s ease both;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.14; letter-spacing: -.03em;
  margin: 22px 0 18px; font-weight: 800;
  animation: fadeUp .7s .08s ease both;
}
.hero-sub { color: #b9c4d8; font-size: 1.1rem; max-width: 480px; animation: fadeUp .7s .16s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; animation: fadeUp .7s .24s ease both; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #8fa0bd; font-size: .9rem; font-weight: 600; animation: fadeUp .7s .32s ease both; }

.hero-cards { position: relative; height: 380px; }
.hero-card {
  position: absolute; width: 240px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); padding: 10px;
  transform: rotate(var(--rot, 0deg));
  animation: floatCard .9s var(--d, 0s) ease both, hoverFloat 6s var(--d, 0s) ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:nth-child(1) { top: 8px; left: 6%; --rot: -5deg; }
.hero-card:nth-child(2) { top: 96px; left: 38%; --rot: 3deg; z-index: 2; }
.hero-card:nth-child(3) { top: 200px; left: 8%; --rot: -2deg; }
.hero-card:hover { transform: rotate(0) scale(1.05); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); z-index: 5; }
.hero-card img { border-radius: 12px; height: 160px; width: 100%; object-fit: cover; }
.hero-card-title { display: block; color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 4px 6px; }

@keyframes hoverFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 分类区 ---------- */
.catalog { padding: 84px 0 60px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.section-head h2, .related h2, .about h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 8px 18px; border-radius: 99px; cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--blue); color: #fff; font-size: .74rem; font-weight: 800;
  padding: 5px 12px; border-radius: 99px; letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(0, 91, 255, .4);
}
.discount {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--pink); color: #fff; font-size: .74rem; font-weight: 800;
  padding: 5px 10px; border-radius: 99px;
  box-shadow: 0 4px 12px rgba(249, 17, 85, .4);
}
.discount.big { position: static; font-size: .9rem; padding: 6px 12px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--blue); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 1.06rem; font-weight: 700; line-height: 1.35; margin: 6px 0 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-now { font-size: 1.22rem; font-weight: 800; }
.price-old { color: var(--ink-soft); font-size: .9rem; margin-left: 8px; }
.card-go { color: var(--ink-soft); font-size: .86rem; font-weight: 600; transition: color .2s, transform .2s; }
.card:hover .card-go { color: var(--blue); transform: translateX(3px); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 1.05rem; }

/* ---------- 服务保障 ---------- */
.about { padding: 40px 0 90px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.about-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.about-ico { font-size: 1.9rem; margin-bottom: 12px; }
.about-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.about-item p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- 商品详情页 ---------- */
.nav-space { height: 40px; }
.crumbs { color: var(--ink-soft); font-size: .9rem; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: var(--blue); }
.crumb-cur { color: var(--ink); font-weight: 600; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow);
}
.product-media { position: relative; border-radius: 16px; overflow: hidden; background: #eef1f7; }
.product-media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.product-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 18px; }
.product-price { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.product-price .price-now { font-size: 1.9rem; }
.product-price .price-old { font-size: 1.15rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.product-trust { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-soft); font-size: .88rem; font-weight: 600; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.product-desc { margin-top: 26px; }
.product-desc h2 { font-size: 1.15rem; margin-bottom: 10px; }
.product-desc p { color: var(--ink-soft); white-space: pre-line; }
.related { margin-top: 70px; }
.related h2 { margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.footer { background: #0d1421; color: #cfd6e4; padding: 56px 0 30px; margin-top: 20px; }
.footer .logo { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-sub { color: #8fa0bd; font-size: .92rem; margin-top: 8px; max-width: 360px; }
.copyright { text-align: center; color: #6b7690; font-size: .85rem; margin-top: 26px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .hero { padding: 60px 0 70px; }
  .product-layout { grid-template-columns: 1fr; padding: 24px; gap: 30px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- 后台管理 ---------- */
body.admin-body { background: #eef1f6; }
.admin-wrap { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; }
.admin-tabs { display: flex; gap: 10px; }
.admin-tab {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 20px;
  transition: all .2s;
}
.admin-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.stat-box .num { font-size: 1.9rem; font-weight: 800; color: var(--blue); }
.stat-box .lbl { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
table.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.ptable th { text-align: left; color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 2px solid var(--line); }
table.ptable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.ptable tr:hover td { background: #f7f9fd; }
.ptable img.thumb { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; background: #eef1f7; }
.row-actions { display: flex; gap: 8px; }
.mini-btn { font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; border-radius: 9px; padding: 7px 14px; border: 1.5px solid var(--line); background: #fff; transition: all .18s; }
.mini-btn:hover { border-color: var(--blue); color: var(--blue); }
.mini-btn.danger:hover { border-color: var(--pink); color: var(--pink); }
.mini-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(0,91,255,.3); }
.mini-btn.primary:hover { background: var(--blue-dark); color: #fff; }

/* 后台弹窗表单 */
.modal-mask { position: fixed; inset: 0; background: rgba(13, 20, 33, .5); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; z-index: 100; overflow-y: auto; padding: 40px 16px; }
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: 20px; width: 640px; max-width: 100%; padding: 30px; animation: fadeUp .3s ease; }
.modal h2 { font-size: 1.25rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .94rem; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fbfcfe;
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 255, .14); }
.field textarea { min-height: 110px; resize: vertical; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; padding-top: 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.upload-box { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; color: var(--ink-soft); font-size: .88rem; cursor: pointer; transition: border .2s; }
.upload-box:hover { border-color: var(--blue); color: var(--blue); }
.upload-preview { max-height: 120px; margin: 0 auto 10px; border-radius: 10px; }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0b1220, #101c3a); }
.login-card { background: #fff; border-radius: 22px; padding: 44px 40px; width: 400px; max-width: 92vw; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: fadeUp .5s ease; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.login-card .sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 24px; }
.login-card input { width: 100%; font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.login-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 255, .14); }
.login-error { color: var(--pink); font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.login-card .btn { width: 100%; }
.login-hint { color: var(--ink-soft); font-size: .78rem; text-align: center; margin-top: 16px; }

/* ============ v2 附加样式：访问计数器 + 移动端适配 ============ */

/* ---------- 访问计数器（霓虹玻璃拟态） ---------- */
.visit-counter {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 30px; padding: 16px 24px; border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  animation: fadeUp .7s .4s ease both;
}
.visit-counter::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%);
  transform: translateX(-100%); animation: vcSheen 3.4s ease-in-out infinite;
}
@keyframes vcSheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.vc-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: #2ee6a8; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(46, 230, 168, .55); animation: vcPulse 1.8s infinite;
}
@keyframes vcPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, .55); }
  70% { box-shadow: 0 0 0 11px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}
.vc-label { color: #9db9ff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.vc-num {
  font-size: 2.05rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  background: linear-gradient(90deg, #7fb2ff 0%, #ffffff 45%, #ff9db8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 91, 255, .5));
}
.vc-today {
  color: #2ee6a8; font-weight: 700; font-size: .82rem;
  padding: 4px 11px; border-radius: 99px;
  background: rgba(46, 230, 168, .12); border: 1px solid rgba(46, 230, 168, .32);
}

/* ---------- 平板 ≤900px ---------- */
@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head h2 { margin-bottom: 2px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; white-space: nowrap; }
  .visit-counter { margin-top: 26px; }
}

/* ---------- 手机 ≤560px ---------- */
@media (max-width: 560px) {
  .nav-inner { height: 58px; }
  .logo { font-size: 1.12rem; gap: 8px; }
  .logo-dot { width: 10px; height: 10px; }
  .btn-ozone.btn-sm { padding: 8px 14px; font-size: .8rem; }

  .hero { padding: 42px 0 54px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .hero-sub { font-size: .98rem; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badges { gap: 8px 16px; font-size: .82rem; margin-top: 22px; }

  .visit-counter { padding: 13px 16px; gap: 9px; border-radius: 14px; width: 100%; }
  .vc-num { font-size: 1.65rem; }
  .vc-label { font-size: .68rem; }
  .vc-today { font-size: .74rem; padding: 3px 9px; }

  .catalog { padding: 50px 0 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 14px; }
  .card-media { aspect-ratio: 1 / 1; }
  .card-body { padding: 11px 12px 13px; }
  .card-cat { font-size: .64rem; letter-spacing: .04em; }
  .card-title { font-size: .84rem; margin: 3px 0 8px; line-height: 1.3; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card-go { display: none; }
  .price-now { font-size: 1rem; }
  .price-old { font-size: .74rem; margin-left: 4px; }
  .badge, .discount { font-size: .6rem; padding: 3px 8px; top: 8px; }
  .badge { left: 8px; }
  .discount { right: 8px; }

  .about { padding: 14px 0 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-item { padding: 18px 16px; }
  .about-ico { font-size: 1.5rem; margin-bottom: 8px; }

  .product-layout { padding: 16px; gap: 24px; border-radius: 18px; }
  .product-title { font-size: 1.3rem; }
  .product-price .price-now { font-size: 1.55rem; }
  .product-price .price-old { font-size: .95rem; }
  .product-actions { gap: 10px; margin-bottom: 18px; }
  .product-actions .btn { flex: 1 1 100%; }
  .related { margin-top: 40px; }

  .footer { padding: 40px 0 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer .btn { width: 100%; }
  .footer-sub { max-width: none; }
}

/* ---------- 小屏手机 ≤380px ---------- */
@media (max-width: 380px) {
  .grid { gap: 9px; }
  .card-title { font-size: .78rem; }
  .price-now { font-size: .92rem; }
  .vc-num { font-size: 1.45rem; }
}

/* 幽灵按钮在深色 Hero 上的可读性修复 */
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.38); }
.hero-actions .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ============ v3 附加样式：新年主题 + 悬浮联系按钮 ============ */

/* ---------- 新年促销横幅 ---------- */
.promo-strip {
  background: linear-gradient(90deg, #0f7a3d 0%, #0b1220 48%, #b3123f 100%);
  color: #fff;
}
.promo-inner {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 9px 0; font-weight: 700; font-size: .9rem;
  flex-wrap: wrap; text-align: center;
}
.promo-text { letter-spacing: .01em; }
.promo-link {
  color: #ffd76e; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.promo-link:hover { color: #ffe9a8; }

/* ---------- 悬浮联系按钮 ---------- */
.float-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2aabee, #1c7fd6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 10px 26px rgba(42, 171, 238, .45);
  animation: fcBounce 3s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s;
}
.float-contact:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(42, 171, 238, .6); }
.float-contact span { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
@keyframes fcBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* ---------- 飘雪特效 ---------- */
.snow-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.snowflake {
  position: absolute; top: -24px; color: #fff;
  text-shadow: 0 0 6px rgba(160, 200, 255, .8);
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0% { transform: translate3d(0, -6vh, 0) rotate(0deg); }
  100% { transform: translate3d(3vw, 106vh, 0) rotate(300deg); }
}
@media (prefers-reduced-motion: reduce) {
  .snow-layer { display: none; }
  .float-contact { animation: none; }
  .visit-counter::after { animation: none; }
}

/* ---------- 目录信任行 ---------- */
.catalog-note {
  color: var(--ink-soft); font-size: .88rem; font-weight: 600;
  margin-top: 4px;
}

/* ---------- 手机端 ---------- */
@media (max-width: 560px) {
  .promo-inner { font-size: .78rem; gap: 10px; padding: 8px 0; }
  .float-contact { width: 48px; height: 48px; right: 14px; bottom: 14px; font-size: 1.3rem; }
  .catalog-note { font-size: .78rem; }
}

/* ============ v4 附加样式：目录工具栏（搜索/排序/价格） ============ */
.cat-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.cat-search input {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 600;
  padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; transition: border .2s, box-shadow .2s;
}
.cat-search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, .14);
}
.cat-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-sort { display: flex; gap: 8px; flex-wrap: wrap; }
.sortchip {
  font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 99px; transition: all .2s;
}
.sortchip:hover { border-color: var(--blue); color: var(--blue); }
.sortchip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 91, 255, .3); }
.cat-price { display: flex; align-items: center; gap: 8px; }
.cat-price input {
  width: 92px; font: inherit; font-size: .9rem; font-weight: 600;
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; transition: border .2s;
}
.cat-price input:focus { outline: none; border-color: var(--blue); }
.cat-price-sep { color: var(--ink-soft); font-weight: 700; }
/* 隐藏 number 输入的上下箭头 */
.cat-price input::-webkit-outer-spin-button,
.cat-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cat-price input[type=number] { -moz-appearance: textfield; appearance: textfield; }

@media (max-width: 900px) {
  .cat-controls { flex-direction: column; align-items: stretch; }
  .cat-sort { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-sort::-webkit-scrollbar { display: none; }
  .sortchip { flex: 0 0 auto; white-space: nowrap; }
  .cat-price { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .cat-toolbar { gap: 10px; margin-bottom: 18px; }
  .cat-search input { padding: 11px 14px; font-size: .92rem; }
  .sortchip { font-size: .8rem; padding: 7px 14px; }
  .cat-price input { width: 84px; padding: 8px 10px; font-size: .86rem; }
}

/* ============ v5 附加样式：科技感滚动横幅（左右渐隐） ============ */
.ticker {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 90px at 20% 0%, rgba(0, 91, 255, .22), transparent 70%),
    linear-gradient(90deg, #0b1220 0%, #101c3a 50%, #0d1830 100%);
  border: 1px solid rgba(0, 91, 255, .35);
  border-radius: 14px;
  box-shadow: inset 0 0 24px rgba(0, 91, 255, .12), 0 4px 14px rgba(13, 20, 33, .25);
  margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
/* 底部霓虹流光线 */
.ticker::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, #005bff 30%, #2aabee 50%, #005bff 70%, transparent);
  opacity: .8;
  animation: tickerLine 3.2s linear infinite;
  background-size: 200% 100%;
}
@keyframes tickerLine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 26s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex; align-items: center; gap: 56px;
  padding: 11px 28px;
  white-space: nowrap;
}
.ticker-group span {
  color: #9db9ff;
  font-weight: 700; font-size: .86rem;
  letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 91, 255, .65);
  display: inline-flex; align-items: center; gap: 8px;
}
.ticker-group span:nth-child(even) { color: #ff9db8; text-shadow: 0 0 14px rgba(249, 17, 85, .55); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ticker::after { animation: none; }
}
@media (max-width: 560px) {
  .ticker { border-radius: 11px; margin-bottom: 14px; }
  .ticker-group { gap: 36px; padding: 9px 20px; }
  .ticker-group span { font-size: .74rem; letter-spacing: .04em; }
}

/* ============ v6 附加样式：丝滑交互打磨 ============ */

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, #005bff, #2aabee 55%, #f91155);
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(0, 91, 255, .4);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  color: var(--blue); font: inherit; font-size: 1.2rem; font-weight: 800;
  cursor: pointer; opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity .25s ease, translate .25s ease, background .2s, color .2s;
  box-shadow: 0 8px 22px rgba(13, 20, 33, .18);
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: #fff; }

/* ---------- 水波纹 ---------- */
.chip, .sortchip, .btn, .mini-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 65%);
  transform: scale(0); animation: rippleGo .55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleGo { to { transform: scale(1); opacity: 0; } }

/* ---------- 卡片 3D 倾斜 + 霓虹描边 ---------- */
.card.tilting { transition: box-shadow .3s ease, border-color .3s ease; }
.card:hover { border-color: rgba(0, 91, 255, .42); }

/* ---------- 图片渐显（仅在 JS 可用时启用） ---------- */
.js .card-media img, .js .hero-card img, .js .product-media img {
  opacity: 0; transition: opacity .45s ease;
}
.js .card-media img.img-loaded, .js .hero-card img.img-loaded, .js .product-media img.img-loaded {
  opacity: 1;
}

/* ---------- 筛选弹入动画 ---------- */
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.card.pop { animation: popIn .38s ease both; }

/* ---------- 无结果提示 + 命中数徽章 ---------- */
.no-results {
  display: none; text-align: center; color: var(--ink-soft);
  padding: 46px 0; font-size: 1.02rem; font-weight: 600;
}
.found-chip {
  display: inline-flex; align-items: center; gap: 6px;
  position: absolute; right: 14px; top: 50%; translate: 0 -50%;
  padding: 4px 12px; border-radius: 99px;
  background: rgba(0, 91, 255, .1); color: var(--blue);
  font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(0, 91, 255, .25);
  pointer-events: none;
}
.cat-search { position: relative; }

/* ---------- Hero 视差容器 ---------- */
.hero-cards { transition: translate .35s ease-out; }

/* ---------- 自定义滚动条 ---------- */
html { scrollbar-width: thin; scrollbar-color: #005bff #eef1f7; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #eef1f7; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #005bff, #2aabee);
  border-radius: 8px; border: 2.5px solid #eef1f7;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #0047c7, #005bff); }

/* ---------- 降级保护 ---------- */
@media (prefers-reduced-motion: reduce) {
  .card.pop { animation: none; }
  .hero-cards { transition: none; }
}
@media (max-width: 560px) {
  .to-top { right: 15px; bottom: 78px; width: 42px; height: 42px; font-size: 1.05rem; }
  .found-chip { font-size: .72rem; padding: 3px 10px; right: 12px; }
}

/* ============ v7 附加样式：搜索清空按钮 ============ */
.search-clear {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  background: #eef1f7; color: var(--ink-soft);
  font-size: .85rem; line-height: 1;
  display: none; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s;
}
.search-clear.has-value { display: inline-flex; }
.search-clear:hover { background: var(--pink); color: #fff; transform: scale(1.08); }
.search-clear:active { transform: scale(.92); }
.found-chip { right: 52px; }
@media (max-width: 560px) {
  .search-clear { right: 10px; width: 27px; height: 27px; font-size: .78rem; }
  .found-chip { right: 46px; }
}

/* ============ v8 附加样式：变体缩略图（详情页） ============ */
.variants { margin-top: 44px; }
.variants h2 { font-size: 1.15rem; margin-bottom: 16px; letter-spacing: -.01em; }
.variants-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.variants-row::-webkit-scrollbar { height: 8px; }
.variants-row::-webkit-scrollbar-thumb { border: none; }
.variant-card {
  position: relative; flex: 0 0 96px;
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--line); background: #eef1f7;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.variant-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 91, 255, .18);
}
.variant-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.js .variant-card img { opacity: 0; transition: opacity .45s ease; }
.js .variant-card img.img-loaded { opacity: 1; }
.variant-discount {
  position: absolute; top: 6px; right: 6px;
  background: var(--pink); color: #fff;
  font-size: .62rem; font-weight: 800;
  padding: 2px 6px; border-radius: 99px;
}
.variants-note { color: var(--ink-soft); font-size: .8rem; margin-top: 8px; }
@media (max-width: 560px) {
  .variants { margin-top: 30px; }
  .variant-card { flex: 0 0 80px; border-radius: 11px; }
}

/* ============ v9 附加样式：错误页 ============ */
.error-page { padding: 70px 0 90px; }
.error-inner { text-align: center; padding: 60px 20px; }
.error-code {
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, #005bff, #f91155);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 91, 255, .3));
}
.error-text { color: var(--ink-soft); font-size: 1.1rem; font-weight: 600; margin: 18px 0 30px; }

/* ============ v10 附加样式：手机端横向溢出修复 + 性能 ============ */
/* clip 不会创建滚动容器，不影响 sticky 导航；老引擎回退 hidden */
html, body { overflow-x: hidden; overflow-x: clip; }
/* 横幅二次保险：强制裁剪内部超宽轨道 */
.ticker { contain: paint; }
/* 图片解码提示，减少滚动掉帧 */
.card-media img, .variant-card img { decoding: async; }

/* ============ v11 附加样式：标签行两端渐隐（手机端自动滑动） ============ */
@media (max-width: 900px) {
  .chips, .cat-sort {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chips, .cat-sort { -webkit-mask-image: none; mask-image: none; }
}

/* ============ v12 附加样式：修复标签行被内容撑宽（min-width:auto 陷阱） ============ */
/* flex 纵向布局里 nowrap 子项默认 min-width:auto = 内容宽度，导致整行撑到 2253px；
   显式允许收缩后，行内 overflow-x:auto 才能真正产生内部滚动 */
@media (max-width: 900px) {
  .section-head .chips,
  .cat-controls .cat-sort {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ============ v13：后台统计卡片链接 ============ */
a.stat-link { display: block; text-decoration: none; border-color: rgba(0, 91, 255, .25); transition: transform .2s, box-shadow .2s; }
a.stat-link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 91, 255, .15); }
