/* === 高泽电子 - 上市公司旗舰级统一视觉规范 (Global Corporate Style) === */
:root {
  --primary-navy: #0B192C;     /* 主深蓝，高级稳重 */
  --primary-blue: #0E4680;     /* 品牌深科技蓝 */
  --accent-blue: #0072CE;      /* 高精智造蓝 */
  --accent-cyan: #00A3E0;      /* 智能高光青 */
  --gold-accent: #D4AF37;      /* 卓越品质微金 */
  --bg-dark: #07121E;          /* 头部暗底/沉浸板块 */
  --bg-light: #F7F9FC;         /* 高端灰白背景 */
  --bg-card: #FFFFFF;          /* 卡片纯白 */
  --border-light: #E4E8EE;     /* 精致边框 */
  --border-subtle: #EEF2F6;    /* 极细分割线 */
  --text-main: #1C2430;        /* 正文字体深色 */
  --text-muted: #5C6A79;       /* 次要辅助信息 */
  --text-light: #94A3B8;       /* 浅灰说明 */
  --shadow-sm: 0 4px 12px rgba(11, 25, 44, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 25, 44, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 容器与版心 */
.container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}
.section-inner {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

/* === 全局顶栏 (Header) === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 25, 44, 0.06);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  height: 74px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.header-inner {
  height: 100%;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--primary-navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(14, 70, 128, 0.25);
}

.brand strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}


/* 导航链接 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 10px 0;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-blue);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 顶栏热线与语言 */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
}

.header-phone span {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.header-phone b {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}

/* 语言切换菜单 */
.language-switcher {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-navy);
  transition: var(--transition);
}

.language-trigger:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.language-trigger img.globe-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.language-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.language-switcher.open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 170px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(11, 25, 44, 0.15);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.language-option:hover {
  background: #f8fafc;
}

.language-option.active {
  background: rgba(0, 114, 206, 0.08);
}

.language-option b {
  font-size: 13px;
  color: var(--primary-navy);
}

.language-option.active b {
  color: var(--accent-blue);
}

.language-option small {
  font-size: 11px;
  color: var(--text-light);
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-navy);
  transition: var(--transition);
}

/* === 通用页面 Hero (统一顶级上市公司Banner) === */
.subpage-hero {
  position: relative;
  background: linear-gradient(135deg, #071626 0%, #0B2545 60%, #133E68 100%);
  color: #fff;
  padding: 170px 0 90px;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(0, 163, 224, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(14, 70, 128, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.subpage-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.subpage-hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.subpage-hero h1 strong,
.subpage-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #FFFFFF 0%, #A5D8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-hero p.hero-desc {
  font-size: 17px;
  max-width: 680px;
  color: #CBD5E1;
  line-height: 1.8;
}

/* === 统一面包屑导航 === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94A3B8;
  margin-top: 24px;
}

.breadcrumb a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span.sep {
  color: #64748B;
}

/* === 通用 Section 规范 === */
.section-pad {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* === 统一样式按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.3);
}

.btn-primary:hover {
  background: #005fad;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 114, 206, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #fff;
}

/* Footer中的按钮hover效果 - 白色背景时文字变黑 */
.footer-col .btn-outline:hover {
  background: #fff;
  color: #1a1a1a !important;
  border-color: #fff;
}

.btn-light {
  background: #ffffff;
  color: var(--primary-navy);
}

.btn-light:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* === 全局统一 Footer (上市公司典雅半透明科技透明感页脚) === */
.site-footer {
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.88) 0%, rgba(6, 13, 24, 0.96) 100%), url('JPEG/ComfyUI_00001_ukmmp_1747118021.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  color: #94A3B8;
  padding: 80px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 196, 180, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 20px;
}

.footer-brand .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand .brand strong {
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #94A3B8;
  max-width: 380px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  position: relative;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.footer-contact-item span {
  font-size: 12px;
  color: #64748B;
}

.footer-contact-item strong {
  font-size: 15px;
  color: #E2E8F0;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 13px;
  color: #64748B;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom .footer-links {
  display: flex;
  gap: 24px;
}

/* === 弹窗 (Detail Modal) === */
.detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.detail-modal.open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.8);
  backdrop-filter: blur(8px);
}
.detail-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(940px, calc(100% - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  background: #fff;
  display: grid;
  grid-template-columns: 48% 52%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}
.detail-dialog-media {
  min-height: 420px;
  background: #f1f5f9;
}
.detail-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-dialog-copy {
  padding: 50px 40px;
}
.detail-dialog-copy h2 {
  font-size: 28px;
  color: var(--primary-navy);
  margin-bottom: 16px;
}
.detail-dialog-copy > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  border: 0;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--primary-navy);
}
.modal-specs {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--primary-navy);
  color: #fff;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* === 响应式调整 (Responsive) === */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 72px;
  }
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
  }
  .main-nav a::after {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .detail-dialog {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }
  .detail-dialog-media {
    min-height: 240px;
  }
  .detail-dialog-copy {
    padding: 30px 24px;
  }
}
