:root {
  --bg-page: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --brand-orange: #ea580c;
  --brand-orange-light: #f97316;
  --brand-orange-bg: #fff7ed;
  --brand-blue: #0284c7;
  --brand-blue-bg: #f0f9ff;
  --brand-emerald: #059669;
  --brand-emerald-bg: #ecfdf5;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --max-w: 1240px;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.68;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

img, svg {
  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: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-search input {
  width: 170px;
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #f8fafc;
  color: var(--text-primary);
}

.header-search input:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: #ffffff;
}

.header-search button {
  padding: 7px 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  background: #c2410c;
}

.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* Top Full-Width Announcement Banner (right below nav) */
.announcement-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #f8fafc;
  border-bottom: 2px solid var(--brand-orange);
  padding: 10px 0;
  font-size: 13.5px;
}

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

.announcement-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announce-badge {
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.announce-text {
  font-weight: 600;
  color: #fef3c7;
}

.announcement-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 5px;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0f172a 75%);
  color: #f8fafc;
  padding: 40px 0 44px;
  border-bottom: 1px solid #1e293b;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fdba74;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 31px;
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
}

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

.hero-desc {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 22px;
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.hero-stat-box {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.hero-stat-num {
  font-size: 19px;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
}

.hero-stat-label {
  font-size: 11.5px;
  color: #94a3b8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #c2410c;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: #475569;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #94a3b8;
}

.hero-visual-card {
  background: #131c2e;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

/* Section Headers */
.section-block {
  padding: 36px 0;
}

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

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-blue);
}

.section-more:hover {
  color: var(--brand-orange);
}

/* Atlas Grid Cards */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.atlas-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.atlas-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

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

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

.difficulty-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  font-family: monospace;
}

.atlas-card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.38;
}

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

.atlas-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin: 10px 0 12px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

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

.metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}

.atlas-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.atlas-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

/* Two-Column Main Content + Sidebar */
.main-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Category Columns Matrix (2x2) */
.category-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

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

.cat-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.cat-box-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-orange);
}

.article-list-compact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 11px;
  border-bottom: 1px dashed #e2e8f0;
}

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

.article-list-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.article-list-title:hover {
  color: var(--brand-orange);
}

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

/* Article Feed Cards */
.article-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease;
}

.article-card:hover {
  border-color: #cbd5e1;
}

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

.cat-pill {
  background: var(--brand-orange-bg);
  color: var(--brand-orange);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 12px;
}

.tech-pill {
  background: #f1f5f9;
  color: #475569;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.article-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.widget-dark {
  background: var(--bg-dark);
  color: #f8fafc;
  border-color: #1e293b;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}

.form-control {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  font-size: 13.5px;
  width: 100%;
}

.widget-card:not(.widget-dark) .form-control {
  background: #f8fafc;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.calc-result-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 6px;
  font-size: 13px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-val-highlight {
  font-weight: 800;
  color: #fb923c;
  font-family: monospace;
}

/* Safety Redlines List */
.redline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redline-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.redline-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--bg-surface);
  min-width: 560px;
}

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

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

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

.data-table tr:hover td {
  background: #f8fafc;
}

/* Single Article & Atlas Detail Content */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 18px 0;
  flex-wrap: wrap;
}

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

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

.article-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 18px 0 24px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-cell span:first-child {
  font-size: 11.5px;
  color: var(--text-muted);
}

.spec-cell span:last-child {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.prose-content {
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.82;
}

.prose-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-orange);
}

.prose-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.prose-content p {
  margin-bottom: 16px;
}

.prose-content ul,
.prose-content ol {
  margin: 0 0 18px 20px;
}

.prose-content li {
  margin-bottom: 8px;
}

.prose-callout {
  background: #fff7ed;
  border-left: 4px solid var(--brand-orange);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14px;
  color: #9a3412;
}

/* Tools Page Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.check-item input {
  margin-top: 3px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 44px 0 28px;
  margin-top: 48px;
  border-top: 3px solid var(--brand-orange);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}

.footer-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

.beian-link {
  color: #cbd5e1;
  font-weight: 600;
}

.beian-link:hover {
  color: #fb923c;
  text-decoration: underline;
}

/* Responsive Breakpoints (Tablet & 375px Mobile) */
@media (max-width: 1024px) {
  .hero-grid,
  .main-sidebar-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .atlas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
  }
  .main-nav.open {
    display: flex;
  }
  .header-search {
    width: 100%;
    margin-top: 4px;
  }
  .header-search input {
    flex: 1;
    width: auto;
  }
  .hero-title {
    font-size: 23px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-matrix,
  .atlas-grid,
  .checklist-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-detail-card {
    padding: 18px 15px;
  }
  .article-detail-title {
    font-size: 20px;
  }
  .article-spec-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
