/* ============================================================
   base
   ============================================================ */
:root {
  --bg: #f7f9fc;
  --text: #1e293b;
  --brand: #2563eb;
  --success: #10b981;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --container: 1200px;
  --sidebar-w: 260px;
  --header-h: 64px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e40af;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p {
  margin-bottom: 12px;
}

/* ============================================================
   layout
   ============================================================ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-main.home-main {
  padding-bottom: 48px;
}

/* header */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-name {
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.main-nav a:hover {
  color: var(--text);
  background: #f1f5f9;
}

.main-nav a.is-current {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 500;
}

/* inner page layout */
.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gap) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  width: 100%;
}

.sidebar-left {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.page-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.inner-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #94a3b8;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* page header */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

/* footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gap) 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px var(--gap);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
}

/* ============================================================
   components
   ============================================================ */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.status-tag.ongoing,
.status-tag.status-active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
}

.status-tag.done,
.status-tag.status-done {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.related-links-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.related-links-item {
  font-size: 14px;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.related-links-item:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* sidebar nav */
.sidebar-nav,
.month-nav,
.toc-nav ul {
  list-style: none;
}

.sidebar-nav li,
.month-nav li,
.toc-nav li {
  margin-bottom: 2px;
}

.sidebar-nav a,
.month-nav a,
.toc-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover,
.month-nav a:hover,
.toc-nav a:hover {
  color: var(--text);
  background: #f1f5f9;
}

.sidebar h2,
.page-sidebar h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-updates ul,
.sidebar-update ul {
  list-style: none;
}

.sidebar-updates li,
.sidebar-update li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.5;
}

.sidebar-updates li:last-child,
.sidebar-update li:last-child {
  border-bottom: none;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

/* table */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f8fafc;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--brand);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 16px 20px;
}

.faq-answer p {
  margin-bottom: 8px;
  font-size: 15px;
}

.scope-note {
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
  border-left: 3px solid var(--border);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
}

/* figure / image */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 0;
  text-align: center;
}

/* ============================================================
   pages
   ============================================================ */

/* ---------- index ---------- */
.hero-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gap) 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-left h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-left p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #1e40af;
  color: #fff;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.status-panel h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.status-list {
  list-style: none;
}

.status-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-list li:last-child {
  border-bottom: none;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.hero-figure {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap) 40px;
}

.hero-figure img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.positioning-section,
.services-preview,
.project-summary,
.case-preview,
.cooperation-steps,
.faq-preview {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gap) 0;
}

.positioning-section h2,
.services-preview h2,
.project-summary h2,
.case-preview h2,
.cooperation-steps h2,
.faq-preview h2 {
  margin-bottom: 16px;
}

.positioning-section > p {
  color: var(--muted);
  max-width: 720px;
}

.stage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stage-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.stage-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.preview-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.service-category-list ul {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
}

.service-category-list li {
  border-bottom: 1px solid var(--border);
}

.service-category-list li:last-child {
  border-bottom: none;
}

.service-category-list a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.service-category-list a:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.service-detail-preview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.preview-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.service-detail-preview p {
  color: var(--muted);
  font-size: 15px;
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.case-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-card h3 {
  padding: 16px 20px 8px;
  font-size: 17px;
}

.case-card p {
  padding: 0 20px 12px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.case-card .text-link {
  margin: 0 20px 20px;
}

.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.step-list li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-list li::before {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 2px 10px;
  border-radius: 999px;
}

.step-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
  padding-top: 8px;
}

.step-list p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.faq-preview .faq-item {
  margin-bottom: 12px;
}

.faq-preview .text-link {
  margin-top: 8px;
}

/* ---------- services ---------- */
.page-title-area {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.page-title-area p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.service-stage-overview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-stage-overview h2 {
  margin-bottom: 12px;
}

.service-stage-overview > p {
  color: var(--muted);
  font-size: 15px;
}

.stage-figure {
  margin: 20px 0;
}

.stage-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.stage-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: stage;
}

.stage-list li {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  counter-increment: stage;
}

.stage-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.stage-list strong::before {
  content: "0" counter(stage) " / ";
  font-family: var(--font-mono);
  color: var(--brand);
  font-weight: 400;
}

.stage-list span {
  font-size: 13px;
  color: var(--muted);
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-detail-list > h2 {
  margin-bottom: 4px;
}

.service-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-item-header h3 {
  font-size: 18px;
  margin: 0;
}

.stage-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #eff6ff;
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.service-item > p {
  color: var(--muted);
  font-size: 15px;
}

.service-scope,
.service-deliverable {
  margin-top: 16px;
}

.service-scope h4,
.service-deliverable h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.service-scope ul,
.service-deliverable ul {
  list-style: none;
}

.service-scope li,
.service-deliverable li {
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text);
}

.service-scope li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.service-deliverable li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.service-target-table {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-target-table h2 {
  margin-bottom: 8px;
}

.service-target-table > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.target-figure {
  margin-top: 20px;
}

.target-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-card h3 {
  font-size: 15px;
  margin: 0;
}

.related-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- project ---------- */
.layout-shell.sidebar-left {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.sidebar-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.sidebar-note p {
  margin-bottom: 8px;
}

.legend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.status-active {
  background: var(--brand);
}

.legend-dot.status-done {
  background: var(--success);
}

.page-title-block {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
}

.title-text p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.title-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

.status-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.status-summary h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.status-summary > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.status-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-label {
  font-size: 14px;
  color: var(--muted);
}

.status-count {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
}

.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-section > h2 {
  margin-bottom: 0;
}

.timeline-group {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-left: 8px;
}

.month-heading {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

.month-heading::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
  border: 2px solid var(--bg);
}

.timeline-group .timeline-card {
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-header h4 {
  font-size: 16px;
  margin: 0;
}

.project-period,
.milestone {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.milestone {
  font-family: var(--font-mono);
  font-size: 13px;
}

.table-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.table-section h2 {
  margin-bottom: 16px;
}

.table-source {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  font-family: var(--font-mono);
}

/* ---------- case ---------- */
.page-intro {
  color: var(--muted);
  font-size: 15px;
}

.record-list-section,
.record-detail-section,
.recommend-section {
  margin-bottom: 32px;
}

.record-list-section > h2,
.record-detail-section > h2,
.recommend-section > h2 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.record-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.record-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.record-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.record-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.record-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #eff6ff;
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: 8px;
  align-self: flex-start;
}

.record-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.record-period {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.record-summary {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.record-card .text-link {
  margin-top: 12px;
}

.record-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.record-article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.record-article-header h3 {
  font-size: 20px;
  margin: 8px 0;
}

.record-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.record-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin: 20px 0 8px;
}

.record-content h4:first-child {
  margin-top: 0;
}

.record-content p {
  font-size: 15px;
  color: var(--text);
}

.deliverable-list {
  list-style: none;
  margin-top: 8px;
}

.deliverable-list li {
  font-size: 14px;
  padding: 6px 0 6px 24px;
  position: relative;
}

.deliverable-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.recommend-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recommend-category {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--brand);
}

.recommend-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.recommend-desc {
  font-size: 14px;
  color: var(--muted);
}

.resource-card {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.resource-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.resource-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- research ---------- */
.article-header {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.article-summary {
  font-size: 16px;
  color: var(--muted);
  border-left: 3px solid var(--brand);
  padding-left: 16px;
  margin-bottom: 16px;
}

.article-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.article-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-section p {
  font-size: 15px;
  margin-bottom: 12px;
}

.key-points-list {
  list-style: none;
}

.key-points-list li {
  font-size: 15px;
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.key-points-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.article-figure {
  margin: 20px 0 8px;
}

.article-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.related-reading {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.related-reading h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-cards .related-card {
  background: #f8fafc;
}

/* ---------- cooperation ---------- */
.process-overview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.process-overview h2 {
  margin-bottom: 12px;
}

.process-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-steps > h2 {
  margin-bottom: 4px;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-step h3::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.process-step > p {
  color: var(--muted);
  font-size: 15px;
}

.step-details {
  list-style: none;
  margin-top: 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.step-details li {
  font-size: 14px;
  padding: 4px 0;
  color: var(--text);
}

.step-details li::before {
  content: "—";
  color: var(--brand);
  margin-right: 8px;
  font-family: var(--font-mono);
}

.preparation-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.preparation-list h2 {
  margin-bottom: 12px;
}

.preparation-figure {
  margin-bottom: 16px;
}

.preparation-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.preparation-list > p {
  color: var(--muted);
  font-size: 15px;
}

.preparation-items {
  list-style: none;
}

.preparation-items li {
  font-size: 15px;
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.preparation-items li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-family: var(--font-mono);
}

.feedback-entry {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
}

.feedback-entry h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feedback-entry p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.cooperation-notes {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cooperation-notes h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.notes-list {
  list-style: none;
}

.notes-list li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
}

.notes-list li::before {
  content: "•";
  color: var(--brand);
  font-weight: 700;
}

/* ---------- faq ---------- */
.header-text h1 {
  margin-bottom: 8px;
}

.header-text p {
  color: var(--muted);
  font-size: 15px;
}

.header-media {
  grid-column: 1 / -1;
}

.header-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.faq-section {
  margin-bottom: 28px;
}

.faq-section > h2 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.sidebar-contact p {
  margin-bottom: 8px;
}

.related-services {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.related-services h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- 404 ---------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gap);
  flex: 1;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}

.btn-primary:hover {
  background: #1e40af;
  color: #fff;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .service-category-list ul {
    display: flex;
    flex-wrap: wrap;
  }

  .service-category-list li {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .service-category-list li:last-child {
    border-right: none;
  }

  .page-title-block {
    grid-template-columns: 1fr;
  }

  .title-media img {
    height: 140px;
  }
}

@media (max-width: 900px) {
  .sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .page-sidebar {
    position: static;
    order: 2;
  }

  .inner-main {
    order: 1;
  }

  .sidebar-left .sidebar,
  .sidebar-left .page-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-cards {
    grid-template-columns: 1fr;
  }

  .case-cards {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-card-grid {
    grid-template-columns: 1fr;
  }

  .related-card-list {
    grid-template-columns: 1fr;
  }

  .status-cards {
    grid-template-columns: 1fr;
  }

  .recommend-grid,
  .related-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --gap: 16px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .main-nav ul {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .page-layout {
    padding: 20px 16px 40px;
    gap: 16px;
  }

  .hero-layout {
    padding: 32px 16px 24px;
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .hero-figure {
    padding: 0 16px 24px;
  }

  .hero-figure img {
    height: 200px;
  }

  .positioning-section,
  .services-preview,
  .project-summary,
  .case-preview,
  .cooperation-steps,
  .faq-preview {
    padding: 32px 16px 0;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .stage-list {
    grid-template-columns: 1fr;
  }

  .status-summary,
  .service-stage-overview,
  .service-item,
  .service-target-table,
  .article-section,
  .record-article,
  .process-step,
  .preparation-list,
  .feedback-entry,
  .cooperation-notes,
  .related-services,
  .related-reading {
    padding: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .page-title-block {
    grid-template-columns: 1fr;
  }

  .title-media img {
    height: 120px;
  }

  .sidebar,
  .page-sidebar {
    padding: 16px;
  }

  .sidebar-nav ul,
  .month-nav ul,
  .toc-nav ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 4px;
  }

  .sidebar-nav ul::-webkit-scrollbar,
  .month-nav ul::-webkit-scrollbar,
  .toc-nav ul::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav li,
  .month-nav li,
  .toc-nav li {
    flex-shrink: 0;
    margin: 0;
  }

  .sidebar-nav a,
  .month-nav a,
  .toc-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .sidebar-nav a:hover,
  .month-nav a:hover,
  .toc-nav a:hover {
    border-bottom-color: var(--brand);
    background: transparent;
  }

  .sidebar h2,
  .page-sidebar h2,
  .sidebar-label {
    margin-bottom: 8px;
  }

  .sidebar-updates,
  .sidebar-update,
  .sidebar-note,
  .sidebar-contact,
  .sidebar-resource {
    display: none;
  }

  .record-card img {
    height: 160px;
  }

  .article-hero img {
    height: 200px;
  }

  .article-figure img {
    height: 160px;
  }

  .process-figure img,
  .preparation-figure img {
    height: 160px;
  }

  .stage-figure img {
    height: 180px;
  }

  .target-figure img {
    height: 160px;
  }

  .header-media img {
    height: 140px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .table-wrapper {
    margin: 0 -16px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
