:root {
  --bg: #f7f8fa;
  --bg-soft: #eef1f5;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.82);
  --line: rgba(25, 35, 50, 0.12);
  --line-strong: rgba(25, 35, 50, 0.2);
  --text: #171b22;
  --text-soft: #44505f;
  --text-muted: #6e7886;
  --accent: #c9282d;
  --accent-soft: rgba(201, 40, 45, 0.08);
  --shadow: 0 18px 44px rgba(35, 42, 52, 0.1);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: 1180px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 42%, #f3f5f8 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  background: #c9282d;
  border: 1px solid rgba(201, 40, 45, 0.28);
  color: #fff;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.1);
}
.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 430px;
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  transition: 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.hero-copy,
.hero-panel,
.page-hero-inner,
.article-toc,
.content-list,
.site-footer,
.article-body,
.detail-header,
.section-card,
.intro-bridge-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-section {
  padding: 56px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}
.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy {
  border-radius: var(--radius-xl);
  padding: 40px 42px;
}
.hero-copy-formal {
  position: relative;
  overflow: hidden;
}
.hero-copy-formal::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 40, 45, 0.1), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(201, 40, 45, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9f1f24;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 23px;
  line-height: 1.5;
  color: #303946;
  margin: 18px 0 14px;
}
.hero-desc {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
  font-size: 15px;
  max-width: 94%;
}
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-keywords span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
}
.hero-panel {
  border-radius: var(--radius-xl);
  padding: 28px 28px 26px;
}
.hero-panel-formal {
  background: var(--panel-soft);
}
.hero-panel-title {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-panel-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: var(--text);
}
.hero-panel-list-formal li {
  position: relative;
  padding: 0 0 0 16px;
  line-height: 1.8;
}
.hero-panel-list-formal li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.section-block {
  padding: 20px 0;
}
.formal-section-block {
  padding: 18px 0 12px;
}
.section-soft-divider {
  margin-top: 4px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.section-link {
  position: relative;
  color: var(--accent);
  font-size: 14px;
  padding-right: 14px;
}
.section-link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
}

.intro-bridge-block {
  padding-top: 12px;
  padding-bottom: 20px;
}
.intro-bridge-card {
  border-radius: 24px;
  padding: 30px 34px;
  text-align: left;
}
.intro-bridge-kicker {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.intro-bridge-card h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}
.intro-bridge-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
}

.page-hero {
  padding: 34px 0 8px;
}
.page-hero-inner {
  border-radius: 24px;
  padding: 28px 34px;
}
.page-hero-inner h1 {
  margin: 0 0 8px;
  font-size: 34px;
}
.page-hero-inner p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.content-list {
  border-radius: 20px;
  overflow: hidden;
}
.formal-content-list { background: #fff; }
.content-list-item {
  position: relative;
}
.content-list-item + .content-list-item {
  border-top: 1px solid var(--line);
}
.content-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.content-list-link:hover {
  background: var(--accent-soft);
}
.content-list-main {
  min-width: 0;
  flex: 1;
}
.content-list-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.content-list-summary {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.82;
  font-size: 14px;
  max-width: 92%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-list-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 40, 45, 0.16);
  color: var(--accent);
  font-size: 14px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-card-link {
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px 16px;
  padding: 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-card-link:hover {
  background: var(--accent-soft);
}
.faq-card-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.faq-card-main {
  min-width: 0;
}
.faq-card-main h2 {
  margin: 2px 0 10px;
  font-size: 22px;
  line-height: 1.42;
  letter-spacing: 0;
}
.faq-card-main p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}
.faq-card-action {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pager-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pager-link {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  background: #fff;
}
.pager-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(201, 40, 45, 0.3);
}
.pager-link.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.pager-arrow { min-width: auto; }

.detail-block {
  padding: 26px 0 38px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 240px;
  gap: 24px;
  align-items: start;
}
.detail-main {
  min-width: 0;
}
.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 14px;
}
.detail-header {
  border-radius: 22px;
  padding: 28px 32px 18px;
  margin-bottom: 16px;
}
.detail-header h1 {
  margin: 0;
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.detail-meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.detail-summary {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.85;
}
.detail-header-no-back { margin-top: 8px; }
.article-body {
  border-radius: 22px;
  padding: 34px 38px;
}
.article-body-single { border-radius: 22px; }
.article-body h2,
.article-body h3 {
  scroll-margin-top: 92px;
}
.article-body h2 {
  margin: 34px 0 14px;
  font-size: 28px;
  line-height: 1.34;
}
.article-body h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 1.48;
}
.article-body p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 2.02;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-soft);
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.9;
}
.article-body blockquote {
  margin: 22px 0;
  padding: 6px 0 6px 18px;
  border-left: 3px solid rgba(201, 40, 45, 0.6);
  color: var(--text-soft);
}
.article-body strong { color: var(--text); }
.article-body code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 40, 45, 0.24);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(35, 42, 52, 0.08);
}
.markdown-image {
  margin: 24px 0;
}
.markdown-image figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.article-toc {
  position: sticky;
  top: 90px;
  border-radius: 18px;
  padding: 18px;
}
.article-toc-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.article-toc-list {
  display: grid;
  gap: 8px;
}
.toc-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}
.toc-link:hover,
.toc-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
}
.toc-level-3 {
  padding-left: 20px;
  color: var(--text-muted);
}

.about-contact-card {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}
.about-contact-card > .article-toc {
  position: static;
}
.about-contact-card > .article-toc,
.about-contact-card {
  min-width: 0;
}
.about-contact-card > .about-contact-label,
.about-contact-card > h2,
.about-contact-card > dl {
  border-left: 0;
}
.about-contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}
.about-contact-card .article-toc {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.about-contact-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.about-contact-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}
.about-contact-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.about-contact-card dt {
  color: var(--text-muted);
  font-size: 12px;
}
.about-contact-card dd {
  margin: -6px 0 4px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}
.about-contact-card a {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  padding: 28px 0 34px;
}
.footer-title {
  font-size: 18px;
  font-weight: 700;
}
.footer-desc {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.8;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-copy {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
}
.empty-state {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
  }
  .about-contact-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow-container,
  .list-container {
    width: min(100% - 28px, var(--container));
  }
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-copy,
  .hero-panel,
  .page-hero-inner,
  .detail-header,
  .article-body,
  .intro-bridge-card {
    padding-left: 20px;
    padding-right: 20px;
  }
  .content-list-link {
    padding: 16px 18px;
  }
  .content-list-title {
    font-size: 20px;
  }
  .content-list-summary {
    max-width: 100%;
  }
  .page-hero-inner h1,
  .section-heading h2,
  .intro-bridge-card h2 {
    font-size: 28px;
  }
  .article-body p,
  .intro-bridge-copy p {
    font-size: 15px;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-keywords {
    gap: 8px;
  }
  .content-list-arrow {
    display: none;
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
  .faq-card-link {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .faq-card-action {
    grid-column: 1;
  }
}
