/* ============================================================
   YINGANG Motorcycles — Global B2B Site
   维护提示：品牌主色在下方 :root 中修改，全站生效。
   ============================================================ */
:root {
  --color-primary: #d42a1e;
  --color-primary-dark: #a81e14;
  --color-dark: #12161d;
  --color-dark-2: #1b2129;
  --color-text: #2b3038;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-border: #e3e6ea;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(18, 22, 29, .08);
  --shadow-lg: 0 10px 40px rgba(18, 22, 29, .15);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.65; font-size: 16px; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 26px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-dark { background: var(--color-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { border-color: var(--color-dark); color: var(--color-dark); }
.btn-outline-dark:hover { background: var(--color-dark); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-dark); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 22px 14px; color: #d7dbe0; font-size: 15px; font-weight: 600; }
.nav-link:hover { color: #fff; }
.nav-cta { margin-left: 10px; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 8px 0; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 20px; color: var(--color-text); font-size: 14px; font-weight: 600; }
.dropdown a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.dropdown-all { border-top: 1px solid var(--color-border); color: var(--color-primary) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,13,18,.88) 20%, rgba(10,13,18,.45) 70%, rgba(10,13,18,.25)); }
.hero-inner { position: relative; padding-top: 70px; padding-bottom: 70px; flex: 1 1 0; min-width: 0; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; font-weight: 900; max-width: 780px; letter-spacing: -.5px; }
.hero-sub { margin: 22px 0 32px; font-size: clamp(16px, 1.8vw, 20px); color: #d9dee5; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-primary); color: #fff; }
.trust-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 20px; text-align: center; }
.trust-item strong { display: block; font-size: clamp(17px, 2.4vw, 27px); font-weight: 900; overflow-wrap: break-word; }
.trust-item span { font-size: 13px; opacity: .9; }
.trust-bar-inline { background: var(--color-dark); color: #fff; border-radius: var(--radius); margin: 34px 0 10px; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-dark); color: #e7eaee; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; letter-spacing: -.5px; }
.section-head p { color: var(--color-muted); margin-top: 10px; }
.section-dark .section-head p { color: #aeb5bf; }
.section-more { text-align: center; margin-top: 40px; }
.h2-left { font-size: clamp(23px, 2.6vw, 30px); font-weight: 900; margin-bottom: 22px; letter-spacing: -.5px; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--color-dark), var(--color-dark-2)); color: #fff; padding: 64px 0 54px; }
.page-hero-sm { padding: 46px 0 40px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.5px; }
.page-hero p { color: #b9c0c9; margin-top: 10px; max-width: 720px; }
.breadcrumb { font-size: 13.5px; color: #8d95a1; margin-bottom: 14px; }
.breadcrumb a { color: #c4cad2; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.category-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card-img { aspect-ratio: 4/3; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #fff; }
.category-card-body { padding: 22px; }
.category-card-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.category-card-body p { font-size: 14px; color: var(--color-muted); }
.card-link { display: inline-block; margin-top: 14px; color: var(--color-primary); font-weight: 700; font-size: 14px; }

/* ---------- Product grids & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--color-border); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 16px 18px 18px; }
.product-cat { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .6px; }
.product-card-body h3 { font-size: 17px; font-weight: 800; margin-top: 4px; }
.category-block { margin-bottom: 60px; }
.category-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; border-bottom: 2px solid var(--color-border); padding-bottom: 12px; }
.category-block-head h2 { font-size: 24px; font-weight: 900; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--color-bg-alt); }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs-wrap { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; flex: 1; padding: 2px; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 calc((100% - 60px) / 7); border: 2px solid var(--color-border); border-radius: 8px; overflow: hidden; cursor: pointer; background: none; padding: 0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--color-primary); }
.gallery-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.thumbs-arrow, .detail-arrow { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-text); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.thumbs-arrow:hover:not(:disabled), .detail-arrow:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.thumbs-arrow:disabled, .detail-arrow:disabled { opacity: .35; cursor: default; }
.product-cat-badge { display: inline-block; background: var(--color-bg-alt); border: 1px solid var(--color-border); padding: 5px 14px; border-radius: 30px; font-size: 13px; color: var(--color-muted); margin-bottom: 12px; }
.product-side h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin-bottom: 18px; }
.product-side-actions { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 14px; }
.side-note { font-size: 13.5px; color: var(--color-muted); }
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.spec-table th { width: 260px; background: var(--color-bg-alt); font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 64px; }
.spec-col { display: flex; flex-direction: column; gap: 24px; }
.spec-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9b9b9b; }
.spec-value { margin-top: 5px; font-size: 16.5px; font-weight: 800; color: #111; line-height: 1.45; white-space: pre-line; }
.spec-note { font-size: 13.5px; color: var(--color-muted); margin-top: 24px; }
@media (max-width: 640px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-col { gap: 20px; }
  .spec-col + .spec-col { margin-top: 20px; }
}

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-text h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 900; margin: 22px 0 14px; }
.split-text h2:first-child { margin-top: 0; }
.split-text p { color: var(--color-muted); margin-bottom: 14px; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.prose p { margin-bottom: 16px; color: var(--color-text); }
.prose h2 { font-size: 24px; font-weight: 900; margin: 34px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 26px 0 10px; }
.prose ul { padding-left: 22px; list-style: disc; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose-wide { max-width: 900px; }
.article-body { font-size: 17px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-primary); font-weight: 900; }

/* ---------- Process / modes / custom ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 8px; }
.process-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 20px; }
.section:not(.section-dark) .process-step { background: #fff; border-color: var(--color-border); box-shadow: var(--shadow); }
.process-step span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; border-radius: 50%; font-weight: 900; font-size: 17px; margin-bottom: 14px; }
.process-step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: #aeb5bf; }
.section:not(.section-dark) .process-step p { color: var(--color-muted); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mode-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.mode-card h3 { font-size: 22px; font-weight: 900; color: var(--color-primary); margin-bottom: 4px; }
.mode-card h3 span { display: block; font-size: 13px; color: var(--color-muted); font-weight: 600; margin-bottom: 12px; }
.mode-card p { color: var(--color-muted); margin-bottom: 16px; font-size: 15px; }
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.custom-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 22px; font-weight: 700; font-size: 15px; }

/* ---------- Factory / certs ---------- */
.factory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.factory-photo { aspect-ratio: 4/3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #e9ebee, #e9ebee 12px, #dfe2e7 12px, #dfe2e7 24px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-muted); font-weight: 700; font-size: 15px; }
.factory-photo small { font-weight: 500; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.cert-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 20px 22px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cert-card img { width: 76px; height: 76px; display: block; }
.cert-card span { font-weight: 800; font-size: 17px; color: var(--color-text); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; position: relative; padding-right: 46px; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--color-primary); font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-answer { padding: 0 22px 20px; color: var(--color-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.inquiry-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: var(--color-primary); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkbox-item { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; cursor: pointer; }
.checkbox-item input { width: auto; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--color-muted); }
.form-note a { color: var(--color-primary); font-weight: 700; }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.contact-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.contact-card-accent { background: var(--color-dark); color: #e7eaee; border-color: var(--color-dark); }
.contact-card-accent h3 { color: #fff; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 16px; font-size: 15px; }
.contact-list li span { font-size: 19px; }
.contact-list strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--color-muted); margin-bottom: 2px; }
.contact-list a { color: var(--color-primary); font-weight: 700; }

/* ---------- CTA band / strips ---------- */
.cta-band { background: var(--color-dark); color: #fff; padding: 54px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(21px, 2.6vw, 29px); font-weight: 900; }
.cta-band p { color: #aeb5bf; margin-top: 8px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.inquiry-strip { margin-top: 48px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inquiry-strip p { font-size: 17px; }

/* ---------- Downloads / news ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.download-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.download-icon { font-size: 42px; margin-bottom: 14px; }
.download-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.download-card p { color: var(--color-muted); font-size: 14.5px; margin-bottom: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s; display: block; }
.news-card:hover { transform: translateY(-4px); }
.news-date { font-size: 13px; color: var(--color-muted); }
.news-card h3 { font-size: 18px; font-weight: 800; margin: 8px 0 10px; line-height: 1.4; }
.news-card p { font-size: 14.5px; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0c0f14; color: #9aa2ad; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; }
.footer-promise { color: #d7dbe0; }
.footer-contact a { color: #d7dbe0; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; }

/* ---------- Misc pages ---------- */
.thankyou-section { min-height: 50vh; display: flex; align-items: center; }
.thankyou { text-align: center; flex: 1 1 0; min-width: 0; }
.thankyou-icon { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.thankyou h1 { font-size: 34px; font-weight: 900; margin-bottom: 14px; }
.thankyou p { color: var(--color-muted); margin-bottom: 10px; }
.thankyou .cta-band-actions { justify-content: center; margin-top: 22px; }
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 90px; font-weight: 900; color: var(--color-primary); }
.error-page p { color: var(--color-muted); margin: 10px 0 26px; }
.error-page .cta-band-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-layout, .split, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .desktop-br { display: none; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--color-dark-2); flex-direction: column; align-items: stretch; padding: 10px 0 20px; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 22px; }
  .dropdown { position: static; display: none; box-shadow: none; background: transparent; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: #d7dbe0; }
  .nav-cta { margin: 10px 22px 0; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .inquiry-form { padding: 24px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery zoom & lightbox ---------- */
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-zoom-btn { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(10,13,18,.65); color: #fff; font-size: 19px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.gallery-zoom-btn:hover { background: var(--color-primary); transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,14,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.lightbox-close:hover { background: var(--color-primary); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; }
.lightbox-nav:hover { background: var(--color-primary); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: 1px; background: rgba(255,255,255,.08); padding: 5px 14px; border-radius: 20px; }
.lightbox-counter:empty { display: none; }

/* ---------- Detail images & video ---------- */
.video-wrap { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap video { display: block; width: 100%; max-height: 620px; }
.detail-carousel { display: flex; align-items: center; gap: 14px; }
.detail-viewport { overflow: hidden; flex: 1; }
.detail-track { display: flex; gap: 18px; transition: transform .45s ease; }
.detail-item { flex: 0 0 calc((100% - 36px) / 3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--color-bg-alt); }
.detail-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; transition: transform .3s; display: block; }
.detail-item img:hover { transform: scale(1.03); }

/* ---------- Home hero carousel ---------- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-dots { position: absolute; right: 26px; bottom: 24px; z-index: 3; display: flex; gap: 9px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: transparent; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.hero-dot.active, .hero-dot:hover { background: #fff; border-color: #fff; }

@media (max-width: 980px) {
  .detail-item { flex-basis: calc((100% - 18px) / 2); }
  .gallery-thumb { flex-basis: calc((100% - 40px) / 5); }
}

@media (max-width: 760px) {
  .detail-item { flex-basis: 100%; }
  .gallery-thumb { flex-basis: calc((100% - 30px) / 4); }
  .hero-dots { right: 16px; bottom: 16px; }
  .gallery-zoom-btn { width: 38px; height: 38px; font-size: 17px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
