/* ============================================================
   星核科技 STARCORE · 前台基础样式（明亮主题见 bright.css）
   ============================================================ */
:root {
  --bg-0: #04060e;
  --bg-1: #070b18;
  --bg-2: #0a1124;
  --surface: rgba(8, 20, 38, 0.55);
  --surface-2: rgba(0, 240, 255, 0.06);
  --line: rgba(120, 200, 255, 0.14);
  --line-strong: rgba(0, 240, 255, 0.34);
  --text: #e9f7ff;
  --text-2: #a5c0d8;
  --muted: #6d88a5;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --violet: #7b61ff;
  --lime: #c6ff00;
  --orange: #ff8a00;
  --brand: #00f0ff;
  --brand-2: #7b61ff;
  --price: #ff3d8b;
  --radius: 3px;
  --glow-brand: 0 0 22px rgba(0, 240, 255, 0.42);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.55);
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --cut: 12px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须优先于组件的 display 规则 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 46% at 50% -12%, rgba(0, 240, 255, 0.1), transparent 62%),
    radial-gradient(ellipse 55% 40% at 96% 22%, rgba(255, 43, 214, 0.06), transparent 62%),
    var(--bg-0);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

::selection { background: rgba(0, 240, 255, 0.32); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.35), rgba(255, 43, 214, 0.3));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.55); }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ---------- 赛博氛围背景 ---------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 92% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 92% 70% at 50% 0%, #000 20%, transparent 78%);
}

.cyber-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -14vh;
  height: 62vh;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.2) 1px, transparent 1px);
  background-size: 66px 66px;
  transform: perspective(460px) rotateX(69deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 8%, rgba(0, 0, 0, 0.55) 45%, transparent 86%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, rgba(0, 0, 0, 0.55) 45%, transparent 86%);
  animation: floorMove 6s linear infinite;
  opacity: 0.75;
}
@keyframes floorMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 66px, 0 0; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.42), transparent 66%);
}
.orb-2 {
  width: 520px; height: 520px;
  top: 8%; right: -180px;
  background: radial-gradient(circle, rgba(255, 43, 214, 0.34), transparent 66%);
  animation-delay: -6s;
}
.orb-3 {
  width: 560px; height: 560px;
  bottom: -240px; left: 30%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.3), transparent 66%);
  animation-delay: -10s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 34px) scale(1.08); }
}

.scanlines {
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0px,
    rgba(0, 0, 0, 0.5) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.16;
  animation: scanDrift 14s linear infinite;
}
@keyframes scanDrift {
  from { background-position: 0 0; }
  to { background-position: 0 8px; }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14), rgba(255, 43, 214, 0.05) 42%, transparent 68%);
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 14, 0.76);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 240, 255, 0.14);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), rgba(255, 43, 214, 0.6), transparent);
  opacity: 0.7;
  animation: headerFlow 8s linear infinite;
  background-size: 200% 100%;
}
@keyframes headerFlow {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cyan);
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(150deg, rgba(0, 240, 255, 0.18), rgba(255, 43, 214, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.55);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.25), 0 0 18px rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.9);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #ffffff 10%, #a8f7ff 48%, #ffb3f2 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.25));
}

.site-nav { display: flex; gap: 26px; flex-shrink: 0; }
.site-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--text-2);
  padding: 6px 2px;
  transition: color 0.2s, text-shadow 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}
.site-nav a:hover, .site-nav a.active { color: #fff; text-shadow: 0 0 14px rgba(0, 240, 255, 0.55); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 224px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(0, 240, 255, 0.035);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-box:focus-within {
  border-color: rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.07);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.08), 0 0 18px rgba(0, 240, 255, 0.18);
  color: var(--cyan);
}
.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.search-box input::placeholder { color: var(--muted); letter-spacing: 0.02em; }

.btn-admin {
  position: relative;
  padding: 9px 19px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #021018;
  background: linear-gradient(100deg, var(--cyan), #4d8cff);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
  transition: transform 0.18s, filter 0.18s, background 0.18s;
}
.btn-admin:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  background: linear-gradient(100deg, #7df9ff, #ff8fe8);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin: 30px 0 12px;
  padding: 58px 56px 54px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 100% at 88% 12%, rgba(255, 43, 214, 0.16), transparent 62%),
    radial-gradient(ellipse 70% 110% at 6% 100%, rgba(0, 240, 255, 0.14), transparent 60%),
    linear-gradient(155deg, rgba(10, 24, 46, 0.9), rgba(4, 8, 18, 0.94));
  border: 1px solid rgba(0, 240, 255, 0.22);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: inset 0 0 70px rgba(0, 240, 255, 0.04), 0 26px 70px rgba(0, 0, 0, 0.45);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 85% at 30% 25%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 30% 25%, #000, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.12), transparent);
  animation: heroScan 7s linear infinite;
  pointer-events: none;
}
@keyframes heroScan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(430px); opacity: 0; }
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}
.hud-corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corner.tr { top: 12px; right: 12px; border-top: 2px solid var(--magenta); border-right: 2px solid var(--magenta); }
.hud-corner.bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--magenta); border-left: 2px solid var(--magenta); }
.hud-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

.hero-code {
  position: absolute;
  right: 34px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(109, 136, 165, 0.75);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: rgba(0, 240, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink {
  0%, 62% { opacity: 1; }
  63%, 100% { opacity: 0.15; }
}

.hero-text h1 {
  position: relative;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #ffffff 8%, #a9f9ff 46%, #ff9ceb 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.2));
}
.hero-text h1::before,
.hero-text h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  pointer-events: none;
  opacity: 0;
  white-space: inherit;
}
.hero-text h1::before {
  color: var(--magenta);
  animation: glitchA 5.6s steps(1) infinite;
}
.hero-text h1::after {
  color: var(--cyan);
  animation: glitchB 5.6s steps(1) infinite;
}
@keyframes glitchA {
  0%, 91%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  92% { opacity: 0.8; transform: translate(-2.5px, -1px); clip-path: inset(4% 0 58% 0); }
  93% { opacity: 0.7; transform: translate(2px, 1px); clip-path: inset(22% 0 42% 0); }
  94% { opacity: 0.75; transform: translate(-1px, 0); clip-path: inset(0 0 68% 0); }
  95% { opacity: 0; }
}
@keyframes glitchB {
  0%, 91%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(100% 0 0 0); }
  92% { opacity: 0.75; transform: translate(2.5px, 1px); clip-path: inset(52% 0 8% 0); }
  93.5% { opacity: 0.65; transform: translate(-2px, -1px); clip-path: inset(34% 0 26% 0); }
  95% { opacity: 0; }
}

.hero-text p {
  max-width: 820px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 30px;
}
.hstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
  border-left: 1px solid rgba(0, 240, 255, 0.22);
}
.hstat:first-child { padding-left: 0; border-left: none; }
.hstat b {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}
.hstat:nth-child(2) b { color: var(--magenta); text-shadow: 0 0 16px rgba(255, 43, 214, 0.45); }
.hstat:nth-child(3) b { color: var(--lime); text-shadow: 0 0 16px rgba(198, 255, 0, 0.35); }
.hstat span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero-side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-visual {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}
.core-ring { position: absolute; border-radius: 50%; }
.ring-1 {
  inset: 0;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  animation: spin 26s linear infinite;
}
.ring-2 {
  inset: 15%;
  border: 1px solid rgba(255, 43, 214, 0.42);
  box-shadow: inset 0 0 26px rgba(255, 43, 214, 0.12);
  animation: spinRev 18s linear infinite;
}
.ring-2::before,
.ring-2::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  top: -3px; left: 50%;
}
.ring-2::after { top: auto; bottom: -3px; }
.ring-3 {
  inset: 30%;
  border: 1px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.22), inset 0 0 22px rgba(0, 240, 255, 0.12);
}
.core-core {
  position: absolute;
  inset: 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #021018;
  background: linear-gradient(150deg, var(--cyan), var(--violet));
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 0 44px rgba(0, 240, 255, 0.5);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
.core-orbit { position: absolute; inset: 0; animation: spin 11s linear infinite; }
.core-orbit i {
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: #021018;
  background: linear-gradient(100deg, var(--cyan), #64a8ff);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.hero-btn::after { content: "→"; font-size: 17px; line-height: 1; }
.hero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 44px rgba(0, 240, 255, 0.55);
}

/* ---------- 工具栏 ---------- */
.products { margin-top: 36px; }

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

.chips { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  padding: 7px 17px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: rgba(8, 20, 38, 0.6);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  font-family: inherit;
}
.chip:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.14);
}
.chip.active {
  color: #021018;
  font-weight: 700;
  background: linear-gradient(100deg, var(--cyan), #62f5c8);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.toolbar-right { display: flex; align-items: center; gap: 12px; }
.result-count {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.result-count::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 8px;
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
}

.sort-select {
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: rgba(8, 20, 38, 0.6);
  border: 1px solid var(--line);
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.sort-select:hover, .sort-select:focus { border-color: rgba(0, 240, 255, 0.5); color: var(--cyan); }
.sort-select option { background: var(--bg-1); color: var(--text); }

/* ---------- 商品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

/* ---------- 商品卡片：暗舱 + 读数面板（结构层） ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: transform 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
  animation: cardIn 0.45s cubic-bezier(0.22, 0.75, 0.3, 1) backwards;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.card:hover::before,
.card:focus-visible::before { opacity: 1; }
.card:hover { transform: translateY(-5px); }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 图片暗舱：封面只当质感，不当主角 */
.card-bay {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #060e1c;
}
.card-bay .card-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.06);            /* 收掉封面自带的界面边框，减少套娃噪声 */
  transition: transform 0.5s ease, filter 0.5s ease;
}
.bay-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.42;
  transition: opacity 0.3s ease;
}
.bay-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.34) 0%, rgba(4, 10, 24, 0) 34%, rgba(4, 10, 24, 0.72) 100%);
}
.bay-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
}
.bay-seq {
  position: absolute;
  top: 9px; right: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 0;
  border: 0;
  background: none;
}
.bay-cat {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 72%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bay-cat i {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.card-bay .img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
}

/* 亮面板：一条主线读下来 —— 标题 → 文字徽章 → 服务行 → 价格读数（不再放商品介绍正文） */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 16px 16px;
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 45px;                   /* 两行占位：单行标题也保持四列同高、栅格不错位 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 1px solid;
  border-radius: 999px;
  cursor: help;
}
.tag-chip i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.card-read {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.card-price .cur { font-size: 10px; letter-spacing: 0.08em; font-weight: 600; }
.card-price .num { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.card-price .was { font-size: 10.5px; text-decoration: line-through; }
/* 文字价格（如「价格面议」）：中文不走等宽数字腔，字号收敛、允许收缩，超长用省略号收尾，
   保证不挤出右侧箭头、也不撑破卡片 */
.card-price .num.is-text {
  min-width: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-go {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card-meta {
  margin-top: 13px;
  padding-bottom: 13px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 旧版单字色块（详情页与后台仍在用，卡片不再使用） */
.card-badges { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }

.badge {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  cursor: help;
}

.svc-list { display: flex; gap: 9px; }

.svc {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  cursor: help;
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 74px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.empty-icon { margin-bottom: 14px; }
.empty p { font-size: 13px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 6px;
}
.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(8, 20, 38, 0.6);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  cursor: pointer;
  transition: all 0.18s ease;
}
.pager-btn:hover:not(:disabled) {
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}
.pager-btn.active {
  color: #021018;
  background: linear-gradient(100deg, var(--cyan), #62f5c8);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}
.pager-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.pager-btn.arrow { font-size: 18px; line-height: 1; padding-bottom: 2px; }

/* ---------- 关于 ---------- */
.about {
  position: relative;
  margin: 36px 0 52px;
  padding: 36px 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(255, 43, 214, 0.08), transparent 60%),
    linear-gradient(160deg, rgba(9, 21, 41, 0.8), rgba(4, 8, 18, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.16);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.about::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.8;
}
.about h1, .about h2 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.about h1::before, .about h2::before {
  content: "// ";
  font-family: var(--mono);
  font-size: 15px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}
.about p { color: var(--text-2); white-space: pre-line; line-height: 1.85; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 30px 0 34px;
  background: rgba(4, 8, 18, 0.72);
  border-top: 1px solid rgba(0, 240, 255, 0.14);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.55), rgba(255, 43, 214, 0.45), transparent);
}

/* ---------- 联系方式：图标 + 值（与「关于」同族的面板，值仍是文字，标签换成图标） ---------- */
.connect {
  position: relative;
  margin: 36px 0 52px;
  padding: 34px 40px 32px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(9, 21, 41, 0.8), rgba(4, 8, 18, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.16);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.connect::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.8;
}
.connect-index {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.connect-title {
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.connect-title::before {
  content: "// ";
  font-family: var(--mono);
  font-size: 15px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}
.connect-sub {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.connect-index, .connect-title, .connect-sub, .connect .contact-list, .connect-rig { position: relative; z-index: 1; }

/* 副标题前挂一颗呼吸点，与首屏 kicker 同一套语言 */
.connect-sub { display: flex; align-items: center; gap: 8px; }
.connect-sub::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--lime, #a3ff12);
  box-shadow: 0 0 10px var(--lime, #a3ff12);
  animation: blink 1.6s steps(1) infinite;
}

/* 胶囊留出右下角遥测模块的位置，避免换行时压在一起 */
.contact-list { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.connect .contact-list { max-width: calc(100% - 188px); }
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
button.contact-item { appearance: none; -webkit-appearance: none; font: inherit; }
.contact-item:hover { transform: translateY(-2px); }
.contact-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* 图标坐进圆形「读数井」，颜色按渠道区分（色值见主题层） */
.ci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease;
}
.ci-icon svg { display: block; }
.ci-val { word-break: break-all; }
/* 结尾动作符号：复制 = 双层方块，跳转 = 右上箭头（纯 CSS，不进文案） */
.contact-item::after {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
button.contact-item::after { content: "\29C9"; }
a.contact-item::after { content: "\2197"; }
.contact-item:hover::after { opacity: 1; transform: translate(1px, -1px); }

/* ---------- 联系方式面板 · 通道遥测模块（暗色读数舱，呼应商品卡的「暗舱 + 亮读数」） ---------- */
.connect-rig {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 12px;
  padding: 10px 15px 11px;
  font-family: var(--mono);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.rig-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 0.2em;
}
.rig-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.6s steps(1) infinite;
}
.rig-num { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.rig-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.rig-bars i {
  width: 4px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.22;
  transition: opacity 0.3s ease;
}
.rig-bars i:nth-child(1) { height: 6px; }
.rig-bars i:nth-child(2) { height: 10px; }
.rig-bars i:nth-child(3) { height: 15px; }
.rig-bars i:nth-child(4) { height: 20px; }
.rig-bars i.on { opacity: 1; }
.rig-meta { grid-column: 1 / -1; font-size: 7.5px; letter-spacing: 0.16em; }
/* 暗画布默认配色（主题层会按亮面板重定义） */
.connect-rig { color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.26); }
.rig-num { color: #fff; }
.rig-kicker, .rig-meta { color: var(--text-2); }

/* 复制成功提示 */
.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 90;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #041022;
  background: #67e8f9;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(2, 6, 16, 0.45);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 关于页底部返回入口 */
.about-back { display: flex; justify-content: center; margin: -18px 0 52px; }

.footer-text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { padding: 46px 40px; gap: 26px; }
  .hero-visual { width: 160px; height: 160px; }
}

@media (max-width: 900px) {
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 3; width: 100%; gap: 20px; }
  .header-right { order: 2; }
  .search-box { width: 170px; }
  .hero { grid-template-columns: 1fr; padding: 38px 30px 34px; gap: 28px; }
  .hero-side { flex-direction: row; align-items: center; justify-content: flex-start; gap: 26px; }
  .hero-visual { width: 132px; height: 132px; }
  .hero-text h1 { font-size: 32px; }
  .hero-code { display: none; }
  .connect .contact-list { max-width: none; }
  .connect-rig { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 2px; }
  .rig-meta { grid-column: auto; }
}

@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }
  .card-title { font-size: 12.5px; min-height: 39px; }
  .brand-name { font-size: 15px; letter-spacing: 1px; }
  .search-box { width: 132px; }
  .about { padding: 26px 20px; }
  .connect { padding: 24px 20px 22px; margin: 26px 0 40px; }
  .hero { padding: 30px 20px 28px; margin-top: 18px; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p { font-size: 13.5px; }
  .hero-kicker { font-size: 9px; letter-spacing: 0.16em; padding: 5px 11px; }
  .hero-visual { display: none; }
  .hero-stats { margin-top: 24px; }
  .hstat { padding: 0 16px; }
  .hstat b { font-size: 19px; }
  .card-body { padding: 12px 12px 13px; }
}

/* ---------- 搜索清空按钮 ---------- */
.search-box { position: relative; }
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-clear {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.search-clear:hover { background: rgba(0, 240, 255, 0.25); color: #fff; box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }

/* ---------- 锚点滚动避开吸顶导航 ---------- */
#products, #about { scroll-margin-top: 86px; }

/* ---------- 骨架屏 ---------- */
.sk-card { pointer-events: none; animation: none; }
.sk-img {
  aspect-ratio: 232 / 195;
  background: linear-gradient(100deg, rgba(0, 240, 255, 0.035) 20%, rgba(0, 240, 255, 0.12) 38%, rgba(0, 240, 255, 0.035) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.sk-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 10px; }
.sk-line {
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(100deg, rgba(0, 240, 255, 0.035) 20%, rgba(0, 240, 255, 0.12) 38%, rgba(0, 240, 255, 0.035) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.sk-line.tall { height: 22px; }
.sk-line.small { height: 9px; }
.sk-line.w35 { width: 35%; }
.sk-line.w55 { width: 55%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; }
@keyframes shimmer {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  color: var(--cyan);
  background: rgba(6, 14, 28, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: cardIn 0.25s ease both;
}
.to-top:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.35);
}

/* ---------- 键盘可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .to-top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
  .sk-body { padding: 12px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .cyber-floor, .scanlines, .hero::after, .core-ring, .core-orbit,
  .hero-text h1::before, .hero-text h1::after, .site-header::after { animation: none; }
  .card, .to-top { animation: none; }
  .sk-img, .sk-line { animation-duration: 2.4s; }
  .cursor-glow { display: none; }
  html { scroll-behavior: auto; }
}
