/* ============================================================
   裕宸安全 · 内页版式
   页面头、功能条目、下载卡、长文文档
   ============================================================ */

/* ---------- 内页页头 ---------- */
.page-head {
  position: relative;
  padding: 76px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 20% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 90% at 20% 0%, #000, transparent 72%);
  opacity: 0.85;
}

.page-head .wrap {
  position: relative;
}

.page-head .h1 {
  margin-top: 18px;
  max-width: 860px;
}

.page-head .lead {
  margin-top: 18px;
  max-width: 660px;
}

.page-head-meta {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* 页头与首个区块之间收紧，避免大片空档 */
.page-head + .section {
  padding-top: 64px;
}

/* ---------- 场景卡：给非专业用户「对号入座」 ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.scene:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-line);
}

.scene-q {
  font-size: 17px;
  line-height: 1.5;
  font-weight: var(--fw-b);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.scene-q::before {
  content: "“";
  color: var(--brand);
  margin-right: 2px;
}

.scene-q::after {
  content: "”";
  color: var(--brand);
  margin-left: 2px;
}

.scene-a {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
  flex: 1;
}

.scene-link {
  align-self: flex-start;
  font-size: var(--fs-xs);
  color: var(--brand);
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 1px;
}

/* ---------- 通用小标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-micro);
  font-weight: var(--fw-m);
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.tag--ok {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: var(--ok-line);
}

.tag--muted {
  color: var(--ink-3);
  background: var(--bg-2);
  border-color: var(--line-2);
}

/* ---------- 功能页条目 ---------- */
.feat {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.feat:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feat-no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.feat-body .h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.feat-body > p {
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ink-2);
}

.feat-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}

.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

.feat-tags {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feat-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-1);
}

.feat-visual-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-micro);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* ---------- 下载页 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dl-card-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-card-ico svg {
  width: 22px;
  height: 22px;
}

.dl-card-title b {
  display: block;
  font-size: 17px;
  font-weight: var(--fw-b);
  letter-spacing: -0.01em;
}

.dl-card-title span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: 3px;
}

.dl-spec {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.dl-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-xs);
}

.dl-spec-row:last-child {
  border-bottom: 0;
}

.dl-spec-key {
  color: var(--ink-3);
  flex-shrink: 0;
}

.dl-spec-val {
  font-family: var(--font-mono);
  color: var(--ink-1);
  text-align: right;
  word-break: break-all;
}

.hash-box {
  margin-top: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hash-box code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  word-break: break-all;
  line-height: 1.6;
}

.hash-copy {
  flex-shrink: 0;
  font-size: var(--fs-micro);
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
  padding: 5px 9px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.hash-copy:hover {
  background: var(--brand-soft);
}

.hash-copy.is-done {
  color: var(--ok);
  border-color: var(--ok-line);
  background: var(--ok-soft);
}

.dl-note {
  margin-top: 16px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--ink-3);
}

.dl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.dl-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}

.dl-step-no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--brand);
}

.dl-step b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: var(--fw-b);
}

.dl-step p {
  margin-top: 7px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--ink-3);
}

/* ---------- 长文文档（隐私 / 免责 / 协议） ---------- */
.doc-wrap {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 60px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: var(--fs-xs);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.doc-toc b {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
  font-weight: var(--fw-b);
}

.doc-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-3);
  line-height: 1.5;
  transition: color var(--dur-fast) var(--ease-out);
}

.doc-toc a:hover {
  color: var(--brand);
}

.doc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  min-width: 0;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: var(--fw-b);
  color: var(--ink-1);
  margin: 40px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc h3 {
  font-size: 16px;
  font-weight: var(--fw-b);
  color: var(--ink-1);
  margin: 26px 0 8px;
}

.doc p {
  margin: 12px 0;
}

.doc ul,
.doc ol {
  margin: 12px 0;
  padding-left: 22px;
}

.doc ul {
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li {
  margin: 7px 0;
}

.doc strong {
  color: var(--ink-1);
  font-weight: var(--fw-b);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}

/* 表格横向滚动容器：窄屏下保持列宽，避免中文被逐字折断 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  max-width: 100%;
}

.table-scroll > table {
  margin: 0;
}

.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th {
  font-weight: var(--fw-b);
  color: var(--ink-1);
  background: var(--bg-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.doc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-2);
  border-radius: 4px;
  padding: 1px 5px;
}

.doc-callout {
  margin: 20px 0;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.doc-callout--warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.about-block + .about-block {
  margin-top: 44px;
}

.about-block h2 {
  font-size: 22px;
  font-weight: var(--fw-b);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.about-block p {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--ink-2);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.contact-row span {
  color: var(--ink-3);
  flex-shrink: 0;
}

.contact-row b {
  font-weight: var(--fw-m);
  color: var(--ink-1);
  text-align: right;
  word-break: break-all;
}

/* ---------- 联系页：按诉求分类的通道卡 ---------- */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.cc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.cc:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-line);
}

.cc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
}

.cc-title {
  font-size: 17px;
  font-weight: var(--fw-b);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.cc-desc {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
  flex: 1;
}

.cc-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand);
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 3px;
  word-break: break-all;
}

.cc-mail:hover {
  color: var(--brand-deep);
}

.cc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.cc-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.cc-facts b {
  font-weight: var(--fw-m);
  color: var(--ink-2);
}

/* 负责任披露流程：横向四段编号 */
.cc-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.cc-flow-step {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.cc-flow-step:last-child {
  border-right: 0;
}

.cc-flow-no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
}

.cc-flow-step b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-b);
  color: var(--ink-1);
  margin-bottom: 6px;
}

.cc-flow-step p {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- 404：断链 ---------- */
.nf {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.nf-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}

.nf-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 148px);
  font-weight: var(--fw-b);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.nf-chain {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 30px 0 34px;
  display: block;
}

.nf-chain .c-live {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nf-chain .c-dead {
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 7;
}

.nf-chain .c-node {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2.2;
}

.nf-chain .c-node--dead {
  fill: var(--surface);
  stroke: var(--ink-4);
  stroke-width: 2.2;
}

.nf-chain .c-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-dasharray: 13 9;
}

.nf h1 {
  margin-top: 26px;
}

.nf .lead {
  max-width: 520px;
  margin-top: 16px;
}

.nf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.nf-hot {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-sm);
}

.nf-hot span {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nf-hot a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nf-hot a:hover {
  color: var(--brand);
  border-color: var(--brand-line);
}

/* ---------- 文档中心：四篇入口卡 ---------- */
.doc-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.doc-index a {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.doc-index a:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-line);
}

.doc-index a[aria-current="page"] {
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

.doc-index a[aria-current="page"] .di-no {
  color: var(--brand-deep);
}

.doc-index .di-no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--brand);
}

.doc-index b {
  font-size: 15px;
  font-weight: var(--fw-b);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.doc-index p {
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--ink-3);
}

.doc-index .di-arrow {
  margin-top: auto;
  padding-top: 10px;
  font-size: var(--fs-xs);
  color: var(--ink-4);
  transition: color var(--dur-fast) var(--ease-out);
}

.doc-index a:hover .di-arrow {
  color: var(--brand);
}

/* ---------- 内页响应式 ---------- */
@media (max-width: 1023px) {
  .feat {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 24px;
    padding: 40px 0;
  }

  .feat-visual {
    grid-column: 2;
    margin-top: 8px;
  }

  .doc-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .doc-toc {
    position: static;
    border-left: 0;
    padding-left: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc b {
    margin-bottom: 0;
    flex-basis: 100%;
  }

  .doc-toc a {
    padding: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .cc-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-flow-step:nth-child(2) {
    border-right: 0;
  }

  .cc-flow-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .doc-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-head {
    padding: 48px 0 40px;
  }

  .feat {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feat-no {
    padding-top: 0;
  }

  .feat-visual {
    grid-column: 1;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-steps {
    grid-template-columns: 1fr;
  }

  .dl-card {
    padding: 24px;
  }

  .cc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  .cc {
    padding: 24px;
  }

  .cc-flow {
    grid-template-columns: 1fr;
  }

  .cc-flow-step {
    padding: 20px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cc-flow-step:last-child {
    border-bottom: 0;
  }

  .doc-index {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  /* 窄屏：表格保持最小可读列宽，超出部分横向滑动 */
  .table-scroll > table {
    min-width: 600px;
  }

  .doc th,
  .doc td {
    padding: 9px 11px;
    font-size: 13px;
  }
}

/* ==========================================================================
   巡影织网平台（2026-11-24 新增）
   用途：首页 #platform 区块 —— 说明「客户端 vs 平台」的分工，并给出平台入口。
   与既有组件同一套 token，不引入新色相。
   ========================================================================== */

.plat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}

.plat-item {
  position: relative;
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.plat-item:hover {
  border-color: var(--brand-line);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(17, 21, 28, 0.32);
}

.plat-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 10px;
}

.plat-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}

.plat-item p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-3);
  margin: 0;
}

.plat-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.plat-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
}

@media (max-width: 760px) {
  .plat-grid {
    grid-template-columns: 1fr;
    margin-top: var(--s4);
  }

  .plat-item {
    padding: 20px 18px;
  }

  .plat-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .plat-note {
    width: 100%;
  }
}
