/* iCx — Celebrate (Dongguan) Culture Technology Co., Ltd
   Shared stylesheet for all pages */

:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --gold: #c9a227;
  --ink: #1f2430;
  --text: #4b5563;
  --muted: #7a8088;
  --bg: #fdfaf7;
  --card: #ffffff;
  --border: #ece5dd;
  --dark: #1a1714;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { height: 42px; width: 70px; flex-shrink: 0; }
.logo-text .cn { font-size: 15px; font-weight: 700; color: var(--ink); }
.logo-text .en { font-size: 11px; color: #8a8f98; letter-spacing: .4px; }
nav.main ul { display: flex; list-style: none; gap: 24px; align-items: center; }
nav.main a { font-size: 15px; color: var(--ink); font-weight: 500; transition: color .2s; }
nav.main a:hover, nav.main a.active { color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 9px 20px; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: var(--primary-dark); }
.menu-btn {
  display: none; width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 22px; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-menu a {
  display: block; padding: 13px 24px; font-size: 15px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); background: #fff7f0; }
.mobile-menu .m-cta {
  margin: 12px 16px 16px; text-align: center; color: #fff;
  background: var(--primary); border-radius: 6px; border-bottom: none;
  padding: 11px 24px; font-weight: 600;
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 660px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("../images/web/hero-bg-dark.jpg") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,14,12,.78) 0%, rgba(16,14,12,.38) 30%, rgba(16,14,12,.08) 52%, transparent 66%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 880px; margin: 0 auto; text-align: center; padding: 56px 0 52px; }
.hero-tag {
  display: inline-block; border: 1px solid rgba(253,186,116,.55);
  padding: 5px 14px; border-radius: 30px; font-size: 13px;
  letter-spacing: 2px; margin-bottom: 18px; color: #ffe4d1;
}
.hero-logo { display: block; height: 118px; width: auto; margin: 0 auto 24px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
.hero-cn {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 33px; font-weight: 700; letter-spacing: 5px;
  background: linear-gradient(180deg, #f6df95 0%, #caa542 55%, #9a7420 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.hero-en { font-size: 18px; font-weight: 600; letter-spacing: 1px; color: #d9b75f; margin-bottom: 24px; }
.hero h1 { font-size: 44px; color: #fff; margin-bottom: 14px; }
.hero h1 span { color: #f6c66a; }
.hero p { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 26px; }
.hero-made {
  font-size: 21px; font-weight: 700; letter-spacing: 1.5px; color: #f6c66a;
  margin: 0 0 30px; text-shadow: 0 2px 12px rgba(201,162,39,.35);
}
.hero-made::before { content: ""; display: block; width: 56px; height: 2px; background: linear-gradient(90deg, transparent, #c9a227, transparent); margin: 0 auto 14px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; height: 380px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .ov { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(20,15,12,.86), rgba(20,15,12,.45)); }
.page-hero .inner { position: relative; z-index: 2; width: 100%; }
.page-hero .kicker { color: #f6c66a; letter-spacing: 3px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.page-hero h1 { color: #fff; font-size: 40px; margin: 10px 0 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; }

.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: var(--primary); }

/* ---------- Sections ---------- */
section.blk { padding: 72px 0; }
section.blk.alt { background: #fff; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .kicker { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; margin: 8px 0 12px; }
.sec-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.sec-line { width: 52px; height: 3px; background: var(--primary); margin: 16px auto 0; border-radius: 2px; }
.sec-head.left { text-align: left; }
.sec-head.left p { margin: 0; }
.sec-head.left .sec-line { margin: 16px 0 0; }

.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; text-align: center; gap: 16px; }
.stat b { font-size: 30px; color: var(--primary); display: block; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); border-color: transparent; }
.card-img { height: 210px; overflow: hidden; background: #f3eee8; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.card-link { margin-top: 16px; align-self: flex-start; color: var(--primary); font-weight: 600; font-size: 14px; border-bottom: 1.5px solid transparent; }
.card-link:hover { border-color: var(--primary); }

.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px; }
.feature-card .icon { width: 48px; height: 48px; border-radius: 10px; background: #ffedd5; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Product detail ---------- */
.brand-statement { padding: 0 0 28px; margin-bottom: 46px; border-bottom: 1px solid var(--border); }
.brand-line {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 16em;
}
.brand-line .dot { color: var(--primary); }
.prod-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.prod-intro p { margin-bottom: 14px; }
.prod-intro .mini-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin: 26px 0 4px;
}
.prod-intro .mini-label:first-child { margin-top: 0; }
.prod-lead { font-size: 18px; color: var(--ink); font-weight: 500; }
.feature-list { list-style: none; margin-top: 10px; }
.feature-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ink); font-weight: 500; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.intro-img { border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s; cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.gallery.big { grid-template-columns: repeat(2, 1fr); }
.gallery.big img { height: 380px; }

/* lightbox (click gallery image to enlarge) */
#lightbox { position: fixed; inset: 0; background: rgba(17,17,17,.9); display: flex; align-items: center; justify-content: center; padding: 28px; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .25s; cursor: zoom-out; }
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.5); }

table.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 15px; }
table.specs th, table.specs td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.specs th { width: 34%; color: var(--ink); font-weight: 600; background: #fdf8f4; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1px;
}
.step h4 { font-size: 16px; margin: 8px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #26202c, #3a2a20); color: rgba(255,255,255,.82); padding: 62px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 620px; margin: 0 auto 26px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-gold { background: var(--gold); color: #221a06; }
.btn-gold:hover { background: #b8911f; transform: translateY(-2px); }

/* ---------- Equipment ---------- */
.eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eq-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all .25s; }
.eq-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.12); transform: translateY(-4px); }
.eq-card img { width: 100%; height: 220px; object-fit: cover; }
.eq-card .meta { padding: 16px 18px 18px; }
.eq-card h3 { font-size: 16px; margin-bottom: 4px; }
.eq-card span { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info h2 { font-size: 28px; margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.c-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.c-item .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: #ffedd5; color: var(--primary); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.c-item b { color: var(--ink); display: block; font-size: 15px; }
.c-item span { font-size: 14px; color: var(--muted); }
.inquiry-form { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 30px; }
.inquiry-form h3 { font-size: 20px; margin-bottom: 6px; }
.inquiry-form .sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink); outline: none; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; background: var(--primary); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: inherit; }
.form-submit:hover { background: var(--primary-dark); }
.form-tip { font-size: 12px; color: #9aa0a8; margin-top: 10px; text-align: center; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 40px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Footer ---------- */
footer.site { background: var(--dark); color: rgba(255,255,255,.55); padding: 52px 0 26px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 34px; }
footer.site h4 { color: rgba(255,255,255,.9); font-size: 14px; margin-bottom: 14px; letter-spacing: .5px; }
footer.site a { display: block; padding: 4px 0; color: rgba(255,255,255,.55); }
footer.site a:hover { color: #f6c66a; }
footer .brandline { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (min-width: 901px) and (max-width: 1120px) {
  nav.main ul { gap: 14px; }
  nav.main a { font-size: 13px; }
  .nav-cta { padding: 8px 14px !important; }
}
@media (max-width: 1024px) {
  nav.main ul { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 88px); overflow-y: auto;
    -webkit-overflow-scrolling: touch; box-shadow: 0 22px 40px rgba(0,0,0,.14);
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float { display: none; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .eq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .logo-mark { height: 36px; width: 60px; }
  .hero h1 { font-size: 33px; }
  .page-hero { height: 320px; }
  .page-hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .prod-intro, .contact-grid, .grid-3, .grid-2, .gallery, .gallery.big { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery img, .gallery.big img { height: 280px; }
}
@media (max-width: 560px) {
  section.blk { padding: 52px 0; }
  .hero-content { padding: 40px 0; }
  .hero-logo { height: 86px; margin: 0 auto 16px; }
  .hero-cn { font-size: clamp(14px, 4.4vw, 22px); letter-spacing: 2px; }
  .hero-made { font-size: 16px; letter-spacing: 1px; margin-bottom: 22px; }
  .hero-tag { font-size: 11px; letter-spacing: 1.5px; }
  .hero-en { font-size: 13px; margin-bottom: 16px; }
  .nav { height: 72px; }
  .logo { min-width: 0; overflow: hidden; }
  .logo-text { min-width: 0; overflow: hidden; }
  .logo-text .cn { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
  .logo-text .en { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
  .logo-mark { height: 32px; width: 54px; }
  .logo-text .cn { font-size: 11px; }
  .menu-btn { width: 38px; height: 38px; font-size: 20px; }
  .mobile-menu.open { max-height: calc(100vh - 72px); }
  .grid-4, .steps, .eq-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
}

/* ---------- Nav dropdown ---------- */
nav.main li.has-sub { position: relative; }
nav.main .caret { font-size: 9px; opacity: .55; margin-left: 2px; }
nav.main li.has-sub > ul.sub {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 258px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0,0,0,.12); padding: 8px 0;
  display: none; flex-direction: column; gap: 0; z-index: 120;
}
nav.main li.has-sub > ul.sub::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
nav.main li.has-sub:hover > ul.sub { display: flex; }
nav.main ul.sub li { list-style: none; }
nav.main ul.sub a { display: block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--ink); }
nav.main ul.sub a:hover { background: #fff7f0; color: var(--primary); }

@media (max-width: 560px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-tag { font-size: 11px; letter-spacing: 1px; padding: 4px 12px; }
  .hero-btns .btn { padding: 11px 22px; font-size: 14px; }
}

/* ---------- Nav dropdown: grouped ---------- */
nav.main li.has-sub > ul.sub { min-width: 306px; padding: 10px 0 12px; }
nav.main ul.sub li.sub-group {
  list-style: none; padding: 12px 20px 6px; font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #9ca3af; font-weight: 700; pointer-events: none;
}
nav.main ul.sub li.sub-group:first-child { padding-top: 4px; }
nav.main ul.sub li.sub-group + li a { padding-top: 8px; }
