/* ==========================================================================
   YH COOLFX — Global Stylesheet
   B2B stage equipment manufacturer site
   ========================================================================== */

:root {
  --ink:        #0d1117;
  --ink-soft:   #3d4653;
  --muted:      #6b7684;
  --line:       #e3e8ef;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --bg-dark:    #0d1117;
  --brand:      #c8102e;   /* signal red — stage / fire association */
  --brand-dark: #a00d25;
  --accent:     #f0a500;   /* spark gold */
  --ok:         #12805c;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 2px rgba(13,17,23,.06), 0 8px 24px rgba(13,17,23,.06);
  --shadow-lg:  0 4px 12px rgba(13,17,23,.08), 0 24px 48px rgba(13,17,23,.10);
  --maxw:       1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 48px 0; }

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

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.is-active { color: var(--brand); background: #fdf2f4; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: .92rem; font-weight: 600;
  transition: background .15s, transform .15s;
}
.header-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: all .16s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,16,46,.25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #cbd3de; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f2f6; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #0d1117 url('../img/hero.jpg') center 38%/cover no-repeat;
  color: #fff;
  padding: 84px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,.60) 0%, rgba(11,14,20,.46) 40%, rgba(11,14,20,.48) 66%, rgba(11,14,20,.70) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-inner > div { max-width: 1020px; margin: 0 auto; text-align: center; }
.hero-logo {
  display: block; margin: 0 auto 28px; z-index: 1;
  width: 260px; height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
}
.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.45); font-size: clamp(2rem, 3.6vw, 3.15rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: #ccd5e0; max-width: 720px; margin: 0 auto 32px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-badge strong { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.hero-badge span { font-size: .82rem; color: #a7b1bf; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3dae5; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.icon-box {
  width: 44px; height: 44px; border-radius: 11px;
  background: #fdf2f4; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ---------- Product grid ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.filter-btn:hover { border-color: #c3cbd7; color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dae5; }

.product-card__media {
  position: relative; aspect-ratio: 4/3; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__ph { color: #aab4c0; text-align: center; padding: 20px; }
.product-card__ph svg { margin: 0 auto 8px; opacity: .6; }
.product-card__ph span { font-size: .78rem; }

.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

.product-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.product-card__body h3 { font-size: 1.06rem; margin-bottom: 10px; }
.product-card__body h3 a { color: var(--ink); }
.product-card__body h3 a:hover { color: var(--brand); }
.product-card__desc { color: var(--muted); font-size: .9rem; margin-bottom: 18px; flex: 1; }
.product-card__link { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.product-card__link svg { transition: transform .18s; }
.product-card__link:hover svg { transform: translateX(3px); }

.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.spec-chip { font-size: .74rem; padding: 3px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 32px 0 64px; align-items: start; }

.pd-gallery__main {
  aspect-ratio: 4/3; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 78px; height: 78px; border-radius: 9px; overflow: hidden;
  border: 2px solid var(--line); background: var(--bg-alt); cursor: pointer; padding: 0;
  transition: border-color .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--brand); }

.pd-cat { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.pd-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.pd-short { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 24px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pd-meta__item { font-size: .84rem; padding: 7px 13px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-soft); }
.pd-meta__item b { color: var(--ink); font-weight: 600; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.pd-block { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.pd-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.pd-block h2 { font-size: 1.22rem; margin-bottom: 16px; }
.pd-block h3 { font-size: 1.02rem; margin: 22px 0 10px; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); font-size: .95rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 600; color: var(--ink-soft);
  padding: 12px 16px 12px 0; width: 42%; vertical-align: top;
}
.spec-table td { padding: 12px 0; color: var(--ink); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 12px 18px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: .94rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 28px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat strong { display: block; font-size: 2rem; color: var(--brand); letter-spacing: -.03em; margin-bottom: 4px; }
.stat span { font-size: .86rem; color: var(--muted); }

/* ---------- Trust / process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process__item { position: relative; padding-top: 12px; }
.process__num {
  counter-increment: step;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .92rem; margin-bottom: 16px;
}
.process__item h3 { font-size: 1rem; margin-bottom: 8px; }
.process__item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--brand); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.10);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--brand); }
.field-error { font-size: .8rem; color: var(--brand); margin-top: 5px; display: none; }
.field--error .field-error { display: block; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 22px; display: none; }
.form-alert.is-visible { display: block; }
.form-alert--ok { background: #e9f7f1; color: var(--ok); border: 1px solid #b8e3d0; }
.form-alert--err { background: #fdf2f4; color: var(--brand-dark); border: 1px solid #f5c6cf; }

.form-consent { font-size: .84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 82% 30%, rgba(200,16,46,.30), transparent 62%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #b9c2ce; margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 40px 20px 0; position: relative;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a__inner { padding: 0 40px 22px 0; color: var(--ink-soft); font-size: .95rem; }
.faq-a__inner p:last-child { margin-bottom: 0; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-list__icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: #fdf2f4; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-list__body strong { display: block; font-size: .88rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-list__body a, .contact-list__body span { font-size: .98rem; color: var(--ink); }
.contact-list__body a:hover { color: var(--brand); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-alt); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 700px; margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #8b96a5; padding: 60px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #8b96a5; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo:hover { color: #fff; }
.footer-brand p { max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* ---------- Apply form (inline product) ---------- */
.mini-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.mini-form h3 { font-size: 1.05rem; margin-bottom: 6px; }
.mini-form .field { margin-bottom: 14px; }
.mini-form .field input, .mini-form .field textarea { background: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 12px; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; z-index: 200; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { max-width: 100%; }
  .pd-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 56px; }
  .hero-inner > div { max-width: 100%; }
  .hero-logo { width: 170px; margin-bottom: 22px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .header-cta { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .cta-band, .pd-actions { display: none; }
}
