/* ============================================================
   VELOCITY VAULT · 极速典藏 — Dark Tech Theme
   Deep black + cyan/silver accents. No indigo/purple.
   ============================================================ */

:root {
  --bg: #0a0e13;
  --bg-2: #0c1118;
  --panel: rgba(18, 25, 35, 0.62);
  --panel-solid: #101722;
  --border: rgba(148, 163, 184, 0.16);
  --border-soft: rgba(148, 163, 184, 0.10);
  --text: #e7edf5;
  --muted: #8b98a9;
  --accent: #22d3ee;
  --accent-2: #a5f3fc;
  --accent-soft: rgba(34, 211, 238, 0.10);
  --silver: #c9d4e0;
  --danger: #f87171;
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* layered background: grid lines + radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 20% -5%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 15%, rgba(201, 212, 224, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(180deg, #0a0e13 0%, #0b1017 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

::selection { background: rgba(34, 211, 238, 0.30); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #1d2a3a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3d52; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-solid);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.15), inset 0 0 12px rgba(34, 211, 238, 0.08);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.6px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.lang-select, .select {
  background: var(--panel-solid);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-select { min-width: 108px; }
.lang-select:hover, .select:hover, .lang-select:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 88px 24px 64px;
  text-align: center;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.4px;
  margin-bottom: 26px;
  animation: fadeUp 0.7s ease both;
}
.hero-title {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.18;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.08s ease both;
}
.hero-title-line { display: block; }
.accent-text {
  background: linear-gradient(92deg, var(--accent) 0%, #7dd3fc 60%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 34px;
  animation: fadeUp 0.7s 0.16s ease both;
}
.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 46px;
  animation: fadeUp 0.7s 0.24s ease both;
}
.search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.hero-search input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  border-radius: 999px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 40px rgba(34, 211, 238, 0.10);
}
.hero-search input::placeholder { color: var(--muted); }

.stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.32s ease both;
}
.stat {
  min-width: 150px;
  padding: 16px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.stat-label { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }

/* ---------------- Filter bar ---------------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
}
.filter-left { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 12px; color: var(--muted); letter-spacing: 0.8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}

.count-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel-solid);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-soft), 0 0 32px rgba(34, 211, 238, 0.10);
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d141d;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 19, 0.85) 100%);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.4px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.card-chips span {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--silver);
  padding: 3px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.06);
}
.card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
}
.card-price { color: var(--accent); font-size: 14px; font-weight: 600; }
.card-more { color: var(--muted); font-size: 13px; transition: color 0.2s; }
.card:hover .card-more { color: var(--accent); }

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 16px;
}

/* ---------------- Detail page ---------------- */
.detail-hero {
  position: relative;
  height: min(62vh, 560px);
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.detail-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 19, 0.25) 0%, rgba(10, 14, 19, 0.55) 55%, #0a0e13 100%);
}
.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 44px;
  width: 100%;
}
.detail-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kicker-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 19, 0.6);
  backdrop-filter: blur(6px);
  color: var(--accent-2);
  font-size: 12.5px;
  letter-spacing: 0.5px;
}
.detail-title { font-size: clamp(26px, 4.4vw, 46px); font-weight: 300; letter-spacing: 0.6px; }
.detail-title strong { font-weight: 650; }

.detail-body { max-width: 1240px; margin: 0 auto; padding: 34px 24px 80px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.tile {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.tile-label { font-size: 12px; color: var(--muted); letter-spacing: 0.6px; margin-bottom: 6px; }
.tile-value { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.35; word-break: break-word; }
.tile-value.accent { color: var(--accent); }

.section { margin-bottom: 44px; }
.section-title {
  font-size: 15px;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-text { color: var(--silver); font-size: 16px; max-width: 860px; }
.section-text p + p { margin-top: 12px; }
.price-note { color: var(--muted) !important; font-size: 13.5px !important; margin-top: 12px; }

.owner-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(148, 163, 184, 0.04));
  max-width: 860px;
}
.owner-source {
  color: var(--accent);
  font-size: 13px;
  word-break: break-all;
}
.owner-source:hover { text-decoration: underline; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, border-color 0.3s;
}
.gallery img:hover { transform: scale(1.015); border-color: var(--accent); }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #06090d;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.source-list { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.source-list a {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
  transition: color 0.2s;
}
.source-list a:hover { color: var(--accent); }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--accent); }

.notfound {
  text-align: center;
  padding: 120px 24px;
}
.notfound h2 { font-weight: 300; font-size: 30px; margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border-soft); background: rgba(10, 14, 19, 0.7); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 34px 24px 40px; }
.footer-text { color: var(--muted); font-size: 13px; max-width: 780px; line-height: 1.7; }
.footer-copy { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ---------------- Animations ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01s !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero { padding: 64px 18px 48px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-left { width: 100%; }
  .nav-inner { padding: 12px 18px; }
  .detail-hero { height: 46vh; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat { min-width: 120px; padding: 14px 16px; }
  .nav-link { display: none; }
  .brand-name { font-size: 15px; }
}
