/* ==========================================================================
   RJMICRO 睿晶微 官方网站 — 设计系统
   风格：简约大气 / 科技感 / 科技蓝 + 白
   ========================================================================== */

/* ----------------------------- 设计令牌 ----------------------------- */
:root {
  --brand: #1b5aa6;
  --brand-dark: #123e75;
  --brand-deep: #0a2647;
  --brand-light: #2e7bc4;
  --brand-50: #f2f7fd;
  --brand-100: #e2eefb;
  --brand-200: #c6ddf6;

  --accent: #00a9e0;
  --accent-soft: #e6f7fd;

  --ok: #0f9d58;
  --warn: #e8a33d;
  --info: #2e7bc4;
  --muted-tone: #8494a3;

  --ink: #0c1b2a;
  --ink-2: #2c3e50;
  --ink-3: #4d6274;
  --muted: #6b7c8c;

  --line: #e4eaf1;
  --line-soft: #eef3f8;

  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-mist: #f0f5fa;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(12, 27, 42, 0.05);
  --shadow: 0 8px 24px rgba(12, 27, 42, 0.07);
  --shadow-lg: 0 18px 48px rgba(11, 42, 82, 0.14);

  --container: 1200px;
  --gutter: 28px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------- 基础重置 ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-200);
  color: var(--brand-deep);
}

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

.container--narrow {
  max-width: 900px;
}

.section {
  padding: 96px 0;
  position: relative;
}

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

.section--mist {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-mist) 100%);
}

.section--tight {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

@media (max-width: 700px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 64px 0;
  }
  :root {
    --gutter: 20px;
  }
}

/* ----------------------------- 排版组件 ----------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
}

.section-lead {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.85;
}

.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(100deg, var(--brand-dark) 0%, var(--brand) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* ----------------------------- 按钮 ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 90, 166, 0.24);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(27, 90, 166, 0.32);
}

.btn--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-2);
}

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

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--sm {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ----------------------------- 顶部导航 ----------------------------- */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.82);
}

.topbar a:hover {
  color: #fff;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(12, 27, 42, 0.07);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.main-nav a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
}

.user-chip:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand);
}

.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1200px) {
  /* 8 个一级菜单 + 登录/咨询按钮，在 1200 容器里需要更紧凑的字号与内边距 */
  .main-nav a {
    padding: 10px 11px;
    font-size: 14.5px;
  }
  .header-actions .btn--sm {
    padding: 0 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 1080px) {
  /* 一级菜单增至 8 项后，容器宽度放不下完整横向导航，从这里开始改用汉堡菜单。 */
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 13px 14px;
    font-size: 16px;
  }
  .main-nav a.is-active::after {
    display: none;
  }
  .main-nav a.is-active {
    background: var(--brand-50);
  }
}

/* ----------------------------- 首页 Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% 8%, rgba(0, 169, 224, 0.22), transparent 62%),
    radial-gradient(900px 460px at 12% 88%, rgba(27, 90, 166, 0.35), transparent 60%),
    linear-gradient(135deg, #071c36 0%, #0b2a52 42%, #123e75 100%);
  color: #fff;
  padding: 104px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(0, 169, 224, 0.22);
  box-shadow: inset 0 0 120px rgba(0, 169, 224, 0.12);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.22);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.22);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(0, 169, 224, 0.05);
  }
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero h1 .hl {
  background: linear-gradient(100deg, #66d3f5 0%, #7fb6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 24px;
  max-width: 620px;
  font-size: 17.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero 右侧：产品线卡片 */
.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  transition: all 0.26s var(--ease);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(0, 169, 224, 0.55);
  transform: translateX(6px);
}

.hero-card .code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-card .name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-top: 6px;
}

.hero-card .desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

/* ----------------------------- 卡片 ----------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.26s var(--ease);
}

.card--hover:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card--flat {
  background: var(--bg-soft);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* 产品线大卡 */
.line-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: all 0.28s var(--ease);
}

.line-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.line-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.line-card:hover::before {
  transform: scaleX(1);
}

.line-card .code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--brand-light);
}

.line-card h3 {
  font-size: 22px;
  margin-top: 6px;
}

.line-card .tagline {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
}

.line-card .summary {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.line-card .line-models {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}

.model-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-dark);
  border: 1px solid var(--brand-100);
}

/* 产品卡 */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.26s var(--ease);
  height: 100%;
}

.product-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-card .model {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.product-card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.product-card .summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
  flex: 1;
}

.product-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.product-card .thumb {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-mist);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--ok {
  background: #e8f6ee;
  color: #0f7a45;
}

.badge--info {
  background: var(--accent-soft);
  color: #0a7ba3;
}

.badge--warn {
  background: #fdf3e3;
  color: #a9701a;
}

.badge--muted {
  background: #f0f3f6;
  color: #6b7c8c;
}

.badge--plain {
  background: var(--brand-50);
  color: var(--brand);
}

.badge--plain::before {
  display: none;
}

/* 特性清单 */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-3);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}

/* ----------------------------- 规格表 ----------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table tr:nth-child(odd) {
  background: var(--bg-soft);
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
}

.spec-table td {
  color: var(--ink-3);
}

.spec-table--pro th {
  color: var(--brand-dark);
}

/* ----------------------------- 页头（内页） ----------------------------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(760px 340px at 88% 0%, rgba(0, 169, 224, 0.18), transparent 60%),
    linear-gradient(120deg, #071c36 0%, #0b2a52 55%, #123e75 100%);
  color: #fff;
  padding: 68px 0 62px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
}

.page-hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13.5px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.56);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.45;
}

/* 白色背景下的面包屑 */
.breadcrumb--light {
  color: var(--muted);
}

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

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

/* ----------------------------- 筛选栏 ----------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

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

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
}

.filter-tab:hover {
  border-color: var(--brand-200);
  color: var(--brand);
}

.filter-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.filter-tab .count {
  font-size: 12px;
  opacity: 0.7;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.search-form input {
  height: 40px;
  width: 220px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.search-form input:focus {
  border-color: var(--brand);
  outline: none;
}

@media (max-width: 720px) {
  .search-form {
    margin-left: 0;
    width: 100%;
  }
  .search-form input {
    width: 100%;
  }
}

/* ----------------------------- 应用领域 ----------------------------- */
/*
 * 纯文字的应用领域卡片（行业应用详情页 → 其他应用领域）。
 * 用 flex 纵向排布 + 底部对齐「查看方案」，卡片高度由内容撑开，
 * 不会出现文字被压到边框上的情况。
 * 注意：带配图的列表页变体是 `.app-card--media`（定义在 media.css）。
 */
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: all 0.28s var(--ease);
  height: 100%;
}

.app-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.app-card .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand-light);
}

.app-card h3 {
  font-size: 21px;
  margin: 12px 0 12px;
}

.app-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  overflow-wrap: anywhere;
}

.app-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.app-card .line-more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-card .line-more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.app-card:hover .line-more::after {
  transform: translateX(4px);
}

/* ----------------------------- 关于我们 ----------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

.prose {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-3);
}

.prose h2 {
  font-size: 24px;
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 19px;
  margin: 32px 0 12px;
}

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

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

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

.prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
}

.prose img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 24px 0;
}

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

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

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-mist);
  padding: 2px 6px;
  border-radius: 5px;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--brand-200));
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.timeline-item h4 {
  font-size: 16.5px;
  margin: 4px 0 6px;
}

.timeline-item p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* 地址卡 */
.address-list {
  display: grid;
  gap: 16px;
}

.address-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.address-item .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.address-item .addr {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* 能力矩阵 */
.capability {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability > div {
  background: #fff;
  padding: 26px 24px;
}

.capability h4 {
  font-size: 16px;
  margin: 12px 0 8px;
}

.capability p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}

.capability .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

@media (max-width: 820px) {
  .capability {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 认证标签 */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 150px;
}

.cert .k {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.cert .v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ----------------------------- 新闻 ----------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: all 0.26s var(--ease);
  height: 100%;
}

.news-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.news-card .cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.news-card .cover .ph {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brand-light);
  opacity: 0.75;
}

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

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.news-card h3 {
  font-size: 17.5px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover h3 {
  color: var(--brand);
}

.news-card .excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 新闻详情 */
.article-head {
  max-width: 820px;
}

.article-head h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.34;
}

.article-body {
  max-width: 820px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.article-body p {
  margin: 0 0 1.3em;
}

.article-body h2 {
  font-size: 23px;
  margin: 44px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}

.article-body h3 {
  font-size: 19px;
  margin: 34px 0 12px;
}

.article-body li {
  margin-bottom: 9px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 26px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 26px 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 12px 15px;
  text-align: left;
}

.article-body th {
  background: var(--bg-soft);
}

/* ----------------------------- CTA 区块 ----------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 82% 20%, rgba(0, 169, 224, 0.24), transparent 62%),
    linear-gradient(120deg, #071c36 0%, #0b2a52 55%, #123e75 100%);
  color: #fff;
  padding: 72px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(22px, 2.8vw, 32px);
}

.cta-inner p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  font-size: 15.5px;
}

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

/* ----------------------------- 表单 ----------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.field label .req {
  color: #d9534f;
  margin-left: 3px;
}

.field .help {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  resize: vertical;
  line-height: 1.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 90, 166, 0.1);
}

.field .checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-3);
}

.field .checkline input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.alert--ok {
  background: #e9f7ef;
  border: 1px solid #bfe6cf;
  color: #0f7a45;
}

.alert--error {
  background: #fdecec;
  border: 1px solid #f5c6c6;
  color: #b03a3a;
}

.alert--info {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-dark);
}

/* ----------------------------- 登录 / 注册 ----------------------------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg-soft);
}

@media (max-width: 940px) {
  .auth-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-aside {
    display: none;
  }
}

.auth-aside {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 78% 12%, rgba(0, 169, 224, 0.24), transparent 60%),
    linear-gradient(140deg, #071c36 0%, #0b2a52 50%, #123e75 100%);
  color: #fff;
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.auth-aside > * {
  position: relative;
  z-index: 2;
}

.auth-aside h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.34;
  margin-bottom: 18px;
}

.auth-aside p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.9;
}

.auth-aside ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}

.auth-aside li {
  position: relative;
  padding-left: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.auth-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.18);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-card .sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-card .foot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
}

/* ----------------------------- 列表 / 下载 ----------------------------- */
.download-list {
  display: grid;
  gap: 16px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.24s var(--ease);
}

.download-item:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}

.download-item .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.download-item .info {
  flex: 1;
  min-width: 0;
}

.download-item h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.download-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.download-item .size {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14.5px;
  color: var(--ink-3);
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination .is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.pagination .gap {
  border: 0;
  background: transparent;
  min-width: 20px;
  color: var(--muted);
}

/* 空状态 */
.empty {
  padding: 72px 32px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.empty h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ----------------------------- 页脚 ----------------------------- */
/* v1.6.0：整体压缩（首页曾因页脚过高显得拖沓），并去掉后台入口那一行 */
.site-footer {
  background: #071c36;
  color: rgba(255, 255, 255, 0.62);
  padding: 52px 0 0;
  font-size: 14.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 32px;
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 36px;
    padding-bottom: 26px;
  }
}

@media (max-width: 620px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

/* 只作用于 Logo，不能用后代选择器，否则会连带反转页脚二维码 */
.footer-brand > img {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  margin: 16px 0 0;
  line-height: 1.8;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.56);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}

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

.footer-col li {
  margin: 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
}

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

.footer-col .txt {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .beian {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ----------------------------- 错误页 ----------------------------- */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.error-page .code {
  font-family: var(--font-mono);
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-page h1 {
  font-size: 24px;
  margin: 20px 0 12px;
}

.error-page p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ----------------------------- 动画 ----------------------------- */
/* 仅在 JS 可用时隐藏待揭示元素（.js 由 head 中的内联脚本注入），
   这样即便 JS 加载失败或被禁用，页面内容仍然完整可见，不会白屏 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------- 工具类 ----------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 12px !important; }
.mt-2 { margin-top: 24px !important; }
.mt-3 { margin-top: 36px !important; }
.mt-4 { margin-top: 52px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 24px !important; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.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;
}

/* 产品详情页布局 */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 56px;
  align-items: start;
}

@media (max-width: 940px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 26px;
}

.sticky-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.side-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

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

.side-list a .m {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-light);
  display: block;
}

.kv-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.kv-inline strong {
  color: var(--ink);
  font-weight: 600;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-dark);
  font-size: 13.5px;
}

/* ==========================================================================
   v1.3.0 — 服务支持（交叉搜索 / 资料下载 / 技术文章 / 在线课堂）+ 全站搜索
   ========================================================================== */

/* --- 徽标：引脚相同（violet） --- */
.badge--violet {
  background: #f3efff;
  color: #6b4bd6;
}

.badge--violet::before {
  background: #8b6ae8;
}

/* --- 页头导航二级菜单 --- */
.nav-item--menu {
  position: relative;
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}

.nav-item--menu:hover .nav-caret,
.nav-item--menu:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 268px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.nav-item--menu:hover .nav-menu,
.nav-item--menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 比 .main-nav a 更具体，避免被主导航的内边距 / 下划线规则覆盖 */
.main-nav .nav-menu a,
.main-nav .nav-menu__item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav .nav-menu__item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.main-nav .nav-menu__item span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

.main-nav .nav-menu__item:hover {
  background: var(--brand-50);
}

.main-nav .nav-menu__item:hover strong {
  color: var(--brand);
}

.main-nav .nav-menu__item.is-current {
  background: var(--brand-50);
}

.main-nav .nav-menu__item.is-current strong {
  color: var(--brand);
}

.main-nav .nav-menu a.is-active::after {
  display: none;
}

/* --- 页头工具入口（窄屏时替代顶栏的全站搜索 / 交叉搜索） --- */
.header-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  transition: all 0.2s var(--ease);
}

/* 默认隐藏，窄屏（顶栏收起）时才显示，避免与顶栏入口重复 */
.header-tool--sm-only {
  display: none;
}

.header-tool:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand);
}

.header-tool--cross:hover {
  border-color: #cdbcf7;
  background: #f6f2ff;
  color: #6b4bd6;
}

/* --- 顶栏入口（与「服务热线」同一行） --- */
.topbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.topbar-tools__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.24);
}

.topbar-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.topbar-tool svg {
  opacity: 0.8;
}

.topbar-tool:hover svg {
  opacity: 1;
}

/* --- 全站搜索面板（覆盖在页头下方） --- */
.site-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 20px 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(12, 27, 42, 0.1);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

/* 作者样式的 display 会盖掉 UA 的 [hidden]，必须显式处理 */
.site-search[hidden] {
  display: none;
}

.site-search.is-open {
  opacity: 1;
  transform: translateY(0);
}

.site-search__form {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
}

.site-search__form:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 90, 166, 0.08);
}

.site-search__form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.site-search__form input:focus {
  outline: none;
}

.site-search__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-search__close:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.site-search__hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page-hero--compact {
  padding: 46px 0 42px;
}

/* --- 服务支持总览 --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  transition: all 0.26s var(--ease);
}

.support-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.support-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 18px;
}

.support-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.support-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.support-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}

/* --- 交叉搜索：搜索条 --- */
.xsearch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  max-width: 760px;
}

.xsearch__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.xsearch__field:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.xsearch__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
}

.xsearch__field input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.xsearch__field input:focus {
  outline: none;
}

.xsearch .btn {
  flex-shrink: 0;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
}

.xsearch__hint {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.xsearch__hint a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .xsearch {
    flex-direction: column;
    align-items: stretch;
  }
  .xsearch .btn {
    width: 100%;
  }
}

/* --- 交叉搜索：结果 --- */
.xresult-list {
  display: grid;
  gap: 18px;
}

.xresult {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.24s var(--ease);
}

.xresult:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}

.xresult__main {
  flex: 1;
  min-width: 0;
}

.xresult__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.xresult__model {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.xresult__note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.xresult__competitors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.xresult__label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.xresult__products {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.xresult__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--ink-2);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}

.xresult__product:hover {
  background: var(--brand-100);
}

.xresult__product-model {
  font-weight: 700;
  color: var(--brand-dark);
}

.xresult__product-name {
  flex: 1;
  min-width: 0;
  color: var(--ink-3);
}

.xresult__side {
  flex-shrink: 0;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .xresult {
    flex-direction: column;
    gap: 16px;
  }
  .xresult__side {
    width: 100%;
  }
  .xresult__side .btn {
    width: 100%;
  }
}

/* --- 筛选标签计数 --- */
.filter-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--bg-mist);
  font-size: 12px;
  color: var(--muted);
}

.filter-tab.is-active .filter-tab__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* --- 结果统计与跳转 --- */
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 36px;
}

.results-head__text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-3);
}

.results-head__num {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--brand);
  margin: 0 2px;
}

.result-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.result-jump__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
}

.result-jump__item:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand);
}

.result-jump__item span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* --- 提示卡 --- */
.note-card {
  padding: 26px 28px;
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-50);
}

.note-card h4 {
  margin: 0 0 12px;
  font-size: 16.5px;
  color: var(--brand-dark);
}

.note-card ul {
  margin: 0;
  padding-left: 20px;
}

.note-card li {
  color: var(--ink-3);
  line-height: 1.9;
}

.note-card code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--brand-100);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-dark);
}

/* --- 搜索结果分组 --- */
.result-group {
  margin-bottom: 54px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.result-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.result-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--brand-50);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
}

.result-card {
  display: block;
}

.result-card__title {
  font-size: 18px;
  margin: 12px 0 0;
}

.result-card__sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.result-card__text {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.result-list {
  display: grid;
  gap: 2px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  color: inherit;
  transition: background 0.18s var(--ease);
}

.result-row:hover {
  background: var(--brand-50);
}

.result-row__tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  background: var(--bg-mist);
  font-size: 12.5px;
  color: var(--ink-3);
}

.result-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.result-row__body strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.result-row:hover .result-row__body strong {
  color: var(--brand);
}

.result-row__body em {
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

.result-row__time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .result-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .result-row__body {
    flex-basis: 100%;
  }
}

/* --- 在线课堂 --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  color: inherit;
  transition: all 0.26s var(--ease);
}

.course-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.course-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 60%, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.course-card__cover .ph {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
}

.course-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(7, 28, 54, 0.28);
  transition: transform 0.24s var(--ease);
}

.course-card:hover .course-card__play {
  transform: scale(1.08);
}

.course-card__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(7, 28, 54, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
}

.course-card__body {
  flex: 1;
  padding: 20px 22px 22px;
}

.course-card__body h3 {
  font-size: 17px;
  margin: 10px 0 0;
  line-height: 1.55;
}

.course-card:hover .course-card__body h3 {
  color: var(--brand);
}

.course-card__body .excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.course-card__teacher {
  font-size: 13px;
  color: var(--muted);
}

.course-card__meta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--brand);
}

/* --- 课程播放页 --- */
.course-player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a1a2c;
}

.course-player video {
  display: block;
  width: 100%;
  max-height: 66vh;
  background: #0a1a2c;
}

.course-player__empty {
  padding: 74px 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #071c36, #123e75);
}

.course-player__empty h3 {
  color: #fff;
  font-size: 19px;
  margin: 16px 0 6px;
}

.course-player__empty p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.course-player__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.outline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.outline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  font-size: 15px;
}

.outline-item:last-child {
  border-bottom: 0;
}

.outline-item__no {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12.5px;
}

.outline-item__title {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
}

.outline-item__time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 6px;
}

.mini-list__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.18s var(--ease);
}

.mini-list__item:hover {
  background: var(--brand-50);
}

.mini-list__model {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 14px;
}

.mini-list__name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* --- 资料下载：标题行带权限徽标 --- */
.download-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.download-item__head h3 {
  margin: 0;
}

/* --- 移动端适配 --- */
@media (max-width: 1080px) {
  /* 移动端导航改为手风琴：二级菜单常显在父项下方 */
  .nav-item--menu {
    width: 100%;
  }
  .main-nav .nav-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 6px 12px;
    border: 0;
    border-left: 2px solid var(--brand-100);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav .nav-menu__item {
    padding: 9px 12px;
  }
  .nav-caret {
    display: none;
  }
  .site-search {
    position: static;
    box-shadow: none;
    padding: 14px 0;
  }
  /* 顶栏已收起两个入口 → 改用页头里的图标按钮 */
  .topbar-tools {
    display: none;
  }
  .header-tool--sm-only {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  /* 小屏页头只保留：品牌 + 全站搜索 + 登录 + 汉堡。
     交叉搜索在「服务支持」下拉里，在线咨询在导航与页脚 CTA 里，都还能到达。 */
  .header-tool--cross {
    display: none;
  }
  .header-actions > .btn--primary {
    display: none;
  }
  .brand img {
    height: 22px;
  }
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .header-actions .btn--sm {
    padding: 0 11px;
  }
}

/* ==========================================================================
   v1.4.0 — 页脚二维码 / 行业应用分类 / 交叉搜索说明与免责声明 / 资料下载关联
   ========================================================================== */

/* --- 徽标：品牌蓝（行业应用分类） --- */
.badge--brand {
  background: var(--brand-50);
  color: var(--brand-dark);
}

.badge--brand::before {
  background: var(--brand);
}

/* --- 详情页 hero 里的分类入口（行业应用详情） --- */
.hero-eyebrow-link {
  display: inline-block;
  margin-bottom: 12px;
}

.hero-eyebrow-link .badge {
  height: 27px;
  padding: 0 13px;
  transition: background 0.2s var(--ease);
}

.hero-eyebrow-link:hover .badge {
  background: var(--brand-100);
}

/* --- 主导航下拉：子项变多时防止超出视口（产品中心 4 项 / 行业应用 6 项） --- */
.nav-menu {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/*
 * v1.6.1 修复：英文站的说明文字较长，被 `.main-nav a { white-space: nowrap }`
 * 一路继承成不换行，面板最宽被撑到 651px（中文最长 396px 所以没暴露），
 * 右边缘顶出视口产生横向滚动条 —— 而且这个面板收起时只是 visibility:hidden，
 * 仍然参与溢出计算，所以滚动条一直存在。这里允许换行并限制面板宽度。
 */
.nav-menu {
  max-width: min(420px, calc(100vw - 32px));
}

.main-nav .nav-menu__item {
  white-space: normal;
}

/* --- 页脚：三个二维码并排放在 Logo 下方 ---
   v1.6.1：平台名称由文字改为右下角品牌图标徽标；
   每格宽度改为「左栏三等分」的流式算法，任何标签长度、任何屏宽都排成一行。 */
.footer-social {
  --qr-gap: 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--qr-gap);
  margin-top: 24px;
}

.footer-qr-item {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - (var(--qr-gap) * 2)) / 3);
  max-width: 92px;
}

/* 注意：页脚 Logo 用的是 .footer-brand > img（直接子选择器），
   二维码是孙级 img，不会被 logo 的 brightness/invert 滤镜连带反转。 */
.footer-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  transition: box-shadow 0.24s var(--ease);
}

.footer-qr-item:hover .footer-qr {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

/* 未上传二维码时给虚线占位框，避免出现破图 */
.footer-qr--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.24);
}

/* 每个平台一个品牌色，图标（含占位态）统一从这里取色 */
.footer-qr-item--wechat {
  --brand: #07c160;
}

.footer-qr-item--channels {
  --brand: #fa9d3b;
}

.footer-qr-item--bilibili {
  --brand: #00aeec;
}

.footer-qr-item svg {
  color: var(--brand);
}

/* 占位态（二维码还没上传）：虚线框里放一个大一号的品牌图标 */
.footer-qr--empty svg {
  width: 58%;
  height: auto;
  max-width: 40px;
  opacity: 0.72;
}

/* 已上传二维码：品牌图标做成右下角小徽标 */
.footer-qr__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-qr__badge svg {
  width: 15px;
  height: 15px;
}

/* --- 交叉搜索：默认态说明（未搜索时不铺开竞品型号清单） --- */
.xsearch-intro {
  display: grid;
  gap: 16px;
}

.xsearch-intro__step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.xsearch-intro__no {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.xsearch-intro__step h3 {
  margin: 4px 0 6px;
  font-size: 16.5px;
}

.xsearch-intro__step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

.xsearch-intro__step code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* --- 交叉搜索：逐条「竞品型号 → 替代类型」关系 --- */
.xpair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.xpair__model {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

.xpair .badge {
  height: 22px;
  padding: 0 9px;
  font-size: 11.5px;
}

/* --- 替代类型判定口径说明 --- */
.replace-guide {
  margin-bottom: 40px;
}

.replace-guide__title {
  margin: 0 0 12px;
  font-size: 22px;
}

.replace-guide__lead {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
}

.replace-guide__list {
  display: grid;
  gap: 12px;
}

.replace-guide__item {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
}

.replace-guide__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.replace-guide__head strong {
  font-size: 16px;
  color: var(--ink);
}

.replace-guide__en {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.replace-guide__item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.85;
}

/* --- 免责声明 --- */
.disclaimer {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.disclaimer__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.disclaimer p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.95;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

.disclaimer strong {
  font-weight: 600;
  color: var(--ink-3);
}

/* --- 资料下载：适用型号 --- */
.download-item__models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.download-item__models .model-pill {
  font-size: 12.5px;
}

/* --- v1.4.0 移动端适配 --- */
@media (max-width: 640px) {
  /* v1.6.1：二维码尺寸改由 .footer-qr-item 的流式宽度决定，
     原来这里写死的 82px 会与流式计算冲突（且被媒体查询外的规则覆盖，本就是死代码）。 */

  .xsearch-intro__step {
    gap: 14px;
    padding: 20px 18px;
  }

  .xsearch-intro__no {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }

  .replace-guide__item {
    padding: 18px;
  }

  .disclaimer {
    padding: 22px 20px;
  }

  .xpair {
    padding-left: 10px;
  }
}

/* ==========================================================================
   v1.5.0 新增组件
   — 首页 Banner 轮播 / 新品速递与行业应用卡片 / 据点条目 / 中英切换 / 页脚后台入口
   ========================================================================== */

/* ----------------------------- 中英切换按钮（页头） ----------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.22s var(--ease);
}

.lang-switch:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand);
}

.lang-switch__ico {
  display: inline-flex;
  align-items: center;
  opacity: 0.72;
}

/* ----------------------------- 首页 Banner 轮播 ----------------------------- */
.hero-slider {
  position: relative;
  background: var(--brand-deep);
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  overflow: hidden;
}

.hero-slider__track {
  display: flex;
  align-items: stretch;
}

/* 无 JS 时只有第一张可见（轨道不位移），轮播照样能看 */
.js .hero-slider__track {
  transition: transform 0.72s var(--ease);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  min-height: clamp(300px, 40vw, 520px);
  color: #fff;
  text-decoration: none;
}

.hero-slide:hover {
  color: #fff;
}

/* 图片铺满 + 文字可读性蒙层 */
.hero-slide__media {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 28, 54, 0.86) 0%,
    rgba(7, 28, 54, 0.6) 46%,
    rgba(7, 28, 54, 0.24) 78%
  );
  pointer-events: none;
}

.hero-slide__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-slide__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 660px;
}

.hero-slide__title {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 26px rgba(7, 28, 54, 0.5);
}

.hero-slide__text {
  font-size: clamp(14.5px, 1.25vw, 17.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

.hero-slide__cta {
  margin-top: 8px;
  pointer-events: none;
}

/* 轮播控件：默认隐藏，有 JS 才显示（无 JS 时静态展示第一张即可） */
.hero-slider__ui {
  display: none;
}

.js .hero-slider__ui {
  display: block;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 28, 54, 0.36);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all 0.22s var(--ease);
}

.hero-slider__arrow:hover {
  background: rgba(0, 169, 224, 0.9);
  border-color: transparent;
}

.hero-slider__arrow--prev {
  left: 22px;
}

.hero-slider__arrow--next {
  right: 22px;
}

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-slider__dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: all 0.24s var(--ease);
}

.hero-slider__dot.is-active {
  width: 52px;
  background: #fff;
}

/* ----------------------------- 首页：行业应用图片卡 ----------------------------- */
.app-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: all 0.28s var(--ease);
}

.app-tile:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.app-tile__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--brand-deep);
}

.app-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.app-tile:hover .app-tile__media img {
  transform: scale(1.05);
}

.app-tile__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 26px;
}

.app-tile__body h3 {
  margin: 0;
  font-size: 19px;
}

.app-tile__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.app-tile .line-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-tile .line-more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.app-tile:hover .line-more::after {
  transform: translateX(4px);
}

.app-tile .line-more em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

/* ----------------------------- 首页：关于我们区块 ----------------------------- */
.about-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-3);
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----------------------------- 公司据点（多 SITE）----------------------------- */
.site-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.site-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.site-chip__name {
  font-weight: 700;
  color: var(--brand-dark);
}

.site-chip__city {
  font-size: 13px;
  color: var(--muted);
}

/* 关于我们 / 联系页的据点详情卡 */
.site-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  height: 100%;
}

.site-card__head {
  padding: 26px 28px 0;
}

.site-card__city {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.site-card__name {
  margin: 10px 0 0;
  font-size: 22px;
}

.site-card__role {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-3);
}

.site-card__body {
  padding: 20px 28px 26px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.site-card__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.site-card__row .k {
  flex-shrink: 0;
  width: 4.2em;
  color: var(--ink-3);
}

.site-card__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
}

.site-card__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 28px 26px;
}

.site-card__photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ----------------------------- 地图容器（联系页） ----------------------------- */
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  overflow: hidden;
}

.map-panel__canvas {
  width: 100%;
  height: 380px;
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 169, 224, 0.14), transparent 58%),
    var(--bg-soft);
}

/* 未配置高德 Key 时的降级提示 */
.map-panel__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  background: var(--bg-soft);
}

.map-panel__fallback p {
  margin: 0;
  max-width: 520px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.map-tabs__btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.map-tabs__btn:hover {
  border-color: var(--brand-200);
  color: var(--brand);
}

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

/* ----------------------------- 页脚：据点列表 + 登录入口 ----------------------------- */
.footer-sites {
  gap: 10px;
}

.footer-site {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-site__name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-site__addr {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.46);
}

/*
 * 页脚登录入口（v1.6.0）：与备案号同一行，只多一个链接、不增加高度。
 * 管理后台入口已下线（首页不再保留管理入口）。
 */
.footer-login {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
}

.footer-login::after {
  content: "·";
  margin-left: 14px;
  color: rgba(255, 255, 255, 0.24);
  font-weight: 400;
}

/* ----------------------------- 移动端二级菜单（点击展开） ----------------------------- */
@media (max-width: 1080px) {
  /* 父项改成「左标题 + 右侧箭头」，右侧留出点击区域 */
  .main-nav .nav-item--menu > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .main-nav .nav-item--menu .nav-menu {
    padding: 4px 0 6px 12px;
  }

  /* 关键改动：二级菜单默认收起，点父项才展开（无 JS 时保持原样常显） */
  .js .main-nav .nav-item--menu .nav-menu {
    display: none;
  }

  .js .main-nav .nav-item--menu.is-expanded .nav-menu {
    display: block;
  }

  /* 移动端把三角形换成可旋转的箭头，作为「可展开」的提示 */
  .js .nav-caret {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 0;
    flex-shrink: 0;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s var(--ease);
    opacity: 0.5;
  }

  .js .nav-item--menu.is-expanded > .nav-link .nav-caret {
    transform: rotate(-135deg);
    opacity: 0.9;
  }
}

@media (max-width: 560px) {
  .lang-switch {
    padding: 0 10px;
    height: 34px;
  }

  .hero-slide__body {
    padding: 40px 0;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }

  .hero-slider__arrow--prev {
    left: 10px;
  }

  .hero-slider__arrow--next {
    right: 10px;
  }

  .hero-slider__dots {
    bottom: 14px;
  }
}

/* ==========================================================================
   v1.6.0 — 页头账号入口 / 页脚精简 / 纯文字应用卡
   ========================================================================== */

/*
 * 已登录：只留圆形头像图标。
 * v1.5.0 的 `.user-chip` 带「管理后台」文字，宽度接近 120px，
 * 手机版会把汉堡按钮顶出可视区（用户点不到菜单）—— 这里改成纯图标。
 */
.user-chip--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  flex: 0 0 auto;
}

/*
 * 访客登录入口（v1.6.0）
 * ------------------------------------------------------------
 * 资料下载里标注「登录后下载」的条目需要账号，此前访客在页面上找不到入口。
 * 用与顶栏工具一致的紧凑胶囊样式，不抢「在线咨询」主按钮的位置。
 */
.header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-login:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand);
}

@media (max-width: 1080px) {
  /* 与汉堡菜单同屏时收紧，保证菜单按钮永远露出 */
  .user-chip--icon {
    width: 38px;
    height: 38px;
  }

  .header-login {
    height: 36px;
    padding: 0 11px;
    font-size: 13.5px;
  }
}

@media (max-width: 700px) {
  /* 只留图标，宽度压到 36px，避免挤压汉堡按钮。
     v1.6.1：断点从 560 提到 700 —— 实测 657~665px 之间
     「两个工具图标 + 语言 + 登录文字 + 在线咨询 + 汉堡」会超出容器约 10px，
     把汉堡按钮顶出可视区（用户点不到菜单）。 */
  .header-login {
    width: 36px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .header-login__text {
    display: none;
  }
}

/*
 * 首页轮播箭头：窄屏移到 banner 底部的圆点行（v1.6.0）
 * ------------------------------------------------------------
 * 箭头原本固定在 banner 垂直中线（top:50%）。手机端 banner 高度被压缩后，
 * 这条中线正好落在副标题上，左右箭头会压住文字两端（≤560px 实测必然重叠）。
 * 窄屏改为贴底显示，与居中的圆点分列两侧，不再遮挡任何文案。
 */
@media (max-width: 640px) {
  .hero-slider__arrow {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 34px;
    height: 34px;
  }

  .hero-slider__arrow--prev {
    left: 12px;
  }

  .hero-slider__arrow--next {
    right: 12px;
  }

  /* 圆点与两侧箭头同处一行，稍微上移避免视觉上贴边 */
  .hero-slider__dots {
    bottom: 22px;
  }
}

/*
 * 超窄屏页头收紧（v1.6.1）
 * ------------------------------------------------------------
 * 360px 及以下，「搜索图标 + 语言切换 + 登录 + 汉堡按钮 + 品牌 Logo」
 * 的总宽度会超出容器 20~60px，把汉堡按钮顶出可视区（用户点不到菜单）。
 * 这里把 Logo 改成流式缩放、其余控件统一压到 32/34px 的紧凑尺寸，
 * 间距一并收紧；≤340px 再把语言切换压成纯图标（title 里仍有文字说明）。
 * 实测 320px 宽下仍可全部排下，汉堡按钮右边缘距视口有 20px 余量。
 */
@media (max-width: 400px) {
  .brand img {
    height: clamp(17px, 5vw, 22px);
  }

  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-tool--sm-only {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  .lang-switch {
    height: 34px;
    padding: 0 8px;
    gap: 4px;
  }

  .header-login {
    width: 32px;
    height: 32px;
  }

  .user-chip--icon {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 340px) {
  .lang-switch {
    width: 32px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .lang-switch__text {
    display: none;
  }
}
