/* 公共默认样式：由 haoxian-forest 原 content-page.html 移植。
   各模板优先通过 theme.css 覆盖 :root 变量换配色，确有需要再覆盖具体选择器。 */
:root {
  --page-accent: #13795b;
  --page-bg: #f5f5f2;
  --page-ink: #171917;
  --page-muted: #67706a;
  --page-line: color-mix(in srgb, var(--page-ink) 14%, transparent);
  --page-font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-radius: 16px;
  /* 卡片底色与主色按钮上的文字色：深色模板、浅色主色的模板需要覆盖 */
  --page-surface: color-mix(in srgb, var(--page-bg) 70%, #fff);
  --page-on-accent: #fff;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; color: var(--page-ink); background: var(--page-bg); font-family: var(--page-font); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* 导航 */
.site-nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--page-line); background: color-mix(in srgb, var(--page-bg) 88%, transparent); backdrop-filter: blur(16px); }
.site-nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 720; text-decoration: none; min-width: 0; }
.site-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-brand__logo { height: 32px; width: auto; }
.site-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.site-links a { color: var(--page-muted); text-decoration: none; }
.site-links a:hover, .site-links a:focus-visible { color: var(--page-accent); }

/* 通用块 */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero__title { max-width: 820px; margin: 0; font-size: clamp(34px, 6vw, 64px); font-weight: 720; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.hero__lead { max-width: 680px; margin: 20px 0 28px; color: var(--page-muted); font-size: 16px; line-height: 1.8; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: 0 20px; border-radius: 999px; color: var(--page-on-accent); background: var(--page-accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-block { padding: 32px 0 56px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block__head a { color: var(--page-accent); font-size: 14px; text-decoration: none; white-space: nowrap; }
.section-title { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.page-hero { padding: clamp(48px, 8vw, 96px) 0 24px; }
.page-kicker { margin: 0 0 12px; color: var(--page-accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.page-title { margin: 0; font-size: clamp(32px, 5vw, 54px); font-weight: 720; line-height: 1.14; letter-spacing: -.03em; }
.page-lead { max-width: 640px; margin: 16px 0 24px; color: var(--page-muted); font-size: 15px; line-height: 1.75; }
.empty { padding: 48px 0; color: var(--page-muted); text-align: center; }

/* 稿件列表 */
.article-list { border-top: 1px solid var(--page-line); }
.article-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--page-line); text-decoration: none; }
.article-row__date { color: var(--page-muted); font-size: 13px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.article-row h3 { margin: 0 0 6px; font-size: clamp(17px, 2vw, 21px); font-weight: 650; line-height: 1.45; }
.article-row p { margin: 0; color: var(--page-muted); font-size: 14px; line-height: 1.65; }
.article-row__arrow { color: var(--page-accent); font-size: 20px; transition: transform 180ms ease; }
.article-row:hover .article-row__arrow { transform: translateX(4px); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 32px; color: var(--page-muted); font-size: 14px; }
.pagination a { color: var(--page-accent); text-decoration: none; }

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--page-line); border-radius: var(--page-radius); text-decoration: none; background: var(--page-surface); }
.case-card__cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card__body { padding: 18px 20px 22px; }
.case-card__client { color: var(--page-accent); font-size: 12px; font-weight: 700; }
.case-card h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 680; line-height: 1.4; }
.case-card p { margin: 0; color: var(--page-muted); font-size: 14px; line-height: 1.65; }

/* 详情 */
.detail { max-width: 820px; padding: clamp(40px, 6vw, 64px) 0 96px; }
.breadcrumb { color: var(--page-muted); font-size: 13px; text-decoration: none; }
.detail h1 { margin: 20px 0 8px; font-size: clamp(28px, 4.6vw, 48px); font-weight: 720; line-height: 1.18; letter-spacing: -.03em; }
.detail__meta { margin: 0 0 32px; color: var(--page-muted); font-size: 13px; }
.detail__cover { width: 100%; margin: 8px 0 24px; border-radius: var(--page-radius); }
.prose { font-size: 16px; line-height: 1.9; color: color-mix(in srgb, var(--page-ink) 82%, var(--page-muted)); overflow-wrap: anywhere; }
/* 正文样式写全：模板若引入 Tailwind 等带重置样式的框架，段落间距和列表符号会被清掉 */
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.5em; list-style: disc; }
.prose ol { margin: 0 0 1.1em; padding-left: 1.5em; list-style: decimal; }
.prose li { margin: .3em 0; }
.prose strong { font-weight: 700; color: var(--page-ink); }
.prose a { color: var(--page-accent); text-decoration: underline; }
.prose code { font-family: ui-monospace, monospace; font-size: .92em; }
.prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.35; color: var(--page-ink); }
.prose h3 { margin: 28px 0 10px; font-size: 20px; color: var(--page-ink); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--page-accent); background: color-mix(in srgb, var(--page-accent) 8%, transparent); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--page-line); }
.prose pre { overflow-x: auto; }
.detail__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.detail__nav a { display: block; padding: 16px 18px; border: 1px solid var(--page-line); border-radius: 12px; text-decoration: none; }
.detail__nav small { display: block; margin-bottom: 4px; color: var(--page-muted); }
.related { margin-top: 48px; }
.related .section-title { margin-bottom: 12px; }

/* 联系方式 */
.contact { padding-top: 16px; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 16px; }
.contact__list { display: grid; gap: 12px; margin: 0; min-width: 0; flex: 1 1 280px; }
.contact__list div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.contact__list dt { color: var(--page-muted); }
.contact__list dd { margin: 0; overflow-wrap: anywhere; }
.contact__image { width: 160px; border-radius: 12px; }

/* 页脚 */
.site-footer { padding: 28px 0; border-top: 1px solid var(--page-line); color: var(--page-muted); font-size: 13px; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .site-nav__in { flex-wrap: wrap; padding: 12px 0; min-height: 0; }
  .article-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .article-row__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .article-row__arrow { transition: none; }
}
