:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-tint: #eef4f8;
  --ink: #1e293b;
  --ink-muted: #526275;
  --ink-light: #7c8b9e;
  --border: #dfe6ee;
  --brand: #1565a8;
  --brand-dark: #0f4c81;
  --brand-soft: #e8f3fc;
  --accent: #e66e12;
  --accent-soft: #fff3e8;
  --green: #16805a;
  --green-soft: #e8f7f1;
  --danger: #c4322b;
  --danger-soft: #fdf0ef;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 39, 68, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 39, 68, 0.04);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
}

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

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

.nav-link {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

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

.nav-link.nav-pill {
  color: var(--brand-dark);
  background: #e6f2fc;
}

.nav-link.nav-pill:hover,
.nav-link.nav-pill.is-active {
  background: var(--brand);
  color: #ffffff;
}

.nav-link.nav-warn {
  color: var(--danger);
  background: var(--danger-soft);
}

.nav-link.nav-warn:hover,
.nav-link.nav-warn.is-active {
  background: var(--danger);
  color: #ffffff;
}

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

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

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

.header-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

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

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

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

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

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

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

.drawer-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 600;
}

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

.drawer-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

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

/* Announcement Banner */
.announce-bar {
  background: linear-gradient(90deg, #fff6ec 0%, #fff0df 100%);
  border-bottom: 1px solid #f5d8b8;
}

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

.announce-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.announce-text {
  margin: 0;
  font-size: 0.92rem;
  color: #7c3f08;
  font-weight: 500;
}

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

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

.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 2.05rem;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.hero-search {
  display: flex;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
}

.hero-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

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

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.quick-label {
  color: var(--ink-light);
}

.hero-quick-tags a {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-quick-tags a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-tools-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

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

.panel-header h2 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-more {
  font-size: 0.86rem;
  font-weight: 600;
}

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

.mini-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfdff;
  color: var(--ink);
}

.mini-tool-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.mini-tool-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.mini-tool-card span:last-child {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.tool-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.tool-icon-blue { background: #1565a8; }
.tool-icon-orange { background: #e66e12; }
.tool-icon-green { background: #16805a; }
.tool-icon-teal { background: #0e7c86; }

/* Category Strip */
.cat-strip-section {
  padding: 20px 0 8px;
}

.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat-color, var(--brand));
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--brand);
}

.cat-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.cat-meta,
.mini-tool-card > div,
.step-body {
  min-width: 0;
}

.cat-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cat-count {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
}

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

.section-tinted {
  background: var(--surface-tint);
  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: 20px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.featured-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  background: linear-gradient(135deg, #f4f9fd 0%, #eef5fa 100%);
  border-bottom: 1px solid var(--border);
}

.badge-cat {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--cat-color, var(--brand));
  border: 1px solid var(--border);
}

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

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pill-cost {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
}

.pill-time {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

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

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

.card-excerpt {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
}

.science-tag {
  color: var(--ink-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-more {
  font-weight: 700;
  white-space: nowrap;
}

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

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

.tip-row-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.tip-row-card:hover {
  border-color: #bfd7ec;
  box-shadow: var(--shadow-md);
}

.tip-row-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-row-body {
  min-width: 0;
  flex: 1;
}

.tip-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.cat-badge-inline {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.tip-row-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.tip-row-title a {
  color: var(--ink);
}

.tip-row-title a:hover {
  color: var(--brand);
}

.tip-row-summary {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.tip-row-materials {
  font-size: 0.84rem;
  color: var(--ink-light);
}

.tip-row-materials strong {
  color: var(--ink-muted);
}

/* Sidebar Widgets */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.widget-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.widget-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget-title-row h3 {
  margin: 0;
  font-size: 1.02rem;
}

.widget-title-row a {
  font-size: 0.82rem;
  font-weight: 600;
}

.widget-safety {
  border-top: 3px solid var(--danger);
  background: #fffafa;
}

.safety-mini-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

.safety-mini-list strong {
  color: var(--danger);
}

.btn-outline-danger {
  display: block;
  text-align: center;
  padding: 9px 12px;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: #fff;
}

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

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

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

.rank-num.is-top {
  background: var(--accent);
  color: #fff;
}

.rank-list a {
  color: var(--ink);
  line-height: 1.45;
}

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

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.tag-chip span {
  color: var(--ink-light);
  font-size: 0.76rem;
}

.tag-chip:hover,
.tag-chip.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

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

.side-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.side-cat-list a:hover,
.side-cat-list a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.count-pill {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--ink-light);
}

.widget-tool-promo {
  background: linear-gradient(145deg, #135a96 0%, #1c78c0 100%);
  color: #fff;
  border: 0;
}

.widget-tool-promo h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.widget-tool-promo p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.btn-primary-full {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-primary-full:hover {
  background: #cf5e0a;
  color: #fff;
}

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

/* Scene Showcase Grid */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scene-box {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat-color, var(--brand));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.scene-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.scene-head h3 a {
  color: var(--ink);
}

.scene-more {
  font-size: 0.82rem;
  font-weight: 600;
}

.scene-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.scene-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--border);
}

.scene-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

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

.scene-list a {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-list a:hover {
  color: var(--brand);
}

.scene-tag {
  flex-shrink: 0;
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-light);
}

/* Page Banners & Breadcrumbs */
.page-banner {
  background: linear-gradient(135deg, #ffffff 0%, #edf4fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 28px;
}

.page-banner-tools {
  background: linear-gradient(135deg, #f0f7fd 0%, #fff6ec 100%);
}

.page-banner-danger {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
}

.page-banner h1 {
  margin: 8px 0 8px;
  font-size: 1.75rem;
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-light);
}

.breadcrumb a {
  color: var(--ink-muted);
}

.cat-hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.cat-hero-svg {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.search-page-form {
  margin-top: 16px;
}

/* Article Detail */
.article-header-band {
  background: linear-gradient(135deg, #ffffff 0%, #eff5fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 28px;
}

.article-title {
  margin: 10px 0 10px;
  font-size: 1.85rem;
  line-height: 1.32;
}

.article-lead {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 820px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--ink-light);
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 1.26rem;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.spec-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.spec-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1rem;
  color: var(--brand-dark);
}

.callout-box {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  border-left: 4px solid var(--brand);
}

.callout-label {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.callout-box p {
  margin: 0;
  font-size: 0.96rem;
}

.callout-tldr {
  background: var(--brand-soft);
  border-left-color: var(--brand);
}

.callout-tldr .callout-label {
  color: var(--brand-dark);
}

.callout-science {
  background: var(--green-soft);
  border-left-color: var(--green);
}

.callout-science .callout-label {
  color: var(--green);
}

.callout-warning {
  background: var(--danger-soft);
  border-left-color: var(--danger);
}

.callout-warning .callout-label {
  color: var(--danger);
}

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

.materials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.materials-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
}

.check-dot {
  color: var(--green);
  font-weight: 800;
}

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

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fcfdff;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.step-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-light);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.article-nav .nav-dir {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.article-nav .nav-next {
  text-align: right;
}

.article-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.article-nav a:hover {
  color: var(--brand);
}

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

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

.related-card {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}

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

.related-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.related-card strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Tools Page */
.tool-anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-anchor-pills a {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.tool-anchor-pills a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
}

.tool-card-head {
  margin-bottom: 18px;
}

.tool-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.tool-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.32rem;
}

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

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

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

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field select,
.form-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
}

.form-field select:focus,
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.12);
}

.tool-result-box {
  background: #f8fbfe;
  border: 1px solid #d5e4f2;
  border-radius: 14px;
  padding: 18px;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.result-steps,
.result-science,
.result-warn {
  margin: 8px 0;
  font-size: 0.94rem;
}

.result-warn {
  color: var(--danger);
}

.ratio-metrics {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ratio-metrics li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
}

.ratio-metrics span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.power-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.power-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.power-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-light);
}

.power-stat strong {
  display: block;
  font-size: 1.32rem;
  color: var(--brand-dark);
  margin: 4px 0;
}

.power-stat small {
  color: var(--accent);
  font-weight: 700;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

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

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

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

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

.table-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.td-highlight {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.danger-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Safety Myths */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.myth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.myth-head {
  margin-bottom: 10px;
}

.myth-head h3 {
  margin: 8px 0 0;
  font-size: 1.04rem;
}

.myth-why {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.myth-right {
  margin: 0;
  font-size: 0.9rem;
  color: var(--green);
}

/* About & 404 & Pagination */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

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

.about-list li {
  margin-bottom: 10px;
  color: var(--ink-muted);
}

.empty-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.notfound-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}

.notfound-code {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}

.notfound-search {
  margin: 20px auto;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

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

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

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.notfound-grid {
  text-align: left;
}

/* Footer */
.site-footer {
  background: #172334;
  color: #cbd5e1;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 28px;
  padding: 36px 18px 28px;
}

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

.footer-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #a9b8cc;
  line-height: 1.7;
}

.footer-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.98rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-links a {
  color: #cbd5e1;
}

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

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

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

.footer-bottom p {
  margin: 0;
}

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

.beian-wrap a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-sidebar-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-form-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 40px;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-section {
    padding: 24px 0 26px;
  }
  .hero-title {
    font-size: 1.52rem;
  }
  .mini-tool-grid,
  .cat-strip,
  .featured-grid,
  .scene-grid,
  .spec-grid,
  .tool-form-grid,
  .tool-form-4,
  .ratio-metrics,
  .power-stats,
  .myth-grid,
  .related-grid,
  .article-nav,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cat-card {
    padding: 10px 8px;
    gap: 8px;
  }
  .cat-svg {
    width: 32px;
    height: 32px;
  }
  .cat-name {
    font-size: 0.84rem;
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tip-row-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  .tip-row-icon {
    width: 44px;
    height: 44px;
  }
  .article-card {
    padding: 18px 15px;
  }
  .article-title {
    font-size: 1.45rem;
  }
  .article-nav .nav-next {
    text-align: left;
  }
  .tool-card {
    padding: 18px 15px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
