:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #e8eef6;
  --obsidian: #0f172a;
  --obsidian-soft: #1e293b;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: #dde5f0;
  --blue: #124191;
  --cyan: #0ea5e9;
  --blue-soft: #e6f2fc;
  --emerald: #0f766e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0;
}

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

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #38bdf8);
  z-index: 1200;
  pointer-events: none;
}

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

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

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

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.primary-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.primary-nav a.nav-lab {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  margin-left: 3px;
}

.primary-nav a.nav-lab:hover,
.primary-nav a.nav-lab.is-active {
  background: #0d3272;
  color: #fff;
}

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

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

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

.header-search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Announcement Ribbon (Verbatim below nav) */
.announce-bar {
  background: linear-gradient(90deg, #0b2454 0%, #124191 56%, #0284c7 100%);
  color: #ffffff;
}

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

.notice-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.24);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-text {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.announce-btn {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Mobile Drawer */
.mobile-drawer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mobile-drawer-inner {
  padding-top: 16px;
  padding-bottom: 20px;
}

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

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

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

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

.mobile-nav-grid a {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.8px;
  font-weight: 600;
  text-align: center;
}

.mobile-nav-grid a.is-lab {
  background: var(--blue);
  color: #fff;
}

.mobile-nav-grid a.is-active {
  outline: 2px solid var(--cyan);
  color: var(--blue);
  background: var(--blue-soft);
}

.mobile-nav-grid a.is-lab.is-active {
  background: var(--blue);
  color: #fff;
}

/* Shared UI Elements */
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 5px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-line.light {
  color: #94a3b8;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.tag-chip:hover {
  border-color: var(--cyan);
  color: var(--blue);
  background: var(--blue-soft);
}

.btn-blue,
.btn-blue-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 65, 145, 0.24);
}

.btn-blue:hover,
.btn-blue-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 65, 145, 0.32);
}

.btn-blue-full {
  width: 100%;
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #082f49;
  font-size: 14px;
  font-weight: 800;
}

.btn-cyan:hover {
  background: #38bdf8;
}

.btn-dark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.btn-dark-ghost:hover {
  border-color: var(--cyan);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Tech Hero */
.tech-hero {
  padding: 26px 0 36px;
}

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

.spotlight-card {
  background: linear-gradient(160deg, var(--obsidian) 0%, #132548 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.spotlight-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1220;
}

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

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

.spot-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  color: #082f49;
  font-size: 12px;
  font-weight: 800;
}

.spotlight-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.spotlight-body h1 {
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.34;
}

.spotlight-body h1 a:hover {
  color: #7dd3fc;
}

.spot-excerpt {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.72;
}

.spot-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-matrix-box,
.brief-feed-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

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

.box-head h2 {
  font-size: 16.5px;
  font-weight: 800;
}

.box-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

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

.brand-chip {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-chip:hover {
  border-color: var(--cyan);
  background: var(--blue-soft);
}

.brand-chip strong {
  font-size: 13.5px;
  color: var(--ink);
}

.brand-chip span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.brief-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.brief-cat {
  font-size: 11.5px;
  font-weight: 800;
}

.brief-row strong {
  font-size: 14px;
  line-height: 1.42;
}

.brief-row:hover strong {
  color: var(--blue);
}

/* Lab Band */
.lab-band {
  padding: 40px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.sec-head h2 {
  font-size: 25px;
  font-weight: 800;
}

.sec-head.compact h2 {
  font-size: 20px;
}

.sec-head h2 small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.sec-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.lab-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-card:hover {
  background: var(--surface);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lab-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lab-arrow {
  color: var(--muted);
}

.lab-card h3 {
  font-size: 16px;
  font-weight: 800;
}

.lab-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: 1;
}

.lab-go {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* Topics Showcase */
.topics-section {
  padding: 46px 0 28px;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ttab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

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

.topics-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.tp-block.is-hidden {
  display: none;
}

.tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.tp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tp-title h3 {
  font-size: 20px;
  font-weight: 800;
}

.tp-sub {
  font-size: 13px;
  color: var(--muted);
}

.more-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

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

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

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

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

.t-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

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

.t-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.t-body h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.44;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-body h4 a:hover {
  color: var(--blue);
}

.t-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Hub (QA + Hot) */
.bottom-hub {
  padding: 32px 0 56px;
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.hub-qa,
.hub-hot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.qa-item[open] {
  background: var(--surface);
  border-color: #bae6fd;
}

.qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 36px 14px 16px;
  font-weight: 700;
  font-size: 14.8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 13px;
  font-size: 18px;
  color: var(--blue);
}

.qa-item[open] summary::after {
  content: "−";
}

.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.qa-ans {
  padding: 0 16px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

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

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

.rk-num {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rk-num.is-top {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.rk-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rk-info a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

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

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

.kw-cloud {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.kw-cloud h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

/* Inner Banners & Layouts */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.page-banner,
.topic-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 34px;
}

.page-banner h1,
.topic-hero h1 {
  font-size: 29px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-banner p,
.topic-hero p {
  max-width: 780px;
  color: var(--ink-soft);
}

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

.topic-hero-copy .tag-row {
  margin-top: 14px;
}

.topic-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

.topic-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-band,
.tools-stage {
  padding: 34px 0 56px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sticky-side {
  position: sticky;
  top: 86px;
}

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

.side-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
}

.side-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.side-links span {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}

.tool-promo p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 8px 0 16px;
}

/* Tables & Brands Directory */
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.data-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.data-card-head h2 {
  font-size: 21px;
  font-weight: 800;
}

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

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

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 11px 13px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--bg);
  font-weight: 700;
}

.os-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-link:hover {
  color: var(--blue);
}

/* Row List Cards */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row-card {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.row-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

.row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-body h3 {
  font-size: 19px;
  font-weight: 800;
}

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

.row-body p {
  font-size: 14px;
  color: var(--ink-soft);
}

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

.pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pagination a.is-current,
.pagination a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.sub-faq-box {
  margin-top: 32px;
}

.sub-faq-box h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Tips Article Detail */
.tips-head-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.tips-head-inner {
  max-width: 960px;
}

.cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tips-head-inner h1 {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 10px;
}

.tips-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tips-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-meta strong {
  display: block;
  font-size: 14px;
}

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

.tips-body-wrap {
  padding: 30px 0 56px;
}

.tips-hero-fig {
  margin: 0 0 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.tips-hero-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tips-summary {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 15px 18px;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 14.5px;
}

.toc-mobile {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.toc-mobile ol,
.side-toc {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.side-toc a:hover,
.toc-mobile a:hover {
  color: var(--blue);
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.86;
  color: #1e293b;
}

.prose h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 86px;
}

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

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--blue);
}

.prose p {
  margin-bottom: 15px;
}

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

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

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #f0f9ff;
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  color: #0c4a6e;
  font-size: 14.5px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

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

.prose th {
  background: var(--bg);
  font-weight: 700;
}

.tips-disclaimer {
  margin-top: 20px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}

.tips-tags {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.related-wrap {
  margin-top: 34px;
}

.related-wrap h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Interactive Tools */
.tool-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.tool-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-badge {
  font-size: 11.5px;
  color: var(--cyan);
  font-weight: 800;
}

.tool-tab strong {
  font-size: 15px;
}

.tool-tab.is-active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 65, 145, 0.24);
}

.tool-tab.is-active .tt-badge,
.tool-tab.is-active strong {
  color: #fff;
}

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

.tool-panel.is-visible {
  display: block;
}

.panel-head {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 6px;
}

.panel-head p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13.5px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.tool-output {
  margin-top: 24px;
}

.placeholder-note {
  background: var(--bg);
  border-radius: 12px;
  padding: 17px 19px;
  color: var(--ink-soft);
  font-size: 14px;
}

.out-card {
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 22px;
}

.out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.out-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
}

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

.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.kpi-tile strong {
  display: block;
  font-size: 21px;
  color: var(--blue);
  line-height: 1.25;
}

.kpi-tile span {
  font-size: 12.5px;
  color: var(--muted);
}

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

.out-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
}

.out-box h4 {
  font-size: 14.5px;
  color: var(--blue);
  margin-bottom: 8px;
}

.out-box ul,
.out-box ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.out-box li {
  margin-bottom: 6px;
}

/* Pills, Search, About, 404 */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

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

.big-search {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 14px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 15px;
  background: var(--surface);
}

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

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

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.about-card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}

.about-card p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

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

.nf-wrap {
  padding: 72px 0;
}

.nf-card {
  max-width: 620px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 28px;
}

.nf-code {
  font-size: 56px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.nf-card h1 {
  font-size: 23px;
  margin: 14px 0 10px;
}

.nf-card p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.nf-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: #cbd5e1;
  padding-top: 46px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 0.85fr;
  gap: 28px;
  padding-bottom: 36px;
}

.footer-logo {
  display: inline-block;
  background: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-tagline {
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 14px;
}

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

.footer-col a {
  color: #94a3b8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
}

.footer-beian a {
  color: #bae6fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-beian a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints (375px zero horizontal overflow) */
@media (max-width: 1120px) {
  .primary-nav,
  .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .lab-grid-4,
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid,
  .hub-grid,
  .two-col,
  .topic-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-side {
    position: static;
  }
  .toc-desktop {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .brand-logo img {
    height: 36px;
  }
  .announce-inner {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12.5px;
  }
  .announce-btn {
    display: none;
  }
  .spotlight-body {
    padding: 16px;
  }
  .spotlight-body h1 {
    font-size: 20px;
  }
  .brand-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-grid-4,
  .cards-4,
  .cards-2,
  .tool-switcher,
  .form-grid-2,
  .out-grid-2,
  .about-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .row-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .sec-head h2,
  .page-banner h1,
  .topic-hero h1,
  .tips-head-inner h1 {
    font-size: 22px;
  }
  .prose {
    padding: 20px 16px;
    font-size: 15.5px;
  }
  .tool-panel,
  .data-card {
    padding: 18px 15px;
  }
  .big-search {
    flex-direction: column;
  }
  .big-search button {
    width: 100%;
  }
}
