/* 首页草案 v2 —— 复用 style.css 的变量、头部、按钮与页脚 */

.draft-page {
  background: var(--bg);
}

.draft-page main {
  padding-top: 0;
}

.draft-page section[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 通用 ---------- */
.d-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.d-eyebrow.light {
  color: #9fc0ff;
}

.d-section {
  padding: 88px 0;
}

.d-section.d-alt {
  background: var(--tint);
}

.d-sec-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.d-sec-head h2,
.d-about h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--head);
}

.d-sec-head p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.d-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.d-link:hover {
  color: var(--teal);
}

/* ---------- 首屏 ---------- */
.d-hero {
  position: relative;
  padding: calc(var(--header-h) + 62px) 0 78px;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(8, 145, 178, 0.16), transparent 70%),
    linear-gradient(180deg, #f8fafd 0%, #eef3fa 100%);
  overflow: hidden;
}

.d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(29, 78, 216, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 78, 216, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 35%, transparent 78%);
  pointer-events: none;
}

.d-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.d-hero h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--head);
  text-wrap: balance;
}

.d-hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.d-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
}

.d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.d-product-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px -24px rgba(10, 22, 38, 0.55);
  font-size: 13px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.d-product-note:hover {
  border-color: rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

.d-pn-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.d-pn-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--head);
}

.d-pn-arrow {
  font-weight: 700;
  color: var(--blue);
}

/* ---------- 控制台示意 ---------- */
.d-console {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, #0b1a2e 0%, #102a4c 58%, #0e3b47 100%);
  box-shadow: 0 44px 90px -44px rgba(10, 22, 38, 0.72);
  color: #eaf1ff;
  overflow: hidden;
}

.d-console::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.45), transparent 65%);
  pointer-events: none;
}

.d-console-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.d-console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.d-console-top strong {
  font-weight: 600;
  color: #f4f8ff;
}

.d-console-tag {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(234, 241, 255, 0.7);
}

.d-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.d-metric {
  --spark: #5eead4;
  padding: 13px 13px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

.d-metric:nth-child(2) {
  --spark: #7dd3fc;
}

.d-metric:nth-child(3) {
  --spark: #fbbf24;
}

.d-metric-label {
  display: block;
  font-size: 11.5px;
  color: rgba(234, 241, 255, 0.6);
}

.d-metric strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.d-metric strong small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(234, 241, 255, 0.5);
}

.d-metric svg {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 8px;
  color: var(--spark);
}

.d-loop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.d-loop span {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(234, 241, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.d-loop i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.55), rgba(94, 234, 212, 0.55));
}

.d-console-note {
  position: relative;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(234, 241, 255, 0.42);
}

/* ---------- 三条主线 ---------- */
.d-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.d-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 26px 54px -44px rgba(10, 22, 38, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.d-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 34px 64px -44px rgba(10, 22, 38, 0.55);
}

.d-card-tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.d-card-tag.software {
  color: var(--blue);
  background: rgba(29, 78, 216, 0.08);
}

.d-card-tag.service {
  color: #0e7490;
  background: rgba(8, 145, 178, 0.1);
}

.d-card h3 {
  font-size: 21px;
  color: var(--head);
}

.d-card p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}

.d-fit {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px !important;
  color: var(--faint) !important;
}

.d-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 4px;
}

/* ---------- 纸服通真实界面带 ---------- */
.d-showcase {
  background:
    radial-gradient(720px 320px at 88% -20%, rgba(8, 145, 178, 0.12), transparent 70%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
  border-block: 1px solid var(--line);
}

.d-showcase-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.d-showcase-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--head);
}

.d-showcase-head p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.d-workbench {
  display: block;
  border: 1px solid rgba(10, 22, 38, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 40px 90px -52px rgba(10, 22, 38, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d-workbench:hover {
  transform: translateY(-3px);
  box-shadow: 0 52px 104px -52px rgba(10, 22, 38, 0.62);
}

.d-workbench-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: #0b1a2e;
  font-size: 11.5px;
  color: rgba(234, 241, 255, 0.66);
}

.d-workbench-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.d-workbench-bar span {
  margin-left: 8px;
}

.d-workbench img {
  display: block;
  width: 100%;
  height: auto;
}

.d-showcase-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- 证明 ---------- */
.d-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.d-proof-card {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 88% 0%, rgba(8, 145, 178, 0.1), transparent 70%),
    var(--surface);
}

.d-big {
  display: block;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.d-proof-card h3 {
  margin-top: 8px;
  font-size: 17px;
  color: var(--head);
}

.d-proof-card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.d-src {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 落地步骤 ---------- */
.d-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-steps li {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.d-steps b {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.d-steps h3 {
  margin-top: 10px;
  font-size: 17px;
  color: var(--head);
}

.d-steps p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.d-risk {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.d-risk li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  background: rgba(8, 145, 178, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: #0e7490;
}

.d-risk li::before {
  content: "✓";
  font-size: 12px;
}

/* ---------- 关于 ---------- */
.d-about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.d-about p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.d-about .d-link {
  margin-top: 20px;
}

.d-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.d-facts div {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.d-facts dt {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.d-facts dd {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--head);
}

/* ---------- CTA ---------- */
.d-cta {
  position: relative;
  padding: 84px 0;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(8, 145, 178, 0.32), transparent 65%),
    linear-gradient(135deg, #0a1626 0%, #102a4c 58%, #0d3b3f 100%);
  color: #eaf1ff;
  overflow: hidden;
}

.d-cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  color: #ffffff;
}

.d-cta p {
  margin-top: 14px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(234, 241, 255, 0.72);
}

.d-cta .d-actions {
  margin-top: 26px;
}

.d-btn-light {
  background: #ffffff;
  color: #0a1626;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6);
}

.d-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.d-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.d-cta-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(234, 241, 255, 0.45);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .d-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .d-console {
    max-width: 640px;
  }

  .d-cards {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .d-hero {
    padding: calc(var(--header-h) + 40px) 0 56px;
  }

  .d-section {
    padding: 60px 0;
  }

  .d-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-product-note {
    flex-wrap: wrap;
    border-radius: 16px;
    line-height: 1.5;
  }

  .d-proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-cta {
    padding: 60px 0;
  }
}
