:root {
  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #52525b;
  --muted: #9a968f;
  --line: #eceae6;
  --accent: #c2410c;
  --accent-weak: #fbede6;
  --code-bg: #f6f5f3;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --r-sm: 8px;
  --r-pill: 999px;
  --site-w: 1140px;
  --side-w: 300px;
  --read-w: 720px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
.container {
  max-width: var(--site-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
.hidden {
  display: none !important;
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--sp-4);
  padding: 14px 0;
}
.brand {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand b {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: var(--sp-5);
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.on {
  color: var(--accent);
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.search-form .search-ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
  position: absolute;
  left: 10px;
  pointer-events: none;
}
.search {
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 7px 12px 7px 32px;
  width: 160px;
  color: var(--ink);
  transition:
    width 0.2s,
    border-color 0.2s;
}
.search:focus {
  outline: none;
  border-color: var(--accent);
  width: 200px;
}
.search::placeholder {
  color: var(--muted);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 60;
}

/* 双栏 */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  gap: 48px;
  max-width: var(--site-w);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4) var(--sp-8);
  min-height: 800px;
}
.layout.no-aside {
  grid-template-columns: minmax(0, 1fr);
}
.main {
  min-width: 0;
}
.aside {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.home-motto {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: var(--sp-5);
  padding: 14px 18px;
  background: var(--accent-weak);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.home-motto-label {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.home-motto-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  line-height: 1.55;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #9a3412;
}
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.blog-pager-btn,
.blog-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  background: var(--surface);
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.blog-pager-btn:hover,
.blog-pager-num:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.blog-pager-num.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.blog-pager-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* 通用 */
.hero {
  margin-bottom: var(--sp-6);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.hero p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 100%;
}
.hero .tagline {
  color: var(--accent);
  font-weight: 600;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
}
.card h3 {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  text-decoration: none;
}
a.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.active:hover,
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.about {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-weak);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.about .name {
  font-weight: 700;
  font-size: 16px;
}
.about .desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-title small {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
}

/* 文章卡（现为链接） */
.post-list {
  display: flex;
  flex-direction: column;
}
.post {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.post:last-child {
  border-bottom: none;
}
.post-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}
.post .date {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.post h2 {
  width: 100%;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
  transition: opacity 0.15s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.post:hover h2 {
  opacity: 0.85;
}
.post .excerpt {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.post .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post .tags span {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-weak);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.more {
  display: inline-block;
  margin-top: var(--sp-5);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
}
.empty {
  padding: var(--sp-7) 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.error-page {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-7);
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: var(--sp-4);
}
.error-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.error-desc {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: var(--sp-6);
}
.error-desc #countdown {
  color: var(--accent);
  font-weight: 700;
}
.error-home {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: opacity 0.15s;
}
.error-home:hover {
  opacity: 0.88;
}
@media (max-width: 768px) {
  .error-code {
    font-size: 72px;
  }
  .error-title {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .post-head {
    gap: 4px;
  }
  .post .date {
    font-size: 14px;
  }
  .post h2 {
    font-size: 18px;
  }
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #b45309;
  margin-bottom: var(--sp-5);
  line-height: 1.5;
}
.breadcrumb a {
  color: #c2410c;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #ea580c;
}
.breadcrumb .sep {
  color: #d6d3d1;
  user-select: none;
}
.breadcrumb .current {
  color: #b45309;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文章详情 */

.article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.article .back {
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: var(--sp-5);
  display: inline-block;
  text-decoration: none;
}
.article .back:hover {
  color: var(--accent);
}
.article-head {
  text-align: center;
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.article .date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  color: #b45309;
  margin: 0;
}
.article .date-ico {
  flex: 0 0 auto;
  display: block;
  color: #b45309;
}
.article h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ea580c;
}
.article-cat {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.article h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: var(--sp-6) 0 var(--sp-3);
  font-weight: 700;
  scroll-margin-top: 90px;
}
.article h3 {
  font-size: 20px;
  margin: var(--sp-5) 0 var(--sp-2);
  font-weight: 700;
  scroll-margin-top: 90px;
}
.article p,
.article-content p {
  margin-bottom: var(--sp-4);
  line-height: 1.8;
  color: #262626;
}
.article-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* 覆盖富文本内联样式（nowrap / keep-all / 固定宽），让正文在手机上正常换行 */
.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content span,
.article-content font,
.article-content div,
.article-content strong,
.article-content em,
.article-content b {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100% !important;
  height: auto !important;
}
.article-content table {
  display: block;
  max-width: 100% !important;
  overflow-x: auto;
}
.article-content pre,
.article-content pre * {
  white-space: pre !important;
  word-break: normal !important;
  overflow-wrap: normal;
  max-width: none;
}
.article-content pre {
  max-width: 100%;
  overflow-x: auto;
}
.timeline-wrap .item,
.timeline-wrap p {
  margin-bottom: var(--sp-3);
  color: var(--ink-soft);
  line-height: 1.7;
}
.article ul,
.article ol {
  margin: 0 0 var(--sp-4) 22px;
}
.article li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-weak);
  padding: 12px 18px;
  margin: 0 0 var(--sp-4);
  color: var(--ink-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}
.article code {
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  font-size: 14px;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: #9a3412;
}
.article pre {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: var(--sp-4);
  font-size: 14px;
  line-height: 1.65;
}
.article pre code,
.article pre code.hljs {
  display: block;
  background: transparent;
  padding: 0;
  color: inherit;
  overflow: visible;
  white-space: pre;
  word-break: normal;
}
.article .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: var(--sp-6) 0;
}
.article .tags span {
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-weak);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  gap: var(--sp-4);
}
.pager a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  max-width: 48%;
  min-width: 0;
}
.pager a:hover {
  color: var(--accent);
}
.pager a:hover .pager-title {
  color: var(--accent);
}
.pager .label {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}
.pager .pager-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}
.pager .next {
  margin-left: auto;
  justify-content: flex-end;
}
.toc a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.15s;
}
.toc a:hover,
.toc a.on {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* 案例 */
.industry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--sp-5);
}
.industry-chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
  background: var(--surface);
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.industry-chip:hover,
.industry-chip.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-weak);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.case-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--accent-weak), #f6f5f3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-cover .mono {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.5;
}
.case-card .body {
  padding: var(--sp-4);
}
.case-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--accent);
  line-height: 1.35;
}
.case-card .industry-label {
  font-size: 13px;
  color: #b45309;
  margin-bottom: 6px;
}
.case-card .excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.case-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.case-card .tags span {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-weak);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}
.case-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-card-stack span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* 案例详情（与文章详情同构） */
.case-detail .case-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.case-detail .case-industry {
  font-size: 16px;
  color: #b45309;
}
.case-detail .case-link-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: opacity 0.15s;
}
.case-detail .case-link-btn:hover {
  opacity: 0.88;
}
.case-detail-action {
  margin: var(--sp-5) 0 var(--sp-4);
  text-align: center;
}
.case-detail-cover {
  margin: 0 0 var(--sp-5);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-weak), #f6f5f3);
}
.case-detail-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.case-stack {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.case-stack-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.5px;
}

/* 案例详情（旧布局兼容保留） */
.case-hero {
  height: 220px;
  background: linear-gradient(135deg, var(--accent-weak), #f6f5f3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  overflow: hidden;
}
.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-hero .mono {
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--accent);
  opacity: 0.45;
}
.case-link-btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: opacity 0.15s;
}
.case-link-btn:hover {
  opacity: 0.88;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.case-meta .k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-meta .v {
  font-size: 14px;
  font-weight: 600;
}
.case-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: var(--sp-5) 0 var(--sp-3);
}
.case-body p {
  color: #262626;
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

/* 关于 */
.about-hero {
  margin-bottom: var(--sp-6);
}
.about-hero h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  margin-bottom: var(--sp-2);
}
.about-hero .tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 18px;
}
.about-intro {
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 var(--sp-6);
  line-height: 1.8;
  font-size: 16px;
  white-space: pre-wrap;
}
.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid var(--line);
  margin: var(--sp-4) 0;
}
.timeline .item {
  position: relative;
  padding: 0 0 var(--sp-5) 0;
}
.timeline .item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .yr {
  font-weight: 700;
  font-size: 16px;
}
.timeline .ev {
  color: var(--ink-soft);
  font-size: 16px;
}
.about-rich {
  margin: 0 0 var(--sp-6);
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 16px;
}
.about-rich h3,
.about-rich h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 18px;
  margin: var(--sp-5) 0 var(--sp-3);
}
.about-rich p {
  margin: 0 0 var(--sp-3);
}
.about-rich ul,
.about-rich ol {
  margin: 0 0 var(--sp-4) 1.2em;
  padding: 0;
}
.about-rich li {
  margin-bottom: 8px;
}
.about-rich strong {
  color: var(--ink);
  font-weight: 600;
}
.about-contact {
  margin: 0 0 var(--sp-6);
}
.about-contact-img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills span {
  font-size: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-right: var(--sp-4);
  cursor: pointer;
}
.social a:hover {
  color: var(--accent);
}

/* 搜索 */
.search-head {
  margin-bottom: var(--sp-5);
}
.search-head .q {
  font-family: var(--font-serif);
  font-size: 26px;
}
.search-head .q b {
  color: var(--accent);
}

/* 菜单按钮（桌面隐藏，移动端显示） */
.nav-toggle-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:active {
  background: var(--accent-weak);
}
.nav-toggle .bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}
.nav-toggle .bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle-cb:checked + .nav-toggle .bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-cb:checked + .nav-toggle .bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle-cb:checked + .nav-toggle .bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 响应式 */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .aside {
    position: static;
    order: 2;
  }
  .main {
    order: 1;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .article h1 {
    font-size: 28px;
  }
  /* 移动端：内容宽度 92%，左右各 4% */
  .container {
    width: 92%;
    margin-left: 4%;
    margin-right: 4%;
    padding: 0;
  }
  .layout {
    width: 92%;
    margin-left: 4%;
    margin-right: 4%;
    padding: 20px 0 0px;
  }
  .blog-pager {
    gap: 4px;
    margin-top: 0px;
    padding-top: 20px;
  }
  .blog-pager-btn,
  .blog-pager-num {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 14px;
  }

  /* 头部单行：品牌 | 搜索 | 菜单；搜索图标限制在输入框内不叠品牌 */
  .nav .container.nav-in {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 4%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .brand {
    order: 1;
    flex: 0 0 auto;
    max-width: 36%;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .search-form {
    order: 2;
    flex: 1 1 0;
    min-width: 96px;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
  }
  .nav-toggle {
    order: 3;
    display: inline-flex;
    flex: 0 0 40px;
    margin-left: 0;
  }
  .search-form .search-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    z-index: 1;
  }
  .search-form .search,
  .search-form .search:focus {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
    height: 36px;
    padding: 0 10px 0 32px;
  }
  .nav-links {
    order: 4;
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin: 4px 0 0;
    padding: 4px 0 2px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle-cb:checked ~ .nav-links {
    display: flex;
  }
  .nav-links a.txt {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links a.txt:last-child {
    border-bottom: none;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
  .case-meta {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 16px;
    max-width: 32%;
  }
  .search-form {
    min-width: 72px;
  }
  .search-form .search {
    font-size: 12px;
    padding-left: 30px;
  }
  .search::placeholder {
    font-size: 12px;
  }
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: var(--sp-8);
  padding: var(--sp-7) 0;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--sp-6);
  align-items: start;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.footer-brand b {
  color: var(--accent);
}
.footer-tag {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-title {
  font-size: 14px;
  letter-spacing: 1px;
  color: #c2410c;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-meta {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.footer-beian {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-beian a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-beian a:hover {
  color: var(--accent);
}
.footer-contact {
  text-align: left;
}
.footer-qr {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
@media (max-width: 768px) {
  .footer-in {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .site-footer {
    margin-top: var(--sp-7);
  }
  /* 底部导航模块：移动端一行显示 2 个 */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
  .footer-qr {
    width: 140px;
  }
}
