/* roulang page: index */
:root {
  --primary: #2B6B5C;
  --primary-dark: #1F5045;
  --primary-light: #DCEAE5;
  --accent: #C29A6B;
  --accent-dark: #A9804F;
  --ink: #1F2A27;
  --ink-2: #6B7570;
  --line: #E3DED4;
  --paper: #F7F5F1;
  --card: #FFFFFF;
  --sub: #EFECE5;
  --dark-bg: #25302D;
  --dark-line: #1C2623;
  --success: #2E7D5B;
  --warn: #D97742;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-pill: 999px;
  --s-base: 0 2px 8px rgba(27,50,43,.06);
  --s-hover: 0 8px 24px rgba(27,50,43,.10);
  --s-focus: 0 0 0 4px rgba(43,107,92,.15);
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
a:focus, button:focus, input:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
input, button, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部眉栏 */
.topbar {
  background: var(--sub);
  border-bottom: 1px solid var(--line);
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar a { color: var(--ink-2); }
.topbar a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .topbar { display: none; }
}

/* 主导航 */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s;
}
.site-header.is-stuck {
  box-shadow: 0 4px 16px rgba(27,50,43,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.header-brand {
  flex-shrink: 0;
}
.header-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.header-brand .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.header-nav-left,
.header-nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .25s, transform .25s;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-article {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-badge {
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.header-search {
  flex: 1;
  max-width: 40vw;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  height: 42px;
  padding: 0 16px;
  transition: border-color .25s, box-shadow .25s;
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--s-focus);
  background: #fff;
}
.header-search .search-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-2);
  flex-shrink: 0;
  margin-right: 10px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}
.header-search input::placeholder {
  color: var(--ink-2);
}
.header-search .search-kbd {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--sub);
  border-radius: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle:hover span {
  background: var(--primary);
}

.mobile-menu {
  display: none;
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu a:hover {
  background: var(--sub);
  color: var(--primary);
}
.mobile-menu a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}
.mobile-menu .nav-badge {
  margin-left: 6px;
}

@media (max-width: 1023px) {
  .header-inner {
    gap: 10px;
  }
  .header-nav-left,
  .header-nav-right {
    display: none;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .header-search {
    order: 10;
    max-width: 100%;
    flex-basis: 100%;
    margin: 0 0 12px;
  }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .25s, transform .2s, box-shadow .25s, color .2s;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--s-base);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--s-hover);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--s-hover);
}
.btn-lg {
  height: 52px;
  padding: 0 36px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
  }
}

/* Hero */
.hero {
  background:
    url('/assets/images/backpic/back-1.png') center/cover no-repeat,
    var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,245,241,.92) 20%, rgba(247,245,241,.7) 50%, rgba(194,154,107,.15) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 72px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--s-hover);
}
.hero-caption {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  opacity: .12;
  border-radius: 24px;
  z-index: -1;
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 32px;
  }
  .hero-visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    padding: 36px 0 32px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-sub {
    font-size: 15px;
  }
}

/* 数据统计带 */
.stats {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 32px 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* 板块通用 */
.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.section-head .section-desc {
  color: var(--ink-2);
  font-size: 15px;
  margin: 8px 0 0;
  max-width: 560px;
}
.section-more {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover {
  color: var(--primary-dark);
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 最新列表 */
.latest-section {
  background: var(--paper);
}
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.post-card:hover {
  box-shadow: var(--s-hover);
  border-color: var(--primary);
  background: #FAF8F4;
}
.post-card-content {
  flex: 1;
  min-width: 0;
}
.post-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card h3 a {
  color: var(--ink);
}
.post-card h3 a:hover {
  color: var(--primary);
}
.post-card-excerpt {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.post-card-meta a {
  font-weight: 500;
  font-size: 13px;
}
.post-card-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sub);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.empty-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background: var(--sub);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 22px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 640px) {
  .post-card {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 16px;
  }
  .post-card-thumb {
    width: 100%;
    height: 140px;
  }
  .post-card-meta {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

/* 会员权益对比 */
.pricing-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing-intro {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 640px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
table.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0;
}
.pricing-table thead th {
  background: var(--dark-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 16px 12px;
  border-bottom: 2px solid var(--dark-line);
}
.pricing-table thead th:first-child {
  text-align: left;
  padding-left: 24px;
  background: var(--dark-bg);
}
.pricing-table thead th.col-pro {
  background: var(--primary);
}
.pricing-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #EFEAE1;
  font-size: 14px;
  color: var(--ink);
}
.pricing-table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 500;
  color: var(--ink-2);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table tr td.col-pro {
  background: rgba(43,107,92,.04);
}
.pricing-table td .btn {
  height: 36px;
  padding: 0 20px;
  font-size: 14px;
}
.pricing-table .pricing-check {
  color: var(--success);
  font-weight: 700;
}
.pricing-table .pricing-no {
  color: #c0c0c0;
}
.badge-reco {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .table-scroll {
    border-radius: var(--r-md);
  }
  .pricing-table thead th,
  .pricing-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
}

/* 等级亮点 */
.tier-section {
  background: var(--paper);
}
.tier-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.tier-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 8px 0;
  transition: box-shadow .25s, transform .25s;
}
.tier-step:hover {
  box-shadow: var(--s-hover);
  transform: translateY(-2px);
}
.tier-step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: -18px;
  bottom: -18px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.tier-step:first-child::before {
  top: 50%;
}
.tier-step:last-child::before {
  bottom: 50%;
}

.tier-badge-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  position: relative;
}
.tier-step.tier-basic .tier-badge-icon {
  background: var(--sub);
  color: var(--ink-2);
}
.tier-step.tier-mid .tier-badge-icon {
  background: var(--primary);
}
.tier-step.tier-high .tier-badge-icon {
  background: var(--accent);
  font-size: 24px;
  box-shadow: 0 0 0 6px rgba(194,154,107,.2);
}

.tier-info {
  flex: 1;
}
.tier-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.tier-info p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.tier-price {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.tier-price small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
}

.tier-step.tier-high {
  background: linear-gradient(135deg, rgba(43,107,92,.04) 0%, var(--card) 60%);
  border-color: var(--primary);
  padding: 40px 32px;
}
.tier-step.tier-high .tier-price {
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  .tier-step {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }
  .tier-price {
    text-align: center;
  }
  .tier-step::before {
    left: 50%;
    transform: translateX(-1px);
  }
}

/* 专属内容预览 */
.preview-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.preview-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.preview-main img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.02);
}
.preview-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.preview-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--accent);
  z-index: 2;
}
.preview-lock svg {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.preview-lock span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
}
.preview-btn-wrap {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}
.preview-btn-wrap .btn {
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.preview-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  transition: box-shadow .25s;
}
.preview-item:hover {
  box-shadow: var(--s-hover);
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-item .preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,50,43,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.preview-item:hover .preview-overlay {
  opacity: 1;
}
.preview-overlay svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

@media (max-width: 640px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .preview-main img {
    min-height: 220px;
  }
}

/* CTA 区 */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(194,154,107,.15);
}
.cta-section .container {
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.cta-section .cta-intro {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.cta-form input::placeholder {
  color: rgba(255,255,255,.7);
}
.cta-form input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,.2);
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.cta-form .btn {
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.cta-form .btn:hover {
  background: var(--accent-dark);
}
.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .cta-section {
    padding: 48px 0;
  }
  .cta-form {
    flex-direction: column;
    gap: 12px;
  }
  .cta-form input {
    width: 100%;
  }
}

/* FAQ */
.faq-section {
  background: var(--paper);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list .accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.faq-list .accordion-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-list .accordion-item:hover {
  border-color: var(--primary);
  box-shadow: var(--s-base);
}
.faq-list .accordion-title {
  background: transparent !important;
  border: none !important;
  padding: 20px 24px !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.faq-list .accordion-title::before,
.faq-list .accordion-title::after {
  display: none !important;
}
.faq-list .accordion-item.is-active .accordion-title {
  background: rgba(194,154,107,.08) !important;
  color: var(--ink) !important;
}
.faq-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  transition: transform .3s, background .3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item-icon svg {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}
.is-active .faq-item-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-list .accordion-content {
  border: none !important;
  background: var(--card) !important;
  padding: 0 24px 20px !important;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}
.faq-list .accordion-content p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background: var(--dark-bg);
  color: #C7CDC9;
  font-size: 14px;
  line-height: 1.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .footer-logo .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.footer-brand p {
  color: #99A6A1;
  font-size: 14px;
  margin: 0;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: #99A6A1;
  font-size: 14px;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--dark-line);
  padding: 18px 0;
  font-size: 13px;
  color: #8A9691;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 28px;
  }
}

/* 回到顶部 */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--s-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .3s;
  z-index: 99;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--primary-dark);
}
.back-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .back-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* 聚焦可见性 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* roulang page: category1 */
:root {
  --primary: #2B6B5C;
  --primary-dark: #245C4E;
  --primary-light: #3A7D6E;
  --primary-soft: rgba(43, 107, 92, 0.08);
  --accent: #C29A6B;
  --accent-dark: #A8854F;
  --accent-soft: rgba(194, 154, 107, 0.12);
  --deep: #25302D;
  --deep-darker: #1C2623;
  --bg: #F7F5F1;
  --bg-card: #FFFFFF;
  --bg-secondary: #EFECE5;
  --text: #1F2A27;
  --text-weak: #6B7570;
  --border: #E3DED4;
  --success: #2E7D5B;
  --warning: #D97742;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(27, 50, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 50, 43, 0.10);
  --focus-ring: 0 0 0 4px rgba(43, 107, 92, 0.15);
  --header-h: 72px;
  --section-pad: 72px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-dark);
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
}
.section-head {
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-head p {
  font-size: 15px;
  color: var(--text-weak);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 154, 107, 0.25);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  background: var(--primary-soft);
  color: var(--primary);
}
.tag-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.tag-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
.header-top {
  background: var(--deep);
  height: 36px;
  display: flex;
  align-items: center;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.header-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg-card);
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo:hover {
  color: var(--text);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  transform: scaleX(1);
}
.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-weak);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 44px 0 40px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s ease;
}
.header-search input::placeholder {
  color: var(--text-weak);
  opacity: 0.8;
}
.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  background: #fff;
}
.header-search kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-weak);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.3;
  font-family: inherit;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-toggle:hover span {
  background: var(--primary);
}

/* Hero */
.cat-hero {
  position: relative;
  padding: 96px 0 80px;
  background-image: linear-gradient(rgba(247, 245, 241, 0.93), rgba(247, 245, 241, 0.97)), url('/assets/images/backpic/back-1.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.cat-hero-inner {
  max-width: 680px;
}
.cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cat-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cat-hero h1 {
  margin-bottom: 16px;
}
.cat-hero p {
  font-size: 16px;
  color: var(--text-weak);
  line-height: 1.8;
  max-width: 540px;
}

/* Stats strip */
.stats-strip {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
  padding: 8px 16px;
}
.stat-num {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  color: var(--text-weak);
  margin-top: 4px;
}

/* Category body */
.cat-body {
  padding: 72px 0;
}
.cat-content-wall {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(43, 107, 92, 0.3);
}
.card-media {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: var(--bg-secondary);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.content-card:hover .card-media img {
  transform: scale(1.04);
}
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-weak);
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-footer a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.card-footer a:hover {
  color: var(--primary-dark);
}
.card-meta {
  font-size: 12px;
  color: var(--text-weak);
}

/* Sidebar */
.cat-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-weak);
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.sidebar-recommend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recommend-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.recommend-item:hover {
  border-color: var(--border);
  background: var(--bg);
}
.recommend-thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.recommend-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.recommend-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-info span {
  font-size: 12px;
  color: var(--text-weak);
}

/* FAQ */
.faq-section {
  background: var(--bg-secondary);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.accordion {
  list-style: none;
  border: none;
  background: transparent;
}
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}
.accordion-item.is-active {
  border-color: rgba(194, 154, 107, 0.4);
  box-shadow: 0 4px 16px rgba(27, 50, 43, 0.06);
}
.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  text-decoration: none;
}
.accordion-title:hover {
  color: var(--primary);
  background: var(--accent-soft);
}
.accordion-title::before {
  display: none;
}
.accordion-title::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion-item.is-active .accordion-title::after {
  transform: rotate(45deg);
  color: var(--accent-dark);
}
.accordion-content {
  padding: 0 24px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-weak);
  background: var(--bg-card);
  border: none;
}
.accordion-content p {
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-bottom: 0;
}

/* CTA */
.cat-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  text-align: center;
}
.cat-cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.cat-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.cat-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: #C7CDC9;
  padding-top: 56px;
}
.site-footer .container {
  max-width: 1200px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  max-width: 340px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding: 20px 0;
  background: var(--deep-darker);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1023px) {
  :root {
    --section-pad: 56px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cat-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-main {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .header-main .container {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin: 8px 0 0;
  }
  .header-nav-left,
  .header-nav-right {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-nav-left.open,
  .header-nav-right.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #fff;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .header-nav-left.open .nav-link,
  .header-nav-right.open .nav-link {
    padding: 12px 14px;
    border-radius: 0;
  }
  .header-nav-left.open .nav-link::after,
  .header-nav-right.open .nav-link::after {
    display: none;
  }
  .header-main-grid {
    flex-wrap: wrap;
  }
}
@media (max-width: 767px) {
  .cat-hero {
    padding: 60px 0 48px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-card-grid {
    grid-template-columns: 1fr;
  }
  .cat-body {
    padding: 48px 0;
  }
  .cat-sidebar {
    position: static;
    margin-top: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    padding: 16px 0;
  }
  .cat-cta {
    padding: 56px 0;
  }
  .cat-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cat-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
@media (max-width: 639px) {
  .header-top-right span {
    display: none;
  }
  .header-top {
    height: 32px;
  }
  .header-main .container {
    padding: 0 16px;
    gap: 12px;
  }
  .brand-logo {
    font-size: 16px;
  }
  .logo-mark {
    width: 26px;
    height: 26px;
  }
  .header-search input {
    height: 40px;
    font-size: 13px;
  }
}

/* roulang page: article */
/* ========== 设计变量 ========== */
:root {
  --primary: #2B6B5C;
  --primary-light: #3A7D6E;
  --primary-dark: #1F5245;
  --primary-pale: #E8F0ED;
  --accent: #C29A6B;
  --accent-dark: #A98455;
  --accent-pale: #F5EEE2;
  --deep: #25302D;
  --deep-dark: #1C2623;
  --bg-main: #F7F5F1;
  --bg-card: #FFFFFF;
  --bg-subtle: #EFECE5;
  --text-main: #1F2A27;
  --text-secondary: #6B7570;
  --border: #E3DED4;
  --success: #2E7D5B;
  --warning: #D97742;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(27, 50, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 50, 43, 0.10);
  --shadow-focus: 0 0 0 4px rgba(43, 107, 92, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --transition: all 0.25s ease;
}

/* ========== Reset 与基础 ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-dark);
}
button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: 14px;
}
ul, ol {
  list-style: none;
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-cta {
  background: var(--accent);
  color: #1F2A27;
}
.btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}

/* ========== 标签 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid transparent;
  transition: var(--transition);
}
.tag:hover {
  background: var(--primary);
  color: #fff;
}
.tag-category {
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 12px;
  padding: 3px 12px;
}
.tag-category:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== 徽章 ========== */
.badge-new {
  display: inline-block;
  background: var(--accent);
  color: #1F2A27;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: top;
}
.badge-recommend {
  display: inline-block;
  background: var(--accent);
  color: #1F2A27;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

/* ========== 顶部眉栏 ========== */
.topbar {
  background: var(--deep);
  color: #C7CDC9;
  font-size: 13px;
  padding: 8px 0;
  height: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: #E3DED4;
}
.topbar a:hover {
  color: #fff;
}
@media (max-width: 639px) {
  .topbar {
    display: none;
  }
}

/* ========== 主导航 ========== */
.main-nav-wrapper {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.3s ease;
}
.main-nav-wrapper.is-scrolled {
  box-shadow: 0 2px 12px rgba(27, 50, 43, 0.08);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover {
  color: var(--primary);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.logo-mark svg {
  width: 20px;
  height: 20px;
}

.header-nav-left, .header-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav-right {
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
  text-decoration: none;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  transform: scaleX(1);
}

/* 搜索框 */
.search-box {
  flex: 1;
  max-width: 40vw;
  min-width: 240px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  height: 44px;
  padding: 0 18px;
  transition: var(--transition);
  position: relative;
  order: 3;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}
.search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 8px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
  min-width: 0;
}
.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.search-kbd {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 16px;
  opacity: 0.6;
  font-weight: 300;
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航 */
@media (max-width: 1023px) {
  .main-nav {
    gap: 10px;
    padding: 8px 0;
    position: relative;
  }
  .logo {
    font-size: 18px;
  }
  .header-nav-left,
  .header-nav-right {
    display: none;
  }
  .search-box {
    order: 4;
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .main-nav.mobile-open .header-nav-left,
  .main-nav.mobile-open .header-nav-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-top: 8px;
    margin-left: 0;
    order: 5;
  }
  .main-nav.mobile-open .nav-link {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }
  .main-nav.mobile-open .nav-link::after {
    display: none;
  }
  .main-nav.mobile-open .nav-link:hover {
    background: var(--primary-pale);
  }
}
@media (min-width: 1024px) {
  .header-nav-left {
    order: 2;
  }
  .search-box {
    order: 3;
  }
  .header-nav-right {
    order: 4;
  }
}

/* ========== 面包屑 ========== */
.breadcrumb-bar {
  background: var(--bg-subtle);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: #B8B2A8;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb li.active {
  color: var(--text-main);
  font-weight: 500;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* ========== 文章主体 ========== */
.article-main {
  padding: 48px 0 56px;
}
.article-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.3;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-divider {
  color: #D0CAC0;
}
.article-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}
.article-body p {
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-pale);
  color: var(--text-main);
  line-height: 1.35;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-main);
  line-height: 1.45;
}
.article-body h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-pale);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.article-body pre {
  background: var(--deep);
  color: #D8DEDB;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  margin: 24px 0;
}
.article-body code {
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.article-body pre code {
  background: transparent;
  padding: 0;
}

/* 文章页脚 */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.back-to-list:hover {
  color: var(--primary-dark);
  gap: 8px;
}
.post-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.prev-post, .next-post {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: var(--transition);
}
.prev-post:hover, .next-post:hover {
  border-color: var(--primary-light);
  background: var(--primary-pale);
}
.prev-post span, .next-post span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.prev-post a, .next-post a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}
.prev-post a:hover, .next-post a:hover {
  color: var(--primary);
}

/* ========== 空态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.empty-state p {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 500;
}
.empty-state .btn {
  margin-top: 12px;
}

/* ========== 侧边栏 ========== */
.article-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-pale);
  position: relative;
}
.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.toc-list {
  list-style: none;
}
.toc-list li {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 16px;
  position: relative;
  transition: border-color 0.25s ease;
}
.toc-list li:hover {
  border-left-color: var(--primary);
}
.toc-list li.toc-empty {
  border-left: none;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.toc-list a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 3px 0;
}
.toc-list a:hover {
  color: var(--primary);
}
.toc-list a.toc-sub {
  padding-left: 12px;
  font-size: 13px;
  color: #8C9792;
}
.related-list {
  list-style: none;
}
.related-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.related-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.related-list a {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}
.related-list a::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.related-list a:hover {
  color: var(--primary);
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== 相关推荐区 ========== */
.related-section {
  padding: 64px 0;
  background: var(--bg-subtle);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.more-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.more-link:hover {
  color: var(--primary-dark);
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.related-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.related-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #B0AAA0;
}
.related-card-footer .tag {
  font-size: 11px;
  padding: 2px 10px;
}

/* ========== CTA 条 ========== */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 56px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-strip .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.cta-strip .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.cta-strip .btn-cta:hover {
  background: var(--accent-pale);
  color: var(--accent-dark);
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--deep-dark);
  color: #C7CDC9;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand .logo-mark {
  background: var(--primary-light);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #9BA3A0;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col ul a {
  color: #9BA3A0;
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #7C8581;
}
.footer-bottom a {
  color: #9BA3A0;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 1023px) {
  .article-main {
    padding: 32px 0;
  }
  .article-wrapper {
    padding: 24px;
  }
  .article-sidebar {
    position: static;
    margin-top: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .container {
    padding: 0 16px;
  }
  .article-wrapper {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .article-header h1 {
    font-size: 24px;
  }
  .article-meta {
    gap: 6px;
    font-size: 12px;
  }
  .post-pagination {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-strip {
    padding: 40px 0;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .related-card img {
    height: 160px;
  }
}

/* ========== 无障碍 ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}

/* ========== Foundation 覆盖 ========== */
.grid-x {
  margin-left: auto;
  margin-right: auto;
}
.grid-margin-x > .cell {
  margin-bottom: 24px;
}
button, .button {
  transition: var(--transition);
}

/* roulang page: category2 */
:root{
  --primary:#2B6B5C;
  --primary-dark:#245A4E;
  --primary-light:#3A7D6E;
  --accent:#C29A6B;
  --accent-dark:#A8855A;
  --dark:#25302D;
  --dark-deeper:#1C2623;
  --bg:#F7F5F1;
  --card-bg:#FFFFFF;
  --secondary-bg:#EFECE5;
  --text:#1F2A27;
  --text-light:#6B7570;
  --border:#E3DED4;
  --radius:14px;
  --radius-sm:10px;
  --radius-lg:20px;
  --shadow-sm:0 2px 8px rgba(27,50,43,0.06);
  --shadow-hover:0 8px 24px rgba(27,50,43,0.10);
  --shadow-focus:0 0 0 4px rgba(43,107,92,0.15);
  --success:#2E7D5B;
  --warning:#D97742;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:-apple-system,'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
  font-size:16px;line-height:1.8;color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;border:0;}
a{color:var(--primary);text-decoration:none;transition:color 0.2s ease;}
a:hover{color:var(--primary-dark);}
ul,ol{list-style:none;}
input,button,textarea{font-family:inherit;font-size:inherit;}
button{cursor:pointer;border:none;background:none;}
.container{max-width:1200px;margin:0 auto;padding:0 24px;}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:100;background:var(--bg);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.header-top{
  height:36px;background:var(--secondary-bg);display:flex;align-items:center;
  font-size:13px;color:var(--text-light);border-bottom:1px solid var(--border);
}
.header-top .container{display:flex;justify-content:space-between;align-items:center;height:100%;}
.header-top-site{font-weight:600;color:var(--primary);}
.header-main{
  background:var(--bg);height:72px;display:flex;align-items:center;
}
.header-main-inner{
  display:flex;align-items:center;width:100%;gap:16px;
}
.logo{
  display:flex;align-items:center;gap:10px;flex-shrink:0;
  font-size:20px;font-weight:700;color:var(--text);
}
.logo:hover{color:var(--primary);}
.logo-mark{
  width:34px;height:34px;border-radius:10px;background:var(--primary);
  display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;
}
.logo-mark svg{width:18px;height:18px;}
.header-nav-left,.header-nav-right{
  display:flex;align-items:center;gap:4px;flex-shrink:0;
}
.nav-link{
  display:inline-flex;align-items:center;gap:4px;padding:8px 14px;
  font-size:15px;font-weight:500;color:var(--text);border-radius:8px;
  position:relative;transition:background 0.2s ease,color 0.2s ease;
}
.nav-link:hover{background:rgba(43,107,92,0.08);color:var(--primary);}
.nav-link.active{color:var(--primary);font-weight:600;}
.nav-link.active::after{
  content:'';position:absolute;left:14px;right:14px;bottom:2px;height:2px;
  background:var(--primary);border-radius:2px;
}
.badge-new{
  display:inline-block;background:var(--accent);color:#fff;font-size:11px;
  font-weight:600;padding:1px 6px;border-radius:999px;line-height:1.4;margin-left:2px;
}
.header-search{
  flex:1;max-width:420px;margin:0 8px;position:relative;
}
.header-search svg.search-icon{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:var(--text-light);pointer-events:none;
}
.header-search input{
  width:100%;height:44px;border:1px solid var(--border);border-radius:24px;
  padding:0 46px 0 44px;font-size:15px;color:var(--text);background:var(--card-bg);
  outline:none;transition:border-color 0.25s ease,box-shadow 0.25s ease;
}
.header-search input::placeholder{color:var(--text-light);}
.header-search input:focus{
  border-color:var(--primary);box-shadow:var(--shadow-focus);
}
.search-shortcut{
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-size:18px;color:var(--text-light);pointer-events:none;opacity:0.7;
}

/* ===== Hero ===== */
.page-hero{
  position:relative;background:var(--secondary-bg);
  background-image:linear-gradient(to right,rgba(247,245,241,0.94),rgba(247,245,241,0.88)),url('/assets/images/backpic/back-1.png');
  background-size:cover;background-position:center;padding:72px 0 56px;
  border-bottom:1px solid var(--border);
}
.page-hero-inner{
  position:relative;z-index:2;max-width:720px;
}
.page-hero-badge{
  display:inline-block;padding:4px 16px;background:rgba(43,107,92,0.12);
  color:var(--primary);font-size:13px;font-weight:600;border-radius:999px;
  margin-bottom:16px;
}
.page-hero h1{
  font-size:clamp(28px,4vw,40px);font-weight:700;line-height:1.3;
  letter-spacing:-0.01em;color:var(--text);margin-bottom:12px;
}
.page-hero p{
  font-size:16px;line-height:1.8;color:var(--text-light);max-width:620px;
}
.page-hero-wave{
  position:absolute;bottom:0;left:0;right:0;z-index:1;pointer-events:none;
}

/* ===== Content layout ===== */
.content-section{padding:64px 0 48px;}
.content-layout{display:flex;gap:40px;align-items:flex-start;}
.content-main{flex:1;min-width:0;}
.sidebar{width:320px;flex-shrink:0;position:sticky;top:120px;}

/* Section title */
.section-title{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:28px;
}
.section-title h2{
  font-size:clamp(24px,3vw,32px);font-weight:700;line-height:1.35;
  color:var(--text);letter-spacing:-0.01em;
}
.section-title .more-link{
  font-size:14px;font-weight:500;color:var(--primary);
  display:inline-flex;align-items:center;gap:4px;
}
.section-title .more-link:hover{color:var(--primary-dark);}

/* ===== Info card grid ===== */
.card-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:24px;
}
.info-card{
  background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;transition:transform 0.25s ease,box-shadow 0.25s ease,border-color 0.25s ease;
  display:flex;flex-direction:column;
}
.info-card:hover{
  transform:translateY(-4px);box-shadow:var(--shadow-hover);
  border-color:rgba(43,107,92,0.3);
}
.info-card-cover{
  position:relative;overflow:hidden;height:180px;
}
.info-card-cover img{
  width:100%;height:100%;object-fit:cover;transition:transform 0.4s ease;
}
.info-card:hover .info-card-cover img{transform:scale(1.04);}
.info-card-cover::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(31,42,39,0.12),transparent 40%);
}
.info-card-body{padding:20px 22px 16px;display:flex;flex-direction:column;flex:1;}
.info-card-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;}
.tag{
  display:inline-block;padding:3px 12px;border-radius:999px;font-size:12px;
  font-weight:600;background:rgba(43,107,92,0.1);color:var(--primary);
}
.tag-accent{background:rgba(194,154,107,0.15);color:var(--accent-dark);}
.info-card-title{
  font-size:18px;font-weight:700;line-height:1.45;color:var(--text);
  margin-bottom:8px;
}
.info-card-excerpt{
  font-size:14px;color:var(--text-light);line-height:1.7;margin-bottom:14px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.info-card-meta{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:12px;border-top:1px solid var(--border);margin-top:auto;
  font-size:13px;color:var(--text-light);
}
.info-card-meta time{display:inline-flex;align-items:center;gap:4px;}
.info-card-meta a{
  font-weight:500;font-size:13px;display:inline-flex;align-items:center;gap:4px;
}
.info-card-meta a:hover{color:var(--primary-dark);}

/* ===== Sidebar ===== */
.sidebar-box{
  background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius);
  padding:24px;margin-bottom:24px;
}
.sidebar-box:last-child{margin-bottom:0;}
.sidebar-box h3{
  font-size:17px;font-weight:700;color:var(--text);margin-bottom:14px;
  padding-bottom:10px;border-bottom:2px solid var(--secondary-bg);
  position:relative;
}
.sidebar-box h3::after{
  content:'';position:absolute;left:0;bottom:-2px;width:36px;height:2px;
  background:var(--primary);border-radius:2px;
}
.sidebar-intro p{font-size:14px;line-height:1.7;color:var(--text-light);}
.tag-cloud{
  display:flex;flex-wrap:wrap;gap:8px;
}
.tag-cloud .tag{
  background:var(--secondary-bg);color:var(--text);font-weight:500;
}
.tag-cloud .tag:hover{background:rgba(43,107,92,0.12);color:var(--primary);}
.sidebar-links li{
  border-bottom:1px solid var(--border);padding:10px 0;
}
.sidebar-links li:last-child{border-bottom:none;padding-bottom:0;}
.sidebar-links li:first-child{padding-top:0;}
.sidebar-links a{
  display:flex;align-items:center;justify-content:space-between;
  font-size:14px;font-weight:500;color:var(--text);
  transition:color 0.2s ease;
}
.sidebar-links a:hover{color:var(--primary);}
.sidebar-links .arrow{font-size:16px;color:var(--text-light);}

/* ===== FAQ ===== */
.faq-section{padding:56px 0 48px;background:var(--secondary-bg);}
.faq-container{max-width:860px;margin:0 auto;padding:0 24px;}
.accordion-item{background:var(--card-bg);border:1px solid var(--border);border-radius:12px;margin-bottom:14px;overflow:hidden;transition:box-shadow 0.2s ease;}
.accordion-item:hover{box-shadow:var(--shadow-sm);}
.accordion-title{
  display:flex;align-items:center;gap:14px;padding:18px 24px;cursor:pointer;
  font-size:16px;font-weight:600;color:var(--text);background:transparent;
  width:100%;text-align:left;transition:background 0.2s ease;
}
.accordion-title:hover{background:rgba(194,154,107,0.06);}
.accordion-item.is-active .accordion-title{background:rgba(194,154,107,0.1);}
.accordion-icon{
  width:22px;height:22px;border-radius:6px;background:var(--secondary-bg);
  display:flex;align-items:center;justify-content:center;font-size:14px;
  color:var(--primary);transition:transform 0.25s ease,background 0.25s ease;flex-shrink:0;
}
.accordion-item.is-active .accordion-icon{
  transform:rotate(45deg);background:var(--accent);color:#fff;
}
.accordion-content{
  padding:0 24px 20px 60px;font-size:14px;line-height:1.8;color:var(--text-light);
  display:none;
}
.accordion-item.is-active .accordion-content{display:block;}

/* ===== CTA bar ===== */
.cta-section{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
  padding:56px 0;text-align:center;position:relative;overflow:hidden;
}
.cta-section::before{
  content:'';position:absolute;right:-80px;top:-80px;width:280px;height:280px;
  border:2px solid rgba(255,255,255,0.1);border-radius:50%;
}
.cta-section::after{
  content:'';position:absolute;left:-60px;bottom:-60px;width:180px;height:180px;
  border:2px solid rgba(255,255,255,0.08);border-radius:50%;
}
.cta-inner{position:relative;z-index:2;}
.cta-inner h2{
  font-size:clamp(24px,3vw,32px);font-weight:700;color:#fff;line-height:1.4;
  margin-bottom:10px;
}
.cta-inner p{font-size:15px;color:rgba(255,255,255,0.85);margin-bottom:28px;max-width:640px;margin-left:auto;margin-right:auto;}
.cta-buttons{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:0 28px;border-radius:10px;font-size:15px;font-weight:600;
  transition:transform 0.2s ease,box-shadow 0.2s ease,background 0.2s ease,color 0.2s ease;
  outline:none;
}
.btn:focus-visible{box-shadow:var(--shadow-focus);}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px);box-shadow:var(--shadow-hover);color:#fff;}
.btn-outline{
  background:transparent;color:#fff;border:2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover{background:rgba(255,255,255,0.12);border-color:#fff;color:#fff;}
.btn-accent{background:var(--accent);color:#fff;}
.btn-accent:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:var(--shadow-hover);color:#fff;}
.btn-lg{height:52px;padding:0 36px;font-size:16px;}

/* ===== Footer ===== */
.site-footer{background:var(--dark);color:#C7CDC9;padding-top:56px;font-size:14px;}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer-logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:#fff;margin-bottom:12px;}
.footer-logo .logo-mark{background:var(--accent);}
.footer-brand p{font-size:14px;line-height:1.7;color:#9DB0A8;max-width:340px;}
.footer-col h4{
  font-size:15px;font-weight:600;color:#fff;margin-bottom:14px;
  position:relative;padding-bottom:8px;
}
.footer-col h4::after{
  content:'';position:absolute;left:0;bottom:0;width:24px;height:2px;
  background:var(--accent);border-radius:2px;
}
.footer-col ul li{padding:5px 0;}
.footer-col ul li a{color:#9DB0A8;transition:color 0.2s ease;}
.footer-col ul li a:hover{color:#fff;}
.footer-bottom{
  padding:20px 0;background:var(--dark-deeper);text-align:center;
  font-size:13px;color:#7C8F87;
}
.footer-bottom p{max-width:1200px;margin:0 auto;padding:0 24px;}

/* ===== Responsive ===== */
@media(max-width:1023px){
  .header-main{height:auto;padding:12px 0;}
  .header-main-inner{flex-wrap:wrap;}
  .logo{width:auto;}
  .header-nav-left,.header-nav-right{order:3;width:100%;}
  .header-search{order:2;max-width:100%;margin:8px 0;}
  .header-nav-left,.header-nav-right{justify-content:center;gap:6px;}
  .content-layout{flex-direction:column;}
  .sidebar{width:100%;position:static;margin-top:32px;}
  .card-grid{gap:16px;}
}
@media(max-width:639px){
  .header-top-site{display:none;}
  .header-top{height:32px;}
  .header-main{padding:8px 0;}
  .logo{font-size:16px;}
  .logo-mark{width:30px;height:30px;}
  .nav-link{padding:6px 10px;font-size:14px;}
  .header-search input{height:40px;font-size:14px;}
  .page-hero{padding:48px 0 40px;}
  .page-hero h1{font-size:28px;}
  .page-hero p{font-size:15px;}
  .content-section{padding:40px 0 32px;}
  .card-grid{grid-template-columns:1fr;}
  .info-card-cover{height:200px;}
  .cta-buttons{flex-direction:column;width:100%;max-width:320px;margin:0 auto;}
  .btn{width:100%;}
  .footer-grid{grid-template-columns:1fr;gap:28px;}
  .cta-inner h2{font-size:24px;}
  .accordion-title{padding:14px 18px;font-size:15px;}
  .accordion-content{padding:0 18px 16px 50px;}
}
