/* 陈德宁律师官网 · 全站公用样式 */
:root {
  --primary: #17202B;
  --primary-hover: #0F161C;
  --primary-light: #F3EEE6;
  --accent: #A8835B;
  --accent-hover: #93724C;
  --deep: #28323C;
  --text-primary: #222;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-page: #fff;
  --bg-soft: #f7f8fa;
  --bg-card: #FFFFFF;
  --border: #e8e8e8;
  --border-light: #eeeeee;
  --channel-banner-match-color: #F4F0E8;
  --channel-banner-ink: #222;
  --channel-banner-bg: #F4F0E8;
  --white: #fff;
  --ease: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 30px;
  font-weight: 400;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: calc(100% - 48px);
  max-width: 1350px;
  margin: 0 auto;
}

.container-read {
  width: calc(100% - 48px);
  max-width: 860px;
  margin: 0 auto;
}

.section { padding: 48px 0; }
[data-page="index"] .section { padding: 64px 0 72px; }
[data-page="index"] .section:has([data-block="home-faqs"]) { padding: 56px 0 60px; }
.section-soft { background: var(--bg-soft); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
}
[data-page="index"] .section-head-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 18px;
  min-width: 0;
}
[data-page="index"] .section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 32px;
  line-height: 1.3;
}
[data-page="index"] .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  border-radius: 2px;
  background: var(--accent);
}
[data-page="index"] .section-head-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}
[data-page="index"] .section-head {
  margin-bottom: 32px;
}
.section-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 28px;
}

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.clamp-2,
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* V1.8：首页与独立列表标题1行、简介2行 */
[data-page="index"] .card-title,
[data-page="index"] .news-item-title,
[data-page="product-list"] .card-title,
[data-page="case-list"] .card-title,
[data-page="help-category"] .help-q-card h2,
.help-q .q {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-page="index"] .card-summary,
[data-page="index"] .news-item-summary,
[data-page="product-list"] .card-summary,
[data-page="case-list"] .card-summary,
[data-page="news-list"] .news-item-summary,
[data-page="news-topic"] .news-item-summary,
[data-page="help-category"] .help-q-card p {
  -webkit-line-clamp: 2;
}


.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  overflow: visible;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.brand-name {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
}
.brand-en {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 400;
}
.menu-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.menu-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 -6px 0 var(--primary), 0 6px 0 var(--primary);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.menu-toggle[aria-expanded="true"]::before {
  background: transparent;
  box-shadow: none;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.5px;
  margin-left: -10px;
  margin-top: -.75px;
  border-radius: 2px;
  background: var(--primary);
  transform: rotate(-45deg);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  height: 80px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: color .2s ease;
}
.nav-item > a:hover { color: var(--primary); }
.nav-item.is-active > a { color: var(--primary); font-weight: 600; }
.nav-item.is-active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  background: var(--accent);
}
.subnav { display: none; }

/* ========== Buttons / links / tags ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  transition: var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.text-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--ease);
}
.text-more .arrow { transition: transform .2s ease; }
[data-page="index"] .section-head .text-more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 24px;
}
[data-page="index"] .section-head .text-more:hover {
  color: var(--accent);
  background: none;
}
.text-more:hover,
.card:hover .card-more { color: var(--accent); }
.text-more:hover .arrow,
.card:hover .card-more .arrow,
.more:hover .arrow { transform: translateX(3px); }
.more .arrow { transition: transform .2s ease; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 22px;
  transition: var(--ease);
}
.tag:hover,
.tag-list a:hover {
  border-color: var(--accent);
  background: var(--primary-light);
  color: var(--accent);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  transition: var(--ease);
}
.tab:hover,
.tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ========== Text card ========== */
.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  min-width: 0;
  transition: var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
}
.card-media-card {
  padding: 0;
  overflow: hidden;
}
.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}
.card-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.card-link:hover .card-media img,
a.card-media-card:hover .card-media img { transform: scale(1.02); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.card-cat {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  line-height: 22px;
}
.card-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.card-summary {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}
.card .tag-list { margin-top: 12px; }
.card-more {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  transition: var(--ease);
}
.card-more .arrow { transition: transform .2s ease; }
.card-link:hover .card-more,
a.card-media-card:hover .card-more { color: var(--accent); }
.card-link:hover .card-more .arrow,
a.card-media-card:hover .card-more .arrow { transform: translateX(3px); }

.media-frame {
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
a:hover .media-frame img { transform: scale(1.02); }

/* ========== Pagination / breadcrumb ========== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 22px;
  transition: var(--ease);
}
.pagination a:hover,
.pagination .is-current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.pagination .is-disabled {
  color: var(--text-muted);
  background: var(--bg-soft);
  cursor: default;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 28px 0 32px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 24px;
  text-align: left;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .is-current { color: var(--text-secondary); }

/* ========== Channel hero V1.8 ========== */
.channel-hero {
  position: relative;
  height: 250px;
  background-color: var(--channel-banner-match-color);
  background-image: var(--channel-pc);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.channel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 32, 43, .92) 0%, rgba(23, 32, 43, .62) 40%, rgba(23, 32, 43, .32) 70%, rgba(23, 32, 43, .1) 100%);
  pointer-events: none;
}
.channel-hero__inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 1350px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.channel-hero__inner h1 {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: .06em;
  font-weight: 600;
  text-shadow: 0 1px 20px rgba(0, 0, 0, .22);
}
.channel-hero__inner p {
  display: none;
}
.channel-breadcrumb {
  max-width: 1350px;
  margin: 0 auto;
  padding: 18px 0 0;
  justify-content: flex-start;
  text-align: left;
}
.channel-main {
  background: #fff;
  padding-top: 40px;
}
.channel-main:has(> .container > .channel-breadcrumb:first-child),
.channel-main:has(> .channel-breadcrumb:first-child) {
  padding-top: 0;
}
.channel-main > .container > .channel-breadcrumb:first-child,
.channel-main > .channel-breadcrumb:first-child {
  margin-bottom: 28px;
  padding-top: 22px;
}
.channel-follow,
.section.channel-follow,
.about-intro.channel-follow,
.list-section.channel-follow,
.list-section.channel-main { padding-top: 40px; }
.list-section.channel-main:has(> .container > .channel-breadcrumb:first-child) { padding-top: 0; }

/* ========== Footer ========== */
.site-footer {
  margin-top: 0;
  padding-top: 56px;
  background: var(--primary);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-brand .brand {
  align-self: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.footer-brand .brand-logo {
  display: block;
  height: 48px;
  width: auto;
}
.site-footer .footer-brand .brand-logo {
  height: 48px;
  width: auto;
  max-width: 190px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-en { color: var(--accent); }
.footer-intro { margin-top: 16px; max-width: 420px; font-size: 15px; line-height: 26px; }
.footer-contact h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}
.footer-contact p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 26px;
}
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.footer-qr img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
}
.footer-qr span {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  line-height: 22px;
}
.copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  text-align: center;
}

/* ========== Home: banner（全宽例外，不裁切） ========== */
.home-banner {
  width: 100%;
  overflow: hidden;
}
.home-banner picture,
.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.home-banner-bar {
  background: var(--primary);
  color: var(--white);
}
.home-banner-bar .container { padding: 20px 0; }
.home-banner-bar h1 {
  font-size: 44px;
  line-height: 57px;
  font-weight: 600;
}
.home-banner-overlay {
  position: relative;
}
.home-banner-overlay .home-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 0;
  background: linear-gradient(transparent, rgba(23, 32, 43, .68));
  color: var(--white);
}
.home-banner-overlay h1 {
  font-size: 44px;
  line-height: 57px;
  font-weight: 600;
}

/* ========== Home: about（个人介绍） ========== */
.home-intro-section {
  background-color: #f4f6f8;
  background-image: url("../assets/images/background.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding-top: 56px;
  padding-bottom: 64px;
}
[data-page="index"] .home-intro-section.section { padding: 56px 0 64px; }
.home-intro-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.home-intro-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  max-width: 300px;
}
.home-intro-copy {
  min-width: 0;
}
.home-intro-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
}
.home-intro-name-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.home-intro-name {
  flex: 0 0 auto;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary);
}
.home-intro-name-line {
  flex: 0 0 auto;
  width: 88px;
  height: 1px;
  background: var(--accent);
}
.home-intro-role {
  margin: 0 0 22px;
  color: #666;
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
}
.home-intro-body p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 30px;
}
.home-intro-body p:last-child { margin-bottom: 0; }
.home-intro-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(168, 131, 91, .35);
  width: 100%;
}
.home-intro-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.home-intro-more:hover .arrow { transform: translateX(3px); }
.home-case-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}
.home-case-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-case-tile:hover img { transform: scale(1.05); }
.home-case-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 56px 68px 22px 22px;
  background: linear-gradient(to top, rgba(23, 32, 43, .94) 0%, rgba(23, 32, 43, .78) 38%, rgba(23, 32, 43, .28) 72%, transparent 100%);
}
.home-case-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-case-summary {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-case-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.home-case-arrow svg { display: block; }
.home-case-tile:hover .home-case-arrow {
  transform: translateX(3px);
  background: #b8926a;
}
.home-case-tile:hover .home-case-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========== Home: news / faq / links ========== */
.home-news-card .card-title { font-size: 21px; line-height: 1.4; }
[data-page="index"] .card-more { font-size: 15px; }
[data-page="index"] .home-news-card:hover .card-title,
[data-page="index"] .home-news-card:hover .card-more {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-news-card .card-summary {
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 24px;
}
.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 22px;
}
.home-news-card .card-more {
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
}

.home-faq-col {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.home-faq-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.home-faq-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.home-faq-icon svg { display: block; }
.home-faq-col h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: var(--primary);
}
.home-faq-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 26px;
  transition: color .2s ease;
}
.home-faq-col .home-faq-item:last-child { border-bottom: 0; }
.home-faq-item:hover { color: inherit; }
.home-faq-item:hover .q {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-faq-item:hover .arrow { transform: translateX(3px); }
.home-faq-idx {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}
.home-faq-item .q {
  flex: 1;
  min-width: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 26px;
}
.home-faq-item .arrow { flex: 0 0 auto; color: var(--text-muted); font-size: 18px; transition: transform .2s ease; }

.section:has(+ .home-links) { padding-bottom: 0; }
.home-links {
  padding: 44px 0 36px;
  background: var(--bg-soft);
}
.home-links .section-head { margin-bottom: 20px; }
.home-links .section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}
.home-links .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  border-radius: 2px;
  background: var(--accent);
}
.home-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}
.home-link-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== About ========== */
.about-intro { padding-top: 0; padding-bottom: 72px; }
.channel-main.about-intro:has(> .container > .channel-breadcrumb:first-child) { padding-top: 0; }
.about-richtext h2 { margin: 36px 0 14px; }
.about-richtext h3 { margin: 28px 0 12px; }
.about-richtext > img + h2 { margin-top: 8px; }
.about-intro-media {
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
.about-intro .rich-text,
.about-richtext {
  max-width: 960px;
  margin: 0 auto;
}
.about-richtext .about-lawyer-name,
.rich-text .about-lawyer-name {
  margin: 4px 0 16px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-primary);
}
.about-richtext img {
  display: block;
  width: 96px;
  height: 120px;
  max-width: 96px;
  object-fit: cover;
  object-position: center 22%;
  margin: 24px auto 0;
  border-radius: 4px;
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-timeline-item {
  padding: 24px;
  border-top: 1px solid var(--accent);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
}
.about-timeline-item h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.about-timeline-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 26px;
}

.about-biz-card,
.about-belief-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.about-biz-card .card-cat { margin-bottom: 12px; }
.about-biz-card h3,
.about-belief-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}
.about-biz-card p,
.about-belief-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 26px;
}

/* ========== Case / product list ========== */
.list-section { padding-bottom: 80px; }
.channel-main.list-section { padding-top: 40px; }
.channel-main.list-section:has(> .container > .channel-breadcrumb:first-child) { padding-top: 0; }

main[data-page="case-list"] .tab-list {
  justify-content: center;
}
main[data-page="case-list"] .tab {
  font-size: 15px;
  line-height: 24px;
}
main[data-page="case-list"] [data-block="list"] .card-title {
  font-size: 21px;
  line-height: 1.45;
}
main[data-page="case-list"] [data-block="list"] .card-summary {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
}
main[data-page="case-list"] [data-block="list"] .card-more {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  font-size: 16px;
}
main[data-page="case-list"] [data-block="list"] .card:hover .card-title,
main[data-page="case-list"] [data-block="list"] .card:hover .card-more {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========== News list ========== */
main[data-page="news-list"] .tab-list { justify-content: flex-start; }
main[data-page="news-list"] .tab { font-size: 15px; }
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.news-feed { display: grid; gap: 0; }
.news-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.news-row:hover .news-item-title { color: var(--accent); }
main[data-page="news-topic"] .news-row:hover .news-item-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-row-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.news-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-row-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
}
main[data-page="news-list"] .news-item-title {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
main[data-page="news-list"] .news-item-summary {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.news-row-cat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--accent);
  font-size: 15px;
}
.news-row-foot time {
  color: var(--text-muted);
  font-size: 14px;
}
.news-row-foot .text-more {
  margin-left: auto;
  font-size: 16px;
  color: var(--accent);
}
.news-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--ease);
}
.news-item:first-child { padding-top: 0; }
.news-item:hover .news-item-title { color: var(--accent); }
.news-item-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  transition: color .2s ease;
}
.news-item-summary {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  line-height: 24px;
}
.news-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 22px;
}

.side-box {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.side-box h2 {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.side-news-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.side-news-item:first-of-type { padding-top: 0; }
.side-news-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.side-news-item span {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-news-item:hover span {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.side-news-item time {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.side-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-link span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-link:last-of-type { border-bottom: 0; }
.side-link:hover,
.side-link:hover span {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.side-more { margin-top: 16px; }

.related-block-main { margin-top: 24px; }
.related-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  transition: var(--ease);
}
.related-case-card:hover { border-color: var(--accent); }
.related-case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .25s ease;
}
.related-case-card:hover img { transform: scale(1.03); }
.related-case-body { padding: 14px 16px 16px; }
.related-case-card h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-case-card:hover h3 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.related-list { margin-top: 36px; }
.related-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.related-list-head h2 {
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
}
.related-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li {
  position: relative;
  padding-left: 16px;
}
.related-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}
.related-list li a {
  display: block;
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-list li a:hover { color: var(--accent); }

main[data-page="case-detail"] .breadcrumb { padding: 24px 0 8px; }
main[data-page="case-detail"] .case-hero {
  padding-bottom: 40px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
main[data-page="case-detail"] .case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px;
  align-items: center;
}
main[data-page="case-detail"] .detail-kicker {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
}
main[data-page="case-detail"] .detail-title {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}
main[data-page="case-detail"] .detail-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
}
main[data-page="case-detail"] .detail-tags { margin-top: 22px; }
main[data-page="case-detail"] .detail-tags .tag {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--accent);
  font-size: 15px;
}
main[data-page="case-detail"] .case-hero-cover {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 280px;
  margin-left: auto;
  object-fit: cover;
  border-radius: 12px;
}
main[data-page="case-detail"] .detail-layout {
  width: 100%;
  max-width: none;
  padding-top: 30px;
}
main[data-page="case-detail"] .detail-main .rich-text > h2:first-child {
  margin-top: 0;
}
main[data-page="case-detail"] .detail-aside [data-block="related-news"] .text-more { display: none; }
main[data-page="case-detail"] .detail-aside .side-news-item p { display: none; }
main[data-page="case-detail"] .related-case-card p[data-slot="summary"],
main[data-page="case-detail"] .related-case-card .clamp-2 { display: none; }
main[data-page="case-detail"] .related-case-body { padding: 12px 14px 14px; }
main[data-page="case-detail"] .detail-main-title {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}
main[data-page="case-detail"] .detail-main .rich-text { max-width: 100%; }
main[data-page="case-detail"] .detail-main .rich-text > .detail-main-title:first-child { margin-top: 0; }
main[data-page="case-detail"] .prev-next { margin-top: 32px; }
main[data-page="case-detail"] .related-block-main .related-head h2 {
  font-size: 22px;
  line-height: 32px;
}
main[data-page="news-detail"] .article-head h1 {
  font-size: 36px;
  line-height: 1.35;
  font-weight: 700;
}
main[data-page="news-detail"] .article-meta { font-size: 15px; }
main[data-page="news-detail"] .article-summary { margin-bottom: 20px; }
main[data-page="news-detail"] .prev-next [data-slot="next"] { text-align: right; }
main[data-page="news-detail"] .relate-product { max-width: 100%; }
main[data-page="news-detail"] .relate-product-copy { min-width: 0; }
main[data-page="news-detail"] .relate-product-copy h2 { margin: 0; }

.detail-aside .side-box {
  margin-bottom: 0;
  padding: 22px;
}
.detail-aside .side-box h2,
.detail-aside .related-head h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.detail-aside .related-head { margin-bottom: 0; align-items: baseline; }
.detail-aside .side-news-item span { font-size: 15px; line-height: 24px; }
.detail-aside .side-link { font-size: 15px; }
.detail-aside .cta-contact {
  padding: 22px;
  background: var(--primary);
  border: 0;
  text-align: left;
}
.detail-aside .cta-contact h2 { color: var(--white); font-size: 20px; font-weight: 700; }
.detail-aside .cta-contact p { color: rgba(255,255,255,.82); }
.detail-aside .cta-contact .btn {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.detail-aside .cta-contact .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ========== Article / detail ========== */
.article-head {
  padding: 8px 0 0;
  text-align: center;
}
.article-head h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: 30px;
  line-height: 42px;
  font-weight: 600;
}
.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 24px;
}
.article-summary {
  max-width: 100%;
  margin: 20px 0 28px;
  padding: 16px 20px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: #666;
  font-size: 15px;
  line-height: 26px;
  text-align: left;
}
.detail-cover {
  display: block;
  width: auto;
  max-width: 780px;
  margin: 24px auto 0;
  height: auto;
  border-radius: 0;
  object-fit: unset;
}
.detail-kicker {
  color: var(--accent);
  font-size: 13px;
  line-height: 22px;
}
.detail-title {
  margin-top: 6px;
  font-size: 28px;
  line-height: 40px;
  font-weight: 600;
}
.detail-lead {
  margin-top: 10px;
  color: #666;
  font-size: 15px;
  line-height: 26px;
}
.detail-tags { margin-top: 10px; }

.relate-product {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 24px 0 28px;
  max-width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.relate-product img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}
.relate-product .tag-list { display: none; }
.relate-product h2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  transition: color .2s ease;
}
.relate-product:hover h2 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.relate-product p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 26px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 24px;
}
.prev-next a { min-width: 0; }
.prev-next a:hover { color: var(--accent); }

.related-block h2 {
  margin-bottom: 24px;
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.related-head h2 { margin-bottom: 0; }
.related-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-news-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: var(--ease);
}
.related-news-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.related-news-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.related-news-item .related-news-body { padding: 16px 18px 18px; }
.related-news-item h3 {
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}
.related-news-item p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 22px;
}
.related-news-item:hover h3 { color: var(--accent); }

.cta-contact {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}
.cta-contact h2 {
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
}
.cta-contact p {
  margin: 12px 0 20px;
  color: var(--text-secondary);
}

.topic-intro {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.topic-intro-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  max-width: 320px;
}
.topic-intro-copy { padding-top: 8px; }
.topic-intro h1,
.topic-intro-copy h1 {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}
.topic-intro p,
.topic-intro-copy p {
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}
main[data-page="news-topic"] { padding-bottom: 80px; }
main[data-page="news-topic"] .tab-list { display: none; }
main[data-page="news-topic"] .tab-list.sr-only { display: none; }
main[data-page="news-topic"] .tab { font-size: 15px; }
main[data-page="news-topic"] .news-item-title {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
main[data-page="news-topic"] .news-item-summary {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
main[data-page="news-topic"] .side-box h2 {
  font-size: 20px;
  line-height: 28px;
}


/* ========== Detail layout V1.8 ========== */
.detail-container {
  width: calc(100% - 48px);
  max-width: 1350px;
  margin: 0 auto;
}
.detail-container .breadcrumb {
  padding: 24px 0;
  justify-content: flex-start;
  text-align: left;
}
.detail-layout {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  column-gap: 34px;
  align-items: start;
  padding-bottom: 64px;
}
.detail-main { min-width: 0; }
.detail-main .article-head { padding-top: 0; }
.detail-main .article-head h1 {
  max-width: 800px;
  font-size: 30px;
  line-height: 42px;
}
.detail-main .article-summary {
  max-width: 100%;
  margin: 20px 0 28px;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 26px;
}
.detail-main .detail-cover {
  display: block;
  width: auto;
  max-width: 780px;
  margin: 24px auto 0;
  border-radius: 0;
}
main[data-page="case-detail"] .detail-main .detail-cover {
  width: 100%;
  max-width: 100%;
  margin: 28px 0 8px;
}
main[data-page="case-detail"] .detail-main .rich-text {
  max-width: 100%;
}
.detail-aside {
  width: 330px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-aside .related-block {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.detail-aside .related-block h2,
.detail-aside .related-head h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.detail-aside .related-head { margin-bottom: 0; }
.detail-aside .related-head .text-more { font-size: 13px; line-height: 22px; }
.detail-aside .related-news-grid { display: flex; flex-direction: column; gap: 0; }
.detail-aside .related-news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  padding: 10px 0;
  overflow: visible;
}
.detail-aside .related-news-item:last-of-type { border-bottom: 0; }
.detail-aside .related-news-item:hover { transform: none; box-shadow: none; border-color: transparent; }
.detail-aside .related-news-item img {
  width: 96px;
  height: 64px;
  flex: 0 0 96px;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}
.detail-aside .related-news-body { padding: 0; min-width: 0; flex: 1; }
.detail-aside .related-news-item h3 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-aside .related-news-item p { margin-top: 4px; font-size: 12px; line-height: 20px; color: #999; }
.detail-aside .grid { display: flex; flex-direction: column; gap: 0; }
.detail-aside .card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: transparent;
}
.detail-aside .card .card-cat { grid-column: 2; position: static; margin: 0; font-size: 12px; line-height: 20px; }
.detail-aside .card .card-title { grid-column: 2; }
.detail-aside .card .tag-list { grid-column: 2; }
.detail-aside .card:hover { transform: none; box-shadow: none; border-color: transparent; }
.detail-aside .card .card-summary,
.detail-aside .card .card-more { display: none; }
.detail-aside .card .card-title { font-size: 14px; line-height: 22px; font-weight: 500; }
.detail-aside .card img[data-slot="cover"] {
  grid-column: 1;
  grid-row: 1 / 4;
  position: static;
  width: 96px;
  height: 64px;
  flex: 0 0 96px;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 0;
  object-fit: cover;
  border-radius: 0;
}
.detail-aside .home-link-list { flex-direction: column; gap: 0; }
.detail-aside .home-link-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-aside .home-link-list a:last-child { border-bottom: 0; }
.detail-aside .side-box .home-link-list a:last-child { border-bottom: 0; }
.detail-aside .cta-contact {
  margin-top: 0;
  padding: 22px;
  text-align: left;
  background: var(--primary);
  border: 0;
}
.detail-aside .cta-contact h2 { color: var(--white); font-size: 20px; line-height: 28px; font-weight: 700; }
.detail-aside .cta-contact p { margin: 8px 0 16px; font-size: 14px; line-height: 24px; color: rgba(255,255,255,.82); }
.detail-aside .cta-contact .btn {
  height: 40px;
  width: 100%;
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.detail-aside .cta-contact .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.detail-aside .side-news-item span,
.detail-aside .side-link span,
.detail-aside .side-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 24px;
}
.detail-aside .side-link {
  width: 100%;
}
.detail-aside .side-news-item time { display: none; }
.side-more { margin-top: 18px; }
.side-more .text-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 15px;
  color: var(--accent);
  background: var(--white);
  box-sizing: border-box;
}
.side-more .text-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.detail-aside .relate-product { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 0; max-width: none; padding: 0; border: 0; background: transparent; }
.detail-aside .relate-product > h2:first-child { flex: 0 0 100%; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid #e8e8e8; font-size: 16px; line-height: 24px; font-weight: 600; }
.detail-aside .relate-product img { width: 96px; height: 64px; flex: 0 0 96px; border-radius: 0; object-fit: cover; }
.detail-aside .relate-product h2 { font-size: 14px; line-height: 22px; }
.detail-aside .relate-product .btn { flex: 0 0 100%; height: 40px; width: 100%; }
.detail-aside .help-q-card { padding: 8px 0; border: 0; border-bottom: 1px solid #eee; border-radius: 0; }
.detail-aside .help-q-card h2 { font-size: 14px; line-height: 22px; }
.detail-aside .help-q-card p { display: none; }
.detail-aside [data-empty] { display: none !important; }
.detail-main .rich-text,
.detail-main .plain-answer,
.detail-main .container-read { max-width: 840px; width: 100%; margin-left: 0; margin-right: 0; }

/* ========== Rich text ========== */
.rich-text,
.plain-answer {
  max-width: 860px;
  margin: 0 auto;
  color: #555;
  font-size: 16px;
  line-height: 30px;
}
.detail-main figure img {
  display: block;
  width: auto;
  max-width: 52%;
  height: auto;
  margin: 24px auto;
  border-radius: 0;
}
.rich-text h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  color: #222;
}
.rich-text h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
}
.rich-text h4 {
  margin: 24px 0 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.rich-text p { margin: 0 0 16px; }
.rich-text ul,
.rich-text ol { margin: 0 0 16px 22px; }
.rich-text li { margin-bottom: 8px; }
.rich-text a { color: var(--accent); }
.rich-text a:hover { text-decoration: underline; }
.rich-text strong { font-weight: 600; }
.rich-text img {
  display: block;
  width: auto;
  max-width: 52%;
  height: auto;
  margin: 24px auto;
  border-radius: 0;
}
.rich-text figcaption,
.img-caption {
  margin: 8px 0 24px;
  color: #999;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.rich-text blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--primary-light);
  color: var(--text-secondary);
}
.rich-text table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.rich-text th,
.rich-text td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.rich-text th { background: var(--bg-soft); font-weight: 600; }
.rich-text .table-scroll { width: 100%; overflow-x: auto; }
.rich-text hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.rich-text pre {
  margin: 20px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 24px;
}
.rich-text code { font-family: Consolas, "Courier New", monospace; }

.plain-answer {
  white-space: pre-line;
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 30px;
  color: var(--text-primary);
}

/* ========== Help map ========== */
.help-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.help-map-card {
  padding: 0 0 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.help-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-light);
}
.help-map-head h2 {
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
}
.help-map-head .text-more { font-size: 16px; }
.help-q {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0 24px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 26px;
  transition: color .2s ease;
}
.help-map-card .help-q:last-of-type { border-bottom: 0; }
.help-q:hover { color: var(--accent); }
.help-q:hover .arrow { transform: translateX(3px); }
.help-q .idx {
  flex: 0 0 24px;
  color: var(--accent);
  font-size: 13px;
}
main[data-page="help-list"] .help-q .q {
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.help-q .arrow { color: var(--text-muted); transition: transform .2s ease; }

.help-q-card {
  display: block;
  padding: 26px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: var(--ease);
}
.help-q-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}
.help-q-card h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}
.help-q-card p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.help-q-card .card-more {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  font-size: 15px;
}
.help-q-card:hover h2 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
main[data-page="help-category"] { padding-bottom: 72px; }
main[data-page="help-category"] .help-layout { padding-bottom: 8px; }
main[data-page="help-category"] .side-box h2 { font-size: 20px; font-weight: 700; }
main[data-page="help-category"] .side-link { font-size: 15px; }
main[data-page="help-detail"] .article-head h1 {
  font-size: 32px;
  line-height: 1.35;
}
main[data-page="help-detail"] .plain-answer {
  margin: 18px 0 28px;
  font-size: 16px;
  line-height: 1.85;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  column-gap: 34px;
  align-items: start;
}

/* ========== Contact ========== */
.contact-page { padding-bottom: 80px; }
.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 28px 40px;
  align-items: stretch;
}
.contact-form-card {
  margin: 0;
  height: 100%;
  padding: 36px 32px;
}
.contact-form-card h2,
.message-form.contact-form-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 34px;
  font-weight: 600;
}
.contact-form-card .form-lead {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 26px;
}
.contact-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-method {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.contact-method h3 {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.contact-method-value {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  word-break: break-word;
}
.contact-method p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}
.contact-method-qr img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  margin: 4px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-office {
  margin-top: 64px;
  padding-top: 8px;
}
.contact-office-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px 48px;
  align-items: start;
}
.contact-office-copy h2 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 40px;
  font-weight: 600;
}
.contact-office-copy > p {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 28px;
}
.contact-office h2 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 40px;
  font-weight: 600;
}
.contact-office > p {
  max-width: 860px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 28px;
}
.contact-office .contact-map { margin-top: 0; }
.contact-map {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.contact-map img {
  width: 100%;
  height: auto;
  display: block;
}

.page-404 {
  padding: 72px 0 96px;
  text-align: center;
}
.page-404-inner { max-width: 640px; }
.page-404 img {
  width: min(500px, 100%);
  margin: 0 auto 28px;
}
.page-404-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.page-404 h1 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 40px;
  font-weight: 600;
}
.page-404 p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.contact-panel h2,
.message-form h2 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-channels {
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.contact-channel-item .label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}
.contact-channel-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}
.contact-list { list-style: none; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}
.contact-list p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}
.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 140px;
  margin-top: 0;
  text-align: center;
}
.contact-qr img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.contact-qr strong { display: block; font-size: 15px; }
.contact-qr span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 22px;
}

.message-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.message-form .form-lead {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}
.message-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
}
.message-form input,
.message-form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  transition: border-color .2s ease;
}
.message-form textarea {
  height: 132px;
  padding: 12px 14px;
  resize: vertical;
}
.message-form input:focus,
.message-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.message-form .btn { justify-self: start; min-width: 160px; height: 44px; }
.contact-form-card .btn { min-width: 180px; font-size: 16px; }
.form-status { font-size: 13px; color: var(--text-muted); }
.form-status.is-success { color: #2f6b4f; }
.form-status.is-error { color: #b42318; }

.office-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.office-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.office-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.office-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}

/* ========== Tags page ========== */
.tags-page {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  row-gap: 10px;
}
.tags-page .tag {
  height: 34px;
  padding: 0 14px;
  font-size: 15px;
  line-height: 22px;
}

/* ========== Styleguide ========== */
.sg { padding-bottom: 80px; }
.sg-hero { padding: 64px 0 40px; }
.sg-hero h1 { font-size: 40px; line-height: 52px; font-weight: 600; }
.sg-hero p { margin-top: 16px; color: var(--text-secondary); }
.sg-block { margin-top: 48px; }
.sg-title {
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
}
.sg-swatches { display: flex; flex-wrap: wrap; gap: 16px; }
.sg-swatch { width: 140px; }
.sg-swatch i {
  display: block;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.sg-swatch code {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-note { margin-top: 12px; color: var(--text-muted); font-size: 13px; }

/* ========== Tablet：保持 PC 风格，只缩容器与列数 ========== */
@media (max-width: 1199px) {
  .channel-hero { height: 250px; }
  main[data-page="case-detail"] .case-hero-grid { gap: 28px; }
  main[data-page="case-detail"] .case-hero-cover { height: 240px; }
  .container { width: calc(100% - 40px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .home-intro-card { gap: 40px; grid-template-columns: 220px minmax(0, 1fr); }
  .home-intro-photo { max-width: 220px; }
  .related-news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-channel-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-top { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .about-timeline { grid-template-columns: repeat(2, 1fr); }
  .news-layout,
  .help-layout,
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 32px; }
  .detail-aside { width: 280px; }
  .topic-intro { grid-template-columns: 320px 1fr; }
  .site-nav { gap: 20px; }
}

/* ========== Mobile：不改写 PC 规则，仅叠加适配 ========== */
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 27px; }

  .container,
  .container-read { width: calc(100% - 32px); }

  .section { padding: 48px 0 52px; }
  [data-page="index"] .section { padding: 48px 0 52px; }
  [data-page="index"] .section:has([data-block="home-faqs"]) { padding: 44px 0; }
  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
  }
  .section-head h2,
  .home-links .section-head h2 {
    font-size: 24px;
    line-height: 32px;
  }
  [data-page="index"] .section-head h2,
  .home-links .section-head h2 {
    padding-left: 14px;
    font-size: 24px;
    line-height: 32px;
  }
  [data-page="index"] .section-head h2::before,
  .home-links .section-head h2::before {
    width: 4px;
    height: 24px;
  }
  [data-page="index"] .section-head-desc {
    font-size: 13px;
    line-height: 20px;
  }
  [data-page="index"] .section-head-main { gap: 8px 12px; }
  [data-page="index"] .section-head .text-more {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 15px;
  }

  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }

  .site-header { height: 64px; }
  .header-inner { height: 64px; }
  .brand-logo { height: 40px; }
  .brand-name { font-size: 18px; line-height: 24px; }
  .header-inner { position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 196px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 10px 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 32, 43, .12);
    z-index: 60;
  }
  .site-nav.is-open { display: flex; }
  .nav-item > a {
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-item.is-active > a {
    background: var(--primary-light);
    color: var(--accent);
  }
  .nav-item.is-active > a::after { display: none; }

  .home-banner-bar .container { padding: 16px 0; }
  .home-banner-bar h1,
  .home-banner-overlay h1 {
    font-size: 30px;
    line-height: 42px;
  }
  .home-banner-overlay .home-banner-caption { padding: 20px 0; }

  [data-page="index"] .home-intro-section.section { padding: 44px 0 52px; }
  .home-intro-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .home-intro-copy { order: 1; }
  .home-intro-photo {
    order: 2;
    max-width: 200px;
    margin: 0 auto;
  }
  .home-intro-label { font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; }
  .home-intro-name-row { gap: 14px; margin-bottom: 14px; }
  .home-intro-name { font-size: 32px; line-height: 1.2; }
  .home-intro-name-line { width: 64px; }
  .home-intro-role { margin-bottom: 16px; font-size: 15px; line-height: 26px; }
  .home-intro-body p { font-size: 15px; line-height: 27px; }
  .home-intro-footer { margin-top: 22px; padding-top: 18px; max-width: none; }
  .home-intro-more { font-size: 15px; }
  .home-case-title { font-size: 18px; }
  .home-case-summary { font-size: 14px; }
  .home-case-caption { padding: 48px 58px 18px 16px; }
  .home-case-arrow { right: 14px; bottom: 14px; width: 34px; height: 34px; font-size: 20px; }
  .related-news-grid { grid-template-columns: 1fr; }
  .contact-channels { flex-direction: column; }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .home-links .section-head h2 {
    padding-left: 14px;
    font-size: 24px;
    line-height: 32px;
  }
  .home-links .section-head h2::before {
    width: 4px;
    height: 24px;
  }
  .home-links { padding: 32px 0 40px; }

  .channel-hero {
    height: 160px;
    background-image: var(--channel-m);
    background-size: cover;
    background-position: center center;
  }
  .channel-hero__inner { width: calc(100% - 32px); align-items: center; text-align: center; }
  .channel-hero__inner h1 {
    font-size: 26px;
    line-height: 1.25;
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
  }
  .channel-breadcrumb {
    padding-top: 12px;
  }
  .channel-main > .container > .channel-breadcrumb:first-child {
    margin-bottom: 8px;
    padding-top: 12px;
  }
  main[data-page="about"] .channel-breadcrumb {
    margin-bottom: 8px;
    padding-top: 12px;
  }
  main[data-page="about"] .about-richtext > h2:first-child {
    margin-top: 0;
  }
  main[data-page="case-list"] .channel-breadcrumb,
  main[data-page="news-list"] .channel-breadcrumb,
  main[data-page="page-tags"] .channel-breadcrumb,
  main[data-page="help-list"] .channel-breadcrumb,
  main[data-page="contact"] .channel-breadcrumb {
    margin-bottom: 8px;
  }
  main[data-page="case-list"] .tab-list {
    margin-bottom: 14px;
  }
  main[data-page="news-list"] .tab-list {
    margin-bottom: 12px;
  }
  main[data-page="news-topic"] .topic-intro {
    margin-bottom: 16px;
    padding-bottom: 18px;
  }
  main[data-page="help-detail"] .detail-layout {
    padding-bottom: 40px;
  }
  main[data-page="help-detail"] .detail-aside {
    margin-top: 24px;
  }
  main[data-page="help-detail"] .detail-aside .side-box:last-of-type,
  main[data-page="help-detail"] .detail-aside .cta-contact {
    margin-bottom: 0;
  }
  main[data-page="news-detail"] .relate-product {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px 14px;
    align-items: start;
    padding: 16px;
  }
  main[data-page="news-detail"] .relate-product img {
    grid-column: 1;
    grid-row: 1;
    width: 100px;
    height: 72px;
    border-radius: 6px;
  }
  main[data-page="news-detail"] .relate-product-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  main[data-page="news-detail"] .relate-product-copy h2 {
    font-size: 16px;
    line-height: 24px;
  }
  main[data-page="news-detail"] .relate-product-copy p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  main[data-page="news-detail"] .relate-product .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    height: 40px;
  }
  .channel-main,
  .channel-follow,
  .section.channel-follow,
  .about-intro.channel-follow,
  .list-section.channel-follow { padding-top: 28px; }
  .detail-container { width: calc(100% - 32px); }
  .detail-layout {
    display: block;
    width: 100%;
  }
  .detail-aside { width: 100%; margin-top: 36px; }
  .detail-aside { margin-top: 40px; }

  .about-timeline { grid-template-columns: 1fr; }
  .about-intro-media { border-radius: 12px; }

  .breadcrumb { padding: 16px 0 12px; font-size: 14px; }
  .detail-container .breadcrumb,
  main[data-page="case-detail"] .breadcrumb {
    padding: 16px 0 12px;
  }
  .card { padding: 20px; }
  .card-media-card { padding: 0; }
  .card-body { padding: 18px 20px 20px; }
  .card-title { font-size: 17px; line-height: 26px; }

  .news-layout,
  .help-layout,
  .detail-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .topic-intro {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .topic-intro-media {
    max-width: 112px;
    aspect-ratio: 1;
  }
  .topic-intro-copy { padding-top: 0; }
  .topic-intro h1,
  .topic-intro-copy h1 { font-size: 20px; line-height: 28px; margin-bottom: 8px; }
  .topic-intro p,
  .topic-intro-copy p { font-size: 14px; line-height: 22px; }
  main[data-page="case-detail"] .detail-title { font-size: 26px; }
  .tab { height: auto; min-height: 36px; }

  .article-head h1 {
    font-size: 26px;
    line-height: 38px;
  }
  .detail-title {
    font-size: 25px;
    line-height: 36px;
  }
  .article-meta { font-size: 15px; gap: 12px; }
  main[data-page="case-detail"] .case-hero {
    padding-bottom: 28px;
  }
  main[data-page="case-detail"] .case-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  main[data-page="case-detail"] .case-hero-cover {
    max-width: 100%;
    height: 220px;
    margin-left: 0;
  }
  main[data-page="case-detail"] .detail-title {
    font-size: 28px;
    line-height: 1.3;
  }
  main[data-page="case-detail"] .detail-layout { padding-top: 30px; }
  .article-summary {
    margin: 24px 0 32px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 27px;
  }
  .rich-text,
  .plain-answer { font-size: 15px; line-height: 27px; }
  .rich-text h2 { font-size: 21px; line-height: 32px; margin: 32px 0 14px; }
  .rich-text h3 { font-size: 19px; line-height: 30px; }
  .rich-text h4 { font-size: 17px; line-height: 28px; }
  .rich-text img,
  .detail-main figure img { max-width: 94%; margin: 20px auto; border-radius: 0; }
  .about-richtext img {
    width: 168px;
    max-width: 168px;
    height: 210px;
    margin: 24px auto 0;
  }

  .prev-next { flex-direction: column; gap: 12px; }
  .related-news-grid { grid-template-columns: 1fr; }
  .cta-contact { padding: 24px 18px; }
  .help-map-grid { grid-template-columns: 1fr; }

  .message-form input { height: 46px; }
  .message-form .btn { width: 100%; }
  .contact-qr { flex-direction: column; align-items: flex-start; }
  .contact-qr img { width: 120px; height: 120px; }

  .news-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0;
  }
  .news-row-media { aspect-ratio: 16 / 9; }
  main[data-page="news-list"] .news-item-title,
  main[data-page="news-topic"] .news-item-title {
    font-size: 20px;
    line-height: 1.4;
    white-space: normal;
  }
  .news-row-foot { flex-wrap: wrap; }
  .related-case-grid,
  .related-list ul { grid-template-columns: 1fr; }
  .related-list-head h2 { font-size: 20px; }
  main[data-page="news-detail"] .prev-next [data-slot="next"] { text-align: left; }
  main[data-page="case-detail"] .detail-title,
  main[data-page="news-detail"] .article-head h1,
  main[data-page="help-detail"] .article-head h1 {
    font-size: 24px;
    line-height: 34px;
  }
  .contact-top,
  .contact-method-grid,
  .contact-office-split { grid-template-columns: 1fr; }
  .contact-office { margin-top: 36px; }
  .contact-office h2,
  .contact-office-copy h2 { font-size: 22px; line-height: 32px; }
  .page-404 { padding: 48px 0 64px; }
  .page-404 h1 { font-size: 24px; line-height: 34px; }
  .help-map-head { padding: 16px 18px; }
  .help-q { margin: 0 18px; font-size: 15px; }
  .help-q-card { padding: 20px 18px; }
  .help-q-card h2 { font-size: 20px; }
  main[data-page="case-list"] .tab-list,
  main[data-page="news-list"] .tab-list,
  main[data-page="news-topic"] .tab-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  main[data-page="case-list"] .tab-list::-webkit-scrollbar,
  main[data-page="news-list"] .tab-list::-webkit-scrollbar,
  main[data-page="news-topic"] .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin-top: 28px;
  }
  .pagination::-webkit-scrollbar { display: none; }
  .pagination a,
  .pagination span {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
  }

  .site-footer { margin-top: 0; padding-top: 48px; }
  .list-section,
  .about-intro,
  .contact-page,
  main[data-page="news-topic"],
  main[data-page="help-category"],
  .detail-layout,
  main[data-page="help-detail"] .detail-layout,
  .page-404,
  .sg {
    padding-bottom: 40px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-qr {
    align-self: flex-start;
    width: auto;
    max-width: 168px;
    padding: 12px;
  }
  .copyright {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
  }
}

/* ========== 个人介绍列表（同风格补页） ========== */
.expert-list {
  display: grid;
  gap: 28px;
}
.expert-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: var(--ease);
}
.expert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
}
.expert-card-photo {
  aspect-ratio: 4 / 5;
  max-width: 260px;
}
.expert-card-copy { min-width: 0; }
.expert-card-name-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.expert-card-name {
  flex: 0 0 auto;
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}
.expert-card:hover .expert-card-name { color: var(--accent); }
.expert-card-name-line {
  flex: 0 0 auto;
  width: 72px;
  height: 1px;
  background: var(--accent);
}
.expert-card-role {
  margin: 0 0 14px;
  color: #666;
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
}
.expert-card-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 30px;
}
.expert-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(168, 131, 91, .35);
}
.expert-card-footer .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* ========== 案例专题（复用专题版式） ========== */
main[data-page="case-topic"] { padding-bottom: 80px; }
main[data-page="case-topic"] .breadcrumb { padding-bottom: 24px; }
.topic-intro:not(:has(.topic-intro-media)) { grid-template-columns: minmax(0, 1fr); }

/* 没配分类的问题拼不出详情地址，侧栏退化成纯文本，不给可点的错觉 */
span.side-link { cursor: default; }
span.side-link:hover,
span.side-link:hover span {
  color: inherit;
  text-decoration: none;
}
.contact-richtext { margin-top: 16px; max-width: none; }

/* ========== 404 ========== */
body.error-page {
  --e404-ink: var(--primary);
  --e404-muted: var(--text-secondary);
  --e404-brand: var(--primary);
  --e404-brand-dark: var(--accent);
  --e404-ratio: 1000 / 622;
  background: #fff;
}
body.error-page main[data-page="404"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 62vh, 720px);
  background: #fff;
}
body.error-page .error-404 {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 48px;
}
body.error-page .error-404-inner {
  width: min(920px, calc(100% - 60px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.error-page .error-404-visual {
  width: min(720px, 82%);
  display: flex;
  justify-content: center;
}
body.error-page .error-404-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(460px, calc(100dvh - 400px));
  aspect-ratio: var(--e404-ratio);
  object-fit: contain;
}
body.error-page .error-404-copy {
  width: 100%;
  margin-top: 22px;
}
body.error-page .error-404-copy h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--e404-ink);
}
body.error-page .error-404-copy p {
  margin: 0 0 22px;
  color: var(--e404-muted);
  font-size: 16px;
  line-height: 1.75;
}
body.error-page .error-404-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
body.error-page .e404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--e404-brand);
  border-radius: 6px;
  background: #fff;
  color: var(--e404-brand);
  font-size: 15px;
  transition: var(--ease);
}
body.error-page .e404-btn:hover {
  background: var(--e404-brand-dark);
  border-color: var(--e404-brand-dark);
  color: #fff;
}
body.error-page .e404-btn-primary {
  background: var(--e404-brand);
  border-color: var(--e404-brand);
  color: #fff;
}
body.error-page .e404-btn-primary:hover {
  background: var(--e404-brand-dark);
  border-color: var(--e404-brand-dark);
  color: #fff;
}

@media (max-width: 1199px) {
  .expert-card { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .expert-card-photo { max-width: 220px; }
  body.error-page .error-404-visual { width: min(640px, 78%); }
  body.error-page .error-404-visual img { max-height: min(40vh, calc(100dvh - 360px)); }
}

@media (max-width: 767px) {
  .expert-list { gap: 20px; }
  .expert-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  .expert-card-copy { order: 1; }
  .expert-card-photo { order: 2; max-width: 200px; margin: 0 auto; }
  .expert-card-name-row { gap: 14px; margin-bottom: 12px; }
  .expert-card-name { font-size: 24px; }
  .expert-card-name-line { width: 56px; }
  .expert-card-role { margin-bottom: 12px; font-size: 15px; line-height: 26px; }
  .expert-card-intro { font-size: 15px; line-height: 27px; }
  .expert-card-footer { margin-top: 18px; padding-top: 14px; }
  .expert-card-footer .more { font-size: 15px; }

  main[data-page="case-topic"] { padding-bottom: 40px; }
  main[data-page="case-topic"] .topic-intro { margin-bottom: 16px; padding-bottom: 18px; }

  body.error-page .error-404 { padding: 20px 0 32px; }
  body.error-page .error-404-inner { width: calc(100% - 28px); }
  body.error-page .error-404-visual { width: 78%; }
  body.error-page .error-404-visual img { max-height: min(34vh, calc(100dvh - 320px)); }
  body.error-page .error-404-copy { margin-top: 16px; }
  body.error-page .error-404-copy h1 { font-size: 22px; }
  body.error-page .error-404-copy p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
  body.error-page .error-404-actions { width: 100%; flex-wrap: nowrap; gap: 10px; }
  body.error-page .e404-btn { min-width: 0; flex: 0 1 auto; padding: 0 16px; min-height: 40px; }
}

@media (max-width: 480px) {
  body.error-page .error-404-visual { width: 82%; }
  body.error-page .error-404-visual img { max-height: min(30vh, calc(100dvh - 300px)); }
  body.error-page .error-404-copy h1 { font-size: 20px; }
}
