/* Theme Name: ZDOptical Sapphire Theme
Theme URI: https://www.zdoptical.com
Author: Optical Independent Station Developer
Description: High-end technology Dark Style theme optimized for Sapphire Materials, Optical Components, Vacuum Coating, and Silk Screen Printing B2B factories. Fully Google SEO & Speed Optimized.
Version: 2.3
License: GNU General Public License v2 or later
*/

/* ════════════════════════════════════════════
   CSS VARIABLES & CORE SETTINGS
════════════════════════════════════════════ */
:root {
  --navy:    #0B1D3A;
  --blue:    #1A4080;
  --accent:  #2F9EE8;
  --ice:     #A8D8F0;
  --dark:    #060E1C;
  --mid:     #1C2E4A;
  --silver:  #8FA8C4;
  --white:   #FFFFFF;
  --text:    #C8D8EC;
  --subtext: #7A95B3;
  --font-display: 'Bebas Neue', sans-serif;
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max: 1240px;
}

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

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

/* ── HEADER NAVIGATION (最高优先点击层级) ── */
.nav {
  position: fixed !important; /* 强行固定置顶 */
  top: 0; left: 0; right: 0;
  z-index: 9999999 !important; /* 提升至千万级最高层，确保任何区块无法遮挡 */
  background: rgba(6,14,28,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  pointer-events: auto !important; /* 强行开启鼠标物理点击权 */
}
.nav__inner {
  height: 80px; 
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

/* Logo 样式 */
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img, 
.nav__logo .custom-logo-link img { 
  max-height: 48px; 
  width: auto; 
  display: block;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* PC 端主菜单 */
.nav__pc {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links-container {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links-container li {
  position: relative;
}
.nav__links-container li a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--silver);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 0;
  display: block;
}
.nav__links-container li a:hover,
.nav__links-container li.current-menu-item > a { 
  color: var(--accent); 
}

/* 下拉菜单 */
.nav__links-container li ul {
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy);
  padding: 15px; 
  min-width: 220px;
  list-style: none; 
  display: none;
  border: 1px solid rgba(47,158,232,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 4px;
}
.nav__links-container li:hover > ul { 
  display: block; 
  animation: navFadeIn 0.2s ease forwards;
}
.nav__links-container li ul li { 
  width: 100%;
}
.nav__links-container li ul li a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}
.nav__links-container li ul li a:hover {
  background: rgba(47,158,232,0.15);
  color: var(--white);
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 询盘按钮 (CTA) */
.nav__cta-btn {
  background: linear-gradient(135deg, #1e73be, var(--accent));
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(47,158,232,0.2);
  white-space: nowrap;
}
.nav__cta-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(47,158,232,0.4); 
}

/* 移动端汉堡包按钮 */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100000;
}
.nav__burger span {
  display: block; 
  width: 24px; 
  height: 2px; 
  background: var(--white); 
  transition: all 0.3s ease;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* 移动端全屏导航菜单（彻底解决闭合时的隐形遮罩问题） */
.nav__mobile {
  position: fixed; 
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark); 
  padding: 120px 24px 40px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  transform: translateY(-100%);
  opacity: 0; 
  visibility: hidden; /* 关闭时物理隐藏 */
  pointer-events: none; /* 关闭时禁止一切鼠标事件，防止穿透遮挡 */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__mobile.open { 
  transform: translateY(0); 
  opacity: 1; 
  visibility: visible;
  pointer-events: auto; /* 开启时恢复点击 */
}
.nav__mobile-links { 
  list-style: none; 
  padding: 0; 
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav__mobile-links li a { 
  font-size: 20px; 
  color: var(--white); 
  font-family: var(--font-head); 
  font-weight: 700;
  text-transform: uppercase;
}
.mob-cta-btn { 
  display: block; 
  text-align: center; 
  background: var(--accent); 
  padding: 14px; 
  color: #fff; 
  font-weight: bold; 
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-head);
}

/* ── PAGE CONTENT & HERO 安全定位 ── */
.page-content {
  position: relative;
  z-index: 10; /* 老老实实呆在导航栏（9999999）下层 */
}

/* ── NEW CLEAN MINIMAL FOOTER STYLES (清空重构后的单行对齐多语言页脚) ── */
.footer { 
  background: var(--dark); 
  border-top: 1px solid rgba(255,255,255,.05); 
  padding: 40px 0; 
}
.footer__links-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.footer__links-container li a {
  color: var(--silver);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer__links-container li a:hover {
  color: var(--accent);
}

/* ── 响应式断点控制 ── */
@media (max-width: 900px) {
  .nav__pc { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 768px) {
  .footer .container {
    flex-direction: column !important;
    text-align: center;
    justify-content: center !important;
    gap: 15px;
  }
  .footer__links-container {
    justify-content: center;
    gap: 15px;
  }
}