:root {
  color-scheme: light;
  --bg: #f6f8ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(248, 250, 255, 0.82);
  --text: #111827;
  --muted: #5f6f86;
  --line: #e3e9f5;
  --brand: #5b5ff7;
  --brand-dark: #2636d9;
  --accent: #16a8b8;
  --accent-warm: #ff7a1a;
  --soft: #eef3ff;
  --soft-2: #f6f8ff;
  --teal: #0f8f8a;
  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #14b8a6 100%);
  --gradient-warm: linear-gradient(135deg, #ff7a1a 0%, #f59e0b 100%);
  --shadow-soft: 0 14px 40px rgba(32, 43, 91, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 22px 56px rgba(32, 43, 91, 0.14);
  --max: 1192px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(91, 95, 247, 0.16), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 42%, #f8fbff 100%);
  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;
}

a:hover {
  color: var(--accent);
}

/* ===== HEADER ===== */
.site-header {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(320px, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 24px;
  /* Full-width with dynamic padding matching max-width layout */
  width: 100%;
  box-sizing: border-box;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-main);
  background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  width: fit-content;
}

.brand::before {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 9px 18px 9px 18px;
  background: linear-gradient(135deg, #13ce87 0%, #0ea5e9 100%);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.24);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
  font-weight: 700;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.language-menu {
  position: relative;
  width: min(100%, 170px);
}

.language-menu summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(210, 220, 240, 0.76);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 10px 30px rgba(32, 43, 91, 0.08);
  font-size: 15px;
  font-weight: 700;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::marker {
  content: "";
}

.language-menu[open] summary {
  border-color: rgba(91, 95, 247, 0.32);
}

.language-menu[open] summary .ti-chevron-down {
  transform: rotate(180deg);
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  font-size: 19px;
  line-height: 1;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 2px;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(210, 220, 240, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(32, 43, 91, 0.16);
  backdrop-filter: blur(20px);
}

.language-dropdown a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-dropdown a:hover,
.language-dropdown a.active {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
}

.site-nav a {
  color: rgba(17, 24, 39, 0.62);
  text-decoration: none;
  padding: 4px 0;
}

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

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

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: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  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: 12px;
  padding: 13px 15px;
  box-shadow: var(--shadow-soft);
}

.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;
}

.content-card:hover,
.category-portal-card:hover,
.scenario-portal-card:hover,
.domestic-tool-list a:hover,
.side-link-list a:hover,
.news-card:hover {
  border-color: rgba(14, 143, 154, 0.42);
  box-shadow: var(--shadow-hover);
}

/* ===== 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 var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.article-cover-preview span {
  color: var(--accent);
  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: var(--muted);
  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;
  color: var(--text);
}

.article-content p,
.article-content li {
  color: #334155;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25em;
}

/* ===== 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);
}

.source-list h2 {
  font-size: 14px;
}

.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);
}

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

.site-footer,
.home-section,
.content-card,
.tool-card,
.prompt-section,
.prompt-browse,
.prompt-search-card,
.prompt-hero,
.hx-block,
.hx-hero-main,
.hx-hero-side,
.lh-hero,
.lh-card,
.lh-list article {
  background: var(--surface);
  border-color: rgba(210, 220, 240, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

.ai-home-hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 24px 0 14px;
}

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

.hero-search-panel {
  border-color: var(--line);
  background: var(--surface);
  padding: 18px 20px;
}

.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: 10px;
  background: var(--surface);
}

.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: 10px;
  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: 10px;
  margin: 0 0 12px;
}

.home-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.home-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.home-search button {
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}

.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: #fff;
  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 {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 0 0 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 var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: var(--soft);
}

.daily-news-feature span {
  color: var(--accent);
  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: var(--muted);
  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: 10px;
  background: #fff;
  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));
}

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

.owned-tool-card {
  display: block;
  min-height: 146px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.95)),
    #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.owned-tool-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.owned-tool-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.owned-tool-card strong {
  font-size: 15px;
}

.owned-tool-card span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}

.owned-tool-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.owned-tool-card small {
  color: var(--brand-dark);
  font-size: 12px;
}

.product-tool-grid,
.planned-tool-grid {
  display: grid;
  gap: 12px;
}

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

.product-tool-card {
  display: block;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.product-tool-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.product-tool-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.product-tool-head h3,
.planned-tool-grid h3 {
  margin: 0;
  font-size: 16px;
}

.product-tool-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-tool-card p,
.planned-tool-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-tool-card div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.product-tool-card small {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
}

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

.planned-tool-grid article {
  padding: 14px;
  border: 1px dashed rgba(79, 70, 229, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.planned-tool-grid h3 {
  margin-bottom: 6px;
}

.model-guide-grid,
.playbook-grid,
.ranking-grid {
  display: grid;
  gap: 10px;
}

.model-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.model-guide-card,
.playbook-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.model-guide-card,
.playbook-card {
  display: block;
  padding: 12px;
}

.model-guide-card:hover,
.playbook-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.model-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}

.model-guide-head strong,
.playbook-card h3,
.ranking-card h3 {
  font-size: 14px;
  margin: 0;
}

.model-guide-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(79, 70, 229, 0.24);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 11px;
  line-height: 1.4;
}

.model-guide-card p,
.model-guide-card small,
.playbook-card p,
.ranking-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.model-guide-card .model-best {
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 700;
}

.model-guide-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
}

.playbook-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.playbook-card h3 {
  margin-bottom: 8px;
}

.playbook-card ol,
.ranking-card ol {
  margin: 0;
  padding-left: 18px;
}

.playbook-card ol {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.playbook-card li {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.ranking-grid {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.ranking-card {
  padding: 12px;
}

.ranking-card h3 {
  margin-bottom: 4px;
}

.ranking-card p {
  margin-bottom: 8px;
}

.ranking-card ol {
  display: grid;
  gap: 7px;
}

.ranking-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ranking-card a {
  display: inline-block;
  margin-right: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.ranking-card span {
  color: var(--muted);
}

.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: 12px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.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: 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(21, 45, 71, 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: #eef2ff;
}

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

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

.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: #eef2ff;
}

.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: 10px;
}

.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: #e0e7ff;
}

.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: #4f46e5;
  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 12px;
}

.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);
  background: var(--soft);
  color: var(--brand-dark);
}

/* Hero aside */
.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  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: rgba(238, 242, 255, 0.50);
  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 rgba(14, 143, 154, 0.42);
  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: 12px;
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.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: 12px;
  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;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 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 {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    width: calc(100% - 32px);
    padding: 12px 0;
  }

  .brand {
    font-size: 17px;
  }

  .brand::before {
    width: 24px;
    height: 24px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .site-header-actions {
    justify-self: end;
  }

  .language-menu {
    width: 132px;
  }

  .language-menu summary {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .language-dropdown {
    width: 168px;
  }

  .language-dropdown a {
    font-size: 13px;
  }

  .ai-home-hero,
  .ai-home-layout {
    width: calc(100% - 32px);
  }

  .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) {
  .scenario-grid,
  .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: 12px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
}

.scenario-card:hover {
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

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

.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: rgba(79, 70, 229, 0.42);
  color: var(--brand-dark);
  background: var(--soft);
}

.filter-tab.active {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

/* 工具卡片网格 */
.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: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--shadow-soft);
}

.tool-card:hover {
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

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

.tc-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  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: #ccfbf1;
  color: var(--teal);
}

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

.tc-badge.advanced {
  background: var(--soft-2);
  color: var(--brand-dark);
}

.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: #4f46e5;
  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: #fff;
}

.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: 7px;
  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 var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

/* =====================
   AnyToCopy 风格复刻页
   ===================== */

.atc-page {
  background: #f8fafc;
}

.atc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.atc-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.atc-logo span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.atc-logo strong {
  font-size: 17px;
  line-height: 1;
}

.atc-logo small {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.atc-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.atc-site-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.atc-hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.atc-mini-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.atc-mini-nav a,
.atc-platforms span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.atc-mini-nav a:hover {
  border-color: rgba(79, 70, 229, 0.36);
  background: var(--soft);
  color: var(--brand-dark);
}

.atc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 20px;
  align-items: center;
}

.atc-hero-copy {
  padding: 14px 0;
}

.atc-kicker,
.atc-section-head p,
.atc-cta p {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atc-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.atc-hero-copy p:not(.atc-kicker) {
  max-width: 660px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.8;
}

.atc-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.atc-platforms span {
  background: var(--soft);
  color: var(--brand-dark);
}

.atc-workbench {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-hover);
}

.atc-workbench label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.atc-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
}

.atc-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.atc-mode-tabs button.active {
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.atc-workbench textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f9fafb;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.atc-workbench textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

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

.atc-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.atc-options input {
  accent-color: var(--brand);
}

.atc-actions,
.atc-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atc-button,
.atc-result-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 8px 15px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.atc-button.secondary {
  background: #111827;
}

.atc-button.ghost,
.atc-result-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.atc-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.atc-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 10px;
  background: #f0fdfa;
}

.atc-result[hidden] {
  display: none;
}

.atc-result span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.atc-result strong {
  display: block;
  font-size: 14px;
}

.atc-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
}

.atc-result p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
}

.atc-result-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atc-result-files a,
.atc-result-files span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.atc-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 34px 0;
}

.atc-band {
  width: 100%;
  max-width: none;
  padding: 38px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef2ff;
}

.atc-section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.atc-section-head h2,
.atc-cta h2 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.22;
}

.atc-feature-grid,
.atc-tip-grid,
.atc-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.atc-card,
.atc-tip-grid article,
.atc-scenario-grid article,
.atc-steps article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.atc-card {
  min-height: 176px;
  padding: 18px;
}

.atc-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.atc-card h3,
.atc-tip-grid h3,
.atc-scenario-grid h3,
.atc-steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.atc-card p,
.atc-tip-grid p,
.atc-scenario-grid p,
.atc-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.atc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.atc-steps article {
  min-height: 166px;
  padding: 18px;
}

.atc-steps span {
  display: block;
  color: rgba(79, 70, 229, 0.18);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.atc-cta {
  width: min(calc(100% - 48px), var(--max));
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
}

.atc-cta p {
  color: #6366f1;
}

.atc-cta h2 {
  max-width: 820px;
  color: #fff;
}

.atc-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.atc-tip-grid article,
.atc-scenario-grid article {
  padding: 16px;
}

.atc-tool-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.atc-tool-matrix article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.atc-tool-matrix h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.atc-tool-matrix p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.atc-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 48px), var(--max));
  margin: 28px auto 0;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.atc-footer strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.atc-footer p {
  margin: 0;
  font-size: 13px;
}

.atc-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.atc-footer a {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .atc-hero-grid,
  .atc-feature-grid,
  .atc-tip-grid,
  .atc-scenario-grid,
  .atc-steps,
  .atc-tool-matrix {
    grid-template-columns: 1fr 1fr;
  }

  .atc-workbench {
    grid-column: 1 / -1;
  }

  .atc-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .atc-hero,
  .atc-section,
  .atc-cta,
  .atc-site-header,
  .atc-footer {
    width: calc(100% - 32px);
  }

  .atc-site-header,
  .atc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .atc-site-nav,
  .atc-footer nav {
    justify-content: flex-start;
  }

  .atc-hero {
    padding-top: 14px;
  }

  .atc-hero-grid,
  .atc-feature-grid,
  .atc-tip-grid,
  .atc-scenario-grid,
  .atc-steps,
  .atc-tool-matrix {
    grid-template-columns: 1fr;
  }

  .atc-mode-tabs,
  .atc-options {
    grid-template-columns: 1fr;
  }

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

  .atc-hero-copy p:not(.atc-kicker) {
    font-size: 15px;
  }

  .atc-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .atc-actions .atc-button {
    flex: 1 1 96px;
  }
}

.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: 12px;
  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;
  }
}
