/* ============================================================
   商品详情页样式（深色高级感 Dark Premium）
   ============================================================ */
[hidden] { display: none !important; }

:root {
  --bg-0: #070b14;
  --bg-1: #0b1120;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(148, 163, 184, 0.14);
  --text: #e8edf6;
  --text-2: #b9c2d4;
  --muted: #8a94a8;
  --brand: #6d8cff;
  --brand-2: #9a6bff;
  --price: #ff5a5f;
  --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;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

::selection { background: rgba(109, 140, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.22); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 氛围背景 ---------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; top: -160px; left: -110px; background: radial-gradient(circle, rgba(109, 140, 255, 0.45), transparent 65%); }
.orb-2 { width: 460px; height: 460px; top: 8%; right: -150px; background: radial-gradient(circle, rgba(154, 107, 255, 0.4), transparent 65%); animation-delay: -5s; }
@keyframes orbFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- 顶部导航（与首页一致） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 24px rgba(109, 140, 255, 0.35);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-size: 17px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(120deg, #fff, #c7d2fe);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.site-nav { display: flex; gap: 26px; flex-shrink: 0; }
.site-nav a { font-size: 14.5px; color: var(--text-2); padding: 5px 2px; border-bottom: 2px solid transparent; transition: color 0.2s; }
.site-nav a:hover { color: #fff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.btn-admin {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 9px 17px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 0 24px rgba(109, 140, 255, 0.35);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.btn-admin:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 6px 28px rgba(109, 140, 255, 0.45); }

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

.crumb { font-size: 13px; color: var(--muted); margin: 22px 0 18px; }
.crumb a { color: var(--text-2); transition: color 0.15s; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 8px; color: rgba(148, 163, 184, 0.4); }
.crumb .cur { color: var(--text); }

.pd-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 44px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(2, 6, 17, 0.45);
  position: relative;
  overflow: hidden;
}
.pd-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 140, 255, 0.55), transparent);
}

/* 主图暗舱：与首页卡片同一语言 —— 封面退为质感底，读数层浮在上面 */
.pd-main-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #060e1c;
}
.pd-main-img .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: 26px 26px;
  opacity: 0.42;
}
.bay-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
}

.pd-thumbs { display: flex; gap: 11px; margin-top: 13px; flex-wrap: wrap; }
.pd-thumb {
  position: relative;
  width: 76px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #060e1c;
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pd-thumb .card-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--brand); box-shadow: 0 0 16px rgba(109, 140, 255, 0.3); }

.pd-info { display: flex; flex-direction: column; }

.pd-title { font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: 0.3px; }

.pd-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-cat { font-size: 12.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 11px; border-radius: 7px; }
.pd-status { font-size: 12.5px; padding: 4px 11px; border-radius: 7px; border: 1px solid; }
.pd-status.on { color: #34d399; background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
.pd-status.off { color: #ff8185; background: rgba(255, 90, 95, 0.08); border-color: rgba(255, 90, 95, 0.3); }

.pd-price-box {
  margin-top: 20px;
  background:
    radial-gradient(ellipse 90% 140% at 0% 50%, rgba(255, 90, 95, 0.1), transparent 65%),
    var(--surface);
  border: 1px solid rgba(255, 90, 95, 0.22);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--price);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  font-family: "DIN Alternate", "Arial", sans-serif;
  text-shadow: 0 0 26px rgba(255, 90, 95, 0.4);
}
.pd-price .cur { font-size: 11px; letter-spacing: 0.1em; font-weight: 600; }
.pd-price .num { font-size: 34px; line-height: 1; }
/* 文字价格（如「价格面议」）：中文不走 DIN 数字腔，收敛字号并允许换行，不破价格面板 */
.pd-price .num.is-text {
  min-width: 0;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
}
.pd-orig { color: var(--muted); text-decoration: line-through; font-size: 14px; }

.pd-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.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;
}

/* 商品介绍：只在详情页渲染，首页卡片不带该字段 */
.pd-desc-title { font-size: 15px; font-weight: 600; margin: 24px 0 9px; color: var(--text); }
.pd-desc { color: var(--text-2); white-space: pre-line; line-height: 1.8; }

/* 随单提供：服务从色块降级成一行独立读数块，与卡片 card-meta 同源 */
.pd-services {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(238, 244, 253, 0.9), rgba(248, 251, 255, 0.72));
}
.pd-services-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 7px;
}
.pd-services-text { font-size: 12.5px; line-height: 1.75; color: var(--text-2); }

.pd-actions { margin-top: auto; padding-top: 26px; display: flex; gap: 13px; flex-wrap: wrap; }

.btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 12px;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(120deg, #ff7a45, #f53f3f);
  color: #fff;
  box-shadow: 0 8px 26px rgba(245, 63, 63, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 63, 63, 0.45); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong, rgba(148, 163, 184, 0.28)); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; box-shadow: 0 0 18px rgba(109, 140, 255, 0.2); }

.pd-updated { margin-top: 15px; font-size: 12.5px; color: var(--muted); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 17, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: linear-gradient(165deg, #131a2c, #0d1322);
  border: 1px solid var(--line-strong, rgba(148, 163, 184, 0.28));
  border-radius: 16px;
  padding: 26px 28px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 24px 64px rgba(2, 6, 17, 0.6);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal h3 { font-size: 17px; margin-bottom: 9px; }
.contact-modal-tip { font-size: 13.5px; color: var(--muted); }
.contact-modal-body { margin: 17px 0 21px; display: flex; flex-direction: column; gap: 11px; }
.contact-modal-body .c-row { display: flex; gap: 10px; font-size: 14px; }
.contact-modal-body .c-row .c-label { color: var(--muted); width: 46px; flex-shrink: 0; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 404 态 ---------- */
.pd-404 { text-align: center; padding: 90px 0 110px; }
.pd-404 h2 { font-size: 20px; margin-bottom: 10px; }
.pd-404 p { color: var(--muted); margin-bottom: 22px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(11, 17, 32, 0.6); padding: 28px 0 32px; margin-top: 10px; position: relative; z-index: 1; }
.site-footer .container { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.contact-list { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 6px;
  font-size: 13px;
  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; }
.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); }
/* 复制成功提示 */
.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); }
.footer-text { color: var(--muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .pd-wrap { grid-template-columns: 1fr; padding: 18px; }
  .pd-price { font-size: 28px; }
}

/* ---------- 详情页骨架屏 ---------- */
.pd-sk-img {
  aspect-ratio: 232 / 195;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 20%, rgba(255, 255, 255, 0.09) 38%, rgba(255, 255, 255, 0.035) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.pd-sk-lines { display: flex; flex-direction: column; gap: 15px; padding-top: 6px; }
.sk-line {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 20%, rgba(255, 255, 255, 0.09) 38%, rgba(255, 255, 255, 0.035) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.sk-line.tall { height: 26px; }
.sk-line.small { height: 10px; }
.sk-line.w45 { width: 45%; }
.sk-line.w60 { width: 60%; }
.sk-line.w75 { width: 75%; }
.sk-line.w80 { width: 80%; }
.sk-line.w90 { width: 90%; }
@keyframes shimmer {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* ---------- 同类推荐 ---------- */
.related { margin: 4px 0 48px; position: relative; z-index: 1; }
.related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px rgba(109, 140, 255, 0.6);
}
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rel-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 140, 255, 0.45);
  box-shadow: 0 10px 28px rgba(2, 6, 17, 0.5), 0 0 24px rgba(109, 140, 255, 0.12);
}
.rel-img { position: relative; aspect-ratio: 16 / 10; background: #060e1c; overflow: hidden; }
.rel-img .card-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.06);
  transition: transform 0.45s ease;
}
.rel-card:hover .rel-img .card-shot { transform: scale(1.1); }
.rel-img .img-fallback {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.045) 12px, rgba(255, 255, 255, 0.045) 24px);
}
.rel-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.rel-title {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.rel-cat { margin-top: 6px; font-size: 12px; color: var(--muted); }
.rel-read {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.rel-cur { font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); }
.rel-price {
  min-width: 0;
  color: var(--price);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 相关推荐里的文字价格：不带 CNY 前缀，中文走正文字体、字号收敛以免挤破窄卡 */
.rel-price.is-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- 键盘可达性 / 动效偏好 ---------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

@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; }
}

@media (max-width: 860px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .pd-sk-img, .sk-line { animation-duration: 2.4s; }
  html { scroll-behavior: auto; }
}
