/* ==========================================================================
   吃瓜51爆料网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-bg: #F5F3EE;
  --c-surface: #FFFFFF;
  --c-brand: #1F4E4A;
  --c-brand-soft: #2F7A6E;
  --c-accent: #D97706;
  --c-text: #17201F;
  --c-muted: #6B7A76;
  --c-line: #DCD7CE;
  --c-tint: #EEF3F1;
  --c-warn: #FBF2E4;
  --c-hold: #F1EFEB;
  --radius: 8px;
  --shell: 1160px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-brand-soft);
  text-decoration: none;
}

a:hover {
  color: var(--c-brand);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header .brand {
  flex: 0 0 auto;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 0;
}

.site-header .brand:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.site-nav a.is-current {
  color: #FFFFFF;
  font-weight: 600;
  border-bottom-color: var(--c-accent);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 14px;
  letter-spacing: 0;
}

.nav-toggle::before {
  content: "菜单";
}

.nav-toggle[aria-expanded="true"]::before {
  content: "收起";
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-brand);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-text);
}

.page-header {
  margin: 16px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--c-brand);
}

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad) 28px;
}

.footer-group h2 {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--c-brand);
}

.footer-group ul {
  display: grid;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.footer-group a:hover {
  color: var(--c-brand);
}

.footer-note {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 32px;
  border-top: 1px solid var(--c-line);
}

.footer-note p {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   components · 通用元件
   -------------------------------------------------------------------------- */

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-tag.status-open,
.status-tag.status-ok {
  background: var(--c-tint);
  color: var(--c-brand);
  border: 1px solid rgba(47, 122, 110, 0.35);
}

.status-tag.status-need,
.status-tag.status-check {
  background: var(--c-warn);
  color: #8A4B04;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.status-tag.status-hold {
  background: var(--c-hold);
  color: var(--c-muted);
  border: 1px solid var(--c-line);
}

.btn,
.btn-primary {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  background: var(--c-brand);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid var(--c-brand);
}

.btn:hover,
.btn-primary:hover {
  background: #173E3A;
  color: #FFFFFF;
}

.section-more a,
.related-links a,
.link-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--c-brand-soft);
}

.section-more a:hover,
.related-links a:hover,
.link-list a:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.media-figure,
.page-media,
.method-media,
.content-media,
.aside-figure {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.media-figure img,
.page-media img,
.method-media img,
.content-media img,
.aside-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-figure figcaption,
.page-media figcaption,
.method-media figcaption,
.content-media figcaption,
.aside-figure figcaption {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}

/* FAQ 折叠项（首页与常见问题页共用） */
.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "?";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.faq-item[open] summary {
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-line);
}

.faq-item summary:hover {
  background: #FAF9F6;
}

.faq-item p {
  padding: 14px 16px 16px 46px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

.home-main .hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad) 40px;
}

.hero-copy h1 {
  font-size: 36px;
  line-height: 1.3;
  color: var(--c-brand);
}

.hero-lead {
  margin-top: 16px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-links a {
  display: inline-block;
  padding: 9px 16px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
}

.hero-links a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
  color: var(--c-brand);
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}

.content-media-primary {
  max-width: var(--shell);
  margin: 32px auto 0;
  padding: 0 var(--pad);
  border: 0;
  border-radius: 0;
  background: none;
}

.content-media-primary img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.content-media-primary figcaption {
  padding: 10px 0 0;
  border-top: 0;
}

.home-main .section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--pad) 0;
}

.home-main .section + .section {
  margin-top: 44px;
  border-top: 1px solid var(--c-line);
  padding-top: 44px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 24px;
  color: var(--c-brand);
}

.section-head p {
  margin-top: 8px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 服务主推荐与次推荐 */
.recommend .card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.recommend .card-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 22px 24px;
  border-left: 3px solid var(--c-brand);
}

.recommend .card-primary .card-body h3 {
  margin-top: 10px;
  font-size: 20px;
  color: var(--c-brand);
}

.recommend .card-primary .card-body p {
  margin-top: 10px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.recommend .card-primary .card-body .card-note {
  padding-top: 10px;
  border-top: 1px dashed var(--c-line);
  font-size: 14px;
  color: var(--c-text);
}

.recommend .card-primary .card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.recommend .card-primary .card-links a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}

.recommend .card-primary .card-links a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
}

.recommend .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.recommend .card-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.recommend .card-grid .card h3 {
  margin-top: 10px;
  font-size: 18px;
  color: var(--c-text);
}

.recommend .card-grid .card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.recommend .card-grid .card-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

.recommend .card-grid .card-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--c-brand-soft);
}

.recommend .card-grid .card-links a:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status-legend {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* 专题入口 */
.topics .topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topics .topic-col {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.topics .topic-col:hover {
  border-color: var(--c-brand-soft);
  background: #FBFAF7;
}

.topics .topic-col h3 {
  font-size: 18px;
}

.topics .topic-col h3 a {
  color: var(--c-brand);
}

.topics .topic-col p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 整理方法四步预览 */
.method-preview .step-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.method-preview .step-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.method-preview .step-row + .step-row {
  border-top: 1px solid var(--c-line);
}

.method-preview .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-accent);
  font-size: 15px;
  font-weight: 600;
}

.method-preview .step-text h3 {
  font-size: 17px;
  color: var(--c-text);
}

.method-preview .step-text p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-muted);
}

.method-preview .step-link {
  padding: 8px 0;
  font-size: 15px;
  color: var(--c-brand-soft);
  white-space: nowrap;
}

.method-preview .step-link:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 合作排期阶段预览 */
.schedule-preview .stage-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 26px;
}

.schedule-preview .stage-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: var(--c-line);
}

.schedule-preview .stage-node {
  position: relative;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.schedule-preview .stage-node::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
}

.schedule-preview .stage-node h3 {
  font-size: 17px;
  color: var(--c-brand);
}

.schedule-preview .stage-node p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 交付要点清单 */
.delivery-preview .check-list {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.delivery-preview .check-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 20px;
}

.delivery-preview .check-row + .check-row {
  border-top: 1px solid var(--c-line);
}

.delivery-preview .check-row dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
}

.delivery-preview .check-row dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 适用对象与暂不承接情形 */
.fit .fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fit .fit-col {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.fit .fit-col h3 {
  padding-bottom: 10px;
  font-size: 18px;
  border-bottom: 1px solid var(--c-line);
}

.fit .fit-yes h3 {
  color: var(--c-brand);
}

.fit .fit-no h3 {
  color: #8A4B04;
}

.fit .fit-col ul {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.fit .fit-col li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.fit .fit-col li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand-soft);
}

.fit .fit-no li::before {
  background: var(--c-accent);
}

/* 常见问题速览 */
.faq-preview .faq-list {
  max-width: 900px;
}

/* 对接入口 */
.contact-entry .entry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: entry;
}

.contact-entry .entry-steps li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
  counter-increment: entry;
}

.contact-entry .entry-steps li::before {
  content: counter(entry);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.contact-entry .entry-action {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   pages · 内页通用模块
   -------------------------------------------------------------------------- */

.page-hero,
.page-head,
.page-title-block,
.page-intro {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-brand-soft);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.inner-main > .page-hero,
.inner-main > .page-head,
.inner-main > .page-title-block {
  margin-top: 18px;
}

.inner-main .page-intro {
  margin-top: 18px;
}

.inner-main section {
  margin-top: 40px;
}

.inner-main section > h2 {
  font-size: 24px;
  color: var(--c-brand);
}

.inner-main section > p {
  margin-top: 10px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.section-note,
.section-lead,
.section-intro {
  margin-top: 10px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.inner-main .media-figure,
.inner-main .page-media {
  margin-top: 24px;
}

.inner-main .media-figure img,
.inner-main .page-media img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* 服务目录页 */
.catalog-overview > p {
  margin-top: 10px;
}

.catalog-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.catalog-directions a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
}

.catalog-directions a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalog-grid > h2 {
  grid-column: 1 / -1;
}

.catalog-grid .service-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.catalog-grid .service-card:hover {
  border-color: var(--c-brand-soft);
}

.catalog-grid .service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.catalog-grid .service-card-head h3 {
  font-size: 18px;
  color: var(--c-brand);
}

.catalog-grid .service-card-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 14px;
  flex: 1 1 auto;
  align-content: start;
}

.catalog-grid .service-card-body dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.catalog-grid .service-card-body dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.catalog-grid .service-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

.catalog-grid .service-card-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--c-brand-soft);
}

.catalog-grid .service-card-links a:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-advice .advice-list {
  margin-top: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.catalog-advice .advice-list li {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 20px;
}

.catalog-advice .advice-list li + li {
  border-top: 1px solid var(--c-line);
}

.catalog-advice .advice-cond {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
}

.catalog-advice .advice-act {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 选题整理方法页 */
.page-layout {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}

.layout-shell .layout-main {
  min-width: 0;
}

.layout-shell .layout-main .breadcrumb {
  margin-bottom: 4px;
}

.layout-shell .layout-main .page-header {
  margin-top: 0;
}

.method-steps {
  margin-top: 32px;
}

.method-steps .section-lead {
  margin-top: 10px;
}

.method-steps .method-media {
  margin-top: 20px;
}

.method-steps .method-media img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.method-steps .step-block {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.method-steps .step-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  font-size: 18px;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-line);
}

.method-steps .step-block .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.method-steps .step-purpose,
.method-steps .step-output,
.method-steps .step-pitfall {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.method-steps .step-purpose strong,
.method-steps .step-output strong,
.method-steps .step-pitfall strong {
  color: var(--c-text);
}

.method-steps .step-points {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.method-steps .step-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.method-steps .step-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brand-soft);
}

.method-steps .step-pitfall {
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--c-warn);
  color: #7A4A08;
}

.method-steps .step-pitfall strong {
  color: #7A4A08;
}

.glossary .glossary-list {
  margin-top: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.glossary .glossary-item {
  display: grid;
  grid-template-columns: 160px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.glossary .glossary-item + .glossary-item {
  border-top: 1px solid var(--c-line);
}

.glossary .glossary-term {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
}

.glossary .glossary-toggle {
  padding: 6px 14px;
  min-height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-brand-soft);
  font-size: 14px;
  line-height: 22px;
}

.glossary .glossary-toggle:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
  color: var(--c-brand);
}

.glossary .glossary-detail {
  grid-column: 1 / -1;
  padding: 10px 0 2px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.method-aside {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.method-aside h2 {
  font-size: 17px;
  color: var(--c-brand);
}

.method-aside .aside-steps {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.method-aside .aside-steps a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-muted);
  border-left: 2px solid var(--c-line);
}

.method-aside .aside-steps a:hover,
.method-aside .aside-steps a.is-active {
  background: var(--c-tint);
  border-left-color: var(--c-accent);
  color: var(--c-brand);
}

.method-aside .aside-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.method-aside .aside-links h3 {
  font-size: 15px;
  color: var(--c-brand);
}

.method-aside .aside-links ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.method-aside .aside-links a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--c-brand-soft);
}

.method-aside .aside-links a:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 合作排期页 */
.schedule-overview .stage-anchors {
  margin-top: 18px;
}

.schedule-overview .stage-anchors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-overview .stage-anchors a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
}

.schedule-overview .stage-anchors a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
}

.stage-flow {
  position: relative;
}

.stage-flow .stage-item {
  position: relative;
  margin-top: 20px;
  margin-left: 26px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.stage-flow .stage-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -20px;
  left: -26px;
  width: 1px;
  background: var(--c-line);
}

.stage-flow .stage-item:last-child::before {
  bottom: 0;
}

.stage-flow .stage-item::after {
  content: "";
  position: absolute;
  top: 26px;
  left: -30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
}

.stage-flow .stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.stage-flow .stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--c-tint);
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
}

.stage-flow .stage-head h3 {
  font-size: 18px;
  color: var(--c-brand);
}

.stage-flow .stage-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 16px;
  margin-top: 14px;
  align-content: start;
}

.stage-flow .stage-fields dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}

.stage-flow .stage-fields dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.schedule-adjust .adjust-list {
  margin-top: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.schedule-adjust .adjust-list li {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 20px;
}

.schedule-adjust .adjust-list li + li {
  border-top: 1px solid var(--c-line);
}

.schedule-adjust .adjust-case {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
}

.schedule-adjust .adjust-action {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.related-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.related-links li a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
}

.related-links li a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
  text-decoration: none;
}

/* 交付标准页 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-item {
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 14px;
  line-height: 1.7;
}

.delivery-list .delivery-row {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.delivery-list .delivery-name {
  padding-bottom: 12px;
  font-size: 18px;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-line);
}

.delivery-list .delivery-detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 16px;
  margin-top: 14px;
  align-content: start;
}

.delivery-list .delivery-detail dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}

.delivery-list .delivery-detail dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.review-flow .review-steps {
  counter-reset: review;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.review-flow .review-step {
  position: relative;
  padding: 16px 20px 16px 60px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  counter-increment: review;
}

.review-flow .review-step .step-index {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.review-flow .review-step .step-index::before {
  content: counter(review);
}

.review-flow .review-step h3 {
  font-size: 17px;
  color: var(--c-brand);
}

.review-flow .review-step p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.reject-cases .reject-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.reject-cases .reject-item {
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.reject-cases .reject-item h3 {
  font-size: 16px;
  color: #8A4B04;
}

.reject-cases .reject-item p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.delivery-related .link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.delivery-related .link-list a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 20px;
}

.delivery-related .link-list a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
  text-decoration: none;
}

/* 常见问题页 */
.topic-anchor-bar {
  margin-top: 22px;
}

.topic-anchor-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-anchor-bar a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 22px;
}

.topic-anchor-bar a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
}

.faq-group .group-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}

.faq-group .group-head h2 {
  font-size: 24px;
  color: var(--c-brand);
}

.faq-group .group-head p {
  margin-top: 8px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.faq-group .media-figure {
  margin-top: 20px;
}

.faq-group .faq-list {
  margin-top: 20px;
}

.related-entry .related-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 合作对接页 */
.page-layout.sidebar-left {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.sidebar-left .prep-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.sidebar-left .prep-aside h2 {
  font-size: 18px;
  color: var(--c-brand);
}

.sidebar-left .prep-aside .aside-intro {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.sidebar-left .prep-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.sidebar-left .prep-item {
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

.sidebar-left .prep-item h3 {
  font-size: 16px;
  color: var(--c-text);
}

.sidebar-left .prep-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.sidebar-left .aside-figure {
  margin-top: 18px;
}

.sidebar-left .aside-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sidebar-left .main-column {
  min-width: 0;
}

.sidebar-left .main-column section {
  margin-top: 0;
}

.sidebar-left .main-column section + section {
  margin-top: 40px;
}

.flow-section .flow-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.flow-section .flow-step {
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.flow-section .flow-step .step-index {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.flow-section .flow-step h3 {
  font-size: 17px;
  color: var(--c-brand);
}

.flow-section .flow-step .step-body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.flow-section .step-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.flow-section .step-meta dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.flow-section .step-meta dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.link-section .related-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.issue-section .issue-list {
  margin-top: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.issue-section .issue-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 20px;
}

.issue-section .issue-row + .issue-row {
  border-top: 1px solid var(--c-line);
}

.issue-section .issue-row dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
}

.issue-section .issue-row dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* 404 页 */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--pad) 72px;
}

.error-hero {
  padding: 36px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.error-hero h1 {
  font-size: 30px;
  color: var(--c-brand);
}

.error-hero p {
  margin-top: 12px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}

.error-hero .btn {
  margin-top: 22px;
}

.error-links {
  margin-top: 40px;
}

.error-links h2 {
  font-size: 24px;
  color: var(--c-brand);
}

.error-links ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-brand);
  font-size: 15px;
  line-height: 20px;
}

.error-links a:hover {
  background: var(--c-tint);
  border-color: var(--c-brand-soft);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-nav {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 0 var(--pad);
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--c-brand);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 4px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .site-nav a.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--c-accent);
    padding-left: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px var(--pad) 32px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .recommend .card-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommend .card-primary .card-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .recommend .card-grid,
  .topics .topic-grid,
  .contact-entry .entry-steps,
  .delivery-related .link-list,
  .error-links ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-aside {
    position: static;
    order: -1;
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .prep-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  body.site-body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 60px;
  }

  .site-nav {
    top: 60px;
  }

  .inner-main {
    padding: 16px var(--pad) 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .home-main .hero-copy h1 {
    font-size: 26px;
  }

  .home-main .section {
    padding: 32px var(--pad) 0;
  }

  .home-main .section + .section {
    margin-top: 32px;
    padding-top: 32px;
  }

  .section-head h2,
  .inner-main section > h2,
  .faq-group .group-head h2,
  .error-links h2 {
    font-size: 21px;
  }

  .recommend .card-grid,
  .topics .topic-grid,
  .contact-entry .entry-steps,
  .fit .fit-grid,
  .catalog-grid,
  .reject-cases .reject-list,
  .delivery-related .link-list,
  .related-entry .related-links,
  .link-section .related-links,
  .error-links ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-preview .step-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .method-preview .step-link {
    grid-column: 2 / 3;
    padding: 0;
  }

  .delivery-preview .check-row,
  .catalog-advice .advice-list li,
  .schedule-adjust .adjust-list li,
  .issue-section .issue-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .catalog-grid .service-card-body,
  .stage-flow .stage-fields,
  .delivery-list .delivery-detail,
  .flow-section .step-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .catalog-grid .service-card-body dt,
  .stage-flow .stage-fields dt,
  .delivery-list .delivery-detail dt,
  .flow-section .step-meta dt {
    margin-top: 8px;
  }

  .glossary .glossary-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .glossary .glossary-detail {
    grid-column: 1 / -1;
  }

  .stage-flow .stage-item {
    margin-left: 18px;
    padding: 16px;
  }

  .stage-flow .stage-item::before {
    left: -18px;
  }

  .stage-flow .stage-item::after {
    left: -22px;
  }

  .flow-section .flow-step {
    padding: 16px;
  }

  .flow-section .flow-step .step-index {
    position: static;
    margin-bottom: 8px;
  }

  .review-flow .review-step {
    padding: 16px;
  }

  .review-flow .review-step .step-index {
    position: static;
    margin-bottom: 8px;
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding: 32px var(--pad) 24px;
  }

  .faq-item p {
    padding: 12px 16px 14px 16px;
  }

  .error-main {
    padding: 40px var(--pad) 56px;
  }

  .error-hero {
    padding: 24px 20px;
  }
}

@media (max-width: 400px) {
  .footer-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-links a,
  .catalog-directions a,
  .schedule-overview .stage-anchors a,
  .topic-anchor-bar a {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
