:root {
  --bg-page: #faf7f2;
  --bg-surface: #ffffff;
  --bg-tint: #f3ede3;
  --bg-deep: #1e242b;
  --ink-main: #231f20;
  --ink-muted: #5f5852;
  --ink-soft: #857d75;
  --brand-orange: #df6316;
  --brand-orange-dark: #bf500d;
  --brand-orange-soft: #fff1e6;
  --brand-blue: #1c6fb8;
  --brand-blue-soft: #eaf3fb;
  --border-light: #e8dfd2;
  --border-strong: #d8ccbc;
  --gi-low-bg: #e7f6ec;
  --gi-low-fg: #1d6f42;
  --gi-mid-bg: #fef4dd;
  --gi-mid-fg: #9c6500;
  --gi-high-bg: #fdebe8;
  --gi-high-fg: #b43624;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(35, 31, 32, 0.05);
  --shadow-md: 0 10px 28px rgba(35, 31, 32, 0.08);
  --container-w: 1180px;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-main);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-dark);
}

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

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
}

.header-search input {
  border: none;
  background: transparent;
  width: 150px;
  font-size: 0.875rem;
  color: var(--ink-main);
  outline: none;
}

.header-search button {
  border: none;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

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

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

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

.mobile-nav {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 16px 0 20px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9375rem;
}

.mobile-search button {
  border: none;
  border-radius: 10px;
  background: var(--brand-orange);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

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

.mobile-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-page);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.mobile-links a.is-active {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-dark);
}

/* Homepage Verbatim Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #fff3e6 0%, #f5efe5 60%, #edf5fc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announce-badge {
  flex-shrink: 0;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.announce-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-main);
  line-height: 1.5;
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--brand-orange-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--ink-main);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange-dark);
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.gi-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}

.badge-gi-low {
  background: var(--gi-low-bg);
  color: var(--gi-low-fg);
}

.badge-gi-mid {
  background: var(--gi-mid-bg);
  color: var(--gi-mid-fg);
}

.badge-gi-high {
  background: var(--gi-high-bg);
  color: var(--gi-high-fg);
}

/* Hero */
.hero-section {
  padding: 28px 0 36px;
}

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

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: #2c241d;
  box-shadow: var(--shadow-md);
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, rgba(20, 15, 11, 0.12) 0%, rgba(20, 15, 11, 0.58) 52%, rgba(20, 15, 11, 0.88) 100%);
  color: #fff;
}

.hero-overlay h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 0.96875rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-orange-dark);
  line-height: 1.2;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Hero Picker Card */
.picker-card {
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.picker-kicker,
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.picker-head h2 {
  margin: 4px 0 4px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.picker-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

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

.picker-label span,
.tool-form-row label span,
.tool-form-stack label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

select,
input[type="number"],
input[type="search"] {
  font-family: inherit;
}

.picker-label select,
.tool-form-row select,
.tool-form-row input,
.tool-form-stack select,
.tool-form-stack input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.9rem;
  color: var(--ink-main);
  background: var(--bg-page);
}

.picker-result {
  background: var(--bg-page);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  flex: 1;
}

.pr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pr-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-orange-dark);
  background: var(--brand-orange-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.pr-kcal {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.pr-title {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.pr-desc {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.pr-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-main);
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
}

.picker-more-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.picker-more-link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-tinted {
  background: var(--bg-tint);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.3;
}

.head-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange-dark);
}

.section-link:hover {
  text-decoration: underline;
}

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e1d5;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(35, 31, 32, 0.82);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

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

.card-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Channel Strip */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.channel-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.channel-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-orange);
}

.channel-tile-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.channel-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-tile-body {
  padding: 14px;
}

.channel-tile-body h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.channel-tile-sub {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-orange-dark);
}

.channel-tile-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

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

.showcase-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
}

.col-heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-orange-soft);
  font-size: 1.15rem;
  color: var(--ink-main);
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-light);
}

.compact-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.tag-region {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.compact-item h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.compact-item h4 a:hover {
  color: var(--brand-orange-dark);
}

.compact-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

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

.trio-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trio-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.trio-head h3 a:hover {
  color: var(--brand-orange-dark);
}

.trio-head span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.trio-cover {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

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

.trio-list li {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.trio-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.trio-list a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.trio-list a:hover {
  color: var(--brand-orange-dark);
}

.trio-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Air Fryer Cards */
.af-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.af-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.af-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.af-top h3 {
  margin: 0;
  font-size: 1.05rem;
}

.af-cat {
  font-size: 0.75rem;
  background: var(--bg-tint);
  color: var(--ink-muted);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.af-metrics {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.af-temp,
.af-temp-inline {
  color: var(--brand-orange-dark);
  font-weight: 800;
}

.af-temp {
  font-size: 1.35rem;
}

.af-time {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.af-tip,
.af-oil {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.af-oil {
  color: var(--gi-low-fg);
  background: var(--gi-low-bg);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table th {
  background: #f8f3eb;
  color: var(--ink-main);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #fdfbf8;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.macro-cell {
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.tip-cell {
  color: var(--ink-muted);
  min-width: 210px;
}

/* Page Banner & Breadcrumb */
.page-banner {
  background: linear-gradient(135deg, #f6eee3 0%, #faf7f2 60%, #edf4fb 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
}

.banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.banner-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

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

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.25;
}

.banner-sub {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-orange-dark);
}

.banner-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 720px;
}

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

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

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-main);
}

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

.article-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.list-card-img {
  display: block;
  height: 100%;
  min-height: 180px;
}

.list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-body {
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.list-card-title a:hover {
  color: var(--brand-orange-dark);
}

.list-card-sub {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.mini-tag {
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 2px 9px;
  border-radius: 999px;
}

.mini-tag:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange-dark);
}

.meta-date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-box h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-orange-soft);
}

.side-tool-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-tool-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-page);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-main);
  transition: background-color 0.2s, color 0.2s;
}

.side-tool-links a:hover {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-dark);
}

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

.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rank-list a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.rank-list a:hover {
  color: var(--brand-orange-dark);
}

.rank-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Article Detail */
.article-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.article-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.meta-muted {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.article-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
}

.article-subtitle {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--ink-muted);
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-page);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.article-cover {
  margin: 24px 0;
}

.article-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 440px;
  object-fit: cover;
}

.article-cover figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.article-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-main);
}

.article-prose h2,
.article-prose h3 {
  margin: 26px 0 10px;
  line-height: 1.35;
  color: var(--ink-main);
}

.article-prose h3 {
  font-size: 1.2rem;
  padding-left: 12px;
  border-left: 4px solid var(--brand-orange);
}

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

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

.article-prose li {
  margin-bottom: 6px;
}

.pro-tips-box {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff5eb 0%, #f5f9fe 100%);
  border: 1px solid #f2d5bd;
}

.pro-tips-box h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--brand-orange-dark);
}

.pro-tips-box p {
  margin: 0;
  font-size: 0.9375rem;
}

.article-footer-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.related-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.related-block h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

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

.related-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-page);
}

.related-img {
  display: block;
  aspect-ratio: 4 / 3;
}

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

.related-body {
  padding: 12px;
}

.related-body h3 {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Atlas & Tools */
.atlas-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.atlas-live-search input,
.page-search-form input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink-main);
}

.page-search-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 680px;
}

.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.result-count {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.tool-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tool-panel-head {
  margin-bottom: 20px;
}

.tool-panel-head h2 {
  margin: 4px 0 6px;
  font-size: 1.4rem;
}

.tool-panel-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.tool-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.tool-btn-wrap .btn {
  width: 100%;
  min-height: 41px;
}

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

.sub-tool {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sub-tool h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.tool-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-output {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}

.calc-output ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.calc-output li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.92rem;
}

.calc-output li:last-child {
  border-bottom: none;
}

.big-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95rem;
}

.big-metric strong {
  font-size: 1.25rem;
  color: var(--brand-orange-dark);
}

.calc-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.plate-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plate-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.plate-card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.plate-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
  color: var(--brand-orange-dark);
}

.plate-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

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

.sub-section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

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

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

.about-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.about-list {
  padding-left: 20px;
  margin: 12px 0 0;
}

.about-list li {
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.84);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 28px;
  padding: 48px 20px 36px;
}

.footer-logo {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #fff;
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

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

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

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.beian-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beian-link:hover {
  color: #ffb17a;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .main-nav,
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .section {
    padding: 32px 0;
  }
  .hero-section {
    padding: 18px 0 24px;
  }
  .hero-media,
  .hero-img {
    min-height: 290px;
  }
  .hero-overlay {
    padding: 20px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-strip,
  .dual-showcase,
  .trio-grid,
  .af-grid,
  .banner-grid,
  .dual-tool-grid,
  .plate-result,
  .about-layout,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .list-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .list-card-img {
    min-height: 190px;
    max-height: 220px;
  }
  .list-card-body {
    padding: 16px;
  }
  .tool-form-row {
    grid-template-columns: 1fr;
  }
  .article-detail,
  .tool-panel {
    padding: 20px 16px;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 15px 24px;
  }
  .page-search-form {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 42px;
  }
  .picker-controls {
    grid-template-columns: 1fr;
  }
  .mobile-links {
    grid-template-columns: 1fr;
  }
}
