/* 通辽教育网 (www.tledu.net.cn) — Local Responsive Stylesheet */
:root {
  --brand-blue: #1565c0;
  --brand-blue-dark: #0d47a1;
  --brand-sky: #2589d0;
  --brand-orange: #e66a00;
  --brand-orange-light: #fff3e6;
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --bg-tint: #eef4fb;
  --bg-navy: #0f233c;
  --text-main: #1e293b;
  --text-sub: #475569;
  --text-muted: #64748b;
  --border: #dce6f2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 60, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 35, 60, 0.08);
  --max-w: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--brand-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 35, 60, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 0;
}

.brand-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-block;
  padding: 8px 11px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--brand-blue);
  background: var(--bg-tint);
  font-weight: 600;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  width: 210px;
}

.header-search input {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
  min-width: 0;
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--brand-blue);
  color: #fff;
  font-size: 13px;
  padding: 7px 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--brand-blue-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
}

/* Announcement Banner (verbatim text directly below nav) */
.announce-bar {
  background: linear-gradient(90deg, #e8f2fc 0%, #f5f9ff 60%, #fff7ef 100%);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}

.announce-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announce-tag {
  background: var(--brand-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-text {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.announce-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.announce-links .sep {
  color: #cbd5e1;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}

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

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

.btn-accent {
  background: var(--brand-orange);
  color: #fff;
}

.btn-accent:hover {
  background: #cc5d00;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--brand-blue);
  border-color: #b7d0ec;
}

.btn-outline:hover {
  background: var(--bg-tint);
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  line-height: 1.5;
}

.badge-blue {
  background: #e3f0fd;
  color: var(--brand-blue-dark);
}

.badge-orange {
  background: var(--brand-orange-light);
  color: #c25600;
}

.badge-soft {
  background: #f1f5f9;
  color: var(--text-sub);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #eef5fd 60%, #e7f0fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #dcebfa;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--bg-navy);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-sub);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-subjects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.subj-label {
  font-size: 13px;
  color: var(--text-muted);
}

.subj-pill {
  display: inline-block;
  font-size: 13px;
  padding: 3px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-sub);
}

.subj-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--bg-tint);
}

.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-heading {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--bg-navy);
}

.stage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #f9fbfe;
  color: var(--text-main);
}

.stage-card:hover {
  border-color: var(--brand-blue);
  background: #eef5fd;
  transform: translateY(-1px);
}

.stage-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}

.stage-primary .stage-badge { background: #1e88e5; }
.stage-junior .stage-badge { background: #1565c0; }
.stage-senior .stage-badge { background: #e66a00; }

.stage-info {
  min-width: 0;
}

.stage-info strong {
  display: block;
  font-size: 15px;
  color: var(--bg-navy);
}

.stage-info span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 20px;
  color: var(--brand-blue);
  line-height: 1.2;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section-block {
  padding: 40px 0;
}

.section-tinted {
  background: #ebf2fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  margin: 0;
  font-size: 22px;
  color: var(--bg-navy);
  line-height: 1.35;
}

.section-sub {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: #9dc2ea;
  box-shadow: var(--shadow-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-time {
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.card-title a {
  color: var(--bg-navy);
}

.card-title a:hover {
  color: var(--brand-blue);
}

.card-summary {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
  flex-wrap: wrap;
}

.grade-tag {
  color: var(--text-muted);
}

.read-link {
  font-weight: 600;
  color: var(--brand-blue);
}

/* Three Stage Columns */
.stages-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stage-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  color: #fff;
}

.col-header h3 {
  margin: 0;
  font-size: 17px;
}

.col-header span {
  font-size: 12px;
  opacity: 0.9;
}

.col-header a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.col-xiaoxue { background: linear-gradient(135deg, #1e88e5, #259bd7); }
.col-chuzhong { background: linear-gradient(135deg, #1565c0, #1976d2); }
.col-gaozhong { background: linear-gradient(135deg, #d95f00, #f07d19); }

.article-list {
  list-style: none;
  margin: 0;
  padding: 8px 18px 14px;
}

.article-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.article-list li:last-child {
  border-bottom: 0;
}

.list-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 5px;
}

.list-desc {
  margin: 4px 0 6px;
  font-size: 13.5px;
  color: var(--text-sub);
}

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

/* AI Study Section */
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.box-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.box-title-row h3,
.ai-articles-box h3 {
  margin: 0;
  font-size: 17px;
  color: var(--bg-navy);
}

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

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prompt-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.prompt-card h4,
.prompt-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--bg-navy);
}

.prompt-code,
.prompt-output {
  background: #f6f9fd;
  border: 1px solid #dbe6f4;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 10px;
  flex: 1;
}

.prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-copy {
  border: 1px solid var(--brand-blue);
  background: #fff;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy:hover,
.btn-copy.copied {
  background: var(--brand-blue);
  color: #fff;
}

.ai-articles-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.compact-cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.compact-cards li {
  border-top: 1px solid #eef2f7;
  padding: 12px 0;
}

.compact-cards li:first-child {
  border-top: 0;
  padding-top: 0;
}

.compact-cards strong {
  display: block;
  font-size: 15px;
  color: var(--bg-navy);
  margin-bottom: 4px;
}

.compact-cards a:hover strong {
  color: var(--brand-blue);
}

.compact-cards p {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--text-sub);
}

.compact-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Dual Editorial Grid */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.editorial-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.compact-head {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-tint);
}

/* Tools Banner */
.tools-banner {
  background: linear-gradient(135deg, #0f2c52 0%, #15539e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.tools-banner h2 {
  margin: 10px 0 10px;
  font-size: 24px;
  color: #fff;
}

.tools-banner p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

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

.tool-mini {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #fff;
}

.tool-mini:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tool-mini strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.tool-mini span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

/* Inner Page Banner & Breadcrumb */
.page-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eef5fd 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page-title {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--bg-navy);
  line-height: 1.3;
}

.page-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-sub);
  max-width: 760px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.filter-chip {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-sub);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Channel Layout */
.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.channel-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.channel-card-title a {
  color: var(--bg-navy);
}

.channel-card-title a:hover {
  color: var(--brand-blue);
}

.channel-card-summary {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-sub);
}

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

.mini-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.mini-tag:hover {
  background: var(--bg-tint);
  color: var(--brand-blue);
}

.channel-prompts {
  margin-top: 34px;
}

/* Sidebar */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--bg-navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-tint);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li + li {
  margin-top: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #f8fafd;
}

.sidebar-nav a.is-active,
.sidebar-nav a:hover {
  background: #eaf3fd;
  border-color: #b7d2f0;
}

.sidebar-nav strong {
  display: block;
  font-size: 14px;
  color: var(--bg-navy);
}

.sidebar-nav span {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-highlight {
  background: linear-gradient(180deg, #f2f7fe 0%, #ffffff 100%);
  border-color: #bfd6f2;
}

.sidebar-highlight p {
  font-size: 13.5px;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.tool-links,
.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-links li {
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}

.tool-links li:last-child { border-bottom: 0; }

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}

.hot-list li:last-child { border-bottom: 0; }

.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-tint);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Article Detail */
.article-wrapper {
  padding: 28px 0 48px;
}

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

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-title {
  margin: 10px 0 14px;
  font-size: 28px;
  line-height: 1.35;
  color: var(--bg-navy);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 18px;
}

.article-lead {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #f5f9fe;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--text-sub);
}

.takeaways-box {
  background: #fffaf3;
  border: 1px solid #f6d7b0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.takeaways-title {
  font-size: 15px;
  font-weight: 700;
  color: #b85000;
  margin-bottom: 8px;
}

.takeaways-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-main);
}

.takeaways-box li + li {
  margin-top: 5px;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #243242;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  color: var(--bg-navy);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bg-tint);
}

.article-body h3 {
  margin: 20px 0 10px;
  font-size: 17.5px;
  color: var(--brand-blue-dark);
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

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

.article-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: #f4f8fd;
  border-left: 4px solid var(--brand-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-sub);
}

.article-body table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.article-body th,
.article-body td,
.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-body th,
.data-table th {
  background: var(--bg-tint);
  color: var(--bg-navy);
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-muted);
}

.prev-next-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pn-item {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pn-right {
  text-align: right;
}

.pn-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pn-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-navy);
}

.pn-empty {
  font-size: 13.5px;
  color: #94a3b8;
}

.related-section {
  margin-top: 30px;
}

.related-section h2 {
  margin: 0 0 14px;
  font-size: 19px;
  color: var(--bg-navy);
}

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

.related-card {
  display: block;
  background: #f9fbfe;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.related-card:hover {
  border-color: var(--brand-blue);
  background: #eef5fd;
}

.related-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 15px;
  color: var(--bg-navy);
}

.related-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* Tools Page */
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.tool-header h2 {
  margin: 8px 0 8px;
  font-size: 22px;
  color: var(--bg-navy);
}

.tool-header p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-sub);
}

.fufen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #c5d6ea;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
}

.form-row-inline,
.prompt-builder-grid,
.eb-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.eb-controls {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) auto;
  margin-bottom: 14px;
}

.eb-controls .form-row {
  margin-bottom: 0;
}

.tool-result {
  background: linear-gradient(135deg, #eef5fd 0%, #f8fbff 100%);
  border: 1px solid #bfd6f2;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-score-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

.result-score {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1.25;
  margin: 6px 0 10px;
}

.result-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-sub);
}

.tool-ssr-guide {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.tool-ssr-guide h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--bg-navy);
}

.tool-ssr-guide p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pomo-box {
  text-align: center;
  padding: 14px 0 4px;
}

.pomo-modes,
.pomo-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pomo-display {
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
  font-variant-numeric: tabular-nums;
}

.pomo-status {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Search & About & 404 */
.page-search-form {
  display: flex;
  gap: 10px;
  margin: 16px 0 14px;
  max-width: 640px;
}

.page-search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #b7cde6;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.search-count {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-sub);
}

.empty-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}

.nf-code {
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin-bottom: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 300px;
  gap: 24px;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.about-card h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  color: var(--bg-navy);
}

.about-card h2:first-child {
  margin-top: 0;
}

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

.about-metrics div {
  background: #f5f9fe;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.about-metrics strong {
  display: block;
  font-size: 18px;
  color: var(--brand-blue);
}

.about-metrics span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-navy);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 38px 20px 30px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 7px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-col a:hover {
  color: #ffb366;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a:hover {
  color: #ffb366;
}

/* Responsive Breakpoints (Tablet & 375px Mobile) */
@media (max-width: 1024px) {
  .hero-grid,
  .ai-layout,
  .tools-banner,
  .channel-layout,
  .article-layout,
  .about-grid,
  .fufen-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stages-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-search {
    width: 180px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-list a {
    display: block;
    padding: 10px 12px;
  }
  .header-search {
    width: 100%;
  }
  .featured-grid,
  .dual-grid,
  .prompt-grid,
  .related-grid,
  .prev-next-nav,
  .footer-grid,
  .form-row-inline,
  .prompt-builder-grid,
  .eb-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .pn-right {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo img {
    height: 44px;
  }
  .hero-section {
    padding: 24px 0 28px;
  }
  .hero-title {
    font-size: 23px;
  }
  .page-title,
  .article-title {
    font-size: 22px;
  }
  .article-main,
  .tool-card,
  .about-card,
  .editorial-box {
    padding: 18px 16px;
  }
  .tools-banner {
    padding: 20px 16px;
  }
  .tools-banner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-search-form {
    flex-direction: column;
  }
  .pomo-display {
    font-size: 44px;
  }
  .announce-links {
    display: none;
  }
}
