:root {
  --brand-blue: #165DA0;
  --brand-blue-dark: #0F4375;
  --brand-sky: #2596D1;
  --brand-orange: #E66A00;
  --brand-orange-soft: #FFF4EB;
  --bg-page: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-alt: #EDF2F7;
  --text-main: #1E293B;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

*, *::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.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

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

.brand-link {
  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: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--brand-blue);
  background: #EBF4FC;
}

.nav-item.nav-accent {
  color: var(--brand-orange);
  font-weight: 600;
}

.nav-item.nav-accent:hover,
.nav-item.nav-accent.active {
  background: var(--brand-orange-soft);
  color: #C45600;
}

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

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  background: #F8FAFC;
  width: 210px;
}

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

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  padding: 0;
}

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

.mobile-nav {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 14px 0 18px;
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.mobile-search button {
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.mobile-links a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
}

.mobile-links a.active {
  background: #EBF4FC;
  color: var(--brand-blue);
  font-weight: 600;
}

/* Announcement Bar (Verbatim Required) */
.announce-bar {
  background: linear-gradient(90deg, #FFF7ED 0%, #FFFBF5 100%);
  border-bottom: 1px solid #FED7AA;
}

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

.announce-badge {
  display: inline-block;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 13.5px;
  color: #7C2D12;
  line-height: 1.5;
  word-break: break-word;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0E3A66 0%, #165DA0 55%, #1D75B8 100%);
  color: #FFFFFF;
  padding: 38px 0 42px;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #E0F2FE;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.28;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-title span {
  color: #FDBA74;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search {
  display: flex;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: 0 10px 26px rgba(8, 28, 52, 0.25);
  margin-bottom: 14px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  background: transparent;
}

.hero-search button {
  border: 0;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-search button:hover {
  background: #CC5C00;
}

.hero-hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hot-label {
  color: rgba(255, 255, 255, 0.78);
}

.hero-hot-tags a {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-hot-tags a:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.hero-panel {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 14px 32px rgba(8, 28, 52, 0.22);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.panel-tag {
  font-size: 12px;
  color: #0D8A72;
  background: #E6F7F3;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.quick-cards {
  display: grid;
  gap: 10px;
}

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

.quick-card:hover {
  border-color: var(--brand-sky);
  background: #F0F8FF;
  color: var(--text-main);
}

.qc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.qc-blue { background: var(--brand-blue); }
.qc-orange { background: var(--brand-orange); }
.qc-teal { background: #0D8A72; }
.qc-slate { background: #334155; }

.qc-body {
  min-width: 0;
}

.qc-body strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.35;
  margin-bottom: 2px;
}

.qc-body span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.section-alt {
  background: var(--bg-alt);
}

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

.section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

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

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

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

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

.featured-card:hover {
  box-shadow: var(--shadow-md);
}

.featured-cover {
  position: relative;
  display: block;
  aspect-ratio: 5 / 2.6;
  overflow: hidden;
  background: #E2E8F0;
}

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

.cat-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
}

.featured-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.featured-body h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 700;
}

.featured-body h3 a {
  color: var(--text-main);
}

.featured-body h3 a:hover {
  color: var(--brand-blue);
}

.featured-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Channel Matrix */
.channel-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.channel-box-head {
  padding: 14px 16px;
  border-top: 4px solid var(--brand-blue);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #FAFCFF;
}

.channel-box-head h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
}

.channel-box-head h3 a {
  color: var(--text-main);
}

.channel-box-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.ch-count {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.channel-post-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 12px;
}

.channel-post-list li {
  border-bottom: 1px dashed var(--border-color);
}

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

.channel-post-list a {
  display: block;
  padding: 10px 0;
  color: var(--text-main);
}

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

.cp-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 3px;
}

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

/* Main + Sidebar Layout */
.content-with-sidebar,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

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

.article-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.ar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cat-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.district-tag {
  background: #F1F5F9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.pin-tag {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ar-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.ar-title a {
  color: var(--text-main);
}

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

.ar-summary {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.ar-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.ar-tags a {
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 999px;
}

.ar-tags a:hover {
  color: var(--brand-blue);
  border-color: var(--brand-sky);
}

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

.side-widget h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.widget-accent {
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
  border-color: #CBDFF5;
}

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

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

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.rank-1 { background: #E66A00; color: #FFFFFF; }
.rank-2 { background: #165DA0; color: #FFFFFF; }
.rank-3 { background: #0D8A72; color: #FFFFFF; }
.rank-n { background: #E2E8F0; color: #475569; }

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

.rank-info a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 2px;
}

.rank-info a:hover {
  color: var(--brand-blue);
}

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

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

.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 13.5px;
}

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

.stat-list span {
  color: var(--text-muted);
}

.stat-list strong {
  color: var(--brand-blue-dark);
  text-align: right;
}

.btn-block,
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 0;
}

.btn-block {
  display: block;
  width: 100%;
  background: var(--brand-blue);
  color: #FFFFFF;
}

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

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

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

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

.btn-orange:hover {
  background: #C45600;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}

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

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

.tag-cloud a {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: var(--text-body);
}

.tag-cloud a:hover {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  background: #F8FAFC;
}

.side-nav-list a.active,
.side-nav-list a:hover {
  background: #EBF4FC;
  color: var(--brand-blue);
  font-weight: 600;
}

.side-nav-list em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}

.tool-mini-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-mini-links a {
  display: block;
  padding: 9px 12px;
  background: #FFFFFF;
  border: 1px solid #D7E7F7;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.tool-mini-links a:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Page Banner */
.page-banner {
  background: #FFFFFF;
  border-bottom: 3px solid var(--brand-blue);
  padding: 24px 0 26px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.35;
}

.page-banner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-body);
  max-width: 820px;
}

.banner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.banner-stat {
  text-align: center;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  flex-shrink: 0;
}

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

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

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

.filter-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: #F1F5F9;
  color: var(--text-body);
  border: 1px solid transparent;
  cursor: pointer;
}

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

/* Post Page */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--brand-orange);
  z-index: 200;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.post-title {
  margin: 8px 0 12px;
  font-size: 26px;
  line-height: 1.38;
  font-weight: 800;
}

.post-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-body);
  background: #F8FAFC;
  border-left: 4px solid var(--brand-sky);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.takeaways-box h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #9A3412;
}

.takeaways-box ul {
  margin: 0;
  padding-left: 20px;
}

.takeaways-box li {
  margin-bottom: 6px;
  font-size: 14.5px;
  color: #431407;
}

.post-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-main);
  word-break: break-word;
}

.post-body h2 {
  margin: 26px 0 12px;
  font-size: 19px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E2E8F0;
  color: var(--brand-blue-dark);
}

.post-body h3 {
  margin: 20px 0 8px;
  font-size: 16.5px;
  color: var(--text-main);
}

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

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

.post-body li {
  margin-bottom: 8px;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  text-align: left;
}

.post-body th {
  background: #F1F5F9;
  font-weight: 700;
}

.faq-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.faq-box h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.faq-item {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--brand-blue-dark);
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
}

.post-footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.post-notice {
  margin-top: 14px;
  background: #F1F5F9;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.related-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.related-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.related-card {
  display: block;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #F8FAFC;
  color: var(--text-main);
}

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

.rel-cat {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.related-card strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.related-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.tool-badge {
  display: inline-block;
  background: #EBF4FC;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-orange {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.tool-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.tool-head p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.tool-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.tool-form {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

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

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

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

.tool-result {
  background: #F8FBFF;
  border: 1px solid #C8DFF5;
  border-radius: var(--radius-md);
  padding: 20px;
}

.tool-result h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
}

.result-highlight {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.highlight-orange {
  background: linear-gradient(135deg, #D95F00, #E66A00);
}

.result-highlight span {
  display: block;
  font-size: 12.5px;
  opacity: 0.9;
}

.result-highlight strong {
  display: block;
  font-size: 22px;
  margin-top: 2px;
}

.result-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-body);
}

.result-list li {
  margin-bottom: 8px;
}

.ssr-policy-table-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.ssr-policy-table-wrap h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}

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

.data-table th {
  background: #F1F5F9;
  font-weight: 700;
}

/* Metro & Directory */
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.filter-panel label {
  font-size: 14px;
  font-weight: 600;
}

.filter-panel input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

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

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

.metro-card,
.dir-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.metro-card-head,
.dir-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.metro-badge {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
}

.metro-corridor,
.dir-cat {
  font-size: 12px;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 4px;
}

.metro-route {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.metro-hubs,
.metro-tip,
.dir-channel,
.dir-desc {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--text-body);
}

.metro-tip,
.dir-desc {
  color: var(--text-muted);
  margin-bottom: 0;
}

.dir-phone {
  font-size: 15px;
  color: var(--brand-orange);
}

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

.dir-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.dir-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-search-wrap input {
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 260px;
  max-width: 100%;
}

.info-callout {
  margin-top: 24px;
  background: #FFFFFF;
  border: 1px solid #C8DFF5;
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.info-callout h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.info-callout ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.info-callout li {
  margin-bottom: 6px;
}

/* Search & Empty & Pagination */
.search-page-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 620px;
}

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

.search-page-form button {
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.search-summary {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-body);
}

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

.empty-box h3,
.empty-box h1 {
  margin: 0 0 10px;
}

.empty-box p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.code-404 {
  font-size: 54px;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 14px;
}

.page-num.active,
.page-num:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
}

/* Footer */
.site-footer {
  background: #132238;
  color: #CBD5E1;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 38px;
  padding-bottom: 30px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #94A3B8;
}

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

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

.footer-col a {
  color: #CBD5E1;
  font-size: 13.5px;
}

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

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

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

.footer-bottom p {
  margin: 0;
}

.beian-wrap a {
  color: #E2E8F0;
}

.beian-wrap .sep {
  margin: 0 8px;
  color: #64748B;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-matrix,
  .metro-grid,
  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .content-with-sidebar,
  .about-layout,
  .tool-body-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-title {
    font-size: 26px;
  }
  .post-card {
    padding: 20px 18px;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    height: 40px;
  }
  .header-inner {
    min-height: 60px;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-section {
    padding: 26px 0 30px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-search {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }
  .hero-search button {
    width: 100%;
  }
  .featured-grid,
  .channel-matrix,
  .metro-grid,
  .dir-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .banner-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-title {
    font-size: 21px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .tool-card {
    padding: 18px 14px;
  }
  .dir-search-wrap,
  .dir-search-wrap input {
    width: 100%;
  }
  .filter-panel input {
    min-width: 0;
    width: 100%;
  }
}
