/* ==========================================================================
   嘉善隆熙源服装辅料有限公司 / JIASHAN LONGSINCERE GARMENT ACCESSORIES CO.,LTD.
   Static site stylesheet
   ========================================================================== */

:root {
  --brand: #ee7c1e;
  --brand-dark: #c9620f;
  --brand-soft: #fdf1e3;
  --ink: #1d1d1f;
  --ink-2: #3d3d42;
  --muted: #6b6b70;
  --line: #eae6e0;
  --cream: #fbf8f4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
  --shadow-sm: 0 4px 14px rgba(29, 29, 31, 0.06);
  --header-h: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--brand); }
.nav a.is-active { color: var(--brand); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--brand);
  border-radius: 2px;
}

.lang { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang a {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.lang a:hover { color: var(--brand); background: var(--brand-soft); }
.lang a.is-active { color: var(--white); background: var(--brand); }

.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 11px 10px;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #2a2a2e;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(22, 18, 14, 0.92) 0%, rgba(22, 18, 14, 0.8) 34%, rgba(22, 18, 14, 0.36) 66%, rgba(22, 18, 14, 0.14) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0; color: var(--white); max-width: 780px; }
.hero-slogan {
  font-size: 46px;
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
html[lang="en"] .hero-slogan,
html[lang="ja"] .hero-slogan { font-size: 39px; }
.hero-sub {
  font-size: 20px;
  color: #ffd9b3;
  letter-spacing: 0.22em;
  margin-bottom: 26px;
}
.hero-company { font-size: 15px; color: rgba(255, 255, 255, 0.82); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ---------- generic section ---------- */
.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-tight { padding: 56px 0; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  margin: 18px auto 0;
  background: var(--brand);
  border-radius: 3px;
}
.section-head p { margin-top: 18px; color: var(--muted); }
.section-head.left { margin-left: 0; text-align: left; }
.section-head.left h2::after { margin-left: 0; }

/* ---------- tags row ---------- */
.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tag {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tag .dot {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.tag strong { display: block; font-size: 16px; }
.tag span.small { color: var(--muted); font-size: 13px; }

/* ---------- advantage cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f2ddc6; }
.card .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #efece7;
  aspect-ratio: 4 / 3;
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat:hover img { transform: scale(1.06); }
.cat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.72), rgba(20, 16, 12, 0.05) 62%);
}
.cat-label {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 2;
  color: var(--white);
}
.cat-label strong { display: block; font-size: 19px; }
.cat-label span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }

/* ---------- series (alternating) ---------- */
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.series + .series { margin-top: 0; }
.series-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.series-item + .series-item { margin-top: 64px; }
.series-item:nth-child(even) .series-media { order: 2; }
.series-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.series-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.series-body { padding: 0 0 0 48px; }
.series-item:nth-child(even) .series-body { padding: 0 48px 0 0; }
.series-body .idx { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; }
.series-body h3 { font-size: 24px; margin: 10px 0 14px; }
.series-body p { color: var(--muted); margin: 0; }

/* ---------- text block / profile ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-body p { color: var(--ink-2); }
.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.values li {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- material list ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.materials li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
}
.materials li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

/* ---------- certification ---------- */
.cert {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cert img { width: 108px; height: auto; flex: 0 0 auto; }
.cert h3 { font-size: 22px; margin-bottom: 10px; }
.cert p { margin: 0; color: var(--muted); }

/* ---------- product page ---------- */
.page-head {
  background: var(--cream);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 36px; }
.page-head p { color: var(--muted); margin: 14px 0 0; max-width: 760px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f1ee;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery-empty { color: var(--muted); }

/* ---------- click-to-enlarge content images ---------- */
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 14, 12, 0.92);
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: var(--brand); border-color: var(--brand); }
.lb-prev { left: 28px; top: 50%; margin-top: -23px; }
.lb-next { right: 28px; top: 50%; margin-top: -23px; }
.lb-close { right: 28px; top: 24px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--brand); }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card a:hover { color: var(--brand); }
.contact-wide { grid-column: 1 / -1; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(100deg, #c9620f, #ee7c1e);
  color: var(--white);
  padding: 56px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.75); }

/* ---------- footer ---------- */
.site-footer { background: #201d1a; color: rgba(255, 255, 255, 0.72); padding: 64px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand-foot {
  display: inline-block;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 18px;
}
.site-footer .brand-foot img { height: 40px; width: auto; }
.foot-list li { margin-bottom: 10px; color: rgba(255, 255, 255, 0.66); }
.foot-list a { color: rgba(255, 255, 255, 0.66); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
}
.to-top.is-show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- reveal (only hidden when JS is available) ---------- */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-slogan { font-size: 38px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: 0;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--brand-soft); }
  .lang {
    margin: 8px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    gap: 8px;
  }

  .hero { min-height: 460px; }
  .hero-inner { padding: 72px 0; }
  .hero-slogan { font-size: 30px; }
  .hero-sub { font-size: 16px; letter-spacing: 0.14em; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 26px; }
  .tags, .cards, .cat-grid, .materials { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .series-item { grid-template-columns: 1fr; gap: 24px; }
  .series-item:nth-child(even) .series-media { order: 0; }
  .series-body { padding: 0 !important; }
  .series-item + .series-item { margin-top: 48px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cert { flex-direction: column; align-items: flex-start; gap: 22px; padding: 28px; }
  .page-head { padding: 44px 0 38px; }
  .page-head h1 { font-size: 27px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .brand img { height: 38px; }
  .hero-slogan { font-size: 25px; }
  .materials { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn { padding: 11px 22px; }
}

@media print {
  .site-header, .to-top, .cta-band .btn { display: none; }
}
