:root {
  --navy: #102f4f;
  --navy-2: #0b2239;
  --blue: #1687d6;
  --cyan: #49b5d6;
  --red: #d8383d;
  --green: #2f7861;
  --ink: #202b34;
  --muted: #68747e;
  --line: #dce4ea;
  --soft: #f3f7f9;
  --white: #fff;
  --page: min(1180px, calc(100% - 40px));
  --shadow: 0 16px 34px rgba(20, 42, 61, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.7;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--navy); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(5, 24, 41, 0.86), rgba(5, 24, 41, 0));
  transition: background 0.2s, box-shadow 0.2s;
}
.site-header.scrolled,
.subpage .site-header { background: rgba(11, 34, 57, 0.97); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand img { width: 110px; height: auto; }
.brand-name { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.4); font-size: 15px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { position: relative; padding: 25px 0; font-size: 15px; color: rgba(255,255,255,.82); }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: var(--red); }
.nav-contact { padding: 9px 15px !important; border: 1px solid rgba(255,255,255,.52); }
.nav-contact::after { display: none; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }

.hero {
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(7,29,48,.9) 0%, rgba(7,29,48,.68) 48%, rgba(7,29,48,.18) 100%), url("../images/hero.webp");
  background-size: cover;
  background-position: center 45%;
}
.hero-content { width: var(--page); margin: 0 auto; padding: 150px 0 88px; }
.eyebrow { margin: 0 0 13px; color: #8ed7ef; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 74px); line-height: 1.12; letter-spacing: 0; }
.hero-copy { max-width: 660px; margin: 22px 0 30px; color: rgba(255,255,255,.86); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-light { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.06); }
.button-outline { border-color: var(--navy); color: var(--navy); }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: var(--white); background: var(--navy-2); }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 38px; }
.section-head > div { max-width: 720px; }
.section-kicker { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 700; }
.section h2, .page-section h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 45px); line-height: 1.2; letter-spacing: 0; }
.section-dark h2 { color: var(--white); }
.section-intro { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.section-dark .section-intro { color: rgba(255,255,255,.7); }
.text-link { color: var(--blue); font-weight: 700; white-space: nowrap; }

.about-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.fact { padding: 20px 14px 0 0; }
.fact strong { display: block; color: var(--navy); font-size: 23px; }
.fact span { color: var(--muted); font-size: 13px; }
.image-frame { overflow: hidden; background: #dfe9ef; box-shadow: var(--shadow); }
.image-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 18px; background: #f6f8f9; }
.product-body { padding: 20px; }
.product-type { color: var(--red); font-size: 12px; font-weight: 700; }
.product-card h3 { margin: 5px 0 8px; color: var(--navy); font-size: 19px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.case-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #f6f8f9; }
.case-card div { padding: 22px; }
.case-card h3 { margin: 6px 0 9px; color: var(--navy); font-size: 20px; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }

.help-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 21px 34px 21px 0; color: var(--navy); font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 15px; color: var(--red); font-size: 27px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -3px 34px 20px 0; color: var(--muted); }

.factory-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.factory-main > img { width: 100%; aspect-ratio: 16/10; padding: 0; object-fit: cover; background: var(--white); }
.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin-top: 26px; }
.process-list span { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82); }
.factory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.factory-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 8px; background: var(--white); }
.facility-gallery { grid-template-columns: repeat(4, 1fr); }
.facility-gallery img { aspect-ratio: 4/3; object-fit: contain; padding: 8px; border: 1px solid var(--line); }

.certificate-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.certificate-mini { border: 1px solid var(--line); background: var(--white); padding: 12px; cursor: pointer; transition: border-color .2s, transform .2s; }
.certificate-mini:hover, .certificate-mini:focus { border-color: var(--blue); transform: translateY(-2px); outline: none; }
.certificate-mini img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.certificate-mini span { display: block; padding-top: 10px; color: var(--navy); text-align: center; font-size: 13px; font-weight: 700; }

.contact-band { padding: 78px 0; color: var(--white); background: var(--green); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-band h2 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 48px); }
.contact-band p { color: rgba(255,255,255,.8); }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-label { color: rgba(255,255,255,.62); }
.contact-value { font-weight: 700; }

.page-hero { min-height: 440px; display: flex; align-items: flex-end; color: var(--white); background-size: cover; background-position: center; }
.page-hero.about-hero { background-image: linear-gradient(90deg,rgba(7,29,48,.9),rgba(7,29,48,.28)), url("../images/factory-overview.webp"); }
.page-hero.product-hero { background-image: linear-gradient(90deg,rgba(7,29,48,.88),rgba(7,29,48,.22)), url("../images/ncs88-scene.webp"); }
.page-hero.case-hero { background-image: linear-gradient(90deg,rgba(7,29,48,.9),rgba(7,29,48,.25)), url("../images/nfc-display.webp"); }
.page-hero.qualification-hero { background-image: linear-gradient(90deg,rgba(7,29,48,.9),rgba(7,29,48,.34)), url("../images/hero.webp"); }
.page-hero .container { padding: 148px 0 62px; }
.page-hero h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.15; }
.page-hero p { max-width: 650px; margin: 15px 0 0; color: rgba(255,255,255,.82); }
.page-section { padding: 78px 0; }
.prose-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; }
.prose-grid h2 { position: sticky; top: 110px; align-self: start; font-size: 34px; }
.prose { color: var(--muted); font-size: 16px; }
.prose h3 { margin: 32px 0 8px; color: var(--navy); font-size: 21px; }
.timeline { border-left: 2px solid var(--blue); margin: 30px 0 0 6px; }
.timeline-item { position: relative; padding: 0 0 28px 28px; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; background: var(--red); }
.timeline-item strong { color: var(--navy); }

.category-block + .category-block { margin-top: 76px; }
.category-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.category-title h2 { font-size: 31px; }
.category-title p { margin: 0; color: var(--muted); }
.wide-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wide-product-grid .product-card img { aspect-ratio: 4/3; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.cert-card img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #f5f7f8; }
.cert-open { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 13px; font-weight: 700; }
.certificate-records { display: grid; gap: 28px; }
.certificate-record { display: grid; grid-template-columns: 250px 1fr; gap: 34px; padding: 26px; border: 1px solid var(--line); background: var(--white); }
.certificate-image { align-self: start; display: block; border: 1px solid var(--line); background: #f5f7f8; cursor: zoom-in; }
.certificate-image img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.certificate-content h3 { margin: 0 0 18px; color: var(--navy); font-size: 26px; }
.certificate-content dl { display: grid; gap: 0; margin: 0 0 22px; }
.certificate-content dl div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.certificate-content dt { color: var(--muted); }
.certificate-content dd { margin: 0; color: var(--ink); font-weight: 600; }
.image-modal { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 30px; background: rgba(4, 17, 29, .8); }
.image-modal.open { display: grid; }
.image-modal-panel { position: relative; max-width: min(900px, 92vw); max-height: 90svh; padding: 46px 18px 18px; background: var(--white); }
.image-modal-panel img { max-width: 100%; max-height: calc(90svh - 64px); object-fit: contain; }
.image-modal-close { position: absolute; top: 10px; right: 10px; min-height: 30px; padding: 0 12px; border: 1px solid var(--navy); color: var(--navy); background: var(--white); font-weight: 700; cursor: pointer; }
.cert-card h3 { margin: 16px 0 5px; color: var(--navy); font-size: 18px; }
.cert-card p { margin: 0; color: var(--muted); font-size: 14px; }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quality-item { padding: 24px; border-left: 4px solid var(--blue); background: var(--soft); }
.quality-item h3 { margin: 0 0 8px; color: var(--navy); }
.quality-item p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 50px 0 28px; color: rgba(255,255,255,.75); background: #071c2e; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 50px; }
.footer-brand { color: var(--white); font-size: 20px; font-weight: 700; }
.footer-title { margin-bottom: 12px; color: var(--white); font-weight: 700; }
.footer-links { display: grid; gap: 7px; }
.footer-links a:hover { color: var(--white); }
.copyright { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.filing-info { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.7; }
.filing-info a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; }
.filing-info a:hover { color: var(--white); }
.mobile-contact { display: none; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 22px 20px 30px; background: var(--navy-2); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a.active::after { display: none; }
  .nav-contact { margin-top: 14px; text-align: center; }
  .about-grid, .factory-layout, .contact-layout, .prose-grid, .help-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .certificate-strip { grid-template-columns: repeat(3, 1fr); }
  .wide-product-grid, .cert-grid, .quality-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-gallery { grid-template-columns: repeat(2, 1fr); }
  .certificate-record { grid-template-columns: 210px 1fr; gap: 26px; }
  .prose-grid h2 { position: static; }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 94px; }
  .brand-name { display: none; }
  .main-nav { top: 68px; }
  .hero { min-height: 720px; background-position: 58% center; }
  .hero-content { padding: 130px 0 62px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 16px; }
  .actions .button { width: 100%; }
  .section, .page-section { padding: 66px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .product-grid, .wide-product-grid, .cert-grid, .quality-grid, .case-grid { grid-template-columns: 1fr; }
  .certificate-record { grid-template-columns: 1fr; padding: 18px; }
  .certificate-image { max-width: 280px; }
  .certificate-content h3 { font-size: 23px; }
  .certificate-content dl div { grid-template-columns: 1fr; gap: 2px; }
  .factory-gallery { grid-template-columns: repeat(2, 1fr); }
  .facility-gallery { grid-template-columns: 1fr; }
  .certificate-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { gap: 30px; }
  .page-hero { min-height: 390px; }
  .page-hero .container { padding: 126px 0 48px; }
  .category-title { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-contact { position: fixed; right: 14px; bottom: 14px; z-index: 45; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; color: var(--white); background: var(--red); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 700; }
}
