/*
Theme Name: AIGCWhy
Theme URI: https://aigcwhy.com/
Author: AIGCWhy
Description: AIGCWhy 内容门户主题，基于网站原型实现。
Version: 0.3.1
Text Domain: aigcwhy
*/

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Variables */
:root {
  --primary: #2563eb;
  --primary-deep: #0f172a;
  --accent: #38bdf8;
  --orange: #f97316;
  --orange-soft: #fff7ed;
  --bg-soft: #eff6ff;
  --text: #334155;
  --border: #e2e8f0;
  --white: #ffffff;
  --muted: #64748b;
  --panel: #f8fbff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 40px rgba(37, 99, 235, 0.14);
  --shadow-orange: 0 14px 30px rgba(249, 115, 22, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
}

/* Base */
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 1) 240px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    var(--white);
  background-size: auto, 24px 24px, 24px 24px, auto;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.empty-state {
  padding: 36px;
  text-align: center;
}

.content-entry {
  padding: 30px;
}

.content-entry > * + * {
  margin-top: 1.2em;
}

.content-entry a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-entry ul,
.content-entry ol {
  padding-left: 1.5em;
}

.content-entry img {
  height: auto;
  border-radius: var(--radius-sm);
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-meta-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.product-meta-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.product-meta-grid dd {
  margin: 4px 0 0;
  color: var(--primary-deep);
  font-weight: 600;
}

.pagination-wrap {
  margin-top: 28px;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-wrap .page-numbers {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.pagination-wrap .current {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .product-meta-grid {
    grid-template-columns: 1fr;
  }
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-deep);
  line-height: 1.25;
}

p {
  color: var(--text);
}

/* Layout */
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

.section-block {
  padding: 28px 0 60px;
}

.section-tint {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.85), rgba(255, 255, 255, 0.95));
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.main-column,
.article-main {
  min-width: 0;
}

.two-column-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 26px;
  align-items: start;
}

.news-column,
.deep-column {
  display: grid;
  align-content: start;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.card-grid.three,
.article-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow-strong);
}

.site-logo-text {
  display: grid;
  gap: 2px;
}

.site-logo-text strong {
  font-size: 19px;
  color: var(--primary-deep);
}

.site-logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  list-style: none;
}

.main-nav li {
  flex: 0 0 auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--bg-soft);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 240px;
  width: 240px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  outline: 0;
}

.search-form button,
.header-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.search-form button {
  height: 100%;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
}

.header-btn {
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.header-btn.ghost {
  border-color: var(--border);
  color: var(--primary-deep);
}

.header-btn.primary,
.button.primary {
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.button.secondary {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
}

.button,
.header-btn {
  min-height: 44px;
  padding: 0 18px;
}

.button.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary-deep);
  border-radius: 999px;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
}

/* Components */
.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.section-more {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.pill.orange,
.orange-badge {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.orange-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.meta-row,
.article-meta,
.study-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.study-meta {
  margin-top: 14px;
}

.card-category {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb strong {
  color: var(--primary-deep);
}

.sidebar {
  display: grid;
  gap: 14px;
  align-self: start;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.sidebar-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.ranked {
  counter-reset: sidebar-rank;
}

.ranked li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.ranked li::before {
  counter-increment: sidebar-rank;
  content: counter(sidebar-rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-card-body {
  display: grid;
  gap: 10px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: var(--white);
  box-shadow: var(--shadow-orange);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.mobile-menu-inner a {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
}

/* Home Page */
.hero-section {
  padding: 26px 0 20px;
}

.hero-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.hero-main,
.hero-side-panel,
.news-card-large,
.cta-banner,
.featured-question,
.tool-rank-card,
.matrix-card,
.roadmap-step,
.scenario-card,
.pick-column,
.headline-item,
.stream-item,
.deep-card,
.theme-path-card,
.info-card,
.topic-card {
  position: relative;
  overflow: hidden;
}

.hero-main {
  min-height: 408px;
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.34), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(249, 115, 22, 0.11), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-main h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-bottom: 14px;
  color: var(--primary-deep);
  font-size: 23px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.hero-search {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  outline: 0;
}

.hero-search button {
  min-width: 124px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.hot-searches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hot-searches a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
  font-size: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics div,
.theme-cover-stats div,
.channel-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics strong,
.theme-cover-stats strong,
.channel-stats strong {
  display: block;
  color: var(--primary-deep);
  font-size: 28px;
}

.hero-side-panel {
  min-height: 408px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.dashboard-block + .dashboard-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-head h2 {
  font-size: 24px;
}

.dashboard-block h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.dashboard-card {
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.9));
}

.dashboard-card a {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.dashboard-list,
.dashboard-mini-news {
  display: grid;
  gap: 10px;
  list-style: none;
}

.dashboard-list li {
  padding-left: 18px;
  position: relative;
}

.dashboard-list li::before,
.pick-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.headline-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
  align-items: stretch;
}

.news-card-large,
.headline-item,
.featured-question,
.tool-rank-card,
.matrix-card,
.roadmap-step,
.scenario-card,
.pick-column,
.stream-item,
.deep-card,
.topic-card,
.info-card {
  padding: 24px;
}

.news-card-large {
  border-left: 4px solid var(--orange);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card-large h3 {
  margin: 12px 0;
  font-size: 34px;
  line-height: 1.12;
}

.news-card-large .meta-row {
  margin-top: auto;
  padding-top: 16px;
}

.headline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.headline-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.headline-subcard {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.85), rgba(255, 255, 255, 0.98));
}

.headline-subcard h4 {
  font-size: 22px;
  line-height: 1.22;
  color: var(--primary-deep);
}

.headline-subcard p:not(.card-category) {
  color: var(--text);
}

.headline-subcard .meta-row {
  padding-top: 6px;
}

.headline-list,
.news-stream,
.deep-observation {
  display: grid;
  gap: 18px;
}

.stream-item,
.deep-card {
  min-height: 154px;
}

.headline-list {
  height: 100%;
  align-content: stretch;
}

.headline-item h3,
.stream-item h3,
.deep-card h3,
.topic-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.28;
}

.stream-item span,
.deep-card span {
  color: var(--muted);
  font-size: 14px;
}

.question-rank {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.featured-question {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.featured-question h3 {
  margin: 12px 0;
  font-size: 30px;
}

.question-grid {
  display: contents;
}

.question-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.question-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
}

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

.tool-rank-card {
  border-top: 3px solid var(--orange);
}

.tool-rank-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.tool-rank-card ol {
  counter-reset: tool-rank;
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 18px;
  list-style: none;
}

.tool-rank-card li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
}

.tool-rank-card li::before {
  counter-increment: tool-rank;
  content: counter(tool-rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.tool-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-actions a {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

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

.matrix-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.matrix-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.matrix-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.learning-roadmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-step {
  min-height: 220px;
  border-top: 3px solid var(--orange);
}

.roadmap-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.scenario-card {
  display: grid;
  gap: 10px;
}

.scenario-card a {
  margin-top: 6px;
  color: var(--primary);
  font-weight: 700;
}

.editor-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pick-column {
  display: grid;
  gap: 14px;
}

.pick-column h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 22px;
}

.pick-column ul {
  display: grid;
  gap: 12px;
  list-style: none;
}

.pick-column li {
  padding-left: 16px;
  position: relative;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.2), transparent 24%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.cta-banner .button.primary {
  min-width: 160px;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .section-kicker {
  color: var(--white);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-final-cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Column Page */
.channel-hero {
  padding: 16px 0 8px;
}

.channel-hero-inner {
  margin-top: 14px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at left bottom, rgba(249, 115, 22, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.channel-hero-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 50px);
}

.channel-summary {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 18px;
}

.channel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.channel-headline-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.channel-headline-list {
  display: grid;
  gap: 16px;
}

.channel-headline-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.channel-headline-card h3 {
  margin: 6px 0 10px;
  font-size: 24px;
  line-height: 1.22;
}

.channel-headline-card p:not(.card-category) {
  color: var(--text);
}

.channel-headline-main {
  border-left: 4px solid var(--orange);
}

.channel-headline-main h3 {
  font-size: 28px;
}

.column-feature-list {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.article-card-large,
.article-card-horizontal,
.article-card {
  padding: 22px;
}

.article-card-large {
  border-left: 4px solid var(--orange);
}

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

.article-card-horizontal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.7));
}

.article-list-grid .article-card h3 {
  font-size: 20px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inner-channel-section {
  padding: 18px 0 24px;
}

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.pagination a.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Content Page */
.content-shell {
  padding-top: 4px;
}

.content-shell .content-with-sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
  justify-content: space-between;
}

.article-main {
  width: 100%;
  max-width: 780px;
}

.article-header-block {
  margin-bottom: 22px;
}

.article-header-media {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-label-row,
.article-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.article-header-block h1 {
  margin: 14px 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  max-width: 14ch;
}

.article-share {
  margin-top: 16px;
}

.article-share a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.summary-card {
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.summary-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.summary-card ul {
  padding-left: 20px;
}

.summary-card li {
  margin: 6px 0;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body > * {
  min-width: 0;
}

.article-body p,
.article-body li,
.article-body td,
.article-body th {
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-header-block h1,
.article-body h2,
.article-body h3,
.summary-card li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body section {
  padding-bottom: 8px;
}

.article-body h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.18;
}

.article-body h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
}

.article-body li {
  margin: 6px 0;
}

.article-body blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: var(--orange-soft);
  color: var(--primary-deep);
}

.notice-box,
.conclusion-panel,
.scenario-case,
.warning-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.notice-box {
  background: rgba(239, 246, 255, 0.95);
}

.conclusion-panel {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.96));
  border-color: rgba(249, 115, 22, 0.18);
}

.conclusion-panel strong,
.notice-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
}

.scenario-case {
  background: rgba(255, 255, 255, 0.96);
}

.warning-card {
  background: rgba(248, 250, 252, 0.98);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .article-body table,
.table-scroll table,
.article-body .table-scroll table {
  width: max-content;
  min-width: 620px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.article-body th,
.article-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--bg-soft);
  color: var(--primary-deep);
}

.mid-article-cta {
  margin: 8px 0;
}

.toc-card {
  position: sticky;
  top: 96px;
  padding: 18px 18px 16px;
}

.toc-nav {
  display: grid;
  gap: 8px;
}

.toc-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.toc-nav a.is-active,
.toc-nav a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0 8px;
}

.prev-next a {
  width: 50%;
  color: var(--primary);
  font-weight: 600;
}

.inner-section {
  padding: 20px 0 24px;
}

.article-cta {
  margin-top: 8px;
}

/* Theme Page */
.theme-cover {
  padding: 12px 0 10px;
}

.theme-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  margin-top: 14px;
  align-items: start;
}

.theme-cover-copy {
  padding: 30px 30px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at left bottom, rgba(249, 115, 22, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-cover-copy h1 {
  margin-bottom: 12px;
  max-width: 12ch;
  font-size: clamp(44px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.theme-cover-text {
  margin-bottom: 18px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.theme-cover-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.theme-cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-path-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.theme-path-card h2 {
  margin-bottom: 14px;
}

.theme-path-flow {
  display: grid;
  gap: 8px;
  counter-reset: theme-step;
}

.theme-path-flow span {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--primary-deep);
  font-weight: 700;
}

.theme-path-flow span::before {
  counter-increment: theme-step;
  content: "0" counter(theme-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.anchor-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}

.anchor-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary-deep);
}

.info-card h3 {
  margin-bottom: 10px;
}

.phase-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phase-cards.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card h3,
.content-card h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--primary-deep);
}

.faq-block {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--primary-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
}

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

.faq-item p {
  padding: 0 20px 18px;
}

/* Responsive */
@media (max-width: 1180px) {
  .main-nav,
  .search-form,
  .header-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .search-form {
    min-width: 220px;
  }

  .card-grid.three,
  .article-list-grid,
  .topic-grid,
  .tool-grid,
  .tool-ranking,
  .topic-matrix,
  .scenario-grid,
  .phase-cards.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-roadmap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-news-layout,
  .headline-grid,
  .two-column-news,
  .content-with-sidebar,
  .theme-cover-grid,
  .channel-headline-grid,
  .phase-cards,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .channel-stats,
  .editor-picks,
  .theme-cover-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .question-grid {
    display: contents;
  }

  .featured-question {
    grid-column: 1 / -1;
  }

  .toc-card {
    position: static;
  }

  .prev-next {
    flex-direction: column;
  }

  .prev-next a {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .section-block {
    padding: 24px 0 42px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .card-grid.three,
  .article-list-grid,
  .topic-grid,
  .tool-grid,
  .tool-ranking,
  .topic-matrix,
  .scenario-grid,
  .learning-roadmap,
  .hero-metrics,
  .channel-stats,
  .question-grid,
  .editor-picks,
  .theme-cover-stats,
  .phase-cards,
  .phase-cards.four-up {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side-panel,
  .news-card-large,
  .featured-question,
  .headline-item,
  .stream-item,
  .deep-card,
  .tool-rank-card,
  .matrix-card,
  .roadmap-step,
  .scenario-card,
  .pick-column,
  .topic-card,
  .info-card,
  .theme-path-card,
  .channel-hero-inner,
  .theme-cover-copy,
  .article-header-media,
  .article-card-large,
  .article-card-horizontal,
  .article-card,
  .cta-banner,
  .cta-box {
    padding: 20px;
  }

  .hero-main,
  .hero-side-panel {
    min-height: auto;
  }

  .hero-search,
  .cta-banner,
  .cta-box,
  .footer-inner,
  .cta-actions,
  .tool-actions,
  .theme-cover-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-main h1,
  .theme-cover-copy h1,
  .article-header-block h1,
  .channel-hero-copy h1 {
    font-size: 32px;
  }

  .theme-cover-copy h1,
  .article-header-block h1 {
    max-width: none;
  }

  .hero-subtitle,
  .channel-summary,
  .theme-cover-text {
    font-size: 18px;
  }

  .news-card-large h3,
  .featured-question h3,
  .article-card-large h3 {
    font-size: 24px;
  }

  .breadcrumb {
    padding-top: 14px;
    flex-wrap: wrap;
  }

  .anchor-nav,
  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .content-shell .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .article-main {
    max-width: 100%;
  }

  .article-body p,
  .article-body li,
  .article-body td,
  .article-body th {
    font-size: 16px;
  }

  .table-scroll .article-body table,
  .table-scroll table,
  .article-body .table-scroll table {
    min-width: 560px;
  }
}

@media (max-width: 768px) {
  .page-main {
    padding-top: 12px;
  }

  .hero-section,
  .theme-cover,
  .channel-hero {
    padding-top: 12px;
  }

  .hero-main h1,
  .theme-cover-copy h1,
  .article-header-block h1,
  .channel-hero-copy h1 {
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-subtitle,
  .theme-cover-text,
  .channel-summary {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .channel-headline-card {
    padding: 18px;
  }

  .channel-headline-card h3,
  .channel-headline-main h3 {
    font-size: 22px;
  }

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

  .featured-question {
    grid-column: auto;
  }

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