/* ============================================================
   Luxey Lighting — Shared Stylesheet
   Theme: clean light background + energy green accent (#31A050)
   Inspired by rclite.com layout rhythm, szluxey.com color identity
   ============================================================ */

/* ---------- Self-hosted webfonts (latin subset, variable) ---------- */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --bg-card: #ffffff;
  --bg-elevated: #edf4ee;

  --line: rgba(16, 32, 22, 0.09);
  --line-strong: rgba(16, 32, 22, 0.18);

  --text: #152019;
  --text-muted: #51626a;
  --text-dim: #7d8b92;

  --green: #31A050;
  --green-bright: #1e8a40;
  --green-dark: #1f7a3c;
  --green-tint: rgba(49, 160, 80, 0.10);
  --green-glow: rgba(49, 160, 80, 0.30);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 18px 45px -18px rgba(16, 48, 26, 0.22);
  --shadow-sm: 0 8px 24px -12px rgba(16, 48, 26, 0.16);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font: var(--font-body);

  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--green); color: #fff; }

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

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.018em; }
h4 { letter-spacing: -0.012em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.eyebrow::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px var(--green-glow);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-bright); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--green-bright); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 16px -6px var(--green-glow);
}
.logo span b { color: var(--green-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(16, 32, 22, 0.05); }
.nav-links a.active { color: var(--green-bright); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* 语言切换 EN | ES */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.2;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--green-dark); }
.lang-switch a.is-active {
  background: var(--green);
  color: #fff;
}
@media (max-width: 520px) {
  .lang-switch { gap: 0; padding: 2px; }
  .lang-switch a { padding: 4px 8px; font-size: 0.72rem; }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Dropdown */
.has-drop { position: relative; }
.has-drop > a { display: flex; align-items: center; gap: 5px; }
.has-drop > a .caret { transition: transform 0.2s ease; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover > a .caret { transform: rotate(180deg); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--green-tint); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 82% -10%, rgba(49, 160, 80, 0.14), transparent 60%),
    radial-gradient(520px 360px at 10% 10%, rgba(49, 160, 80, 0.08), transparent 55%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16,32,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,22,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin: 20px 0 22px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--green-dark), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hero-stat .num em { font-style: normal; color: var(--green-bright); }
.hero-stat .label { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 160, 80, 0.4);
  box-shadow: var(--shadow);
}

/* Feature card */
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--green-bright);
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Product category card */
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(49,160,80,0.45); }
.cat-media {
  height: 236px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
}
/* category collages must stay complete: never crop the products */
.cat-media.has-img img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.cat-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(244, 248, 245, 0.55));
}
.cat-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cat-body p { color: var(--text-muted); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.cat-body .link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--green-bright); font-weight: 600; font-size: 0.95rem;
}
.cat-body .link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.cat-card:hover .link svg { transform: translateX(4px); }

/* gradient media placeholders (SVG-based, no external images) */
.media-solar   { background: radial-gradient(circle at 30% 25%, #ffd166 0 6%, transparent 6.5%), linear-gradient(150deg, #e5f4e9, #ffffff 70%); }
.media-outdoor { background: radial-gradient(circle at 68% 30%, rgba(49,160,80,0.35), transparent 55%), linear-gradient(150deg, #e8f1f6, #ffffff 75%); }
.media-indoor  { background: radial-gradient(circle at 35% 35%, rgba(63,191,99,0.28), transparent 55%), linear-gradient(150deg, #efeaf6, #ffffff 75%); }

/* ---------- Testimonials ---------- */
.testi-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover { transform: translateY(-4px); border-color: rgba(49,160,80,0.4); }
.testi-card .stars { color: #ffcd35; letter-spacing: 2px; font-size: 1rem; margin-bottom: 16px; }
.testi-card blockquote { font-size: 0.98rem; color: var(--text); margin-bottom: 22px; flex: 1; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: #ffffff;
  background: linear-gradient(135deg, var(--green-bright), #1f7a3c);
}
.testi-card .who .name { font-weight: 600; font-size: 0.95rem; }
.testi-card .who .role { color: var(--text-dim); font-size: 0.82rem; }

/* long-form case-study review spans the full row, set in two columns */
.testi-card--wide { grid-column: 1 / -1; }
.testi-card--wide blockquote {
  column-count: 2;
  column-gap: 44px;
  font-size: 0.95rem;
  line-height: 1.74;
}

@media (max-width: 860px) {
  .testi-card--wide blockquote { column-count: 1; }
}

/* ---------- Blog card ---------- */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(49,160,80,0.4); }
.blog-card .thumb {
  aspect-ratio: 3 / 2;
  background: #fff;
  overflow: hidden;
}
/* wide photos fill the frame; tall / portrait artwork is shown in full */
.blog-card .thumb img.fit-contain { object-fit: contain; }
.blog-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--text-muted); font-size: 0.93rem; flex: 1; margin-bottom: 18px; }
.blog-card .link { color: var(--green-bright); font-weight: 600; font-size: 0.9rem; }

.thumb-solar { background: linear-gradient(150deg, #e5f4e9, #ffffff); }
.thumb-rgb    { background: linear-gradient(150deg, #f6e9f1, #ffffff); }
.thumb-flicker{ background: linear-gradient(150deg, #e9eff6, #ffffff); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e3f4e8, #ffffff 70%);
  border: 1px solid rgba(49,160,80,0.28);
  padding: 64px 56px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, rgba(49,160,80,0.12), transparent 70%);
}
.cta-band h2 { margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 72px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 16px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a,
.contact-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-social a:hover,
.contact-social a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px var(--hover-shadow, rgba(0,0,0,0.35));
}
.footer-social svg, .contact-social svg { width: 18px; height: 18px; }

/* per-brand hover colors */
.s-li:hover  { background: #0A66C2 !important; --hover-shadow: rgba(10,102,194,0.45); }
.s-fb:hover  { background: #1877F2 !important; --hover-shadow: rgba(24,119,242,0.45); }
.s-ig:hover  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; --hover-shadow: rgba(214,36,159,0.4); }
.s-wa:hover  { background: #25D366 !important; --hover-shadow: rgba(37,211,102,0.45); }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 0.85rem;
}
.footer-bottom .certs { color: var(--text-dim); font-size: 0.82rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(600px 300px at 70% -20%, rgba(49,160,80,0.10), transparent 60%);
}
.page-hero h1 { margin: 16px 0 16px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-bright); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- Product grid page ---------- */
.product-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.product-item:hover { transform: translateY(-5px); border-color: rgba(49,160,80,0.4); }
.product-item .thumb {
  height: 300px;
  padding: 12px 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
/* product photos must never be cropped: scale to fit inside the frame */
.product-item .thumb img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .product-item .thumb { height: 250px; }
}
.product-item .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-item p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.product-item .meta { font-size: 0.8rem; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.product-item .meta span { background: var(--bg-elevated); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- About / Quality ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 360px;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: radial-gradient(circle at 50% 40%, rgba(49,160,80,0.10), transparent 60%), var(--bg-soft);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--green-bright); }
.stat-box .label { color: var(--text-muted); font-size: 0.88rem; margin-top: 6px; }

.cert-list { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-list span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-tint); display: grid; place-items: center; color: var(--green-bright);
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.info-item p { color: var(--text-muted); font-size: 0.95rem; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.5rem; color: var(--green-bright); transition: transform 0.25s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 10px; }
  .has-drop .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 12px; min-width: 0;
  }
  .hero { padding: 72px 0 80px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Detail pages (product & blog) ---------- */
.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.detail-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.detail-split .info h1 { margin: 16px 0 18px; }
.detail-split .info p { color: var(--text-muted); margin-bottom: 14px; }
.detail-split .info .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { color: var(--text); font-weight: 600; width: 220px; background: var(--bg-elevated); }
.spec-table td { color: var(--text-muted); }

/* article */
.article {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.article .article-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 32px 0 36px;
}
.article p { color: var(--text-muted); margin-bottom: 20px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--text); }
.article h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--text); }
.article ul { margin: 0 0 20px; padding-left: 4px; }
.article ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
}
.article .meta-line {
  display: flex; gap: 16px; align-items: center;
  color: var(--text-dim); font-size: 0.88rem;
  margin-top: 8px;
}
.article blockquote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
}

/* media with img */
.cat-media img, .thumb img, .visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-media.has-img::after { background: linear-gradient(180deg, transparent 55%, rgba(244,248,245,0.55)); }

/* hero with background image */
.hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 25%, rgba(255,255,255,0.82) 60%, rgba(255,255,255,0.45));
}
.hero .hero-bg { z-index: -3; }

@media (max-width: 860px) {
  .detail-split { grid-template-columns: 1fr; gap: 32px; }
  .spec-table th { width: 150px; }
}

/* real blog article figures */
.article-fig {
  margin: 28px 0;
  text-align: center;
}
.article-fig img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* brand logo image */
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 860px) {
  .logo-img { height: 38px; }
}
/* footer mascot logo: standalone image, not a link */
.footer-brand .logo-img { height: 88px; margin-bottom: 4px; }
.footer-brand .logo--static { cursor: default; }
@media (max-width: 860px) {
  .footer-brand .logo-img { height: 68px; }
}

/* contact page: clickable info + social row */
.info-item p a { color: var(--green-bright); }
.info-item p a:hover { text-decoration: underline; }
.contact-social { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- Contact form: status + honeypot ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status { display: none; }
.form-status.show {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.form-status.success {
  background: rgba(49, 160, 80, 0.09);
  border: 1px solid rgba(49, 160, 80, 0.35);
  color: #1c6b37;
}
.form-status.error {
  background: rgba(214, 69, 69, 0.07);
  border: 1px solid rgba(214, 69, 69, 0.28);
  color: #a63333;
}
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.form-note a { color: var(--green-bright); }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ============================================================
   Product detail pages — layout mirroring the original site
   (hero split -> alternating variant blocks -> features -> apps)
   ============================================================ */

/* hero */
.pd-hero { background: var(--bg-soft); padding: 68px 0 72px; border-bottom: 1px solid var(--line); }
.pd-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.pd-hero-copy h1 { font-size: 2.25rem; line-height: 1.22; margin: 16px 0 20px; }
.pd-hero-copy p { color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.pd-hero-actions { margin-top: 26px; }
.pd-hero-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: block;
}

/* generic section */
.pd-section { padding: 76px 0; }
.pd-section--alt { background: var(--bg-soft); }
.pd-title {
  text-align: center; font-size: 1.85rem; line-height: 1.32;
  max-width: 880px; margin: 0 auto 44px;
}

/* image / text split */
.pd-split { display: grid; grid-template-columns: 1fr 1.06fr; gap: 56px; align-items: center; }
.pd-split--flip .pd-media { order: 1; }
.pd-split--flip .pd-copy { order: 2; }
.pd-media { display: flex; flex-direction: column; gap: 20px; }
.pd-media figure { margin: 0; }
.pd-media img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.pd-copy p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.pd-copy .pd-lead { margin-bottom: 20px; }
.pd-copy--center { max-width: 780px; margin: 0 auto; }
.pd-copy ul { margin: 18px 0 0; }

/* ◆ bullet list (as in the original) */
.pd-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pd-bullets li { padding-left: 26px; position: relative; color: var(--text-muted); line-height: 1.7; }
.pd-bullets li::before {
  content: "\25C6"; position: absolute; left: 0; top: 3px;
  color: var(--green); font-size: 0.72rem;
}
.pd-bullets li strong { color: var(--text); }
.pd-bullets--center { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ✓ checklist */
.pd-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-check li { padding-left: 32px; position: relative; color: var(--text-muted); line-height: 1.65; }
.pd-check li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-bright);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* CTA under each block */
.pd-cta { text-align: center; margin-top: 48px; }

/* figure group (production line / aging test) */
.pd-figure-group { margin-top: 56px; }
.pd-figure-group h3 { text-align: center; font-size: 1.12rem; margin-bottom: 24px; }
.pd-figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pd-figure-row img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* key / special features block */
.pd-feature-sub { text-align: center; color: var(--text); font-size: 1.02rem; margin: 0 auto 8px; }
/* 只有紧跟 h2 的第一行才上提，否则连续两行会互相压住 */
.pd-title + .pd-feature-sub { margin-top: -26px; }
.pd-feature-line { text-align: center; color: var(--text-muted); max-width: 820px; margin: 0 auto 14px; line-height: 1.8; }
.pd-feature-media { max-width: 980px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
.pd-feature-media figure { margin: 0; }
.pd-feature-media img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.pd-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pd-chip {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark);
  font-weight: 600; font-size: 0.9rem;
}

/* applications mosaic — images keep their natural aspect ratio, never cropped */
.pd-apps-lead { text-align: center; color: var(--text-muted); max-width: 860px; margin: -18px auto 44px; line-height: 1.85; }
.pd-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.pd-apps-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.pd-apps-grid img {
  width: auto; height: auto; max-width: 100%; max-height: 340px;
  display: block; border-radius: calc(var(--radius) - 4px);
}
/* single mosaic image (e.g. tri-proof application collage) fills the row */
.pd-apps-grid figure:only-child { padding: 0; border: none; background: none; }
.pd-apps-grid figure:only-child img { max-height: none; width: 100%; border-radius: var(--radius); }

@media (max-width: 920px) {
  .pd-hero { padding: 48px 0; }
  .pd-hero-grid, .pd-split { grid-template-columns: 1fr; gap: 36px; }
  .pd-split--flip .pd-media { order: 1; }
  .pd-split--flip .pd-copy { order: 2; }
  .pd-hero-copy h1 { font-size: 1.7rem; }
  .pd-title { font-size: 1.45rem; margin-bottom: 32px; }
  .pd-section { padding: 52px 0; }
  .pd-apps-grid img { max-height: 240px; }
}
.pd-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.pd-feature-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; justify-content: center;
  min-height: 250px;
}
/* exactly four items: use a balanced 2x2 instead of a 3+1 orphan */
.pd-feature-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 600px) {
  .pd-feature-grid { grid-template-columns: 1fr; }
  .pd-feature-grid figure { min-height: 176px; padding: 16px; }
  .pd-feature-grid img { max-height: 144px; }
}
.pd-feature-grid img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 210px; object-fit: contain;
}

/* contact page: WhatsApp / WeChat QR codes */
.qr-row { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.qr-row figure { margin: 0; text-align: center; }
.qr-row img {
  width: 150px; height: 150px; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.qr-row figure:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.qr-row figcaption { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-top: 8px; }
@media (max-width: 480px) {
  .qr-row img { width: 128px; height: 128px; }
}

/* ============================================================
   Typography refinement — display / body / accent pairing
   Sora (headings) + Inter (UI & body) + Instrument Serif (quotes)
   ============================================================ */

/* labels and small caps */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

/* editorial quotes in newsletter-style italic serif */
blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.5;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}

/* numeric emphasis: stats, prices, spec numbers */
.hero-stat .num,
.num,
.pd-chip,
.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* navigation & controls stay in the neutral text face */
.nav a,
.dropdown a,
.btn,
button,
input,
select,
textarea,
.tag,
.pd-chip,
label {
  font-family: var(--font-body);
}

.btn {
  font-weight: 600;
  letter-spacing: 0.012em;
}

.nav a { font-weight: 500; letter-spacing: 0.002em; }

/* footer column titles + card headings */
.footer-col h4,
.info-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* article body: slightly wider measure & calmer rhythm */
.article p,
.article li {
  font-size: 1.02rem;
  line-height: 1.78;
  letter-spacing: 0.004em;
}

/* 带 width/height 属性的图片：宽高只用于占位防跳动，实际高度必须自适应，
   否则浏览器会把 height 属性当成固定高度，把横图拉成竖条 */
img[width][height] { height: auto; }

/* subtle optical polish on very large headings */
h1, .hero h1, .page-hero h1 {
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

/* ---------- Quality page: alternating photo rows (mirrors szluxey.com/quanlity-luxey-lighting) ---------- */
.qz-band { padding: clamp(54px, 6.4vw, 88px) 0; }
.qz-band--soft { background: var(--bg-soft); }

.qz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5.4vw, 76px);
  align-items: center;
}
.qz-row + .qz-row { margin-top: clamp(44px, 6vw, 84px); }
.qz-row--flip .qz-row__media { order: -1; }

.qz-row__media { margin: 0; }
.qz-row__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
/* tall shots of test benches keep their full frame, never cropped */
.qz-row__media--portrait img {
  width: auto;
  max-width: min(100%, 400px);
  max-height: 520px;
  margin-left: auto;
  margin-right: 0;
}
/* photo on the left of the row hugs the outer (left) edge, same as the text hugs the right */
.qz-row--flip .qz-row__media--portrait img {
  margin-left: 0;
  margin-right: auto;
}

.qz-row__text .eyebrow { margin-bottom: 10px; }

.qz-title {
  font-size: clamp(1.32rem, 2.35vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--green-dark);
  margin: 8px 0 14px;
}
.qz-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.76;
  margin: 0 0 20px;
}
.qz-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.qz-points li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.qz-points li::before {
  content: "\1F4A1";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.qz-row__text h3 {
  font-size: clamp(1.16rem, 1.85vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
}
.qz-row__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
/* photo on the left, copy hugs the outer edge — same rhythm as the original site */
.qz-row--flip .qz-row__text { text-align: right; }

@media (max-width: 860px) {
  .qz-row { grid-template-columns: 1fr; gap: 22px; }
  .qz-row--flip .qz-row__media { order: 0; }
  .qz-row--flip .qz-row__text { text-align: left; }
  .qz-row__media--portrait img { max-width: 100%; max-height: none; }
}
