/* ===========================================================
   COOLTEK Design System — main.css  v4.0
   排版规范：720px 分屏 · H2=26px/1.8 · H3=22px/1.6 · P=15px/1.5
   备注=13px/1.2 · H2距屏顶70px · H2距正文50px · 底部内边距70px
   左右版式间距15px · 卡片圆角10px · Logo=80px
   =========================================================== */

/* ---------- 0. CSS Custom Properties ---------- */
:root {
  /* Brand */
  --brand-primary: #0f3b5e;
  --brand-deep:    #0a1e2c;

  /* Accent */
  --accent-red:   #d32f2f;
  --accent-amber: #D97706;
  --accent-teal:  #0E8F7F;

  /* Ink */
  --ink-900: #0a1e2c;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #CBD5E1;

  /* Surface */
  --surface:     #f5f7fa;
  --surface-alt: #edf1f7;
  --white:       #FFFFFF;

  /* Border */
  --border: #e2e8f0;

  /* Typography */
  --font-sans:  'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1600px;
  --gutter: 48px;           /* desktop: generous side margin */
  --gutter-md: 32px;        /* tablet */
  --gutter-sm: 20px;        /* mobile */

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10,30,44,0.04);
  --shadow-md: 0 4px 16px rgba(10,30,44,0.06);
  --shadow-lg: 0 12px 32px rgba(10,30,44,0.08);

  /* Radius — 用户规范：卡片圆角10px */
  --radius-sm:   6px;
  --radius-card: 10px;
  --radius-md:   10px;
  --radius-lg:   10px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Section spacing — 用户规范：每屏720px */
  --screen-h:       720px;
  --h2-top:         70px;   /* H2距屏顶 */
  --h2-bottom:      50px;   /* H2距正文 */
  --section-bottom: 70px;   /* 内容器距屏底 */
  --col-gap:        15px;   /* 左右版式间距 */
}

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-700);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-deep); }

/* ---------- 2. Typography — 用户规范 ---------- */
h1, .h1 {
  font-size: 40px;
  line-height: 2;
  font-weight: 700;
  color: var(--ink-900);
}
h2, .h2 {
  font-size: 26px;
  line-height: 1.8;
  font-weight: 700;
  color: var(--ink-900);
  white-space: normal;
}
h3, .h3 {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink-900);
  white-space: normal;
}
h4, .h4 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-900);
}
p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.5em;
  color: var(--ink-700);
}
.note, .caption, small {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-500);
}
.body-l  { font-size: 18px; line-height: 1.5; }
.body-s  { font-size: 14px; line-height: 1.5; color: var(--ink-500); }
.mono    { font-family: var(--font-mono); }

@media (max-width: 1024px) {
  :root { --gutter: var(--gutter-md); }
}
@media (max-width: 768px) {
  :root { --gutter: var(--gutter-sm); }
  h1, .h1  { font-size: 28px; line-height: 2; }
  h2, .h2  { font-size: 22px; line-height: 1.8; }
  h3, .h3  { font-size: 18px; line-height: 1.6; }
  /* 移动端内容区：减小gutter让内容更宽 */
  .container { padding: 0 var(--gutter-sm); }
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === 720px Section System === */
.section {
  min-height: var(--screen-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.section > .container {
  padding-top: var(--h2-top);
  padding-bottom: var(--section-bottom);
}
.section-alt { background: var(--surface-alt); }

/* For sections with lots of content */
.section--auto {
  min-height: auto;
  padding: var(--h2-top) 0 var(--section-bottom);
}
.section--auto > .container {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .section > .container {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .section--auto {
    padding: 48px 0;
  }
}

/* Grid — 左右版式间距15px */
.grid {
  display: grid;
  gap: var(--col-gap);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header > .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w) !important;
}

/* Logo — 用户规范：80px */
.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-logo img,
.site-header .site-logo img {
  width: 80px !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain !important;
  display: block;
}

/* Primary Nav */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-primary > li {
  position: relative;
}
.nav-primary > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-primary > li > a:hover,
.nav-primary > li > a.active {
  color: var(--brand-primary);
}
.nav-primary > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
}

/* Dropdown arrow */
.nav-primary .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  position: static;
  height: 16px;
  width: 16px;
  background-color: transparent;
  border-radius: 0;
}
.nav-primary .has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 200;
}
.nav-primary .has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  transition: all 0.15s var(--ease);
}
.nav-dropdown li a:hover {
  background: var(--surface-alt);
  color: var(--brand-primary);
}
.nav-dropdown li a .dd-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink-500);
  margin-left: auto;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-switcher a {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  color: var(--ink-500);
  transition: all 0.2s var(--ease);
}
.lang-switcher a:hover { background: var(--surface-alt); color: var(--brand-primary); }
.lang-switcher a.active { background: var(--surface-alt); color: var(--brand-primary); font-weight: 700; }

/* Header CTA button */
.btn-header {
  font-size: 13px !important;
  padding: 8px 16px !important;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-700);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .nav-primary {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px;
    display: none;
    z-index: 90;
    overflow-y: auto;
  }
  .nav-primary.open { display: flex; }
  .nav-primary > li {
    width: 100%;
  }
  .nav-primary > li > a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    justify-content: space-between;
  }
  .nav-primary > li > a.active::after { display: none; }
  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    display: none;
    background: var(--surface);
  }
  .nav-primary .has-dropdown.open .nav-dropdown {
    display: block;
  }
  .nav-dropdown li a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  .lang-switcher { margin-top: 16px; }
}

/* ---------- 5. Hero (720px) ---------- */
/* .hero is the homepage hero section with background image */
.hero {
  position: relative;
  min-height: var(--screen-h);
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: url('../img/hero/hero-main.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5,18,31,0.90) 0%, rgba(5,18,31,0.72) 55%, rgba(5,18,31,0.30) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 6rem var(--gutter) 4rem;
}
.hero-content {
  max-width: 760px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero .hero-lead {
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: 0.9;
  color: var(--white);
}
.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}
.hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.hero .hero-stats > div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card);
  padding: 18px;
  color: #fff;
}
.hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-stat-label { color: rgba(255,255,255,.75); font-size: 13px; }
@media (max-width: 768px) {
  .hero .container { padding: 4rem var(--gutter) 3rem; }
  .hero h1 { font-size: 28px; }
  .hero .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.hero-full {
  position: relative;
  min-height: var(--screen-h);
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 72px;
}
.hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,30,44,0.92) 0%, rgba(10,30,44,0.7) 50%, rgba(10,30,44,0.25) 100%);
  z-index: 1;
}
.hero-full--image::before {
  background: linear-gradient(90deg, rgba(5,18,31,.88) 0%, rgba(5,18,31,.72) 48%, rgba(5,18,31,.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-inner > .container {
  max-width: var(--max-w);
  padding: 6rem var(--gutter) 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-title .highlight { color: #60A5FA; }

.hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: 0.9;
  color: var(--white);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}
.hero-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-pill strong { font-weight: 700; color: var(--white); }

/* Metric strip in hero */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.metric-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card);
  padding: 18px;
  color: #fff;
}
.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  margin-bottom: 4px;
}
.metric-item span { color: rgba(255,255,255,.75); font-size: 13px; }

@media (max-width: 768px) {
  .hero-full { min-height: var(--screen-h); }
  .hero-inner > .container { padding: 4rem var(--gutter) 3rem; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-card);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.btn-outline:hover { background: var(--surface-alt); }

.btn-white {
  background: var(--white);
  color: var(--brand-primary);
}
.btn-white:hover { background: var(--surface-alt); }

.btn-accent {
  background: var(--accent-red);
  color: var(--white);
}
.btn-accent:hover { background: #b71c1c; color: var(--white); }

.btn-lg { font-size: 17px; padding: 16px 32px; }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* ---------- 6b. Main content margin (below fixed header) ---------- */
/* All pages need margin-top to clear the fixed 72px header */
main {
  margin-top: 72px;
}
/* Product pages: hero-full already has margin-top: 72px, so reset main */
main:has(.hero-full),
main:has(.hero-inner) {
  margin-top: 0;
}
/* Fallback for browsers that don't support :has() */
main.page-main,
main.blog-main,
main.blog-post,
main.article-container,
main.container {
  margin-top: 72px;
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink-500);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--ink-900); font-weight: 600; }

/* ---------- 8. Section Head ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--h2-bottom);
}
.section-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 26px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.section-head .lead {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ---------- 9. Outcome / Stat Cards ---------- */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 768px) {
  .outcome-grid { grid-template-columns: 1fr; }
}

.outcome-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.outcome-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.outcome-card .outcome-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-alt);
}
.outcome-card .outcome-icon svg {
  width: 26px;
  height: 26px;
  color: var(--brand-primary);
}
.outcome-card h3 {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: center;
}
.outcome-card p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 0;
}
.outcome-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 8px;
}
.outcome-num .unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-500);
}

/* ---------- 10. Reasoning / Two-col Blocks ---------- */
.reasoning-block {
  display: grid;
  grid-template-columns: 45% 10% 45%;
  gap: 0;
  align-items: center;
  margin-bottom: 56px;
}
.reasoning-block:last-child { margin-bottom: 0; }
/* .reverse: image is first child in HTML, so it naturally appears on the left */
.reasoning-block.reverse { direction: ltr; }

/* Section subtitle — appears below H2, styled like a lead paragraph */
.section-subtitle {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-500);
  margin-top: 8px;
  margin-bottom: 0;
}

.reasoning-block .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.reasoning-block h3 {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.reasoning-block p {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: 12px;
}
.key-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--brand-primary);
}
.key-stat strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-primary);
}
.key-stat span { font-size: 13px; color: var(--ink-500); }

.reasoning-block .fig {
  border-radius: var(--radius-card);
  overflow: hidden;
}
.reasoning-block .fig img { width: 100%; height: auto; display: block; }
.reasoning-block .fig figcaption {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-500);
  padding: 10px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .reasoning-block,
  .reasoning-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
  }
}

/* ---------- 11. Data Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table thead th {
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.data-table tbody tr:nth-child(even) { background: var(--surface); }
.data-table tbody tr:hover { background: var(--surface-alt); }
.data-table .num { font-family: var(--font-mono); font-weight: 500; }

/* Fact table */
.fact-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.fact-table th, .fact-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.fact-table th { background: var(--surface-alt); color: var(--brand-deep); }

@media (max-width: 768px) {
  .table-wrap {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ---------- 12. Callout / Info Box ---------- */
.callout {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.callout__icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.callout__body { flex: 1; }
.callout__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.callout__text { font-size: 15px; color: var(--ink-700); line-height: 1.5; }

.callout--info    { border-left: 4px solid var(--brand-primary); background: #EFF6FF; }
.callout--info .callout__icon { color: var(--brand-primary); }
.callout--info .callout__title { color: var(--brand-primary); }

.callout--warning { border-left: 4px solid var(--accent-amber); background: #FFFBEB; }
.callout--warning .callout__icon { color: var(--accent-amber); }
.callout--warning .callout__title { color: var(--accent-amber); }

.callout--danger  { border-left: 4px solid var(--accent-red); background: #FEF2F2; }
.callout--danger .callout__icon { color: var(--accent-red); }
.callout--danger .callout__title { color: var(--accent-red); }

/* ---------- 13. Application / Industry Cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 1024px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.app-card .app-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-alt);
}
.app-card .app-icon svg { width: 26px; height: 26px; color: var(--brand-primary); }
.app-card h3 { font-size: 18px; line-height: 1.6; margin-bottom: 8px; }
.app-card p { font-size: 15px; color: var(--ink-500); line-height: 1.5; margin-bottom: 0; }

/* ---------- 14. Cross-series Guide ---------- */
.cross-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 768px) { .cross-grid { grid-template-columns: 1fr; } }

.cross-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  gap: var(--col-gap);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}
.cross-card:hover { box-shadow: var(--shadow-md); }
.cross-card .cross-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  background: var(--surface-alt);
}
.cross-card .cross-icon svg { width: 22px; height: 22px; color: var(--brand-primary); }
.cross-card h3 { font-size: 18px; line-height: 1.6; margin-bottom: 4px; }
.cross-card p { font-size: 15px; color: var(--ink-500); line-height: 1.5; margin-bottom: 0; }
.cross-card .cross-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 8px;
}

/* ---------- 15. FAQ Accordion ---------- */
.faq-list { margin: 28px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--surface-alt); }
.faq-item .faq-answer {
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
}

/* ---------- 16. Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card__img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 20px; }
.blog-card__tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card__excerpt {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 14px;
}
.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- 17. CTA Band ---------- */
.cta-band {
  background: var(--brand-deep);
  color: var(--white);
  padding: var(--h2-top) var(--gutter) var(--section-bottom);
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.cta-band__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; }
.cta-band .btn-primary { font-size: 15px; padding: 14px 32px; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.8);
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 1px;
}
.footer-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 10%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.08) 90%,
    transparent 100%
  );
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
}
.footer-brand .footer-logo { height: 36px; margin-bottom: 12px; }
.footer-brand .footer-logo img,
.footer-logo img {
  width: 80px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 18px var(--gutter);
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255,255,255,0.5);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 19. Article Hero ---------- */
.article-hero {
  background: var(--brand-deep);
  color: var(--white);
  padding-top: var(--h2-top);
  padding-bottom: var(--section-bottom);
  margin-top: 72px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.article-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-hero .breadcrumb {
  margin-bottom: 1rem;
  border-bottom: none;
  padding: 0;
}
.article-hero .breadcrumb,
.article-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.article-hero .breadcrumb a:hover { color: var(--white); }
.article-hero .breadcrumb .current { color: rgba(255,255,255,0.9); }

.article-hero__tag {
  display: inline-block;
  background: #e6f0fa;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.article-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 800px;
}
.article-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.article-hero__lead {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-top: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  max-width: 720px;
}

@media (max-width: 768px) {
  .article-hero { padding-top: 48px; padding-bottom: 40px; }
  .article-hero h1 { font-size: 1.8rem; }
}

/* ---------- 20. Blog Layout (5:1) ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 5fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter);
}
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-layout { grid-template-columns: 3fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; gap: 36px; }
}

.blog-main { min-width: 0; }

/* Article content */
.blog-main .article-content { max-width: none; margin: 0; padding: 0; }
.article-content h2 {
  font-size: 26px;
  line-height: 1.8;
  margin-top: var(--h2-top);
  margin-bottom: var(--h2-bottom);
}
.article-content h3 {
  font-size: 22px;
  line-height: 1.6;
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-content p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 1.5em;
}
.article-content ul, .article-content ol {
  margin: 14px 0;
  padding-left: 22px;
}
.article-content li { margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.article-content blockquote {
  border-left: 4px solid var(--border);
  padding: 14px 22px;
  margin: 22px 0;
  background: var(--surface-alt);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--ink-700);
}
.article-content .article-image { margin: 0 0 36px; }
.article-content .article-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
  box-shadow: var(--shadow-md);
}
.article-content .article-image figcaption {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  margin-top: 10px;
}

@media (min-width: 1025px) {
  .blog-layout { grid-template-columns: minmax(0, 960px) 300px !important; gap: 48px !important; justify-content: center; align-items: start; }
  .blog-main .article-content { max-width: 960px !important; margin: 0 !important; }
}

/* ---------- 21. Blog Sidebar ---------- */
.blog-sidebar { position: relative; }
.blog-sidebar__inner { position: sticky; top: 96px; }

/* New 3-column sidebar wrapper */
.article-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 20px;
}
.sidebar-widget__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-primary);
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink-700);
  text-decoration: none;
  transition: all 0.15s;
}
.sidebar-tag:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.sidebar-cta__desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.sidebar-cta__btn {
  width: 100%;
  text-align: center;
  display: block;
}

.sidebar-section { margin-bottom: 28px; }
.sidebar-section__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-primary);
}

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-card);
  transition: all 0.15s var(--ease);
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: var(--surface-alt); color: var(--brand-primary); }
.sidebar-nav a .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-300);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-related { list-style: none; padding: 0; margin: 0; }
.sidebar-related li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-related li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-related a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
  transition: color 0.15s var(--ease);
}
.sidebar-related a:hover { color: var(--brand-primary); }
.sidebar-related .meta { font-size: 13px; line-height: 1.2; color: var(--ink-500); margin-top: 4px; }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--brand-deep);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: center;
}
.sidebar-cta h4 { color: var(--white); font-size: 15px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 13px; padding: 10px 14px; }
.sidebar-cta .btn-primary { background: var(--white); color: var(--brand-primary); }
.sidebar-cta .btn-primary:hover { background: var(--surface-alt); }

/* ---------- 22. Blog Inline CTA ---------- */
.blog-cta-inline {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 44px 0;
}
.blog-cta-inline h3 { font-size: 18px; line-height: 1.6; margin-bottom: 8px; }
.blog-cta-inline p { font-size: 15px; color: var(--ink-500); margin-bottom: 14px; }

/* ---------- 23. Author Card ---------- */
.author-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  margin: 44px 0;
}
.author-card__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card__name { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.author-card__role { font-size: 13px; line-height: 1.2; color: var(--ink-500); }

/* ---------- 24. WhatsApp Float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99;
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; fill: var(--white); }

/* ---------- 25. Product Series Cards (Homepage) ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 1024px) { .series-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .series-grid { grid-template-columns: repeat(2, 1fr); } }

.series-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.series-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.series-card__img { width: 100%; height: 160px; object-fit: cover; }
.series-card__body { padding: 16px; }
.series-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.series-card__desc {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-500);
  margin-bottom: 0;
}

/* ---------- 26. Contact Form ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15,59,94,0.08);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-card);
  color: #166534;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
}

/* ---------- 27. AEO Answer Grid ---------- */
.aeo-answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--col-gap); margin: 28px 0; }
.aeo-answer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.aeo-answer-card h3 { font-size: 18px; line-height: 1.6; margin-bottom: 10px; color: var(--brand-deep); }
.aeo-answer-card p { color: var(--ink-700); margin: 0; font-size: 15px; line-height: 1.5; }

@media (max-width: 768px) { .aeo-answer-grid { grid-template-columns: 1fr; } }

/* ---------- 28. Utility ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 29. Mobile Ultra-small ---------- */
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .hero-pills { gap: 8px; }
  .hero-pill { font-size: 12px; padding: 0 10px; height: 28px; }
  .btn-lg { font-size: 15px; padding: 12px 22px; }
  .section-head h2 { font-size: 20px; }
  .data-table { font-size: 13px; }
  .data-table thead th { font-size: 11px; padding: 10px 8px; }
  .data-table tbody td { padding: 8px; font-size: 13px; }
  .outcome-num { font-size: 26px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band p { font-size: 15px; }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 30. Global fixes ---------- */
@media (min-width: 1025px) {
  .container,
  .article-hero__inner,
  .blog-layout,
  .footer-inner,
  .footer-bottom,
  .hero-inner > .container,
  .cta-band__inner {
    max-width: var(--max-w) !important;
  }
}
.site-header { height: 72px; }
.site-header .container { max-width: var(--max-w) !important; }
.article-hero, .site-footer, .cta-band, .hero-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* ============================================================
   PATCH v4.1 — 补充缺失类名定义，修复全站排版
   ============================================================ */

/* ---------- P1. Grid 别名（grid-2/3/4 → grid grid--2/3/4）---------- */
.grid-2 { display: grid; gap: var(--col-gap); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: var(--col-gap); grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: var(--col-gap); grid-template-columns: repeat(4, 1fr); }

/* ---------- P2. Section 变体 ---------- */
.section--alt  { background: var(--surface-alt); }
.section--dark { background: var(--brand-deep); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: inherit; }

/* ---------- P3. Section 标题辅助类 ---------- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: 26px;
  line-height: 1.8;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 640px;
}

/* ---------- P4. 通用卡片（.card）---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink-900); margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--ink-500); line-height: 1.5; margin-bottom: 12px; }

/* ---------- P5. Badge 标签 ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge-blue   { background: #EFF6FF; color: #1565C0; }
.badge-amber  { background: #FFFBEB; color: #92400E; }
.badge-red    { background: #FEF2F2; color: #991B1B; }
.badge-green  { background: #F0FDF4; color: #166534; }
.badge-teal   { background: #F0FDFA; color: #0E8F7F; }

/* ---------- P6. 间距工具类 ---------- */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

/* ---------- P7. 博客文章布局 ---------- */
.blog-article { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter) 60px; }
.blog-content { max-width: 860px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.blog-date { font-size: 13px; color: var(--ink-500); }
.blog-cta-box { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px 32px; margin-top: 48px; }
.blog-cta-box h3 { font-size: 20px; margin-bottom: 8px; }
.blog-cta-box p { color: var(--ink-500); font-size: 15px; margin-bottom: 20px; }

/* ---------- P8. 面包屑分隔符 ---------- */
.breadcrumb-sep { margin: 0 6px; color: var(--ink-300); }

/* ---------- P9. 返回顶部按钮 ---------- */
.scroll-top, #scrollTop {
  position: fixed; bottom: 90px; right: 24px;
  width: 44px; height: 44px;
  background: var(--brand-primary); color: var(--white);
  border: none; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 900;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.scroll-top.visible, #scrollTop.visible { opacity: 1; }

/* ---------- P10. 相关文章区块 ---------- */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 18px; margin-bottom: 20px; }

/* ---------- P11. 联系链接 ---------- */
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-primary); font-weight: 600; font-size: 15px; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* ---------- P12. 响应式补丁 ---------- */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .blog-article { padding: 24px var(--gutter) 40px; }
  .blog-cta-box { padding: 20px; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   BLOG DETAIL PAGE — New 3-column layout + TOC + Progress Bar
   ============================================================ */

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Article Hero: author row ---------- */
.article-hero__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.article-hero__read-time {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.article-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.article-hero__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}
.article-hero__author .author-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.article-hero__author .author-meta {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ---------- 2-Column Body Wrapper (desktop) ---------- */
.article-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  align-items: start;
}
/* Hide standalone left TOC column (TOC is now inside sidebar) */
.article-toc-standalone {
  display: none;
}

/* ---------- Left TOC ---------- */
.article-toc {
  display: none;
  min-width: 0;
}
.article-toc__inner {
  position: sticky;
  top: 96px;
  padding: 24px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.article-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}
.toc-list li {
  margin: 0;
}
.toc-link {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.toc-link:hover {
  color: var(--brand-primary);
}
.toc-link.is-active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}

/* ---------- Center Article Main ---------- */
.article-main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 24px 48px;
}

/* ---------- Article Figures ---------- */
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--ink-500);
  padding-top: 10px;
  text-align: center;
  line-height: 1.2;
}

/* ---------- Blog Recommend Section ---------- */
.blog-recommend {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter);
}
.blog-recommend .container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-recommend .grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.blog-recommend .blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-recommend .blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.blog-recommend .blog-card__img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-recommend .blog-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-recommend .blog-card:hover .blog-card__img-link img {
  transform: scale(1.04);
}
.blog-recommend .blog-card__body {
  padding: 18px 20px 20px;
}
.blog-recommend .blog-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.blog-recommend .blog-card__body h3 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-recommend .blog-card__body h3 a {
  color: var(--ink-900);
  text-decoration: none;
}
.blog-recommend .blog-card__body h3 a:hover {
  color: var(--brand-primary);
}
.blog-recommend .blog-card__body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-recommend .blog-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}
.blog-recommend .blog-card__link:hover {
  text-decoration: underline;
}

/* ---------- Responsive: 2-column (desktop) → 1-column (tablet/mobile) ---------- */

/* Tablet & below: single column, stacked top-to-bottom */
@media (max-width: 1200px) {
  .article-body-wrap {
    grid-template-columns: 1fr;
    gap: 32px 0;
    padding: 40px var(--gutter-md) 60px;
  }
  .article-sidebar {
    position: static !important;
    top: auto !important;
  }
}
@media (max-width: 768px) {
  .article-body-wrap {
    padding: 28px var(--gutter-sm) 48px;
  }
  .blog-recommend .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .article-body-wrap {
    padding: 20px var(--gutter-sm) 40px;
  }
  .blog-recommend .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sidebar Related Articles Widget ---------- */
.sidebar-related .sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-related-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: #EFF6FF;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
}
.sidebar-related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  line-height: 1.5;
}
.sidebar-related-title:hover {
  color: var(--brand-primary);
}
.sidebar-related-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}
.sidebar-related-link:hover {
  text-decoration: underline;
}

/* ---------- Article FAQ Section (Card Style) ---------- */
.article-faq {
  margin: 56px 0 40px;
  padding: 40px 44px;
  background: var(--surface, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-card, 10px);
}
.article-faq__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900, #0F172A);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-primary, #1D4ED8);
  letter-spacing: -0.01em;
}
.article-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.faq-card {
  background: #fff;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.faq-card:hover {
  box-shadow: 0 4px 16px rgba(15,59,94,0.10);
  border-color: var(--brand-primary, #0f3b5e);
}
.faq-card__q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-card__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--brand-primary, #0f3b5e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 1px;
}
.faq-card__question {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900, #0a1e2c);
  line-height: 1.5;
}
.faq-card__a {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  padding-left: 36px;
}
@media (max-width: 768px) {
  .article-faq {
    padding: 28px 20px;
  }
  .article-faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sidebar TOC Widget ---------- */
.sidebar-toc {
  padding: 20px 18px;
}
.sidebar-toc .article-toc__inner {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  position: static;
}
.sidebar-toc .article-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400, #94a3b8);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-primary);
}
.sidebar-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}
.sidebar-toc .toc-link {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.sidebar-toc .toc-link:hover,
.sidebar-toc .toc-link.is-active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}

/* ---------- Sidebar TOC: 3-level nested list ---------- */
.toc-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-toc .toc-sublist {
  border-left: none;
  margin-left: 12px;
}
.sidebar-toc .toc-link--h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.sidebar-toc .toc-link--h3 {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-500);
  padding: 3px 0 3px 12px;
  border-left: 1px solid var(--border);
  margin-left: 0;
}
.sidebar-toc .toc-link--h3:hover,
.sidebar-toc .toc-link--h3.is-active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}

/* ---------- Blog Content: table spacing & paragraph line-height ---------- */
/* 表格下方的段落行间距提高至现有的 1.5 倍，即 line-height: 2.25 */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.25em;
  font-size: 14px;
  line-height: 1.6;
}
.blog-content table th {
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
}
.blog-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}
.blog-content table tbody tr:nth-child(even) {
  background: var(--surface);
}
/* 表格后紧跟的段落，行间距提高到现有的 1.5 倍 (1.5 × 1.5 = 2.25) */
.blog-content table + p {
  line-height: 2.25;
  margin-top: 0.5em;
}


/* ---------- LHN Result Cards 2×2 Grid ---------- */
.result-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.result-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.result-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card__icon svg {
  width: 24px;
  height: 24px;
}

.result-card__icon--blue {
  background: #EFF6FF;
  color: #1D4ED8;
}

.result-card__icon--teal {
  background: #F0FDFA;
  color: #0E8F7F;
}

.result-card__icon--green {
  background: #F0FDF4;
  color: #16A34A;
}

.result-card__icon--orange {
  background: #FFF7ED;
  color: #C2410C;
}

.result-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.result-card__body p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .result-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article Related Blog Row ---------- */
.article-related-blog {
  margin: 40px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--border, #E2E8F0);
}
.article-related-blog__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900, #0F172A);
  margin: 0 0 20px;
}
.article-related-blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.related-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.related-blog-card:hover {
  box-shadow: 0 4px 16px rgba(15,59,94,0.10);
  border-color: var(--brand-primary, #1D4ED8);
}
.related-blog-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.related-blog-card__body {
  padding: 14px 16px;
}
.related-blog-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.related-blog-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900, #0F172A);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .article-related-blog__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Utility Classes — auto-generated from inline style extraction
   DO NOT edit manually; regenerate with extract_inline_styles.py
   ============================================================ */
.u-001 { background:#fff;border:1px solid #e9ecef;border-radius:8px;overflow:hidden; }
.u-002 { padding:1.1rem 1.4rem;font-weight:600;color:#0d1b2a;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-size:.97rem; }
.u-003 { flex-shrink:0;transition:transform .25s; }
.u-004 { padding:0 1.4rem 1.2rem;color:#495057;line-height:1.7;font-size:.95rem; }
.u-005 { margin:0; }
.u-006 { margin:0;text-align:left; }
.u-007 { display:none;visibility:hidden;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }
.u-008 { font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6c757d;margin-bottom:1rem; }
.u-009 { flex:1; }
.u-010 { display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem; }
.u-011 { display:flex;flex-direction:column;gap:0.75rem; }
.u-012 { display:flex;flex-direction:column;gap:.5rem;margin-bottom:2.5rem; }
.u-013 { color:#2563eb;background:rgba(37,99,235,0.08);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-014 { color:#4a5568;line-height:1.65;font-size:0.88rem;text-align:left; }
.u-015 { margin-top:2.1px; }
.u-016 { display:inline-block;vertical-align:middle; }
.u-017 { position:fixed;bottom:88px;right:24px;width:40px;height:40px;background:var(--brand-primary);color:#fff;border:none;border-radius:50%;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s;display:flex;align-items:center;justify-content:center;z-index:98; }
.u-018 { font-size:1.5rem;font-weight:700;color:#0d1b2a;margin:0 0 2.1px; }
.u-019 { border: none; }
.u-020 { height: 180px; object-fit: cover; }
.u-021 { padding: 1.5rem; }
.u-022 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.u-023 { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.u-024 { color: var(--blue-600); font-size: 0.9rem; font-weight: 500; }
.u-025 { line-height:1.45; }
.u-026 { display:flex;align-items:flex-start;gap:1.25rem; }
.u-027 { flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:0.5rem;min-width:80px;padding-top:0.25rem; }
.u-028 { font-weight:400;color:#64748b;font-size:0.72rem; }
.u-029 { margin:0 0 0.5rem;text-align:left; }
.u-030 { display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;text-decoration:none; }
.u-031 { display:flex;flex-direction:column;gap:0.75rem;padding:1.5rem; }
.u-032 { margin:0;font-size:1rem; }
.u-033 { margin:0;color:#6b7280;font-size:0.92rem; }
.u-034 { border-bottom:1px solid #e9ecef; }
.u-035 { padding:14px 0;font-size:0.85rem;font-weight:600;color:#6c757d; }
.u-036 { display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1.1rem;background:#fff;border:1.5px solid #dee2e6;border-radius:6px;font-size:.9rem;font-weight:600;color:#0d1b2a;text-decoration:none;transition:border-color .2s,box-shadow .2s; }
.u-037 { display:flex;align-items:center;gap:1rem;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e9ecef; }
.u-038 { display:flex;flex-direction:column;gap:.5rem; }
.u-039 { text-decoration: none; color: inherit; display: block; }
.u-040 { border: none; border-radius: 2px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.u-041 { height: 220px; object-fit: cover; border-radius: 2px 2px 0 0; }
.u-042 { padding: 1.75rem; }
.u-043 { font-size: 0.85rem; font-weight: 600; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); display: inline-block; padding: 0.3rem 0.8rem; border-radius: 2px; }
.u-044 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--gray-900); line-height: 1.4; }
.u-045 { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; }
.u-046 { width:36px;height:36px;border-radius:50%;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem; }
.u-047 { margin:0 0 0.35rem; }
.u-048 { display:flex;align-items:flex-start;gap:1.5rem;padding:1.75rem; }
.u-049 { flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:0.5rem;min-width:88px; }
.u-050 { color:#2563eb;background:rgba(37,99,235,0.08);border-radius:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center; }
.u-051 { font-weight:800;color:#2563eb;font-size:1.25rem;letter-spacing:0.02em; }
.u-052 { display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;margin-bottom:0.5rem; }
.u-053 { margin:0;font-size:1.05rem; }
.u-054 { background:rgba(37,99,235,0.08);color:#2563eb;font-size:0.78rem;padding:0.2rem 0.6rem;border-radius:4px;white-space:nowrap;font-weight:600; }
.u-055 { margin:0 0 0.5rem;color:var(--gray-600);text-align:left; }
.u-056 { margin:0 0 0.75rem;font-size:0.88rem;color:var(--gray-500);text-align:left; }
.u-057 { color:#d97706; }
.u-058 { font-weight:600;color:#2563eb;text-decoration:none;font-size:0.95rem; }
.u-059 { font-weight:400;font-size:0.82rem; }
.u-060 { display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:2px solid #2563eb;border-radius:8px;text-decoration:none;color:#2563eb;font-weight:600;font-size:0.9rem; }
.u-061 { margin-top:12px; }
.u-062 { max-width:680px;line-height:1.6; }
.u-063 { display:flex;gap:16px;align-items:flex-start;background:#fff8f0;border:1px solid #ffe4c4;border-radius:10px;padding:24px; }
.u-064 { flex-shrink:0;width:36px;height:36px;background:#FF6B35;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:0.9rem; }
.u-065 { font-size:0.95rem;font-weight:700;color:#1a2332;margin-bottom:8px; }
.u-066 { position:absolute;left:-10px;top:0;width:20px;height:20px;background:#2D5FA8;border-radius:50%;display:flex;align-items:center;justify-content:center; }
.u-067 { width:8px;height:8px;background:#fff;border-radius:50%; }
.u-068 { font-size:0.78rem;font-weight:600;color:#2D5FA8;letter-spacing:0.05em;margin-bottom:4px; }
.u-069 { font-size:0.95rem;font-weight:700;color:#1a2332;margin-bottom:6px; }
.u-070 { padding:14px 0;font-size:0.88rem;color:#1a2332; }
.u-071 { margin-top:2rem; }
.u-072 { gap:1.5rem; margin-top:2rem; }
.u-073 { color:#16a34a;background:rgba(22,163,74,0.08);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-074 { color:#d97706;background:rgba(217,119,6,0.08);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-075 { color:#7c3aed;background:rgba(124,58,237,0.08);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-076 { color:#2D5FA8;text-decoration:none; }
.u-077 { color:#2D5FA8;font-weight:600;font-size:0.85rem;letter-spacing:0.08em;text-transform:uppercase;margin-bottom:8px;text-align:center; }
.u-078 { background:#fff;border-radius:12px;padding:32px 28px;box-shadow:0 2px 12px rgba(0,0,0,0.06); }
.u-079 { width:48px;height:48px;background:#EBF2FF;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:20px; }
.u-080 { font-size:1.05rem;font-weight:700;color:#1a2332;margin-bottom:12px; }
.u-081 { color:#4a5568;line-height:1.7;font-size:0.92rem;text-align:left; }
.u-082 { display:flex;gap:20px;padding-bottom:28px;border-left:2px solid #2D5FA8;margin-left:12px;padding-left:24px;position:relative; }
.u-083 { padding:4rem 0 2rem; }
.u-084 { background: var(--white); border-radius: 2px; border: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: default; overflow: hidden; display: flex; flex-direction: column; }
.u-085 { width: 100%; background: #0a1628; flex-shrink: 0; }
.u-086 { width: 100%; display: block; }
.u-087 { padding: 1.75rem 2rem 2rem; flex: 1; border-top: 3px solid var(--blue-600); }
.u-088 { color: var(--blue-600); font-weight: 800; font-size: 1.4rem; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.u-089 { font-size: 1.2rem; margin-bottom: 1.25rem; color: var(--gray-900); font-weight: 700; line-height: 1.35; }
.u-090 { margin-bottom: 0.9rem; color: var(--gray-700); font-size: 0.93rem; line-height: 1.65; }
.u-091 { color: var(--gray-700); font-size: 0.93rem; line-height: 1.65; }
.u-092 { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1rem; display:flex; align-items:center; gap:8px; }
.u-093 { width: 100%; padding: 1rem; background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); color: var(--white); }
.u-094 { width:100%;max-width:100%;line-height:1.45; }
.u-095 { text-align:left; }
.u-096 { display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem; }
.u-097 { padding:1.75rem; }
.u-098 { display:flex;align-items:flex-start;gap:1rem; }
.u-099 { flex-shrink:0;width:40px;height:40px;border-radius:50%;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem; }
.u-100 { margin:0 0 1rem;font-size:1.05rem; }
.u-101 { margin-top: 1rem; font-size: 1.1rem; color: var(--gray-600); max-width: 800px; margin-left: auto; margin-right: auto; }
.u-102 { display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center; }
.u-103 { color:#2D5FA8;font-weight:600;font-size:0.85rem;letter-spacing:0.08em;text-transform:uppercase;margin-bottom:8px; }
.u-104 { color:#4a5568;line-height:1.75;margin-bottom:16px; }
.u-105 { font-size:2rem;font-weight:700;color:#1a2332;line-height:1.3;margin-bottom:12px;margin-top:2.1px;text-align:center; }
.u-106 { max-width:620px;margin:0 auto 48px;color:#6c757d;line-height:1.6;text-align:center; }
.u-107 { display:flex;align-items:center;gap:12px;padding:14px 20px;background:#f8f9fa;border-radius:8px;text-decoration:none;color:#495057;font-weight:600;font-size:0.92rem; }
.u-108 { padding:4rem 0 2rem;background:#f8f9fa; }
.u-109 { width:100%;text-align:center;display:block; }
.u-110 { margin: 0 auto; font-size: 2.25rem; color: var(--blue-900); font-weight: 700; line-height: 1.2; }
.u-111 { margin-top:2.4px; }
.u-112 { display:flex;flex-direction:column;gap:1.25rem; }
.u-113 { color:#2563eb;background:rgba(37,99,235,0.08);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center; }
.u-114 { text-align:center;font-size:0.78rem;font-weight:700;color:#2563eb;line-height:1.2; }
.u-115 { color:#d97706;background:rgba(217,119,6,0.08);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center; }
.u-116 { text-align:center;font-size:0.78rem;font-weight:700;color:#d97706;line-height:1.2; }
.u-117 { color:#2563eb;background:rgba(37,99,235,0.1);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-118 { color:#d97706;background:rgba(217,119,6,0.1);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-119 { color:#0891b2;background:rgba(8,145,178,0.1);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.u-120 { display:grid;grid-template-columns:1fr 1fr;gap:0.75rem; }
.u-121 { display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-size:0.9rem; }


/* ============================================================
   QA Fix 2026-05 — Mobile Navigation Accessibility Patch
   Design intent: keep the existing industrial COOLTEK header visual system,
   while making mobile navigation deterministic, readable and keyboard-safe.
   ============================================================ */
body.mobile-nav-lock {
  overflow: hidden;
  touch-action: none;
}

.menu-toggle.is-open svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.is-open svg line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.menu-toggle svg line {
  transform-origin: center;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

@media (max-width: 1024px) {
  .site-header > .container {
    gap: 12px;
  }

  .site-header .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--brand-deep);
    z-index: 1201;
  }

  .site-header .menu-toggle:focus-visible {
    outline: 3px solid rgba(30, 64, 175, 0.26);
    outline-offset: 2px;
  }

  .site-header nav.nav-primary {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 16px var(--gutter-md) 36px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav.nav-primary.open {
    display: block !important;
  }

  .site-header nav.nav-primary > ul.nav-primary {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
  }

  .site-header nav.nav-primary:not(.open) > ul.nav-primary {
    display: none !important;
  }

  .site-header nav.nav-primary > ul.nav-primary > li {
    width: 100%;
  }

  .site-header nav.nav-primary > ul.nav-primary > li > a {
    min-height: 48px;
    padding: 14px 2px;
  }

  .site-header nav.nav-primary .nav-dropdown {
    position: static !important;
    display: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--border);
    box-shadow: none;
    background: var(--surface);
    transform: none;
  }

  .site-header nav.nav-primary .has-dropdown.open > .nav-dropdown {
    display: block !important;
  }

  .site-header nav.nav-primary .has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .site-header nav.nav-primary .nav-dropdown li a {
    min-height: 44px;
    padding: 10px 12px;
  }

  .site-header .nav-lang {
    flex: 0 0 auto;
  }

  .site-header .btn-quote,
  .site-header .btn-header {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header nav.nav-primary {
    padding-left: var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }

  .site-header .site-logo img,
  .site-header .site-logo img {
    width: 72px !important;
  }

  .site-header .nav-lang a {
    padding: 4px 6px;
    font-size: 12px;
  }
}

/* Mobile response performance audit patch — preserves existing visual language while reducing CLS and overflow risk. */
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
.responsive-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1rem;
}
.responsive-table > table {
  min-width: 640px;
  width: 100%;
}
@media (max-width: 767px) {
  .responsive-table {
    border-radius: 12px;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
  }
  .responsive-table::after {
    content: "";
    display: block;
    height: 1px;
  }
  body.mobile-nav-open {
    touch-action: none;
  }
}

/* ============================================================
   QA Fix 2026-05-09 — Mobile Nav Blank Panel Failsafe
   Purpose: prevent a mobile state where the white overlay opens but
   the real navigation list remains hidden by earlier generic .nav-primary rules.
   This intentionally targets both standard header-right pages and older direct-child
   case templates without changing the desktop navigation.
   ============================================================ */
@media (max-width: 1024px) {
  .site-header.mobile-nav-open nav.nav-primary,
  .site-header nav.nav-primary.open {
    display: block !important;
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    z-index: 1300 !important;
    padding: 18px var(--gutter-md) 40px !important;
    background: rgba(255, 255, 255, 0.99) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .site-header.mobile-nav-open nav.nav-primary > ul.nav-primary,
  .site-header nav.nav-primary.open > ul.nav-primary,
  .site-header nav.nav-primary > ul.nav-primary.open {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .site-header nav.nav-primary.open > ul.nav-primary > li,
  .site-header.mobile-nav-open nav.nav-primary > ul.nav-primary > li {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .site-header nav.nav-primary.open > ul.nav-primary > li > a,
  .site-header.mobile-nav-open nav.nav-primary > ul.nav-primary > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    width: 100% !important;
    padding: 14px 2px !important;
    color: var(--ink-900) !important;
    border-bottom: 1px solid var(--border) !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }

  .site-header nav.nav-primary.open > ul.nav-primary > li > a.active,
  .site-header.mobile-nav-open nav.nav-primary > ul.nav-primary > li > a.active {
    color: var(--brand-primary) !important;
  }

  .site-header nav.nav-primary.open .nav-dropdown,
  .site-header.mobile-nav-open nav.nav-primary .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .site-header.mobile-nav-open nav.nav-primary,
  .site-header nav.nav-primary.open {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===========================================================
   COOLTEK Mobile Responsive Risk Patch v5
   Scope: runtime audit follow-up for 360/390/430px phones.
   Fixes: case/blog horizontal overflow, wide parameter tables,
   blog content wrap width, and mobile product submenu visibility.
   =========================================================== */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

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

  main,
  section,
  article,
  .container,
  .content,
  .page-content,
  .blog-detail,
  .blog-article,
  .article-content,
  .ba-content-wrap,
  .ba-content,
  .case-detail,
  .case-content,
  .case-study,
  .case-body {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .ba-content-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ba-content,
  .article-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ba-content img,
  .article-content img,
  .case-content img,
  .blog-article img,
  main img {
    max-width: 100% !important;
    height: auto !important;
  }

  .ba-content table,
  .article-content table,
  .case-content table,
  .responsive-table table,
  table.ba-params {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    white-space: normal !important;
  }

  .ba-content table th,
  .ba-content table td,
  .article-content table th,
  .article-content table td,
  .case-content table th,
  .case-content table td,
  table.ba-params th,
  table.ba-params td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  table.ba-params,
  table.ba-params tbody,
  table.ba-params tr,
  table.ba-params th,
  table.ba-params td {
    display: block !important;
    width: 100% !important;
  }

  table.ba-params tr {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(15, 66, 96, 0.12) !important;
  }

  table.ba-params th,
  table.ba-params td {
    padding: 6px 0 !important;
  }

  table.ba-params th {
    color: #0f4260 !important;
    font-weight: 700 !important;
  }

  .responsive-table,
  .table-wrap,
  .table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .site-header.mobile-nav-open .nav-primary .has-dropdown,
  .nav-primary.open .has-dropdown {
    width: 100% !important;
  }

  .site-header.mobile-nav-open .nav-primary .has-dropdown > .nav-dropdown,
  .nav-primary.open .has-dropdown > .nav-dropdown,
  .site-header.mobile-nav-open .nav-primary .has-dropdown.open > .nav-dropdown,
  .nav-primary.open .has-dropdown.open > .nav-dropdown {
    display: grid !important;
    grid-template-columns: 1fr !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    margin: 6px 0 8px !important;
    padding: 8px 0 8px 12px !important;
    border: 0 !important;
    border-left: 2px solid rgba(15, 66, 96, 0.16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header.mobile-nav-open .nav-primary .nav-dropdown a,
  .nav-primary.open .nav-dropdown a {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    color: #164968 !important;
    white-space: normal !important;
  }

  .site-header.mobile-nav-open .nav-primary > li > a,
  .site-header.mobile-nav-open .nav-primary ul > li > a,
  .nav-primary.open > li > a,
  .nav-primary.open ul > li > a {
    min-height: 42px !important;
  }
}

/* ===========================================================
   COOLTEK Mobile Language Switcher Patch v6
   Scope: <=768px header language selector only.
   Design: current-language capsule + dropdown language menu.
   Desktop behaviour is intentionally left unchanged.
   =========================================================== */
@media (max-width: 768px) {
  .site-header .header-right {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .site-header .lang-switcher,
  .site-header .nav-lang {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
    z-index: 1502 !important;
  }

  .site-header .lang-switcher::after,
  .site-header .nav-lang::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: #0f4260;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.18s var(--ease, ease);
  }

  .site-header .lang-switcher.is-open::after,
  .site-header .nav-lang.is-open::after {
    transform: translateY(-25%) rotate(225deg);
  }

  .site-header .lang-switcher a,
  .site-header .nav-lang a {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 20px 0 10px !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #30485a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .site-header .lang-switcher a.active,
  .site-header .nav-lang a.active {
    display: inline-flex !important;
    height: 36px !important;
    min-height: 36px !important;
    border: 1px solid rgba(15, 66, 96, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(240, 248, 252, 0.96) !important;
    color: #0f4260 !important;
    box-shadow: 0 4px 12px rgba(15, 66, 96, 0.08) !important;
  }

  .site-header .lang-switcher.is-open,
  .site-header .nav-lang.is-open {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
  }

  .site-header .lang-switcher.is-open a,
  .site-header .nav-lang.is-open a {
    display: flex !important;
    position: relative !important;
    width: 68px !important;
    min-height: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .site-header .lang-switcher.is-open a.active,
  .site-header .nav-lang.is-open a.active {
    height: 40px !important;
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e8f3f8 !important;
    color: #0f4260 !important;
    box-shadow: none !important;
  }

  .site-header .lang-switcher.is-open::before,
  .site-header .nav-lang.is-open::before {
    content: "";
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 68px;
    height: 120px;
    border: 1px solid rgba(15, 66, 96, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    z-index: -1;
  }

  .site-header .lang-switcher.is-open a,
  .site-header .nav-lang.is-open a {
    position: absolute !important;
    right: 0 !important;
    z-index: 1 !important;
  }

  .site-header .lang-switcher.is-open a:nth-child(1),
  .site-header .nav-lang.is-open a:nth-child(1) { top: calc(100% + 8px) !important; border-radius: 14px 14px 0 0 !important; }
  .site-header .lang-switcher.is-open a:nth-child(2),
  .site-header .nav-lang.is-open a:nth-child(2) { top: calc(100% + 48px) !important; }
  .site-header .lang-switcher.is-open a:nth-child(3),
  .site-header .nav-lang.is-open a:nth-child(3) { top: calc(100% + 88px) !important; border-radius: 0 0 14px 14px !important; }

  .site-header .lang-switcher.is-open a:hover,
  .site-header .nav-lang.is-open a:hover,
  .site-header .lang-switcher.is-open a:focus-visible,
  .site-header .nav-lang.is-open a:focus-visible {
    background: #f2f8fb !important;
    color: #0f4260 !important;
    outline: none !important;
  }

  .site-header .btn-header,
  .site-header .btn-quote {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .site-header .menu-toggle {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 390px) {
  .site-header .header-right {
    gap: 6px !important;
  }

  .site-header .lang-switcher,
  .site-header .nav-lang {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }

  .site-header .btn-header,
  .site-header .btn-quote {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 12px !important;
  }
}


/* ===========================================================
   COOLTEK Mobile Language Switcher Patch v6.2
   Purpose: hard override active item dimensions after all legacy language rules.
   =========================================================== */
@media (max-width: 768px) {
  body .site-header .lang-switcher.cooltek-lang-picker.is-open > a.active,
  body .site-header .nav-lang.cooltek-lang-picker.is-open > a.active,
  body .site-header .lang-switcher.is-open > a.active,
  body .site-header .nav-lang.is-open > a.active {
    height: 40px !important;
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e8f3f8 !important;
    color: #0f4260 !important;
    box-shadow: none !important;
  }

  body .site-header .lang-switcher.cooltek-lang-picker.is-open > a.active:nth-child(1),
  body .site-header .nav-lang.cooltek-lang-picker.is-open > a.active:nth-child(1),
  body .site-header .lang-switcher.is-open > a.active:nth-child(1),
  body .site-header .nav-lang.is-open > a.active:nth-child(1) {
    border-radius: 14px 14px 0 0 !important;
  }

  body .site-header .lang-switcher.cooltek-lang-picker.is-open > a.active:nth-child(3),
  body .site-header .nav-lang.cooltek-lang-picker.is-open > a.active:nth-child(3),
  body .site-header .lang-switcher.is-open > a.active:nth-child(3),
  body .site-header .nav-lang.is-open > a.active:nth-child(3) {
    border-radius: 0 0 14px 14px !important;
  }
}
