/* ============ 九仓光电 ENNEACOM · 蓝色基调静态站 ============ */
:root {
  --blue-900: #081f45;
  --blue-800: #0b2a5b;
  --blue-700: #123f8f;
  --blue-600: #1a56c4;
  --blue-500: #1e6fd9;
  --blue-400: #4a92ec;
  --blue-100: #dce9fb;
  --blue-50:  #f2f7fd;
  --text-900: #14243d;
  --text-600: #4a5d78;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-900);
  background: var(--white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(8, 31, 69, .92);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.brand-mark { color: var(--white); font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; }
.brand-sub { color: var(--blue-400); font-size: .68rem; letter-spacing: .35em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; transition: color .2s; }
.site-nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue-500); color: var(--white) !important;
  padding: 8px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-400); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,31,69,.94) 8%, rgba(18,63,143,.78) 46%, rgba(30,111,217,.35) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero-kicker {
  color: var(--blue-400); letter-spacing: .25em; font-size: .85rem;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.25; letter-spacing: .04em; margin-bottom: 22px;
}
.hero-lead { color: rgba(255,255,255,.88); font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  text-decoration: none; font-size: .98rem; transition: .2s;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-400); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-blue {
  background: linear-gradient(180deg, var(--blue-50) 0%, #e8f1fc 100%);
}
.section-kicker {
  color: var(--blue-600); font-size: .82rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2, .about-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--blue-800); margin-bottom: 14px; }
.section-sub { color: var(--text-600); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-text p { color: var(--text-600); margin-bottom: 16px; text-align: justify; }
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 30px;
}
.stat {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); text-align: center; padding: 18px 8px;
}
.stat strong { display: block; color: var(--blue-600); font-size: 1.5rem; }
.stat span { color: var(--text-600); font-size: .82rem; }
.about-media { display: grid; gap: 18px; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about-media img:first-child { aspect-ratio: 16/10; }
.about-media img:last-child { aspect-ratio: 16/9; }

/* ---------- process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.process-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,42,91,.18); }
.process-img { aspect-ratio: 3/2; overflow: hidden; }
.process-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.process-card:hover .process-img img { transform: scale(1.05); }
.process-body { padding: 20px 20px 24px; position: relative; }
.process-num {
  position: absolute; top: -22px; right: 16px;
  background: var(--blue-600); color: #fff;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; box-shadow: 0 6px 14px rgba(26,86,196,.4);
}
.process-body h3 { color: var(--blue-800); font-size: 1.05rem; margin-bottom: 8px; }
.process-body p { color: var(--text-600); font-size: .88rem; }

/* ---------- products ---------- */
.prod-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.prod-tab {
  border: 1px solid var(--blue-100); background: var(--blue-50);
  color: var(--blue-700); padding: 10px 24px; border-radius: 999px;
  font-size: .95rem; cursor: pointer; transition: .2s;
}
.prod-tab:hover { border-color: var(--blue-400); }
.prod-tab.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.prod-panel { display: none; }
.prod-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.prod-item {
  background: var(--blue-50); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s;
}
.prod-item:hover { transform: translateY(-4px); }
.prod-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prod-item figcaption {
  padding: 12px 16px; font-size: .88rem; color: var(--text-600);
  background: var(--white); border-top: 1px solid var(--blue-100);
}

/* ---------- contact ---------- */
.section-contact {
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(30,111,217,.35), transparent 60%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white); text-align: center;
}
.section-contact .section-kicker { color: var(--blue-400); }
.section-contact h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.contact-line { color: rgba(255,255,255,.8); margin-bottom: 36px; }
.contact-card {
  display: inline-flex; align-items: baseline; gap: 20px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 26px 44px;
}
.contact-name { font-size: 1.25rem; letter-spacing: .1em; }
.contact-phone {
  color: var(--white); text-decoration: none;
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: .06em;
}
.contact-phone:hover { color: var(--blue-400); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.65); padding: 26px 0; text-align: center; font-size: .85rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,31,69,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 26px;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ---------- bilingual (中英双语) ---------- */
.eblk { display: block; font-weight: 400; color: var(--text-600); margin-top: 6px; line-height: 1.6; }
.einl { font-size: .72em; opacity: .7; margin-left: 5px; letter-spacing: .02em; }
h1 .eblk, h2 .eblk, h3 .eblk, .section-kicker .eblk {
  color: var(--blue-500); font-weight: 600; font-size: .58em;
  letter-spacing: .03em; margin-top: 10px; line-height: 1.35;
}
.section-kicker .eblk { font-size: .9em; }
.about-text p .eblk { font-size: .94em; }
.process-body h3 .eblk { font-size: .72em; margin-top: 8px; }
.site-nav .einl { font-size: .68em; opacity: .65; }
.stat .eblk { font-size: .72em; margin-top: 2px; color: var(--text-600); }
.prod-tab .eblk { font-size: .74em; margin-top: 3px; }
.contact-email {
  display: inline-block; color: var(--white); text-decoration: none;
  font-size: 1.1rem; letter-spacing: .04em; margin-top: 6px;
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px;
}
.contact-email:hover { color: var(--blue-400); border-color: var(--blue-400); }
.contact-addr {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.7); font-size: .9rem;
}
.contact-addr .addr-cn { margin: 4px 0; line-height: 1.5; }
.contact-addr .eblk { color: rgba(255,255,255,.55); font-size: .86em; margin-top: 2px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--blue-900);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a { padding: 14px 6%; width: 100%; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-cta { border-radius: 0; text-align: center; }
  .process-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .contact-card { flex-direction: column; gap: 6px; padding: 22px 30px; }
}
