/* ============================================================
   Part detail page (/parts/<id>-<slug>)
   Server-rendered: everything a crawler or an AI assistant needs is in the HTML.
   Uses the same palette and type scale as the catalogue (public/css/index.css).
   ============================================================ */
:root {
  --dark: #1A1A1A;
  --dark-2: #2A2A2A;
  --steel: #6B7280;
  --border: #E5E7EB;
  --bg: #F7F7F8;
  --white: #FFFFFF;
  --yellow: #FFB81C;
  --yellow-dark: #E0A017;
  --yellow-soft: #FFF8E7;
  --red: #C0392B;
  --green: #2E7D32;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  background: var(--dark); color: #fff; border-bottom: 3px solid var(--yellow);
}
header.site .inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
header.site img { height: 34px; width: auto; background: #fff; border-radius: 4px; padding: 4px 6px; }
header.site .company { font-weight: 700; letter-spacing: 0.4px; }
header.site .tagline { font-size: 11px; color: #9CA3AF; letter-spacing: 1.2px; text-transform: uppercase; }
nav.site { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
nav.site a { color: #D1D5DB; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ---------- breadcrumbs ---------- */
nav.crumbs { font-size: 12.5px; color: var(--steel); padding: 14px 0 0; }
nav.crumbs a { color: var(--steel); text-decoration: none; }
nav.crumbs a:hover { color: var(--dark); text-decoration: underline; }
nav.crumbs span.sep { margin: 0 7px; color: #C4C7CC; }

/* ---------- layout ---------- */
main { padding: 18px 0 40px; }
.part-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.part-head .title { flex: 1 1 380px; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -0.3px; }
h1 .model { color: var(--steel); font-weight: 600; }
.cat-chip { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--dark); color: var(--yellow); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; text-decoration: none; }
.price-box { flex: 0 0 260px; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.price-box .label { font-size: 11.5px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.6px; }
.price-box .usd { font-size: 30px; font-weight: 800; color: var(--red); line-height: 1.15; }
.price-box .cny { font-size: 15px; color: var(--dark-2); font-weight: 600; }
.quote-status { font-size: 12.5px; margin-top: 10px; }
.quote-status a { color: var(--green); font-weight: 600; text-decoration: none; }
.quote-status a:hover { text-decoration: underline; }
.price-box .btn svg { vertical-align: -2px; }
.price-box .terms { font-size: 11.5px; color: var(--steel); margin-top: 8px; }
.price-box .btn { display: block; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--yellow); color: var(--dark); border: none; border-radius: 5px;
  font-size: 14px; font-weight: 700; padding: 11px 18px; cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--yellow-dark); }
.btn.ghost { background: transparent; border: 1.5px solid var(--dark); }
.btn.ghost:hover { background: var(--dark); color: #fff; }
.btn.done { background: var(--green); color: #fff; }

.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.9px; padding: 13px 18px;
  background: var(--dark); color: var(--yellow); }
.card .body { padding: 16px 18px; }

table.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.specs th, table.specs td { padding: 9px 4px; border-bottom: 1px solid #F0F0F1; text-align: left; vertical-align: top; }
table.specs th { width: 42%; color: var(--steel); font-weight: 600; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: none; }
table.specs td.unknown { color: #B0B3B8; }
table.specs td.mono.unknown { letter-spacing: 0; }
.mono { font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 13.5px; }
.big { font-size: 15px; font-weight: 700; }
.about p { font-size: 14px; color: var(--dark-2); }
.about p + p { margin-top: 10px; }
.muted { color: var(--steel); font-size: 13px; }

ul.related { list-style: none; }
ul.related li { border-bottom: 1px solid #F0F0F1; }
ul.related li:last-child { border-bottom: none; }
ul.related a { display: block; padding: 10px 0; text-decoration: none; }
ul.related a:hover .rname { color: var(--dark); text-decoration: underline; }
ul.related .rname { font-size: 14px; font-weight: 600; color: var(--dark-2); }
ul.related .rmeta { font-size: 12px; color: var(--steel); }
ul.related a .n { float: right; color: var(--steel); font-size: 12.5px; font-weight: 700; }
ul.related .rprice { font-size: 13px; font-weight: 700; color: var(--red); }

.contact-line { font-size: 13.5px; }
.contact-line a { color: var(--dark); }

footer.site { background: var(--dark); color: #9CA3AF; font-size: 12.5px; padding: 22px 0; margin-top: 10px; }
footer.site a { color: var(--yellow); text-decoration: none; }
footer.site .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .price-box { flex: 1 1 100%; }
  h1 { font-size: 22px; }
  .price-box .usd { font-size: 25px; }
  nav.site { width: 100%; margin-left: 0; gap: 16px; font-size: 13px; }
}
