/* ==========================================================================
   博一照明 SOUTH LITE · 全彩激光光束灯产品线
   严格还原画布设计稿（1440 宽，深色工业风）
   ========================================================================== */

:root {
  --bg-page: #06070A;
  --bg-footer: #08090C;
  --bg-chip: #0C1014;
  --bg-chip-flag: #0E1A14;
  --bg-card: #0C1014;
  --bg-card-flag: #0D1712;
  --bg-btn-ghost: #0D1116;
  --divider: #1C2127;
  --stroke-card: #1E242B;
  --stroke-ghost: #2A3038;
  --green: #2BE08A;
  --red: #FF3B3B;
  --blue: #2E7AFF;
  --text-hi: #F2F4F6;
  --text-h1: #F4F6F8;
  --text-title: #E7EBF0;
  --text-body: #98A1AC;
  --text-mid: #8B939E;
  --text-dim: #79828D;
  --text-note: #6B7480;
  --text-chip-tag: #7E8792;
  --text-chip-tag-flag: #5C9C7F;
  --text-spec-flag: #8FA398;
  --text-ghost-label: #4E565F;
  --text-ghost-label-flag: #3F5A4D;
  --text-footer-hi: #C6CDD5;
  --text-footer-dim: #565E68;
  --font-cn: 'Sarasa Gothic SC', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-en: 'Inter', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: #0A0B0E;
  color: var(--text-hi);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a { text-decoration: none; color: inherit; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-page);
  overflow: clip;
  position: relative;
}

/* ============ Header ============ */

.site-header {
  height: 78px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-page);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-hi);
  line-height: 1.1;
}
.brand-latin {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 2px;
  color: #6E7681;
  line-height: 1.1;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-cn);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-mid);
  transition: color .18s ease;
}
.nav-link.is-active { font-weight: 600; color: var(--green); }
.nav-link:hover { color: var(--text-hi); }
.nav-link.is-active:hover { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-mid);
  transition: color .18s ease;
}
.header-phone:hover { color: var(--text-hi); }

.btn-pill {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--text-hi);
  color: var(--bg-page);
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 13px;
  transition: opacity .18s ease;
}
.btn-pill:hover { opacity: .88; }

.header-divider { height: 1px; background: var(--divider); }

/* ============ Hero ============ */

.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 80px 64px 88px;
}

.hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--green); }
.eyebrow-label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--green);
}

.hero-title {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 52px;
  line-height: 68px;
  color: var(--text-h1);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 29px;
  color: var(--text-body);
  max-width: 620px;
}

.hero-ctas { display: flex; align-items: center; gap: 14px; }

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--text-hi);
  color: var(--bg-page);
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 14px;
  transition: opacity .18s ease;
}
.btn-primary:hover { opacity: .88; }

.btn-ghost {
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--bg-btn-ghost);
  border: 1px solid var(--stroke-ghost);
  color: #D5DAE1;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 14px;
  transition: border-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 14px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: #E7EBF0;
}
.stat-num-green { color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-dim); }

.hero-visual {
  width: 560px;
  height: 560px;
  flex: none;
  border-radius: 20px;
  background: #0A0E12 url('assets/hero-laser.png') center / cover no-repeat;
}

/* ============ Section shared ============ */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text-title);
}
.section-note { font-size: 12px; color: var(--text-note); }

.spectrum-line {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--green) 50%, var(--blue) 100%);
}

/* ============ Power Band ============ */

.power-section {
  padding: 72px 64px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.power-chips {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.power-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--bg-chip);
  border: 1px solid var(--stroke-card);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.power-chip:hover { border-color: #343C46; }
.chip-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: #F0F3F6;
}
.chip-tag { font-size: 12px; color: var(--text-chip-tag); }

.power-chip--flag { background: var(--bg-chip-flag); border-color: var(--green); }
.power-chip--flag .chip-num { color: var(--green); }
.power-chip--flag .chip-tag { color: var(--text-chip-tag-flag); }
.power-chip.is-filtered { outline: 1px solid var(--green); outline-offset: 2px; }
.power-chip--flag.is-filtered { outline-color: var(--green); }

/* ============ Product Grid ============ */

.product-section {
  padding: 24px 64px 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card {
  width: 424px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--stroke-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.product-card:hover { border-color: #343C46; transform: translateY(-2px); }
.product-card.is-hidden { display: none; }
.product-card.is-highlight { border-color: var(--green); }

.card-image {
  height: 190px;
  padding-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #141C21 100%);
}
.card-image-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-ghost-label);
}

.card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card-code {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--green);
}
.card-name {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 17px;
  color: #F0F3F6;
}
.card-spec { font-size: 12px; color: var(--text-mid); line-height: 1.5; }
.card-link {
  align-self: flex-start;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 12px;
  color: var(--green);
  padding: 0;
  transition: opacity .18s ease;
}
.card-link:hover { opacity: .75; }

/* flagship card */
.product-card--flag { background: var(--bg-card-flag); border-color: var(--green); }
.product-card--flag:hover { border-color: var(--green); }
.product-card--flag .card-image {
  background:
    linear-gradient(135deg, rgba(10,18,15,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0A120F 0%, #122B21 100%);
}
.product-card--flag .card-image-label { color: var(--text-ghost-label-flag); }
.product-card--flag .card-name { color: #F4F7F5; }
.product-card--flag .card-spec { color: var(--text-spec-flag); }

/* per-card image hue（与设计稿逐卡渐变一致） */
.product-card:nth-child(2) .card-image { background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #121A24 100%); }
.product-card:nth-child(3) .card-image { background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #0F1F1A 100%); }
.product-card:nth-child(4) .card-image { background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #121724 100%); }
.product-card:nth-child(5) .card-image { background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #131620 100%); }
.product-card:nth-child(6) .card-image { background:
    linear-gradient(135deg, rgba(13,15,20,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0D0F14 0%, #141820 100%); }

/* flagship wide card（7 款在 3 列网格会剩孤卡，旗舰升为整行） */
.product-card--wide { width: 100%; flex-direction: row; align-items: stretch; }
.product-card--wide .card-image {
  width: 560px;
  flex: none;
  height: auto;
  min-height: 300px;
  padding-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(10,18,15,0) 0%, rgba(0,0,0,.25) 100%),
    linear-gradient(45deg, #0A120F 0%, #122B21 100%);
}
.product-card--wide .card-body {
  flex: 1;
  padding: 30px 34px 28px;
  gap: 14px;
  justify-content: center;
}
.product-card--wide .card-code { font-size: 12.5px; }
.product-card--wide .card-name { font-size: 24px; }
.product-card--wide .card-link { margin-top: 4px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 26px;
}

/* ============ Footer ============ */

.site-footer {
  position: relative;
  padding: 72px 64px 40px;
  background: var(--bg-footer);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-mark-row { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 28px; height: 28px; display: block; }
.footer-mark svg { display: block; }
.footer-brand-name {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 16px;
  color: #E9EDF1;
}
.footer-tagline { font-size: 13px; color: var(--text-note); }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.footer-addr { font-size: 13px; color: var(--text-mid); }
.footer-tel, .footer-web {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-footer-hi);
  transition: color .18s ease;
}
.footer-tel:hover, .footer-web:hover { color: var(--green); }

.footer-ghost {
  position: absolute;
  right: 62px;
  top: 20px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 110px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-divider { height: 1px; background: var(--divider); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--text-footer-dim); }
.footer-icp { font-family: var(--font-en); font-weight: 400; font-size: 12px; color: var(--text-footer-dim); }
.footer-icp:hover { color: var(--text-mid); }

/* ============ Modal ============ */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask[hidden] { display: none; }

.modal {
  position: relative;
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--stroke-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-spectrum {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--green) 50%, var(--blue) 100%);
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-mid);
  transition: color .18s ease;
}
.modal-close:hover { color: var(--text-hi); }

.modal-title {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-h1);
  padding-top: 4px;
}
.modal-sub { font-size: 13px; line-height: 1.7; color: var(--text-body); }

.modal-specs {
  border: 1px solid var(--stroke-card);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.modal-specs[hidden] { display: none; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}
.spec-row + .spec-row { border-top: 1px solid var(--divider); }
.spec-row .k { color: var(--text-note); flex: none; }
.spec-row .v { color: #D5DAE1; text-align: right; }
.spec-row .v.green { color: var(--green); font-weight: 600; }
.modal-specs-note {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--text-note);
  border-top: 1px solid var(--divider);
}

.modal-form { display: flex; flex-direction: column; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; color: var(--text-note); }
.form-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--stroke-card);
  background: var(--bg-btn-ghost);
  color: var(--text-hi);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .18s ease;
}
.form-input::placeholder { color: #565E68; }
.form-input:focus { border-color: var(--green); }

.modal-submit { border: none; text-align: center; margin-top: 4px; }
.modal-direct { font-size: 12px; color: var(--text-note); text-align: center; }
.modal-direct a { color: var(--text-footer-hi); }
.modal-direct a:hover { color: var(--green); }
.modal-success {
  font-size: 13px;
  color: var(--green);
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(43, 224, 138, 0.35);
  border-radius: 8px;
}
.modal-success[hidden] { display: none; }

/* ============ Responsive ============ */

@media (max-width: 1240px) {
  .site-header, .hero, .power-section, .product-section, .site-footer { padding-left: 40px; padding-right: 40px; }
  .hero { gap: 40px; }
  .hero-visual { width: 440px; height: 440px; }
  .hero-title { font-size: 42px; line-height: 58px; }
  .product-card { width: calc(50% - 10px); }
  .product-card--wide { width: 100%; }
  .product-card--wide .card-image { width: 380px; min-height: 280px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-ghost { font-size: 80px; right: 40px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .hero { flex-direction: column; align-items: stretch; padding: 56px 32px 64px; }
  .hero-visual { width: 100%; height: 360px; order: -1; }
  .hero-title { font-size: 34px; line-height: 48px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .site-header, .power-section, .product-section, .site-footer { padding-left: 32px; padding-right: 32px; }
  .power-chips { flex-wrap: wrap; }
  .power-chip { flex: 1 1 calc(33% - 12px); }
  .product-card { width: 100%; }
  .product-card--wide { flex-direction: column; }
  .product-card--wide .card-image { width: 100%; height: 220px; min-height: 0; }
  .product-card--wide .card-body { padding: 22px 22px 20px; }
  .spec-grid { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-contact { align-items: flex-start; }
  .footer-ghost { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .power-chip { flex: 1 1 calc(50% - 12px); }
  .site-header { padding: 0 20px; }
  .hero, .power-section, .product-section, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header .btn-pill { display: none; }
  .header-actions { gap: 12px; }
  .brand-name { font-size: 15px; }
}
