/* ============================================================
   金昌 · 工业图谱
   骨架：左侧图标导轨 + Bento 密铺首屏（无压图大标题）+ 表格式构件清单
        + 三格数据条 + 三栏等高案例 + 芯片式城市矩阵 + 编号式手记 + 单行极简页脚
   特征：等宽数字、冷灰底、工业黄点缀；全站无衬线，与兰州宋体、嘉峪关楷体区分
   ============================================================ */

:root {
  --ink: #1B1E20;
  --ink-2: #464E52;
  --ink-3: #7C878C;
  --steel: #55626A;
  --paper: #F1F2EF;
  --paper-2: #E5E8E3;
  --paper-3: #D8DCD6;
  --line: #CBD1CC;
  --line-2: #AEB6B1;
  --yellow: #D9A21B;
  --yellow-deep: #A8790C;
  --accent: var(--yellow-deep);
  --font-h: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-b: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --rail: 66px;
  --wrap: 1360px;
  --gut: 34px;
  --sec-y: 76px;
  --hw: 600;
  --htrack: -.01em;
}

body { padding-left: var(--rail); }

/* ---------------- 左侧图标导轨 ---------------- */
.irail {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--rail);
  background: var(--ink);
  color: #E9EDE9;
  z-index: 90;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0;
  gap: 4px;
}
.irail-mark { display: block; padding: 4px 0 12px; }
.irail-mark svg { width: 26px; height: 26px; color: var(--yellow); }
.irail-link {
  position: relative;
  width: 50px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(233, 237, 233, .62);
  transition: color .2s, background .2s;
}
.irail-link svg { width: 20px; height: 20px; }
.irail-link span {
  position: absolute; left: 54px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 4px 9px;
  background: var(--ink);
  border: 1px solid rgba(233, 237, 233, .22);
  color: #E9EDE9;
  font-size: 11.5px; letter-spacing: .1em; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.irail-link:hover span, .irail-link:focus-visible span { opacity: 1; transform: translateY(-50%) translateX(0); }
.irail-link:hover { color: var(--yellow); }
.irail-link.on { color: var(--ink); background: var(--yellow); }
.irail-link.on svg { color: var(--ink); }
.irail-bot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.irail-bot button, .irail-bot a {
  width: 50px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(233, 237, 233, .6);
}
.irail-bot button:hover, .irail-bot a:hover { color: var(--yellow); }
.irail-bot svg { width: 18px; height: 18px; }

/* 移动端顶条 + 抽屉 */
.mhead {
  display: none;
  position: sticky; top: 0; z-index: 95;
  height: 54px; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--ink); color: #E9EDE9;
}
.mhead .b { display: flex; align-items: center; gap: 9px; }
.mhead svg { width: 22px; height: 22px; color: var(--yellow); }
.mhead b { font-size: 14px; letter-spacing: .06em; }
.mhead .act { display: flex; gap: 4px; }
.mhead button { width: 38px; height: 38px; display: grid; place-content: center; color: #E9EDE9; }
.mhead svg { color: currentColor; }

.drawer {
  position: fixed; inset: 0; z-index: 160;
  background: var(--ink); color: #E9EDE9;
  transform: translateX(-100%);
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
  padding: 26px 22px 30px;
}
.drawer.on { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top b { font-size: 15px; letter-spacing: .1em; }
.drawer-top button { width: 38px; height: 38px; display: grid; place-content: center; color: #E9EDE9; }
.drawer nav { margin-top: 24px; border-top: 1px solid rgba(233, 237, 233, .16); }
.drawer nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(233, 237, 233, .12);
  font-size: 17px;
}
.drawer nav a i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--yellow); }
.drawer-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(233, 237, 233, .7); }
.drawer-foot a { color: var(--yellow); }

/* ---------------- Bento 首屏 ---------------- */
.tb-hero { padding: clamp(22px, 3vw, 40px) var(--gut) 0; background: var(--paper); }
.tb-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3);
}
.tb-bar b { color: var(--ink); font-weight: 600; }
.tb-bar .dot { display: inline-block; width: 6px; height: 6px; background: var(--yellow); margin-right: 6px; vertical-align: 1px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 124px;
  gap: 10px;
  margin-top: 16px;
}
.bx { padding: 16px 18px; background: var(--paper-2); min-width: 0; position: relative; overflow: hidden; }
.bx-hero { grid-column: 1 / 8; grid-row: 1 / 4; padding: 0; background: var(--ink); }
.bx-hero figure { margin: 0; position: absolute; inset: 0; }
.bx-hero figure img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.bx-hero .cap {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  color: #F2F4F1;
}
.bx-hero .cap span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--yellow); }
.bx-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 8px 0 0;
  color: #fff;
}
.bx-hero h1 em { font-style: normal; color: var(--yellow); }
.bx-hero .sub { margin-top: 8px; font-size: 13px; line-height: 1.7; color: rgba(242, 244, 241, .72); max-width: 40ch; }

.bx-stat { grid-column: 8 / 13; grid-row: 1 / 2; display: flex; align-items: center; gap: 14px; }
.bx-stat .k { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.bx-stat .k i { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 3px; }
.bx-stat .v { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.bx-stat .v b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }

.bx-img { grid-column: 8 / 10; grid-row: 2 / 3; padding: 0; }
.bx-img img { width: 100%; height: 100%; object-fit: cover; }

.bx-cta { grid-column: 8 / 13; grid-row: 3 / 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #E9EDE9; }
.bx-cta .t { font-size: 12px; letter-spacing: .12em; color: rgba(233, 237, 233, .6); }
.bx-cta a.tel { font-family: var(--mono); font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bx-cta .go { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(233, 237, 233, .3); font-size: 12px; }

.bx-wide { grid-column: span 4; grid-row: 4 / 5; }
.bx-wide.w2 { grid-column: 10 / 13; grid-row: 2 / 3; }
.bx-wide .h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); }
.bx-wide p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.bx-wide .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yellow); width: var(--w, 40%); }

/* ---------------- 通用区块 ---------------- */
.tb-sec { padding: var(--sec-y) var(--gut); }
.tb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.tb-head .l { display: flex; align-items: baseline; gap: 14px; }
.tb-head .no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--yellow-deep); }
.tb-head h2 { font-family: var(--font-h); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -.01em; }
.tb-head .r { font-size: 12.5px; color: var(--ink-3); max-width: 46ch; }

/* ---------------- 表格式构件清单 ---------------- */
.ptable { border-top: 2px solid var(--ink); }
.prow {
  display: grid;
  grid-template-columns: 46px 122px minmax(0, 1.05fr) minmax(0, 1.45fr) 52px 20px;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  transition: background .18s;
}
.prow-h {
  padding: 8px 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3);
}
.prow:hover { background: #E9ECE7; }
.prow .no { font-family: var(--mono); font-size: 11px; color: var(--yellow-deep); }
.prow .cat { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.prow .nm { font-size: 15.5px; font-weight: 600; min-width: 0; }
.prow .ds { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; min-width: 0; }
.prow .th { width: 52px; height: 40px; object-fit: cover; filter: grayscale(.4); }
.prow .ar { color: var(--ink-3); font-family: var(--mono); }
.prow:hover .ar { color: var(--yellow-deep); }

/* ---------------- 数据条 ---------------- */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.fig { background: var(--paper); padding: 20px 18px; min-width: 0; }
.fig b { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.fig b i { font-style: normal; font-size: 13px; margin-left: 4px; color: var(--ink-3); }
.fig span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

/* ---------------- 三栏等高案例 ---------------- */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccard { position: relative; background: var(--ink); overflow: hidden; min-width: 0; }
.ccard figure { margin: 0; aspect-ratio: 4 / 3.35; overflow: hidden; }
.ccard figure img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .7s, opacity .4s; }
.ccard:hover figure img { transform: scale(1.05); opacity: 1; }
.ccard .bar {
  position: relative;
  padding: 12px 14px 14px;
  background: var(--ink);
  color: #E9EDE9;
}
.ccard .bar .loc { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--yellow); }
.ccard .bar h3 { font-size: 15.5px; font-weight: 600; line-height: 1.45; margin-top: 5px; }
.ccard .bar p { font-size: 11.5px; color: rgba(233, 237, 233, .58); margin-top: 4px; line-height: 1.5; }

/* ---------------- 芯片式城市矩阵 ---------------- */
.chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.chip {
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 10px;
  background: var(--paper-2);
  border-left: 2px solid var(--line-2);
  min-width: 0;
  transition: background .18s, border-color .18s;
}
.chip b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip i { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { background: #E9ECE7; border-left-color: var(--ink); }
.chip.cur { background: var(--ink); border-left-color: var(--yellow); }
.chip.cur b { color: #fff; }
.chip.cur i { color: var(--yellow); }

/* ---------------- 编号式手记 ---------------- */
.nlist { border-top: 2px solid var(--ink); }
.nrow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 92px 18px;
  gap: 14px;
  align-items: baseline;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  transition: background .18s;
}
.nrow:hover { background: #E9ECE7; }
.nrow .no { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.nrow h3 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.nrow time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.nrow .ar { font-family: var(--mono); color: var(--ink-3); text-align: right; }

/* ---------------- 结尾 + 单行页脚 ---------------- */
.tb-close { background: var(--ink); color: #E9EDE9; padding: clamp(34px, 5vw, 58px) var(--gut); }
.tb-close .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.tb-close p { font-size: clamp(1.05rem, 1.9vw, 1.4rem); line-height: 1.6; max-width: 30ch; }
.tb-close small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: rgba(233, 237, 233, .5); }
.tb-close .tel { font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--yellow); font-variant-numeric: tabular-nums; }

.tb-foot { background: #14171A; color: rgba(233, 237, 233, .62); border-top: 3px solid var(--yellow); }
.tb-foot .in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 16px var(--gut);
  font-size: 11.5px;
}
.tb-foot .brand { display: flex; align-items: center; gap: 8px; color: #E9EDE9; }
.tb-foot .brand svg { width: 20px; height: 20px; color: var(--yellow); }
.tb-foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tb-foot nav a:hover, .tb-foot nav button:hover { color: var(--yellow); }
.tb-foot .icp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }

.mfoot {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  height: 56px;
  background: var(--ink);
  border-top: 1px solid rgba(233, 237, 233, .14);
}
.mfoot > * { flex: 1 1 0; display: grid; place-content: center; gap: 1px; text-align: center; color: rgba(233, 237, 233, .78); font-size: 10.5px; }
.mfoot > * + * { border-left: 1px solid rgba(233, 237, 233, .12); }
.mfoot b { font-family: var(--mono); font-size: 11.5px; color: #E9EDE9; }
.mfoot .hot { background: var(--yellow); color: var(--ink); }
.mfoot .hot b { color: var(--ink); }

/* ---------------- 内页：表格化 ---------------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line-2); padding: clamp(26px, 3.6vw, 44px) 0 22px; }
.page-head h1 { letter-spacing: -.02em; }
.crumb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }

.pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.pcard { background: var(--paper); padding: 0 0 14px; }
.pcard-img { aspect-ratio: 1 / .78; }
.pcard-body { padding: 12px 13px 0; }
.pcard-idx { font-family: var(--mono); font-size: 10px; color: var(--yellow-deep); }
.pcard-body h3 { font-size: 14.5px; margin: 5px 0 4px; }
.pcard-body p { font-size: 11.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-go { font-family: var(--mono); font-size: 10.5px; margin-top: 8px; }

.wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-img { aspect-ratio: 4 / 3.2; }
.cc-meta { padding-top: 8px; }
.cc-meta h3 { font-size: 14.5px; }
.cc-meta p { font-size: 11.5px; }

.news-row { grid-template-columns: 46px minmax(0, 1fr) 92px; }
.news-row time { text-align: right; font-family: var(--mono); }
.news-row h3 { font-size: 15px; }

.spec-row { border-bottom: 1px solid var(--line); }
.contact-row { border-bottom: 1px solid var(--line); font-size: 14px; }
.map-card { background: var(--ink); border-top: 3px solid var(--yellow); }
.detail-tel { background: var(--ink); }
.adv-side h2 { letter-spacing: -.02em; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
  .bento { grid-auto-rows: 96px; }
  .bx-hero { grid-column: 1 / 13; grid-row: 1 / 4; }
  .bx-stat, .bx-cta { grid-column: 1 / 13; grid-row: auto; }
  .bx-img { grid-column: 1 / 4; grid-row: auto; }
  .bx-wide, .bx-wide.w2 { grid-column: span 4; grid-row: auto; }
  .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail: 0px; --gut: 16px; --sec-y: 50px; }
  body { padding-left: 0; padding-bottom: 56px; }
  .irail { display: none; }
  .mhead { display: flex; }
  .mfoot { display: flex; }

  .tb-hero { padding: 14px var(--gut) 0; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 8px; }
  .bx-hero { grid-column: 1 / 7; grid-row: 1 / 4; }
  .bx-stat { grid-column: 1 / 7; grid-row: auto; }
  .bx-cta { grid-column: 1 / 7; grid-row: auto; }
  .bx-wide, .bx-wide.w2 { grid-column: span 3; grid-row: auto; }
  .bx-img { display: none; }
  .bx-hero .cap { left: 16px; right: 16px; bottom: 16px; }

  .prow { grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 8px 10px; padding: 11px 2px; }
  .prow-h { display: none; }
  .prow .cat { grid-row: 2; font-size: 11px; }
  .prow .ds { grid-column: 2 / 4; grid-row: 3; font-size: 11.5px; }
  .prow .th { grid-column: 3; grid-row: 1 / 3; width: 46px; height: 38px; }
  .prow .ar { display: none; }

  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nrow { grid-template-columns: 32px minmax(0, 1fr); }
  .nrow time, .nrow .ar { display: none; }

  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { grid-template-columns: minmax(0, 1fr); }
  .news-row { grid-template-columns: 36px minmax(0, 1fr); }
  .news-row time { display: none; }
  .tb-foot .in { justify-content: center; text-align: center; }
}
