/* ============================================================
   中略设计 · 左栏导航 + 右侧舞台  v40
   与旧版「顶栏+全屏 Hero+卡片栅格」完全不同的网站骨架
   ============================================================ */
:root {
  --accent: #0e8a7d;
  --accent-2: #0b7268;
  --ink: #101418;
  --muted: #5c676e;
  --line: #dde5e2;
  --paper: #f3f1ed;
  --rail: #0f1716;
  --white: #fff;
  --font: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", serif;
  --rail-w: 220px;
  --orange: #0e8a7d;
  --bg-light: #f3f1ed;
  --grey-200: #dde5e2;
  --grey-300: #dde5e2;
  --grey-500: #5c676e;
  --grey-600: #5c676e;
  --grey-700: #3a4248;
  --slate: #101418;
  --radius-btn: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font: inherit; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; border-radius: 2px;
}
.btn-fill { background: var(--accent); color: var(--white); }
.btn-fill:hover { background: var(--accent-2); }
.btn-line { background: transparent; border-color: currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* ========== 左侧固定轨道 ========== */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  background: var(--rail);
  color: rgba(255,255,255,.78);
  display: flex; flex-direction: column;
  padding: 28px 22px 24px;
  z-index: 100;
}
.rail-brand {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 48px; color: var(--white);
}
.rail-brand img { width: 40px; height: 40px; }
.rail-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px; font-weight: 600; letter-spacing: .04em;
}
.rail-brand small { font-size: 11px; opacity: .55; letter-spacing: .06em; }

.rail-nav {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.rail-nav a {
  padding: 10px 12px;
  font-size: 15px; font-weight: 500;
  border-left: 2px solid transparent;
  color: rgba(255,255,255,.62);
  transition: color .2s, border-color .2s, background .2s;
}
.rail-nav a:hover,
.rail-nav a.is-active {
  color: var(--white);
  border-left-color: var(--accent);
  background: rgba(255,255,255,.04);
}
.rail-foot { margin-top: auto; display: grid; gap: 10px; }
.rail-phone {
  font-size: 13px; letter-spacing: .03em;
  color: #9fe0d8; font-weight: 500;
}
.rail-btn {
  width: 100%; padding: 10px;
  background: var(--accent); color: #fff; border: 0;
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.rail-btn:hover { background: var(--accent-2); }

.menu-toggle {
  display: none;
  position: fixed; top: 14px; right: 14px; z-index: 120;
  width: 44px; height: 44px;
  background: var(--rail); border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: #fff; transition: .25s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== 右侧舞台 ========== */
.stage {
  margin-left: var(--rail-w);
  min-height: 100vh;
  background: var(--white);
}

/* 开场：左右对切，不是全屏叠字 Hero */
.splash {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 100vh;
  background: var(--paper);
}
.splash-copy {
  padding: clamp(48px, 8vw, 96px) clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.splash-kicker {
  font-size: 13px; letter-spacing: .18em;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
}
.splash-copy h1 {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 700; line-height: 1;
  letter-spacing: .08em;
  margin-bottom: 24px;
}
.splash-line {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500; line-height: 1.45;
  color: var(--ink);
  margin-bottom: 36px;
}
.splash-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.splash-actions .btn-line { color: var(--ink); border-color: var(--ink); }
.splash-actions .btn-line:hover { background: var(--ink); color: #fff; }

.splash-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.splash-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.splash-badge {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(15,23,22,.88); color: #fff;
  padding: 14px 18px;
}
.splash-badge span { display: block; font-size: 11px; opacity: .7; letter-spacing: .1em; }
.splash-badge strong { font-family: var(--display); font-size: 22px; font-weight: 600; }

/* 资质横条 */
.strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-item {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.strip-item:last-child { border-right: 0; }
.strip-item em {
  display: block; font-style: normal;
  font-size: 12px; color: var(--muted); margin-bottom: 6px;
  letter-spacing: .08em;
}
.strip-item b {
  font-family: var(--display);
  font-size: 20px; font-weight: 600;
}

/* 通用块 */
.block { padding: 72px clamp(24px, 5vw, 64px); }
.block-dark { background: var(--ink); color: #fff; }
.block-paper { background: var(--paper); }
.block-head { max-width: 560px; margin-bottom: 36px; }
.block-head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600; margin-bottom: 10px;
}
.block-head p { color: var(--muted); }
.block-dark .block-head p { color: rgba(255,255,255,.65); }

/* 能力：横向工作行（不是方格卡片墙） */
.work-list { display: grid; gap: 10px; }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 22px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.work-row::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: brightness(.55);
  transition: transform .4s, filter .4s;
}
.work-row:hover::before { transform: scale(1.04); filter: brightness(.68); }
.work-row i {
  font-style: normal; font-size: 13px;
  letter-spacing: .14em; opacity: .8;
}
.work-row h3 {
  font-family: var(--display);
  font-size: 24px; font-weight: 600; line-height: 1.2;
}
.work-row p { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.work-row > span {
  font-size: 13px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 2px;
}

.tile-1::before { background-image: url('../assets/tiles/tile-01-structure.jpg'); }
.tile-2::before { background-image: url('../assets/tiles/tile-02-electrical.jpg'); }
.tile-3::before { background-image: url('../assets/tiles/tile-03-grid.jpg'); }
.tile-4::before { background-image: url('../assets/tiles/tile-04-load.jpg'); }
.tile-5::before { background-image: url('../assets/tiles/tile-05-appraisal.jpg'); }
.tile-6::before { background-image: url('../assets/tiles/tile-06-feasibility.jpg'); }
.tile-7::before { background-image: url('../assets/tiles/tile-07-calc.jpg'); }
.tile-8::before { background-image: url('../assets/tiles/tile-08-reinforce.jpg'); }
.tile-9::before { background-image: url('../assets/tiles/tile-09-fire.jpg'); }
.tile-10::before { background-image: url('../assets/tiles/tile-10-decor.jpg'); }

/* 流程：竖向阶梯 */
.ladder { display: grid; gap: 0; max-width: 720px; }
.ladder li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ladder li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.ladder b {
  font-family: var(--display);
  font-size: 22px; font-weight: 600;
  color: #9fe0d8;
}
.ladder p { color: rgba(255,255,255,.72); font-size: 15px; padding-top: 4px; }

/* 工程：交替横带 */
.band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  margin-bottom: 18px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.band-flip { direction: rtl; }
.band-flip > * { direction: ltr; }
.band img {
  width: 100%; height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.band > div { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.band span { font-size: 12px; letter-spacing: .1em; color: #9fe0d8; margin-bottom: 12px; }
.band h3 {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600; line-height: 1.35; margin-bottom: 10px;
}
.band p { color: rgba(255,255,255,.7); font-size: 14.5px; }

.mini-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.mini-cases a {
  background: var(--paper);
  transition: transform .25s;
}
.mini-cases a:hover { transform: translateY(-3px); }
.mini-cases img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mini-cases strong {
  display: block; padding: 12px 14px 14px;
  font-size: 14px; font-weight: 500;
}

/* 公司 */
.firm-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.firm-lead { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.firm-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 24px;
}
.firm-panel h3 {
  font-family: var(--display);
  font-size: 18px; margin-bottom: 12px;
}
.firm-panel h3 + p,
.firm-panel ul + h3 { margin-top: 24px; }
.firm-panel li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.firm-panel b { color: var(--accent); margin-right: 8px; font-size: 12px; }
.firm-panel > p { color: var(--muted); font-size: 14px; }

/* 沟通 */
.contact-block { background: var(--accent); color: #fff; }
.contact-block .block-head p { color: rgba(255,255,255,.8); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.big-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600; letter-spacing: .04em;
  border-bottom: 2px solid rgba(255,255,255,.35);
  margin-bottom: 22px;
}
.big-phone:hover { border-bottom-color: #fff; }
.contact-notes { display: grid; gap: 8px; }
.contact-notes li {
  padding-left: 14px; position: relative;
  font-size: 14.5px; color: rgba(255,255,255,.9);
}
.contact-notes li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.qr-card {
  background: #fff; color: var(--ink);
  padding: 20px; text-align: center; width: 220px;
}
.qr-card img { width: 160px; height: 160px; margin: 0 auto 10px; object-fit: contain; }
.qr-card p { font-size: 14px; font-weight: 500; }
.qr-card strong { font-size: 13px; color: var(--muted); font-weight: 400; }

.endnote {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px clamp(24px, 5vw, 64px) 40px;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Modal / Chat（功能保留） */
.modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: .25s;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,20,24,.75); }
.modal-dialog {
  position: relative; z-index: 1; width: min(680px, 100%);
  background: #fff; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.modal-header h3 { font-size: 18px; font-weight: 500; }
.modal-close {
  width: 34px; height: 34px; border: 0; background: var(--paper);
  font-size: 22px; cursor: pointer; border-radius: 50%;
}
.modal-body { padding: 22px; overflow: auto; }
.modal-intro { color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.report-form { display: flex; gap: 10px; margin-bottom: 14px; }
.report-form input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  font: inherit; font-size: 15px; outline: none;
}
.report-form input:focus { border-color: var(--accent); }
.report-result-card { padding: 18px; border-left: 4px solid #999; background: var(--paper); }
.report-result-card.is-valid { border-left-color: #16a34a; background: #f0fdf4; }
.report-result-card.is-expired { border-left-color: var(--accent); }
.report-result-card.is-revoked { border-left-color: #c62828; background: #fef2f2; }
.report-result-status { font-size: 17px; font-weight: 500; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.report-result-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; }
.report-result-card.is-valid .status-dot { background: #16a34a; }
.report-result-card.is-expired .status-dot { background: var(--accent); }
.report-result-card.is-revoked .status-dot { background: #c62828; }
.report-result-meta { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.report-result-meta strong { color: var(--ink); font-weight: 500; }
.report-result-error { color: #c62828; text-align: center; padding: 12px; }
.report-result-loading { color: var(--muted); text-align: center; padding: 12px; }
.report-help { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.report-help a { color: var(--accent); font-weight: 500; }
.report-file { color: var(--accent); font-weight: 500; }

body.chat-open { overflow: hidden; }
.chat-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(16,20,24,.45); border: 0; cursor: pointer;
}
.chat-backdrop[hidden] { display: none !important; }
.chat-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end;
}
.chat-button {
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(14,138,125,.35);
}
.chat-label { font-size: 10px; margin-top: 2px; }
.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: 300px; max-height: 0; opacity: 0; overflow: hidden;
  background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
  transform: translateY(10px);
  transition: max-height .35s, opacity .28s, transform .28s;
}
.chat-widget.is-open .chat-panel {
  max-height: min(640px, calc(100vh - 110px));
  opacity: 1; transform: none; overflow: hidden;
}
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent); color: #fff; padding: 12px 16px; flex-shrink: 0;
}
.chat-close {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer;
}
.chat-body { padding: 16px; overflow-y: auto; flex: 1; min-height: 0; }
.chat-dismiss { width: 100%; margin-top: 8px; }
.chat-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.chat-block:first-child { border: 0; padding-top: 0; margin-top: 0; }
.chat-block-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.chat-badge { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 20px; }
.chat-qr { width: 160px; height: 160px; margin: 0 auto 8px; object-fit: contain; border: 1px solid var(--line); }
.chat-wechat-id { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.chat-copy-btn { display: flex; margin: 0 auto 8px; }
.chat-tip { text-align: center; font-size: 12px; color: var(--muted); }
.chat-call-btn { width: 100%; }
.chat-hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.lead-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lead-type {
  padding: 6px 10px; font-size: 12px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer;
}
.lead-type.is-active, .lead-type:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lead-input {
  width: 100%; padding: 10px; margin-bottom: 8px;
  border: 1px solid var(--line); font: inherit; font-size: 16px;
}
.lead-note { min-height: 52px; resize: vertical; }
#leadSubmitBtn { width: 100%; }
.lead-result { text-align: center; font-size: 13px; margin-top: 8px; }
.lead-result.is-success { color: #16a34a; }
.lead-result.is-error { color: #c62828; }

/* 兼容旧 reveal 类（若仍有） */
.reveal { opacity: 1; transform: none; }

/* ========== 手机：左栏变抽屉 ========== */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .rail {
    transform: translateX(-105%);
    transition: transform .3s ease;
    width: min(280px, 82vw);
  }
  .rail.is-open { transform: translateX(0); }
  .stage { margin-left: 0; }
  .splash { grid-template-columns: 1fr; min-height: auto; }
  .splash-visual { min-height: 280px; order: -1; }
  .splash-copy { padding: 40px 22px 48px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .strip-item:nth-child(2) { border-right: 0; }
  .ladder li { grid-template-columns: 1fr; gap: 8px; }
  .band, .band-flip { grid-template-columns: 1fr; direction: ltr; }
  .band img { min-height: 200px; }
  .mini-cases { grid-template-columns: 1fr; }
  .firm-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-notes { text-align: left; max-width: 420px; margin: 0 auto; }
  .qr-card { margin: 0 auto; }
  .work-row { grid-template-columns: 48px 1fr; }
  .work-row > span { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: "";
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,.4);
  }
}

@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; }
  .splash-copy h1 { font-size: 48px; }
}
