:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5a6678;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --wash: #edf7f4;
  --accent: #e59f28;
  --accent-strong: #c77716;
  --electric: #2078f0;
  --green: #23856f;
  --dark: #1f3035;
  --shadow: 0 22px 55px rgba(25, 38, 53, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.75;
}

body::before {
  content: "电力设备搬运指南";
  position: fixed;
  right: 2vw;
  top: 42vh;
  z-index: -1;
  color: rgba(32, 120, 240, .06);
  font-size: clamp(56px, 8rem, 138px);
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 227, 234, .8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--electric), var(--green));
  box-shadow: 0 10px 24px rgba(32, 120, 240, .22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a,
.print-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: #eef3f8;
}

.print-button {
  cursor: pointer;
  color: white;
  background: var(--dark);
  border-color: var(--dark);
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 32px;
  min-height: 600px;
  padding: 92px max(32px, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  background: #dfecee;
}

.hero::after {
  content: "电力设备搬运指南";
  position: absolute;
  left: max(26px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  color: rgba(255, 255, 255, .55);
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 31, 38, .78), rgba(18, 31, 38, .38) 45%, rgba(18, 31, 38, .08)),
    url("assets/power-moving-guide-hero.png") center / cover no-repeat;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 760px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10em;
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-action {
  color: #1a2630;
  background: #ffc247;
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
}

.hero-panel {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 24, 31, .52);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.overview-strip,
.content-shell,
.control-band,
.crane-band,
.risk-band {
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.overview-strip {
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.overview-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 420px) minmax(120px, 190px);
  gap: 22px;
  align-items: center;
}

.overview-inner h2,
.section-heading h2,
.panel-title h3,
.rule-panel h3,
.material-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(32, 120, 240, .14);
}

.search-status {
  min-height: 28px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 30px;
}

.section-heading.wide {
  max-width: 920px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.guide-band + .guide-band {
  margin-top: 70px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.material-card,
.text-panel,
.rule-panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}

.material-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-tag {
  order: 2;
  flex: 0 0 auto;
  max-width: 132px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #79520c;
  background: #fff1cc;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.material-card h3 {
  font-size: 23px;
}

.material-points,
.safety-list,
.rule-panel ol {
  margin: 0;
  padding-left: 1.25em;
}

.material-points li,
.safety-list li,
.rule-panel li {
  padding-left: 4px;
  margin: 10px 0;
}

.control-band {
  background: linear-gradient(180deg, #fff, #eef7f4);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  align-items: start;
}

.text-panel {
  padding: 28px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title.compact {
  margin: 0 0 14px;
  padding: 0;
}

.number-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.rule-grid {
  display: grid;
  gap: 14px;
}

.rule-panel {
  padding: 20px;
  box-shadow: none;
}

.rule-panel h3 {
  color: var(--green);
  font-size: 20px;
}

.crane-band {
  background: #f7f8fb;
}

.crane-panel {
  padding: 30px 34px;
}

.two-col {
  columns: 2;
  column-gap: 42px;
}

.two-col li {
  break-inside: avoid;
}

.risk-band {
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  position: sticky;
  top: 68px;
  z-index: 3;
  color: #fff;
  background: var(--dark);
  font-size: 14px;
}

td:first-child {
  width: 150px;
  color: var(--green);
  font-weight: 800;
}

td:nth-child(2) {
  width: 230px;
  font-weight: 700;
}

td:nth-child(3) {
  width: 170px;
}

.muted {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: rgba(255,255,255,.74);
  background: #18262c;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffc247;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

mark {
  color: inherit;
  background: rgba(255, 194, 71, .45);
  padding: 0 2px;
  border-radius: 3px;
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 22px 44px;
  }

  .hero::after {
    font-size: 48px;
    left: 22px;
    bottom: 16px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-panel,
  .material-grid,
  .split-layout,
  .overview-inner {
    grid-template-columns: 1fr;
  }

  .two-col {
    columns: 1;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    max-width: 8em;
    line-height: 1.25;
  }

  .print-button {
    margin-left: auto;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .overview-strip,
  .content-shell,
  .control-band,
  .crane-band,
  .risk-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .card-head {
    display: grid;
  }

  .card-tag {
    order: 0;
    max-width: none;
    justify-self: start;
  }

  .material-card,
  .text-panel,
  .crane-panel {
    padding: 20px;
  }

  body::before {
    display: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .overview-strip,
  .site-footer {
    display: none;
  }

  .hero,
  .control-band,
  .crane-band,
  .risk-band,
  .content-shell {
    padding: 22px 0;
    background: #fff;
  }

  .hero-media,
  .hero::after,
  body::before {
    display: none;
  }

  .hero {
    min-height: auto;
    color: #000;
  }

  .hero-content {
    color: #000;
  }

  .hero-copy,
  .section-heading p,
  .metric span {
    color: #333;
  }

  .hero-panel {
    display: none;
  }

  .material-card,
  .text-panel,
  .rule-panel,
  .table-wrap {
    break-inside: avoid;
    box-shadow: none;
  }

  table {
    min-width: 0;
    font-size: 12px;
  }

  th {
    position: static;
    color: #000;
    background: #eee;
  }
}
