﻿:root {
  --primary: #4A90D9;
  --primary-dark: #2f6fae;
  --green: #67C23A;
  --orange: #F5A623;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #2C3E50;
  --muted: #7F8C8D;
  --footer: #0F2742;
  --line: #dce8f5;
  --shadow: 0 12px 30px rgba(42, 101, 155, .12);
  --radius: 8px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef7ff 0%, var(--bg) 360px);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  background: #eaf4ff;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 232, 245, .72);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(15, 39, 66, .08);
}

.nav-shell {
  max-width: var(--max);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(74, 144, 217, .24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: var(--radius);
  color: #3d5063;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: #edf6ff;
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--primary);
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1d578b;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 39, 66, .62), rgba(74, 144, 217, .16) 56%, rgba(15, 39, 66, .28));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  padding-top: 66px;
}

.hero-content p {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #e4f3ff;
}

.hero-content h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.08;
}

.hero-content h2 {
  margin: 16px 0 30px;
  max-width: 560px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 750;
}

.hero-actions,
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(74, 144, 217, .22);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
}

.btn.secondary {
  color: var(--primary-dark);
  background: #fff;
}

.slide-btn {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.slide-btn.prev {
  left: 22px;
}

.slide-btn.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  bottom: 26px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  border-radius: 10px;
  background: #fff;
}

.section,
.section-narrow {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-narrow {
  padding: 0;
}

.stats {
  margin-top: -54px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card,
.guide-card,
.news-card,
.info-card,
.article-card,
.side-card,
.consult-panel,
.chat-panel,
.ai-promo {
  background: var(--card);
  border: 1px solid rgba(220, 232, 245, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 32px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 650;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.page-hero h1,
.consult-panel h1,
.article-card h1,
.about-hero h1 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

.section-head h2 {
  font-size: 30px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.quick-grid,
.category-grid,
.news-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card,
.news-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover,
.news-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(42, 101, 155, .18);
}

.guide-card.compact {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7bb9f0);
  font-weight: 850;
}

.guide-card strong {
  font-size: 20px;
}

.guide-card small,
.guide-card p,
.news-card p,
.article-summary,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.soft-band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, #edf7ff, #f8fbff);
}

.news-card {
  display: grid;
  grid-template-rows: 170px 1fr;
}

.news-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover img,
.category-card:hover img,
.article-hero-img:hover {
  transform: scale(1.035);
}

.news-card div {
  padding: 18px;
}

.news-card strong {
  font-size: 18px;
}

.ai-promo {
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}

.ai-promo h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ai-promo p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.bot-mark {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--primary);
  position: relative;
}

.bot-mark::before,
.bot-mark::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.bot-mark::before {
  left: 20px;
}

.bot-mark::after {
  right: 20px;
}

.bot-mark span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
}

.site-footer {
  margin-top: 30px;
  padding: 42px max(20px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr auto;
  gap: 28px;
  color: #dbeaff;
  background: var(--footer);
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
  color: #b8cae0;
}

.compact-footer {
  grid-template-columns: 1fr auto;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-width: 126px;
  min-height: 126px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .4);
  border-radius: var(--radius);
  color: #dbeaff;
  text-align: center;
}

.page-main {
  padding-top: 96px;
}

.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 12px;
  padding: 52px 0 24px;
}

.page-hero h1 {
  font-size: 42px;
}

.page-hero p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
}

.search-box input,
.chat-form input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  outline: none;
}

.search-box input:focus,
.chat-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 144, 217, .12);
}

.category-card {
  display: grid;
  grid-template-rows: 190px 1fr;
}

.category-card-body {
  padding: 18px;
}

.category-card h2 {
  margin: 12px 0 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0 0 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #edf6ff;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  margin-top: 24px;
  padding: 34px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.detail-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
  padding: 38px 0 60px;
}

.article-card,
.side-card {
  padding: 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-weight: 750;
}

.article-card h1 {
  font-size: 38px;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.author-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.article-hero-img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .35s ease;
}

.content-section {
  padding-top: 24px;
}

.content-section h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.content-section p {
  margin: 0;
  color: #40556b;
  line-height: 1.85;
}

.xiaobei-note {
  margin-top: 28px;
  padding: 18px;
  display: flex;
  gap: 14px;
  border-radius: var(--radius);
  background: #edf8ee;
  border: 1px solid rgba(103, 194, 58, .25);
}

.xiaobei-note img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.xiaobei-note p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.related-link img {
  width: 70px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.checklist-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checklist-images img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.consult-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 260px;
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.consult-panel,
.chat-panel {
  padding: 20px;
}

.consult-panel h1,
.consult-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.consult-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.quick-question-list {
  display: grid;
  gap: 9px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.quick-question {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.quick-question:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #edf6ff;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 680px;
}

.chat-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.chat-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chat-title img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.chat-messages {
  padding: 18px 4px;
  overflow: auto;
}

.message-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.ai img,
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.user-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
  order: 2;
}

.bubble {
  max-width: min(560px, 82%);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #edf6ff;
  color: #314b62;
  line-height: 1.7;
}

.message-row.user .bubble {
  color: #fff;
  background: var(--primary);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.qr-grid {
  display: grid;
  gap: 12px;
}

.follow-panel .qr-placeholder,
.about-hero + .section .qr-placeholder {
  color: var(--primary-dark);
  border-color: var(--line);
  background: #f8fbff;
}

.about-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 36px auto 0;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #edf7ff);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-hero h1 {
  font-size: 46px;
}

.about-hero p {
  margin: 16px 0 26px;
  max-width: 720px;
  color: #41566c;
  line-height: 1.85;
}

.about-hero img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  border: 8px solid #fff;
  box-shadow: 0 16px 34px rgba(74, 144, 217, .2);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.info-card p {
  margin: 0 0 18px;
  color: #40556b;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-grid div {
  padding: 16px;
  border-radius: var(--radius);
  background: #f8fbff;
  border: 1px solid var(--line);
}

.contact-grid strong,
.contact-grid span {
  display: block;
}

.contact-grid span {
  margin-top: 7px;
  color: var(--muted);
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: #40556b;
  line-height: 1.85;
}

@media (max-width: 1023px) {
  .quick-grid,
  .category-grid,
  .news-grid,
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout,
  .consult-shell,
  .two-col {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .consult-shell {
    width: min(var(--max), calc(100% - 40px));
  }

  .quick-question-list {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-shell {
    min-height: 62px;
    padding: 0 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .slide-btn {
    display: none;
  }

  .stats,
  .quick-grid,
  .category-grid,
  .news-grid,
  .policy-grid,
  .checklist-images,
  .site-footer,
  .compact-footer,
  .about-hero,
  .ai-promo,
  .search-box,
  .chat-form,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: -32px;
  }

  .section,
  .section-narrow,
  .page-hero,
  .detail-main,
  .consult-shell,
  .about-hero {
    width: calc(100% - 28px);
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-head h2,
  .ai-promo h2 {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .soft-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-main {
    padding-top: 76px;
  }

  .page-hero {
    padding-top: 32px;
  }

  .page-hero h1,
  .article-card h1,
  .about-hero h1 {
    font-size: 32px;
  }

  .article-card,
  .side-card,
  .consult-panel,
  .chat-panel,
  .about-hero,
  .info-card {
    padding: 18px;
  }

  .chat-panel {
    min-height: 600px;
  }

  .quick-question-list {
    grid-template-columns: 1fr;
  }

  .about-hero img {
    width: 170px;
    height: 170px;
  }

  .site-footer {
    padding: 32px 18px;
  }
}



.footer-social,
.qr-grid,
.social-qr-grid {
  display: grid;
  gap: 14px;
}

.footer-social {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  align-items: start;
}

.compact-social {
  min-width: 280px;
}

.social-qr-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.qr-card {
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(42, 101, 155, .10);
  color: var(--text);
  text-align: center;
}

.qr-card-dark {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .96);
}

.qr-card img {
  width: 116px;
  height: 116px;
  margin: 0 auto 10px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.follow-panel .qr-card img,
.social-qr-grid .qr-card img {
  width: 150px;
  height: 150px;
}

.qr-card strong,
.qr-card span,
.qr-card p {
  display: block;
}

.qr-card strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.qr-card span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.qr-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-grid em {
  display: block;
  margin-top: 6px;
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 767px) {
  .footer-social,
  .compact-social,
  .social-qr-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .qr-card img,
  .follow-panel .qr-card img,
  .social-qr-grid .qr-card img {
    width: 132px;
    height: 132px;
  }
}

/* Reference-aligned refinements for final visual QA */
.site-header {
  background: rgba(255, 255, 255, .93);
}

.nav-links a.active {
  position: relative;
  color: #1677ed;
  background: #eef6ff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: #1677ed;
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, #238bff, #086ee8);
  box-shadow: 0 8px 18px rgba(22, 119, 237, .22);
}

body[data-page="home"] main > .section:last-of-type {
  padding-top: 14px;
  padding-bottom: 34px;
}

.ai-promo {
  position: relative;
  width: min(420px, 100%);
  min-height: 340px;
  margin-left: auto;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  align-items: end;
  gap: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .28), transparent 26%),
    radial-gradient(circle at 12% 90%, rgba(89, 193, 255, .34), transparent 30%),
    linear-gradient(135deg, #2e9bff 0%, #1677ed 48%, #0b61d8 100%);
  box-shadow: 0 18px 38px rgba(22, 119, 237, .28);
}

.ai-promo::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -74px;
  top: -72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}

.ai-promo-copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ai-promo .ai-question {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .94);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.ai-promo h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.ai-promo strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}

.ai-promo span {
  margin-top: 16px;
  max-width: 170px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.65;
}

.ai-promo-btn {
  margin-top: auto;
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #126fe9;
  background: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(4, 63, 140, .18);
}

.ai-robot {
  position: relative;
  z-index: 2;
  width: 172px;
  height: 238px;
  align-self: end;
}

.robot-antenna {
  position: absolute;
  left: 74px;
  top: 0;
  width: 22px;
  height: 28px;
  border-radius: 12px 12px 0 0;
  background: #d8edff;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .8);
}

.robot-antenna::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .18);
}

.robot-head {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 136px;
  height: 108px;
  border-radius: 44px;
  background: linear-gradient(180deg, #fff, #dcefff);
  box-shadow: inset 0 -9px 0 rgba(129, 188, 246, .28), 0 18px 30px rgba(5, 57, 125, .18);
}

.robot-face {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 88px;
  height: 52px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0e76e7, #0759c8);
  box-shadow: inset 0 0 18px rgba(74, 206, 255, .45);
}

.robot-face i {
  position: absolute;
  top: 18px;
  width: 10px;
  height: 17px;
  border-radius: 999px;
  background: #56ddff;
  box-shadow: 0 0 12px rgba(86, 221, 255, .9);
}

.robot-face i:first-child {
  left: 25px;
}

.robot-face i:last-child {
  right: 25px;
}

.robot-body {
  position: absolute;
  left: 42px;
  top: 126px;
  width: 88px;
  height: 90px;
  border-radius: 28px 28px 34px 34px;
  background: linear-gradient(180deg, #fff, #dbeeff);
  box-shadow: inset 0 -8px 0 rgba(126, 184, 241, .24), 0 16px 25px rgba(5, 57, 125, .14);
}

.robot-body span {
  position: absolute;
  left: 34px;
  top: 26px;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 50%;
  background: #2f9bff;
  box-shadow: inset 0 0 0 5px #d8efff;
}

.robot-arm {
  position: absolute;
  top: 145px;
  width: 26px;
  height: 58px;
  border-radius: 999px;
  background: #e4f2ff;
  box-shadow: inset 0 -7px 0 rgba(126, 184, 241, .26);
}

.robot-arm.left {
  left: 18px;
  transform: rotate(25deg);
}

.robot-arm.right {
  right: 16px;
  transform: rotate(-28deg);
}

.category-hero {
  width: 100%;
  max-width: none;
  margin: -16px 0 8px;
  padding: 78px max(20px, calc((100% - var(--max)) / 2)) 54px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: 34px;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 255, 255, .86), transparent 28%),
    linear-gradient(135deg, #e9f6ff 0%, #d9edff 56%, #edf8ff 100%);
}

.category-hero h1 {
  color: #1677ed;
  font-size: 42px;
  font-weight: 900;
}

.category-hero p {
  margin: 10px 0 0;
  color: #526f8a;
  font-size: 18px;
  font-weight: 650;
}

.category-hero .search-box {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
}

.category-hero .search-box input {
  border: 0;
  box-shadow: 0 10px 24px rgba(42, 101, 155, .12);
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  height: 252px;
  display: grid;
  grid-template-rows: 152px 100px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(42, 101, 155, .13);
}

.category-thumb {
  height: 152px;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  display: flex;
  align-items: center;
  padding: 16px 18px;
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.category-title-row .card-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52b2ff, #1677ed);
  box-shadow: 0 8px 18px rgba(22, 119, 237, .22);
}

.category-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.category-card p {
  margin: 0;
  color: #7b91a8;
  font-size: 12px;
  line-height: 1.35;
}

.detail-main {
  width: 100%;
}

.detail-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 44px 0 66px;
}

.article-card,
.side-card,
.consult-panel,
.chat-panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(42, 101, 155, .12);
}

.article-card {
  padding: 34px 38px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.article-card p,
.editable-content,
.content-section {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.back-link {
  margin-bottom: 18px;
  color: #1677ed;
  font-size: 13px;
}

.article-card h1 {
  color: #20364d;
  font-size: 36px;
  font-weight: 900;
}

.article-summary {
  margin-bottom: 0;
}

.author-row {
  gap: 12px 18px;
  margin: 18px 0 24px;
}

.author-row span:first-of-type {
  color: #1677ed;
  font-weight: 800;
}

.article-hero-img {
  aspect-ratio: 16 / 7;
  max-height: none;
  border-radius: 8px;
}

.content-section h2 {
  position: relative;
  padding-left: 18px;
  color: #263f57;
  font-size: 21px;
  font-weight: 850;
}

.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .56em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1677ed;
  box-shadow: 0 0 0 4px #e4f2ff;
}

.xiaobei-note {
  position: relative;
  margin-top: 28px;
  padding: 18px 18px 18px 56px;
  display: block;
  border: 0;
  border-left: 4px solid #f2a31c;
  background: #fff3cf;
  color: #594522;
}

.xiaobei-note::before {
  content: "!";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f2a31c;
  font-size: 14px;
  font-weight: 900;
}

.xiaobei-note img {
  display: none;
}

.xiaobei-note strong {
  color: #6a4710;
}

.xiaobei-note p {
  color: #6d562d;
}

.side-card {
  padding: 24px 22px;
}

.side-card h2 {
  font-size: 20px;
}

.related-link {
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 12px 0;
}

.related-link img {
  grid-row: 1 / 3;
  width: 82px;
  height: 58px;
}

.related-link span {
  min-width: 0;
  color: #263f57;
  font-size: 14px;
  line-height: 1.35;
}

.related-link small {
  color: #8ca0b3;
  font-size: 12px;
  font-weight: 650;
}

body[data-page="ai"] {
  background: linear-gradient(180deg, #eaf6ff 0%, #f7fbff 360px);
}

.consult-shell {
  width: min(1200px, calc(100% - 40px));
  grid-template-columns: 220px minmax(0, 1fr) 246px;
  gap: 18px;
  padding-top: 38px;
}

.consult-panel,
.chat-panel {
  background: rgba(255, 255, 255, .96);
}

.consult-panel {
  padding: 22px 18px;
}

.consult-panel h1,
.consult-panel h2 {
  color: #263f57;
  font-size: 21px;
  font-weight: 900;
}

.consult-panel p {
  font-size: 13px;
}

.quick-question-list {
  gap: 10px;
}

.quick-question {
  min-height: 42px;
  padding: 10px 12px;
  border-color: #d5eaff;
  background: #f1f8ff;
  color: #42617f;
  font-size: 14px;
  font-weight: 750;
}

.quick-question:hover,
.quick-question:focus {
  border-color: #1677ed;
  background: #e4f2ff;
  color: #126fe9;
  outline: none;
}

.chat-panel {
  min-height: 620px;
  padding: 22px;
  min-width: 0;
  overflow: hidden;
}

.chat-title h2 {
  color: #263f57;
  font-size: 24px;
}

.chat-title p {
  font-size: 13px;
}

.chat-messages {
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.message-row {
  align-items: flex-start;
}

.bubble {
  border-radius: 14px 14px 14px 4px;
  background: #f1f5f9;
  box-shadow: 0 6px 14px rgba(42, 101, 155, .07);
}

.message-row.user .bubble {
  border-radius: 14px 14px 4px 14px;
  background: #1677ed;
}

.chat-form input {
  min-height: 44px;
  border-radius: 8px;
}

.follow-panel .qr-grid {
  gap: 16px;
}

.follow-panel .qr-card {
  padding: 14px 12px 16px;
  box-shadow: none;
  border-color: #e3eefb;
}

.follow-panel .qr-card img {
  width: 116px;
  height: 116px;
}

.follow-panel .qr-card strong {
  color: #263f57;
  font-size: 15px;
}

.qr-card img {
  image-rendering: auto;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consult-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .follow-panel {
    grid-column: 1 / -1;
  }

  .follow-panel .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .category-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links a.active::after {
    left: 38%;
    right: 38%;
  }

  .ai-promo {
    width: 100%;
    min-height: 318px;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) 132px;
    padding: 24px 20px;
  }

  .ai-promo h2,
  .ai-promo strong {
    font-size: 25px;
  }

  .ai-promo span {
    max-width: 154px;
  }

  .ai-robot {
    width: 130px;
    height: 206px;
    transform: translateX(10px) scale(.84);
    transform-origin: right bottom;
  }

  .category-hero {
    width: 100%;
    margin-top: 0;
    padding: 34px 14px 32px;
  }

  .category-hero h1 {
    font-size: 32px;
  }

  .category-hero .search-box {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    height: 236px;
    grid-template-rows: 140px 96px;
  }

  .category-thumb {
    height: 140px;
  }

  .detail-layout {
    width: calc(100% - 28px);
    padding: 22px 0 44px;
  }

  .article-card {
    padding: 22px 18px;
  }

  .article-card h1 {
    font-size: 28px;
  }

  .article-hero-img {
    aspect-ratio: 16 / 9;
  }

  .content-section h2 {
    font-size: 19px;
  }

  .xiaobei-note {
    padding-left: 48px;
  }

  .consult-shell {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 22px;
  }

  .chat-panel {
    min-height: 560px;
  }

  .chat-title {
    align-items: flex-start;
  }

  .chat-title img {
    width: 44px;
    height: 44px;
  }

  .message-row {
    max-width: 100%;
  }

  .bubble {
    max-width: calc(100% - 48px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .message-row.user .bubble {
    max-width: calc(100% - 48px);
  }

  .editable-content,
  .content-section,
  .checklist-images {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .checklist-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .quick-question-list {
    grid-template-columns: 1fr;
  }

  .follow-panel .qr-grid {
    grid-template-columns: 1fr;
  }
}
