/* ==========================================================================
   常州蓝泰光电科技有限公司 · v21 公共基础框架与组件系统
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background: var(--bg-abyss);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  line-break: strict;
  text-wrap: pretty;
}

.num,
.mono {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* 版心容器 */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* 通用区块节奏 */
.sec {
  position: relative;
  padding: 96px 0;
  background: var(--bg-canvas);
}

.sec.alt {
  background: var(--bg-alt);
}

.sec + .sec {
  border-top: 1px solid var(--divider);
}

/* 板块头部 */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sec-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-ice);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(249, 99, 2, 0.7);
}

.sec-title {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.sec-title b,
.sec-title em {
  font-style: normal;
  color: var(--accent-amber);
}

.sec-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 760px;
}

.sec-head.center .sec-sub {
  margin-left: auto;
  margin-right: auto;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-ice);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(24, 168, 240, 0.06);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.link-more:hover {
  color: #fff;
  border-color: var(--brand-cyan);
  background: rgba(24, 168, 240, 0.16);
  transform: translateX(2px);
}

/* ==========================================================================
   按钮体系
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 99, 2, 0.45);
}

.btn-secondary {
  background: rgba(24, 168, 240, 0.10);
  color: var(--text-primary);
  border-color: rgba(104, 200, 248, 0.34);
}

.btn-secondary:hover {
  background: rgba(24, 168, 240, 0.20);
  border-color: var(--brand-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 13.5px;
}

/* ==========================================================================
   卡片与展台基础样式（去 PPT 化，采用玻璃景深与细高光边）
   ========================================================================== */
.card {
  background: linear-gradient(180deg, rgba(20, 44, 82, 0.72) 0%, rgba(12, 28, 54, 0.90) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

a.card:hover,
.card.interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* 深空聚光设备展台（衬托透明底金属设备 PNG 与高精度腔体实拍） */
.stage-dark {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: radial-gradient(ellipse 74% 68% at 50% 46%, rgba(24, 168, 240, 0.15) 0%, rgba(12, 30, 58, 0.88) 65%, rgba(6, 15, 30, 0.98) 100%);
  border: 1px solid rgba(104, 200, 248, 0.14);
}

.stage-dark::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 200, 248, 0.35), transparent);
  pointer-events: none;
}

/* 浅冰灰科研图表展台（柔和承托白底/浅底实验数据图，告别刺眼白块） */
.stage-light {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-light-stage);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 系列语义标签胶囊 */
.series-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--s1-bg);
  border: 1px solid var(--s1-bd);
  color: var(--s1);
  white-space: nowrap;
}

.series-pill i {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--s1);
  color: #050c18;
}

.series-pill.c2 {
  background: var(--s2-bg);
  border-color: var(--s2-bd);
  color: var(--s2);
}
.series-pill.c2 i { background: var(--s2); }

.series-pill.c3 {
  background: var(--s3-bg);
  border-color: var(--s3-bd);
  color: var(--s3);
}
.series-pill.c3 i { background: var(--s3); }

/* 功能编号芯片 */
.fn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease);
}

.fn-badge i {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11.5px;
  color: var(--s1);
}

.fn-badge.c2 i { color: var(--s2); }
.fn-badge.c3 i { color: var(--s3); }

a.fn-badge:hover {
  border-color: var(--brand-cyan);
  background: rgba(24, 168, 240, 0.14);
  color: #fff;
}

/* 筛选 Tab 条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 35, 64, 0.55);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: rgba(24, 168, 240, 0.12);
}

.filter-btn.active {
  color: #fff;
  border-color: var(--brand-cyan);
  background: rgba(24, 168, 240, 0.22);
  box-shadow: 0 0 0 1px rgba(24, 168, 240, 0.28);
}

.filter-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s1);
}
.filter-btn .dot.c2 { background: var(--s2); }
.filter-btn .dot.c3 { background: var(--s3); }

/* ==========================================================================
   顶部导航栏（全站深空玻璃态 + 正式透明底白字 Logo）
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* 将磨砂玻璃层放在伪元素上，避免 backdrop-filter 创建固定定位包含块影响移动端抽屉菜单 */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.78) 0%, rgba(5, 12, 24, 0) 100%);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  pointer-events: none;
}

.site-nav.solid,
.site-nav.scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 32px rgba(2, 6, 14, 0.45);
}

.site-nav.solid::before,
.site-nav.scrolled::before {
  background: rgba(5, 12, 24, 0.90);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}

.brand:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.cur {
  color: #fff;
}

.nav-links a.cur::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--accent-amber));
  box-shadow: 0 0 10px rgba(24, 168, 240, 0.7);
}

.nav-links a.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(249, 99, 2, 0.30);
}

.nav-links a.nav-cta::after {
  display: none;
}

.nav-links a.nav-cta:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(249, 99, 2, 0.45);
}

.nav-links a.nav-cta.cur {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 8px 24px rgba(249, 99, 2, 0.5);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 35, 64, 0.65);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.menu-btn:hover {
  border-color: var(--brand-cyan);
  background: rgba(24, 168, 240, 0.16);
}

/* ==========================================================================
   内页统一大气页头（.page-hero）
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 52px) 0 46px;
  background:
    radial-gradient(ellipse 60% 80% at 12% 20%, rgba(1, 108, 184, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 42% 65% at 88% 85%, rgba(249, 99, 2, 0.10) 0%, transparent 65%),
    linear-gradient(180deg, #050d1c 0%, var(--bg-canvas) 100%);
  border-bottom: 1px solid var(--divider);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(104, 200, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 200, 248, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  pointer-events: none;
}

.page-hero-in {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}

.page-hero h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #fff;
}

.page-hero h1 b {
  font-weight: 800;
  color: var(--brand-ice);
}

.page-hero-desc {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 680px;
}

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 35, 64, 0.55);
  border: 1px solid var(--border-subtle);
}

.crumb a:hover {
  color: var(--brand-ice);
}

.crumb .sep {
  opacity: 0.45;
}

/* ==========================================================================
   公共底部 CTA 转化带（深空蓝橙微光）
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(ellipse 55% 85% at 22% 50%, rgba(1, 108, 184, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 45% 75% at 78% 50%, rgba(249, 99, 2, 0.16) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, #061020 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(104, 200, 248, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-box {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.03em;
  color: #fff;
}

.cta-band h2 b {
  color: var(--accent-amber);
}

.cta-band p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   全站页脚（曜石深蓝 + 白字透明底新 Logo）
   ========================================================================== */
.site-footer {
  background: var(--bg-abyss);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr 0.9fr 1.65fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--divider);
}

.foot-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}

.foot-brand p {
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 340px;
}

.foot-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent-gold-soft);
  font-size: 12px;
  font-weight: 600;
}

.foot-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  line-height: 1.6;
}

.foot-col a:hover {
  color: var(--brand-ice);
}

.foot-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.65;
}

.foot-ico {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3.5px;
  opacity: 0.92;
}

.foot-contact-text {
  min-width: 0;
  color: var(--text-muted);
}

.foot-contact-item span.k {
  color: var(--text-secondary);
  font-weight: 500;
}

.foot-contact-item a {
  display: inline;
  margin-bottom: 0;
  color: var(--text-muted);
}

.foot-contact-item a:hover {
  color: var(--accent-amber);
}

.foot-bot {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #5f7996;
}

/* ==========================================================================
   图片高清灯箱（Lightbox）与轻提示（Toast）
   ========================================================================== */
.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 8, 18, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.lb-modal.open {
  opacity: 1;
  visibility: visible;
}

.lb-stage {
  position: relative;
  max-width: min(92vw, 1240px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-stage img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  background: rgba(16, 35, 64, 0.6);
}

.lb-stage.light img {
  background: var(--bg-light-stage);
  padding: 12px;
}

.lb-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 780px;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 35, 64, 0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

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

[data-lightbox] {
  cursor: zoom-in;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 950;
  transform: translate(-50%, 16px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(16, 35, 64, 0.96);
  border: 1px solid var(--brand-cyan);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.26s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   响应式公共断点
   ========================================================================== */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  .sec { padding: 72px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .brand img { height: 40px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-h));
    z-index: 210;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 24px 32px;
    background: #050c18;
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid transparent;
  }
  .nav-links a.cur {
    background: rgba(24, 168, 240, 0.12);
    border-color: rgba(24, 168, 240, 0.28);
  }
  .nav-links a.cur::after { display: none; }
  .nav-links a.nav-cta {
    margin: 12px 0 0;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 28px; }
  .cta-band { padding: 60px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
}
