/* wpsju.com.cn 第1套根域名 · 工程蓝图 / 绘图台 */
:root {
  --ivory: #f4efe2;
  --ivory-deep: #ebe4d2;
  --paper: #f7f2e6;
  --trace: #efe6d2;
  --grid: rgba(15, 110, 106, 0.11);
  --grid-soft: rgba(18, 53, 91, 0.07);
  --navy: #12355b;
  --navy-ink: #0c2440;
  --teal: #0f6e6a;
  --teal-deep: #0a5552;
  --line: #12355b;
  --dim: #0f6e6a;
  --muted: #5b6b7a;
  --ink: #1a2a38;
  --wash: #e7f0ee;
  --stamp: #d8c7a1;
  --danger: #8a3b2a;
  --white: #fffdf8;
  --shadow: rgba(18, 53, 91, 0.12);
  --rail: 220px;
  --head: 68px;
  --mono: Consolas, "Courier New", "Source Han Mono SC", monospace;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.82;
  background-color: var(--ivory);
  background-image:
    repeating-linear-gradient(
      0deg,
      var(--grid) 0,
      var(--grid) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      var(--grid) 0,
      var(--grid) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 11px,
      var(--grid-soft) 11px,
      var(--grid-soft) 12px
    ),
    linear-gradient(180deg, rgba(210, 196, 160, 0.22), rgba(244, 239, 226, 0.55));
}

img,
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

p {
  margin: 0 0 0.95rem;
}

h1,
h2,
h3 {
  color: var(--navy-ink);
  line-height: 1.38;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.42rem, 2.6vw, 1.95rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.04rem;
  margin: 0 0 0.42rem;
  color: var(--teal-deep);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.32rem;
}

/* —— 页头图签条 —— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--head);
  background: linear-gradient(180deg, #f8f3e7 0%, #efe6d0 100%);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 1px 0 var(--teal);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--head);
  padding: 0 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 1.08rem;
}

.brand:hover {
  color: var(--teal);
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 3px;
  background: var(--white);
}

.site-nav {
  display: flex;
  gap: 0.28rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.38rem 0.78rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.site-nav a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: var(--wash);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.site-nav a[aria-current="page"]:hover {
  color: var(--white);
  background: var(--navy-ink);
}

.site-nav svg {
  width: 14px;
  height: 14px;
}

/* —— 左侧固定目录轨 + 右侧长卷 —— */
.desk {
  display: block;
}

.toc-rail {
  position: fixed;
  left: 0;
  top: var(--head);
  width: var(--rail);
  bottom: 0;
  overflow: auto;
  background: rgba(247, 242, 230, 0.94);
  border-right: 1px solid var(--navy);
  padding: 0.85rem 0.75rem 1.4rem;
  z-index: 30;
}

.toc-rail__cap {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 0.4rem;
  margin: 0 0 0.55rem;
}

.toc-rail a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.42rem 0.4rem;
  border-left: 2px solid transparent;
}

.toc-rail a:hover {
  background: var(--wash);
  border-left-color: var(--teal);
  color: var(--teal-deep);
}

.toc-rail a span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.sheet-wrap {
  margin-left: var(--rail);
  padding: 1.15rem 1.2rem 2.2rem;
}

.sheet {
  max-width: 980px;
  margin: 0 auto;
}

/* —— 描图纸质感卷面 —— */
.paper {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 250, 235, 0.55), rgba(232, 220, 190, 0.22)),
    repeating-linear-gradient(
      0deg,
      rgba(15, 110, 106, 0.05) 0,
      rgba(15, 110, 106, 0.05) 1px,
      transparent 1px,
      transparent 28px
    );
  border: 1px solid var(--navy);
  box-shadow:
    0 0 0 6px rgba(244, 239, 226, 0.85),
    0 0 0 7px var(--navy),
    inset 0 0 90px rgba(80, 60, 20, 0.05);
  padding: 1.15rem 1.2rem 1.25rem;
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--teal);
  border-style: solid;
  pointer-events: none;
}

.paper::before {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.paper::after {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
}

.paper-foot {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 10px;
  pointer-events: none;
}

.paper-foot::before,
.paper-foot::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--teal);
  border-style: solid;
}

.paper-foot::before {
  left: 0;
  bottom: 0;
  border-width: 0 0 2px 2px;
}

.paper-foot::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

/* —— Hero 图纸标题栏 —— */
.title-block {
  margin-bottom: 1.35rem;
}

.title-block__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--navy);
  background: var(--white);
  margin-bottom: 0.85rem;
}

.tb-cell {
  border-right: 1px solid var(--navy);
  padding: 0.42rem 0.6rem 0.5rem;
  min-height: 3.15rem;
}

.tb-cell:last-child {
  border-right: none;
}

.tb-cell b {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 400;
}

.tb-cell span {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-top: 0.12rem;
}

.title-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.7fr);
  gap: 0.9rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.35rem;
}

.lede {
  font-size: 1.01rem;
}

.stamp {
  border: 1px solid var(--navy);
  background: rgba(255, 253, 248, 0.92);
  align-self: stretch;
}

.stamp__cap {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--white);
  background: var(--navy);
  padding: 0.4rem 0.65rem;
}

.stamp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.stamp th,
.stamp td {
  border-top: 1px solid rgba(18, 53, 91, 0.22);
  padding: 0.4rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.stamp th {
  width: 4.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.stamp td {
  color: var(--navy);
}

/* —— 尺寸标注条 —— */
.dimbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 1rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.dimbar__cap {
  border: 1px solid var(--teal);
  min-width: 1.15rem;
  text-align: center;
  line-height: 1.15rem;
}

.dimbar__line {
  flex: 1;
  height: 0;
  border-top: 1px solid var(--teal);
  position: relative;
}

.dimbar__line::before,
.dimbar__line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--teal);
  border-top: 1px solid var(--teal);
}

.dimbar__line::before {
  left: 0;
  transform: rotate(-135deg);
}

.dimbar__line::after {
  right: 0;
  transform: rotate(45deg);
}

.dimbar__val {
  white-space: nowrap;
  color: var(--navy);
}

/* —— 带图号图纸框 —— */
.frame {
  position: relative;
  margin: 0 0 1.35rem;
}

.frame-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--navy);
  margin-bottom: 0.8rem;
}

.frame-head h2 {
  margin: 0;
  flex: 1 1 16rem;
}

.frame-no {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--navy);
  padding: 0.12rem 0.4rem;
  font-weight: 400;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.cell {
  border: 1px solid rgba(18, 53, 91, 0.35);
  background: rgba(255, 253, 248, 0.72);
  padding: 0.75rem 0.8rem 0.55rem;
}

.cell h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cell svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex: 0 0 18px;
}

.full {
  margin-top: 0.2rem;
}

/* —— 图例表 —— */
.legend {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.7rem 0 1rem;
  background: var(--white);
}

.legend th,
.legend td {
  border: 1px solid var(--navy);
  padding: 0.48rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legend th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
}

.legend tr:nth-child(even) td {
  background: var(--wash);
}

.legend .ok {
  color: var(--teal-deep);
  font-weight: 700;
}

.legend .warn {
  color: var(--danger);
  font-weight: 700;
}

/* —— 签字栏式评价 —— */
.sign-grid {
  display: grid;
  gap: 0.8rem;
  margin: 0.75rem 0 1rem;
}

.signbox {
  border: 1px solid var(--navy);
  background: rgba(255, 253, 248, 0.86);
}

.signbox header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--navy);
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.signbox .signbox__body {
  padding: 0.7rem 0.8rem 0.2rem;
}

.signbox footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  border-top: 1px dashed var(--navy);
  padding: 0.4rem 0.75rem 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.sign-line {
  display: inline-block;
  min-width: 7rem;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  padding: 0 0.2rem;
}

/* —— 按钮 —— */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.2rem;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--navy);
  padding: 0.48rem 0.95rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn {
  background: var(--navy);
  color: var(--white);
}

.btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--wash);
  border-color: var(--teal);
  color: var(--teal-deep);
  text-decoration: none;
}

.btn svg,
.btn-ghost svg {
  width: 16px;
  height: 16px;
}

.btn:focus-visible,
.btn-ghost:focus-visible,
.site-nav a:focus-visible,
.toc-rail a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* —— 多平台分线 —— */
.plats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.8rem 0 1rem;
}

.plat {
  border: 1px solid var(--navy);
  padding: 0.75rem 0.8rem 0.85rem;
  background: var(--white);
}

.plat strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.plat h3 {
  margin-bottom: 0.35rem;
}

.plat .btn,
.plat .btn-ghost {
  margin-top: 0.25rem;
}

/* —— 工序步骤 —— */
.steps {
  margin: 0.7rem 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.65rem 0.75rem 0.55rem 3.1rem;
  border: 1px solid rgba(18, 53, 91, 0.3);
  background: rgba(255, 253, 248, 0.8);
  margin-bottom: 0.55rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0.55rem;
  top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--white);
  background: var(--teal);
  min-width: 1.85rem;
  text-align: center;
  padding: 0.08rem 0.15rem;
}

.steps h3 {
  margin-bottom: 0.28rem;
}

/* —— 对照 / FAQ —— */
.compare {
  margin: 0.7rem 0 1rem;
}

.faq {
  margin: 0.4rem 0 0;
}

.faq details {
  border: 1px solid rgba(18, 53, 91, 0.35);
  background: var(--white);
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.75rem 0.15rem;
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.faq details[open] summary {
  color: var(--teal-deep);
}

.note {
  border-left: 3px solid var(--teal);
  padding: 0.15rem 0 0.15rem 0.75rem;
  color: var(--navy);
}

.callout {
  border: 1px dashed var(--navy);
  background: var(--wash);
  padding: 0.75rem 0.85rem 0.55rem;
  margin: 0.8rem 0 0.2rem;
}

/* —— 页脚 —— */
.site-foot {
  margin-left: var(--rail);
  border-top: 2px solid var(--navy);
  background: linear-gradient(180deg, #efe6d0, #e6dcc4);
  padding: 1.1rem 1.2rem 1.4rem;
}

.site-foot__inner {
  max-width: 980px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--navy);
}

.site-foot p:last-child {
  margin-bottom: 0;
}

/* —— 主推下载区 —— */
.hero-dl {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.dl-card {
  border: 1px solid var(--navy);
  background: var(--white);
  padding: 0.85rem 0.9rem;
}

.dl-card .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--teal);
}

/* —— 响应式：手机端目录改顶部横滑 —— */
@media (max-width: 980px) {
  :root {
    --rail: 0px;
    --head: 60px;
  }

  .site-head__inner {
    flex-wrap: wrap;
    padding: 0.45rem 0.75rem 0.5rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .toc-rail {
    position: sticky;
    top: var(--head);
    left: auto;
    width: 100%;
    bottom: auto;
    height: auto;
    overflow: auto hidden;
    white-space: nowrap;
    border-right: none;
    border-bottom: 1px solid var(--navy);
    padding: 0.45rem 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    z-index: 40;
  }

  .toc-rail__cap {
    display: none;
  }

  .toc-rail a {
    display: inline-block;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.28rem 0.55rem;
    font-size: 0.8rem;
  }

  .toc-rail a span {
    display: none;
  }

  .toc-rail a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .sheet-wrap,
  .site-foot {
    margin-left: 0;
  }

  .title-block__meta {
    grid-template-columns: 1fr 1fr;
  }

  .tb-cell:nth-child(2n) {
    border-right: none;
  }

  .tb-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--navy);
  }

  .title-block__body,
  .hero-dl,
  .cols,
  .plats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.8px;
  }

  .paper {
    padding: 0.9rem 0.75rem 1.05rem;
  }

  .sheet-wrap {
    padding: 0.75rem 0.65rem 1.6rem;
  }

  .title-block__meta {
    grid-template-columns: 1fr;
  }

  .tb-cell {
    border-right: none;
    border-bottom: 1px solid var(--navy);
  }

  .tb-cell:last-child {
    border-bottom: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-ghost {
    justify-content: center;
  }

  .signbox footer {
    flex-direction: column;
  }

  .legend {
    display: block;
    overflow-x: auto;
  }
}

@media (min-width: 1400px) {
  .sheet,
  .site-foot__inner {
    max-width: 1080px;
  }
}

@media print {
  .toc-rail,
  .site-nav,
  .btn,
  .btn-ghost {
    display: none !important;
  }

  .sheet-wrap,
  .site-foot {
    margin-left: 0;
  }

  body {
    background: #fff;
  }

  .paper {
    box-shadow: none;
  }
}
