/* 建设参考 /guides/、项目案例 /cases/、项目咨询 /consult/ 页面排版。
   只在 .gd 作用域内生效：浅色文章页头 + 单栏阅读宽度 + 桌面端粘性目录。
   正文沿用 solution-page.css 的组件（dor-notes / dor-table / dor-faq），这里只重设间距、宽度与字号。 */

.gd {
  --gd-ink: var(--color-ink, #171e26);
  --gd-muted: var(--color-muted, #5a626b);
  --gd-line: var(--color-line, #d8dee4);
  --gd-soft: var(--color-soft, #f4f6f8);
  --gd-accent: var(--color-blue, #2b507a);
  --gd-read: 720px;
  --gd-max: 1180px;
  background: #fff;
  color: var(--gd-ink);
}

.gd-container {
  width: min(calc(100% - 48px), var(--gd-max));
  margin: 0 auto;
}

/* ----------------------------------------------------------- 页头 */

.gd-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--gd-line);
  background: linear-gradient(180deg, var(--gd-soft) 0%, #fff 100%);
}

.gd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--gd-muted);
}

.gd-crumb a {
  color: var(--gd-muted);
  text-decoration: none;
}

.gd-crumb a:hover { color: var(--gd-accent); }

.gd-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gd-accent);
}

.gd-hero h1 {
  max-width: 22em;
  margin: 0 0 18px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gd-ink);
  text-wrap: balance;
}

.gd-sub {
  max-width: 40em;
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--gd-muted);
  line-break: strict;
  text-wrap: pretty;
}

.gd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--gd-muted);
}

.gd-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 20px 3px -12px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.gd-hero-actions { margin: 28px 0 0; }

/* ------------------------------------------------------ 正文与目录 */

.gd-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--gd-read)) 220px;
  justify-content: space-between;
  gap: 72px;
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}

.gd-layout-single { grid-template-columns: minmax(0, var(--gd-read)); }

.gd-article { min-width: 0; }

/* 片段里的 dor-block / dor-wrap 在文章内一律去背景、去通栏，统一到阅读宽度 */
.gd-article .dor-block,
.gd-article .dor-block-tight,
.gd-article .dor-block-soft {
  padding: 0;
  margin: 0 0 clamp(44px, 5vw, 64px);
  background: none;
  scroll-margin-top: 96px;
}

.gd-article .dor-wrap,
.gd-article .dor-wrap-narrow,
.gd-article .dor-col-read,
.gd-article .dor-head,
.gd-article .dor-lead > p,
.gd-article .dor-faq {
  width: auto;
  max-width: none;
  margin-inline: 0;
}

/* 开篇导语：稍大字号，左侧细线 */
.gd-guide .gd-article > .dor-block:first-child .dor-lead,
.gd-case .gd-article > .dor-block:first-child .dor-lead {
  padding-left: 22px;
  border-left: 3px solid var(--gd-accent);
}

.gd-guide .gd-article > .dor-block:first-child .dor-lead p,
.gd-case .gd-article > .dor-block:first-child .dor-lead p {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.9;
  color: var(--gd-ink);
}

.gd-article .dor-head { margin: 0 0 20px; }

.gd-article .dor-num {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gd-accent);
}

.gd-article .dor-num::after { display: none; }

.gd-article h2,
.gd-article .dor-head h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--gd-ink);
  text-wrap: balance;
}

.gd-article .dor-head p,
.gd-article .dor-lead p,
.gd-article p {
  font-size: 17px;
  line-height: 1.9;
  color: #343b43;
  line-break: strict;
  text-wrap: pretty;
}

.gd-article .dor-lead p { margin: 0 0 16px; }

.gd-article a { color: var(--gd-accent); }

/* 要点列表：去掉上下分隔线，改为左侧圆点 + 行距 */
.gd-article .dor-notes li {
  padding: 10px 0 10px 22px;
  border: 0;
  font-size: 17px;
  line-height: 1.85;
  color: #343b43;
}

.gd-article .dor-notes li:last-child { border: 0; }

.gd-article .dor-notes li::before {
  top: 22px;
  width: 6px;
  height: 6px;
}

.gd-article .dor-notes b { color: var(--gd-ink); }

/* 表格：轻量，横向滚动只在窄屏出现 */
.gd-article .dor-table-scroll {
  margin: 8px 0 0;
  overflow-x: auto;
  border: 1px solid var(--gd-line);
  border-radius: 10px;
}

.gd-article .dor-table {
  min-width: 0;
  table-layout: auto;
  font-size: 15px;
}

.gd-article .dor-table caption {
  padding: 16px 20px 0;
  font-size: 13px;
}

.gd-article .dor-table th,
.gd-article .dor-table td {
  padding: 13px 18px;
  line-height: 1.7;
  line-break: strict;
}

.gd-article .dor-table thead th {
  background: var(--gd-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--gd-muted);
}

.gd-article .dor-table tbody th {
  min-width: 8.5em;
  font-weight: 600;
  color: var(--gd-ink);
}

.gd-article .dor-table tbody tr:last-child th,
.gd-article .dor-table tbody tr:last-child td { border-bottom: 0; }

.gd-article .dor-table-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

/* 常见问题 */
.gd-article .dor-faq details {
  border-color: var(--gd-line);
}

.gd-article .dor-faq summary {
  font-size: 17px;
}

.gd-article .dor-faq p { font-size: 16px; }

/* 文末说明 */
.gd-note {
  margin: 8px 0 0;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--gd-soft);
}

.gd-note p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gd-muted);
}

.gd-note p:last-child { margin: 0; }

.gd-note b {
  margin-right: 10px;
  color: var(--gd-ink);
}

/* 目录 */
.gd-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid var(--gd-line);
}

.gd-toc-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gd-ink);
}

.gd-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-toc li { margin: 0; }

.gd-toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gd-muted);
  text-decoration: none;
  line-break: strict;
  text-wrap: balance;
}

.gd-toc a:hover,
.gd-toc a:focus-visible { color: var(--gd-accent); }

/* ------------------------------------------------------- 卡片 */

.gd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  background: #fff;
  color: var(--gd-ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gd .gd-card { color: var(--gd-ink); }

.gd-card:hover,
.gd-card:focus-visible {
  border-color: var(--gd-accent);
  box-shadow: 0 8px 24px rgba(23, 30, 38, .08);
  transform: translateY(-2px);
}

.gd-card-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gd-accent);
}

.gd-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.gd-card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gd-muted);
  line-break: strict;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-related {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--gd-line);
  background: var(--gd-soft);
}

.gd-related h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
}

/* ----------------------------------------------------- 咨询面板 */

.gd-cta-wrap { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }

.gd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--gd-line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gd-soft) 0%, #fff 70%);
}

.gd-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
}

.gd-cta p {
  max-width: 36em;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gd-muted);
  line-break: strict;
  text-wrap: pretty;
}

.gd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.gd-cta-phone {
  font-size: 15px;
  color: var(--gd-ink);
  text-decoration: none;
}

.gd-cta-phone:hover { color: var(--gd-accent); }

/* ------------------------------------------------ 建设参考总览 */

.gd-hub .gd-topic { margin-bottom: clamp(48px, 6vw, 80px); }

.gd-topic-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 24px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gd-line);
}

.gd-topic-head h2 { margin: 0; }

.gd-topic-head p {
  grid-column: 1;
  margin: 0;
  font-size: 15px;
  color: var(--gd-muted);
}

.gd-topic-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.gd-cards-guides { margin-bottom: 24px; }

.gd-more-label {
  margin: 0 0 8px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--gd-muted) !important;
}

.gd-list {
  columns: 2 300px;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-list li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--gd-line);
}

.gd-list a {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gd-ink) !important;
  text-decoration: none;
  text-wrap: balance;
}

.gd-list a:hover { color: var(--gd-accent) !important; }

/* 总览页正文更宽：卡片需要横向空间 */
.gd-hub .gd-layout { grid-template-columns: minmax(0, 1fr) 200px; }

/* ------------------------------------------------ 咨询页表单 */

.gd-consult .gd-article .admin-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  box-shadow: none;
}

.consult-consent {
  font-size: 14px;
  color: var(--gd-muted);
}

.consult-consent input { margin-top: 5px; }

/* ------------------------------------------------------ 响应式 */

@media (max-width: 1080px) {
  .gd-layout,
  .gd-hub .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gd-toc { display: none; }
}

@media (max-width: 640px) {
  .gd-container { width: calc(100% - 32px); }
  .gd-article p,
  .gd-article .dor-notes li { font-size: 16px; }
  .gd-article .dor-table:has(thead th:nth-child(4)) { min-width: 620px; }
  .gd-topic-head { grid-template-columns: 1fr; }
  .gd-topic-link { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .gd-cta { flex-direction: column; align-items: flex-start; }
  .gd-meta { gap: 4px 16px; }
  .gd-card-desc { display: none; }
  .gd-meta span + span::before { display: none; }
}

/* ---------------------------------------------- 项目咨询 /consult/ */

.gd-consult .gd-hero { padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 36px); }
.gd-consult .gd-hero h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.gd-consult .gd-layout-single { grid-template-columns: minmax(0, 1fr); padding-top: clamp(28px, 3.5vw, 48px); }
.gd-consult .gd-article .dor-block { margin-bottom: 0; }

/* 入口卡片 */
.cs-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 26px 28px;
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cs-choice:hover,
.cs-choice:focus-within {
  border-color: var(--gd-accent);
  box-shadow: 0 10px 28px rgba(23, 30, 38, .08);
  transform: translateY(-2px);
}

.cs-choice-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gd-accent);
}

.gd .cs-choice-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gd-ink);
  text-decoration: none;
}

.cs-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cs-choice-desc {
  font-size: 15px;
  color: var(--gd-muted);
}

.cs-choice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 4px;
}

.gd .cs-choice-links a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cs-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gd-line);
}

.gd .cs-direct p {
  margin: 0;
  font-size: 15px;
  color: var(--gd-muted);
}

.gd .cs-direct a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* 表单 + 侧栏 */
.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.gd-consult .gd-article .cs-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  box-shadow: none;
}

.cs-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.cs-form label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gd-ink);
}

.cs-form input[type="text"],
.cs-form input[type="tel"],
.cs-form input[type="email"],
.cs-form select,
.cs-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--gd-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--gd-ink);
  display: block;
  margin-top: 6px;
}

.cs-form select:focus,
.cs-form input:focus,
.cs-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--gd-accent) 35%, transparent);
  border-color: var(--gd-accent);
}

.cs-file {
  padding: 18px;
  border: 1px dashed var(--gd-line);
  border-radius: 10px;
  background: var(--gd-soft);
}

.cs-file span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gd-muted);
}

.cs-more {
  border-top: 1px solid var(--gd-line);
  padding-top: 12px;
}

.cs-more summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--gd-muted);
}

.cs-more[open] summary { margin-bottom: 12px; }
.cs-more label + label { margin-top: 12px; }

.gd .consult-consent {
  display: block !important;
  font-size: 14px;
  font-weight: 400;
  color: var(--gd-muted);
}

.gd .consult-consent input { display: inline-block; width: auto; min-height: 0; margin: 0 8px 0 0; vertical-align: -2px; }

.cs-form .btn { justify-self: start; min-width: 200px; }

.cs-aside {
  position: sticky;
  top: 104px;
  padding: 26px 24px;
  border-radius: 14px;
  background: var(--gd-soft);
}

.gd .cs-aside-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gd-ink);
}

.cs-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: cs;
}

.cs-steps li {
  position: relative;
  padding: 0 0 12px 34px;
  font-size: 15px;
  line-height: 1.7;
  color: #34433F;
  counter-increment: cs;
  line-break: strict;
  text-wrap: balance;
}

.cs-steps li::before {
  content: counter(cs);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.gd .cs-aside-note {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gd-muted);
}

.gd .cs-aside-tel {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gd-line);
  font-size: 14px;
  color: var(--gd-muted);
}

.gd .cs-aside-tel a {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cs-aside { position: static; }
}

@media (max-width: 640px) {
  .cs-choices,
  .cs-fields { grid-template-columns: minmax(0, 1fr); }
  .cs-choice { min-height: 0; padding: 22px; }
  .cs-form .btn { width: 100%; }
}
