/* ============================================================
   上海鼎爵机电 — 站点样式
   2026-08 改版。全站 41 个页面共用这一份，改设计只改这里。
   旧的 reset.css / default_blue.css / sh.css / content.css 属于
   PHPCMS 时代的定宽布局，新页面不再引用。
   ============================================================ */

:root {
  --ground: #131619;
  --raised: #191D21;
  --card: #1C2126;
  --plate: #EDEAE3;
  --line: rgba(226, 222, 213, 0.10);
  --line-strong: rgba(226, 222, 213, 0.18);
  --ink: #F2EFE9;
  --body: #B4B9BD;
  --muted: #7C838A;
  --copper: #C87F45;
  --copper-bright: #DD9A62;
  --font-cjk: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-num: "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-cjk);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: block;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--copper-bright);
}
.arrow-link:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 2px;
  font-size: 15px; font-weight: 700;
  background: var(--copper); color: #17110B;
  transition: background .15s;
}
.btn:hover { background: var(--copper-bright); }

.btn-line {
  display: inline-flex; align-items: center;
  height: 48px; font-family: var(--font-num); font-size: 15px; color: var(--ink);
}
.btn-line:hover { color: var(--copper-bright); }

a:focus-visible, label:focus-visible, input:focus-visible {
  outline: 2px solid var(--copper-bright); outline-offset: 3px;
}

/* ---------- 顶部 ---------- */
.utility { border-bottom: 1px solid var(--line); }
.utility .wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 38px; font-size: 12.5px; color: var(--muted);
}
.utility .tel { font-family: var(--font-num); color: var(--body); }
.utility .tel:hover { color: var(--copper-bright); }
.langs { display: flex; gap: 16px; }
.langs .on { color: var(--ink); font-weight: 600; }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 22, 25, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo .cn { display: block; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.logo .en { display: block; font-family: var(--font-num); font-size: 9.5px; letter-spacing: 0.24em; color: var(--muted); }
.menu { display: flex; gap: 30px; }
.menu a { font-size: 14.5px; color: var(--body); padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--ink); }
.menu a.on { color: var(--ink); border-bottom-color: var(--copper); }

/* 汉堡菜单：纯 CSS checkbox 方案，不依赖 JS */
#navbox { display: none; }
.burger { display: none; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); content: "";
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }

/* ---------- 首页 hero ---------- */
.hero { padding: 104px 0 88px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; letter-spacing: -0.015em; }
.hero .lede { margin: 24px 0 0; font-size: 16.5px; color: var(--body); max-width: 44em; }
.hero .actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 38px; }

.specs { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.spec .val { font-family: var(--font-num); font-size: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.spec .key { font-size: 13px; color: var(--muted); margin-top: 6px; }

.band { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.band img { width: 100%; border-radius: 3px; }

.brands { padding: 64px 0; }
.brands .eyebrow { margin-bottom: 24px; }
.brand-row { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.brand-row span { font-size: 15.5px; font-weight: 600; color: var(--muted); }
.brand-row span:hover { color: var(--body); }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.first { border-top: none; }
.head { margin-bottom: 44px; }
.head .eyebrow { margin-bottom: 14px; }
.head h2 { font-size: clamp(23px, 2.5vw, 31px); }
.head p { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 46em; }

/* ---------- 内页页头 ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.015em; }
.page-head p { margin: 14px 0 0; color: var(--muted); max-width: 46em; }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--copper-bright); }
.crumb span { margin: 0 7px; opacity: .5; }

/* ---------- 产品栅格 ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s;
}
.prod:hover { border-color: var(--line-strong); }
.prod .plate {
  background: var(--plate); border-radius: 2px;
  height: 190px; display: flex; align-items: center; justify-content: center;
}
.prod .plate img { width: 150px; height: 150px; object-fit: contain; }
.prod .brand { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.prod h3 { font-size: 16.5px; }
.prod .arrow-link { margin-top: auto; }

/* 产品分组 */
.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }
.group-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.group-head h2 { font-size: 19px; }
.group-head .count { font-family: var(--font-num); font-size: 12.5px; color: var(--muted); }

/* ---------- 产品详情 ---------- */
.detail { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; padding: 56px 0 0; }
.detail-media { background: var(--plate); border-radius: 3px; padding: 28px; display: flex; align-items: center; justify-content: center; }
.detail-media img { max-width: 100%; height: auto; }
.detail h1 { font-size: clamp(24px, 3vw, 32px); }
.detail .brand-tag { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.detail .lede { margin: 18px 0 0; color: var(--body); }
.detail .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; font-size: 13.5px; }
.spec-table td { color: var(--ink); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* 办事处表格：4 列。必须给定列宽——auto 布局会让 nowrap 的电话列抢走空间，
   把地址列挤成每行一个字。列宽写在首行单元格上（table-layout:fixed 以首行定列宽），
   并用 nth-child 提高优先级盖过 .spec-table th 的 width:42%。 */
.table-offices { min-width: 760px; table-layout: fixed; }
.table-offices thead th:nth-child(1) { width: 17%; }
.table-offices thead th:nth-child(2) { width: 15%; }
.table-offices thead th:nth-child(3) { width: 15%; }
.table-offices thead th:nth-child(4) { width: 53%; }
.table-offices thead th { white-space: nowrap; }
.table-offices tbody th { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.table-offices td.tel, .table-offices td.fax { white-space: nowrap; }
.table-offices td.addr { font-family: var(--font-cjk); color: var(--body); }

.notice {
  background: var(--raised); border-left: 3px solid var(--copper);
  padding: 18px 20px; margin-top: 8px; border-radius: 0;
}
.notice p { margin: 0; }
.notice strong { color: var(--ink); }

/* ---------- 正文排版（关于/技术文章）---------- */
.prose { max-width: 42em; padding: 48px 0 0; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 21px; margin: 40px 0 16px; }
.prose h3 { font-size: 17px; margin: 30px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { margin: 24px 0; border-radius: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { color: var(--muted); font-weight: 600; }

/* ---------- 文章 / 动态列表 ---------- */
.list { border-top: 1px solid var(--line); }
.list a.row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.list a.row:hover h3 { color: var(--copper-bright); }
.list .date { font-family: var(--font-num); font-size: 13px; color: var(--muted); flex: 0 0 82px; }
.list .body { flex: 1; }
.list h3 { font-size: 16.5px; margin-bottom: 4px; }
.list p { margin: 0; font-size: 14px; color: var(--muted); }

/* 时间线（公司动态）*/
.timeline { border-left: 1px solid var(--line); padding-left: 28px; margin-left: 6px; }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--copper); border: 2px solid var(--ground);
}
.tl-item .date { font-family: var(--font-num); font-size: 12.5px; color: var(--copper); }
.tl-item h3 { font-size: 17px; margin: 4px 0 8px; }
.tl-item p { margin: 0; }

/* ---------- 联系方式块 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding: 40px 0 0; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 22px 24px; }
.contact-card .role { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contact-card .who { font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.contact-card a.num { font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--copper-bright); }

/* ---------- CTA 带 ---------- */
.contact { background: var(--raised); border-top: 1px solid var(--line); padding: 76px 0; }
.contact .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(21px, 2.3vw, 28px); max-width: 20em; }
.contact .right { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact .num { font-family: var(--font-num); font-size: 24px; font-weight: 700; color: var(--copper-bright); line-height: 1.3; }
.contact .num-key { font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
footer { padding: 60px 0 36px; }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.fgrid h4 { margin: 0 0 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.fgrid p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.fgrid a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.fgrid a:hover { color: var(--copper-bright); }
.fbottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .burger { display: flex; }
  header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  header .btn { height: 40px; padding: 0 18px; font-size: 14px; }
  .menu {
    order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  #navbox:checked ~ .wrap .menu { max-height: 420px; }
  .menu a { padding: 13px 0; border-bottom: none; border-top: 1px solid var(--line); font-size: 15px; }
  .menu a.on { border-bottom-color: transparent; color: var(--copper-bright); }
  .hero { padding: 68px 0 60px; }
  .specs { gap: 32px 44px; margin-top: 48px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .wrap, .band { padding: 0 20px; }
  .products { grid-template-columns: 1fr; }
  .specs { gap: 26px 40px; }
  .spec .val { font-size: 24px; }
  .contact .wrap, .contact .right { align-items: flex-start; }
  .fgrid { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
