:root {
  color-scheme: light;
  --bg: #fbfbf8;
  --surface: #ffffff;
  --text: #1e2428;
  --muted: #5d6870;
  --line: #dfe4df;
  --brand: #136f63;
  --brand-dark: #0f5149;
  --accent: #b74f2f;
  --soft: #eef5f2;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
}

h2 {
  margin-top: 0;
  font-size: 18px;
}

h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.eyebrow,
.card-meta {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  font-size: 14px;
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
}

/* ===== SHARED LAYOUT HELPERS ===== */
.section,
.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: var(--soft);
  color: var(--brand-dark);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.content-card,
.quick-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
}

.content-card h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.content-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}

/* ===== ARTICLE PAGES ===== */
.article-header {
  max-width: 820px;
}

.article-header h1 {
  font-size: clamp(20px, 2.8vw, 32px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-meta a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.article-cover-preview {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 560px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 20, 19, 0.12);
  border-radius: 8px;
  color: #141413;
  text-decoration: none;
}

.article-cover-preview span {
  color: #c96442;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-cover-preview strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
}

.article-cover-preview small {
  max-width: 460px;
  color: rgba(20, 20, 19, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.article-content {
  max-width: 820px;
  margin-top: 24px;
  font-size: 15px;
}

.article-content h2 {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  width: 26%;
  background: var(--soft);
  font-weight: 600;
}

/* ===== SOURCE LIST ===== */
.source-list {
  max-width: 820px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 20px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 28px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--brand-dark);
}

.footer-bottom {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* =====================
   HOME PAGE
   ===================== */

.ai-home-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.hero-search-panel,
.hero-news-panel,
.portal-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.hero-search-panel {
  border-color: #c7d8d2;
  background:
    linear-gradient(180deg, rgba(238, 245, 242, 0.78), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.hero-search-panel h1 {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 680px;
}

.hero-tool-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tool-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-dashboard div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.tool-dashboard strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--brand-dark);
  margin-bottom: 7px;
}

.tool-dashboard span {
  color: var(--muted);
  font-size: 12px;
}

.hero-guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-guide-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0 10px;
}

.home-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}

.home-search button {
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.tool-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-hotwords a {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
  font-size: 12px;
  text-decoration: none;
}

.rating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.rating-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.rating-legend strong {
  color: var(--brand-dark);
}

.headline-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.headline-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.headline-item span,
.news-list-compact span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.headline-item h3,
.news-list-compact h3 {
  margin: 3px 0 4px;
  font-size: 14px;
}

.headline-item p,
.news-list-compact p,
.side-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ai-home-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.home-news-aside {
  min-height: 100%;
}

.daily-news-feature {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 20, 19, 0.12);
  border-radius: 8px;
  color: #141413;
  text-decoration: none;
}

.daily-news-feature span {
  color: #c96442;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.daily-news-feature strong {
  font-size: 15px;
  line-height: 1.35;
}

.daily-news-feature small {
  color: rgba(20, 20, 19, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.ai-home-main,
.ai-home-side {
  display: grid;
  gap: 14px;
}

.section-head.compact {
  margin-bottom: 10px;
}

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

.section-head.compact a {
  font-size: 12px;
}

.category-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.category-portal-card,
.scenario-portal-card,
.domestic-tool-list a,
.wechat-topic-list a,
.side-link-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.category-portal-card {
  min-height: 76px;
  padding: 10px;
}

.cat-icon {
  display: inline-block;
  margin-right: 4px;
}

.category-portal-card strong,
.scenario-portal-card strong,
.domestic-tool-list strong {
  display: block;
  font-size: 13px;
}

.category-portal-card small,
.scenario-portal-card small,
.domestic-tool-list span,
.wechat-topic-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.scenario-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.scenario-portal-card {
  padding: 10px;
  min-height: 82px;
}

.scenario-portal-card > span {
  float: right;
  font-size: 18px;
}

.home-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-all-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
}

.domestic-tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.domestic-tool-list a {
  padding: 10px;
}

.side-portal {
  padding: 14px;
}

.news-list-compact {
  display: grid;
  gap: 10px;
}

.news-list-compact article {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.news-list-compact article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.wechat-topic-list,
.side-link-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wechat-topic-list a,
.side-link-list a {
  padding: 9px 10px;
}

.wechat-topic-list strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.news-cover-mini {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  color: #141413;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 19, 0.12);
  overflow: hidden;
}

.news-cover-mini span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-cover-mini strong {
  display: block;
  max-width: 90%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.18;
  margin: 10px 0;
}

.news-cover-mini small {
  font-size: 12px;
  color: rgba(20, 20, 19, 0.68);
}

.news-cover-mini.parchment,
.share-card-canvas.parchment {
  background: #f5f4ed;
}

.news-cover-mini.terracotta,
.share-card-canvas.terracotta {
  background: #f4e7df;
}

.news-cover-mini.olive,
.share-card-canvas.olive {
  background: #eef1e6;
}

.news-cover-mini.dark,
.share-card-canvas.dark {
  background: #30302e;
  color: #faf9f5;
}

.news-cover-mini.daily,
.share-card-canvas.daily,
.article-cover-preview.daily {
  background:
    linear-gradient(135deg, rgba(47, 111, 100, 0.12), transparent 42%),
    #f3f5ef;
}

.news-cover-mini.dark small,
.share-card-canvas.dark h2,
.share-card-canvas.dark .share-card-bottom {
  color: rgba(250, 249, 245, 0.72);
}

.news-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.news-card h2 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.wechat-box {
  margin-top: 12px;
  padding: 10px;
  background: var(--soft);
  border-radius: 8px;
}

.wechat-box strong {
  display: block;
  font-size: 12px;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.wechat-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 4px;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.news-actions a {
  font-weight: 700;
  text-decoration: none;
}

.card-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #d9d7ce;
}

.share-card-canvas {
  width: 900px;
  height: 383px;
  padding: 36px 42px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #141413;
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

.share-card-top,
.share-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 19, 0.65);
}

.share-card-main {
  align-self: center;
  max-width: 760px;
}

.share-card-main p {
  margin: 0 0 12px;
  color: #c96442;
  font-size: 22px;
  font-weight: 800;
}

.share-card-main h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: 0;
}

.share-card-main h2 {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(20, 20, 19, 0.68);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

/* --- Hero --- */
.home-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.site-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.home-hero h1 {
  font-size: clamp(17px, 2vw, 22px);
  margin: 0 0 8px;
  line-height: 1.4;
}

.site-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
  max-width: 520px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-links a {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.quick-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero aside */
.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
}

.aside-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-mini {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timeline-mini li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  align-items: baseline;
}

.tl-date {
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  min-width: 52px;
  flex-shrink: 0;
}

.aside-more {
  font-size: 12px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

/* --- Stats bar --- */
.stats-bar-wrap {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

/* --- Home sections --- */
.home-section-wrap {
  width: 100%;
}

.home-section-wrap.tinted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
}

.section-more {
  font-size: 13px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-intro {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 14px;
  line-height: 1.6;
}

/* --- Exam categories --- */
.exam-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 5px;
  margin: 0 0 11px;
}

.exam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exam-list li a {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.exam-list li a:hover .exam-name {
  color: var(--brand);
}

.exam-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.exam-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.step-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 6px;
}

.step-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
}

.step-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--brand-dark);
}

.faq-body {
  padding: 2px 15px 13px;
}

.faq-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.65;
}

.faq-body p:last-child { margin-bottom: 0; }

/* --- About --- */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-cols p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.75;
}

.about-cols p:last-child { margin-bottom: 0; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .ai-home-hero,
  .ai-home-layout {
    grid-template-columns: 1fr;
  }
  .exam-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .ai-home-hero,
  .ai-home-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 18px 16px 14px;
  }

  .hero-aside {
    display: none;
  }

  .home-section {
    padding: 20px 16px;
  }

  .stat-item {
    min-width: 100px;
  }

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

@media (max-width: 540px) {
  .exam-categories {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    padding: 8px 16px;
  }
  .stat-item {
    min-width: 80px;
    padding: 6px 8px;
  }
  .stat-num {
    font-size: 16px;
  }
}

/* =====================
   AI 工具导航页
   ===================== */

.section-h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.tool-count {
  font-size: 12px;
  color: var(--muted);
}

/* 场景卡片网格 */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.scenario-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.08);
}

.scenario-card.active {
  border-color: var(--brand);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.12);
}

.scenario-icon {
  font-size: 20px;
  line-height: 1;
}

.scenario-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.scenario-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* 分类过滤条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* 工具卡片网格 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

/* 工具卡片 */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s;
}

.tool-card:hover {
  border-color: #b0c4c0;
}

.tc-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.tc-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}

.tc-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.tc-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.tc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.tc-badge.cn {
  background: #e6f4f1;
  color: var(--brand-dark);
}

.tc-badge.vpn {
  background: #fef3ee;
  color: var(--accent);
}

.tc-badge.advanced {
  background: #f7ead5;
  color: #8a4d14;
}

.tc-price {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.tc-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.tc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.tc-stars {
  color: #d28a19;
  letter-spacing: 0;
  font-size: 12px;
}

.tc-rating strong {
  color: var(--text);
  font-size: 12px;
}

.tc-rating em {
  font-style: normal;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.tc-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tc-tags span {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  background: var(--bg);
}

.tc-foot {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.tc-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-dark);
}

.tc-link.primary {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--soft);
  border-radius: 4px;
  color: var(--brand-dark);
}

.tc-link.primary:hover {
  background: var(--brand);
  color: #fff;
}

/* 无结果提示 */
.no-results {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 32px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.daily-update-card {
  display: block;
  margin: 0 0 12px;
  padding: 12px 13px;
  background: var(--soft);
  border: 1px solid #c8ded6;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.daily-update-card span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.daily-update-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.daily-update-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.not-found {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.not-found h1 {
  max-width: 620px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.not-found-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.not-found-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.not-found-grid h2 {
  font-size: 16px;
  margin: 0 0 7px;
}

.not-found-grid p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .ai-home-layout {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .not-found-grid {
    grid-template-columns: 1fr;
  }
}
