/* ============================================================
   shanangai.cn · 产品页共享样式（products/*.html 共用）
   配色与首页保持一致：深蓝黑底 + 青/蓝/紫/琥珀 产品色
   用法：产品页 <head> 内 <link rel="stylesheet" href="/assets/products.css">
============================================================ */
:root {
  --bg: #0a0e27;
  --bg-2: #0f1535;
  --bg-3: #141b45;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf8;
  --text-dim: #9aa3c0;
  --text-faint: #6b7394;
  --accent: #22d3ee;          /* 默认主色，各产品页可覆盖 */
  --accent-2: #3b82f6;
  --gold: #ffd700;
  --ok: #22c55e;
  --maxw: 1080px;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 16px;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--text-dim); }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--accent); }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f !important; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost {
  background: transparent; color: var(--text) !important;
  border: 1px solid var(--card-border);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.header-cta { flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 280px at 18% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(500px 240px at 85% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
}
.hero .inner { position: relative; }
.crumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.hero h1 {
  font-size: clamp(28px, 4.6vw, 44px); line-height: 1.25; font-weight: 800;
  background: linear-gradient(120deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .tagline { margin-top: 16px; font-size: 17px; color: var(--text-dim); max-width: 720px; }
.hero .meta {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--card-border); background: var(--card); color: var(--text-dim);
}
.chip.price {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent); font-weight: 700; font-size: 15px;
}
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 52px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2px; font-weight: 700;
  color: var(--accent); margin-bottom: 10px;
}
h2.title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
p.sub { color: var(--text-dim); max-width: 760px; margin-bottom: 30px; }

/* cards grid */
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card h3 .ico { font-size: 20px; }
.card p { font-size: 14px; color: var(--text-dim); }
.card.hl { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* feature rows */
.feature { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--card-border); }
.feature:last-child { border-bottom: none; }
.feature .no {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--text-dim); }

/* compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--card-border); vertical-align: top; }
thead th { background: var(--bg-3); font-size: 14px; }
th.us, td.us { background: color-mix(in srgb, var(--accent) 8%, transparent); }
thead th.us { color: var(--accent); }
td .yes { color: var(--ok); font-weight: 700; }
td .no2 { color: var(--text-faint); }

/* steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; padding: 18px 0; }
.step .dot {
  counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.step .dot::before { content: counter(step); }
.step h3 { font-size: 16px; margin-bottom: 2px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* faq */
.faq-item { border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 12px; background: var(--card); }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-dim); }

/* cta band */
.cta-band {
  margin: 56px auto; max-width: var(--maxw); padding: 0 20px;
}
.cta-band .inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--bg-3)), var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 18px; padding: 40px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 24px; font-weight: 800; }
.cta-band p { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--card-border); background: var(--bg-2); padding: 40px 0 28px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.site-footer a { display: block; color: var(--text-dim); padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--card-border); color: var(--text-faint); font-size: 12.5px; line-height: 2; }
.site-footer .legal a { display: inline; margin-right: 14px; }

/* related products */
.related .card a.more { color: var(--accent); font-size: 13px; font-weight: 600; }

@media (max-width: 860px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .nav { display: none; }
}
