﻿:root {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #172b4d;
  --muted: #53667d;
  --line: #e6edf5;
  --accent: #0b5cff;
  --accent-2: #003b99;
  --cyan: #00b8d9;
  --radius: 12px;
  --shadow: 0 12px 26px rgba(18, 42, 77, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(11, 92, 255, 0.5);
  outline-offset: 3px;
}
img, svg { max-width: 100%; }
.container { width: min(1320px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 251, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; font-weight: 700; }
.brand-logo-svg {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
}
.brand-logo-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-logo-svg rect {
  fill: #eef6ff;
  stroke: var(--accent);
  stroke-width: 2.2;
}
.brand-logo-svg path {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-text { color: var(--accent-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; gap: clamp(0.65rem, 1vw, 1.1rem); align-items: center; }
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--accent-2); font-weight: 700; }

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  height: 44px;
  border-radius: 10px;
  padding: 0 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 92px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/factory-hero.webp") center/cover no-repeat;
  transform: scale(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 28, 56, 0.68) 0%, rgba(8, 28, 56, 0.52) 42%, rgba(8, 28, 56, 0.28) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}
.hero-copy {
  max-width: 760px;
}
.kicker { color: #b8deff; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; font-size: 0.78rem; }
.hero h1 { color: #ffffff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.12; margin: 0.2rem 0 0.7rem; }
.subtitle { color: #d5e6f8; margin: 0 0 1rem; font-size: 1.02rem; }
.hero-note { color: #eef7ff; max-width: 780px; margin: -0.3rem 0 1rem; font-size: 0.98rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.hero-tags span { border: 1px solid rgba(184, 222, 255, 0.45); background: rgba(11, 27, 50, 0.38); color: #e6f3ff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.82rem; font-weight: 600; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1.16rem; border-radius: 10px; font-weight: 700; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border: 1px solid rgba(230, 237, 245, 0.58); background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.btn-outline { border: 1px solid #b8cef0; background: #fff; color: var(--accent-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual { display: none; }
.hero-media img { width: 100%; height: 330px; object-fit: cover; display: block; }
.hero-media-badges { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.65rem 0.8rem; background: #f8fbff; border-top: 1px solid var(--line); }
.hero-media-badges strong { font-size: 0.8rem; color: #1f4f8e; }

.section { padding: 58px 0; }
.section-head { margin-bottom: 1rem; }
.section-head h2 { margin: 0 0 0.25rem; font-size: clamp(1.35rem, 2.8vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 0.9rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.feature,
.product-item,
.why-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.cat-media {
  height: 130px;
  border-radius: 10px;
  border: 1px solid #dbe7f6;
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media span { color: #52657c; font-size: 0.92rem; }
.service-icon svg {
  width: 72px;
  height: 72px;
  color: var(--accent);
}
.service-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-grid { grid-template-columns: 1fr; gap: 1.1rem; }
.product-group-head { margin-top: 2rem; }
.product-group-head:first-child { margin-top: 0; }
.product-sample-note {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f5f9ff;
  color: #35506f;
  font-size: 0.9rem;
}
.portfolio-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}
.portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.portfolio-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #184f95;
}
.portfolio-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}
.group-contact {
  margin-top: 0.72rem;
  display: inline-flex;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.product-item {
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-item:hover { box-shadow: 0 18px 34px rgba(18, 42, 77, 0.12); }
.product-media { width: 100%; height: 250px; object-fit: contain; object-position: center center; border-radius: 10px; border: 1px solid var(--line); background: #eef4fc; padding: 0.2rem; }
.product-item[data-category="others"] .product-media {
  object-fit: contain;
  object-position: center center;
  padding: 0.4rem;
}
.product-item[data-category="others"]:nth-child(2) .product-media {
  object-position: 50% 0%;
}
.product-item[data-category="others"]:nth-child(4) .product-media {
  object-position: 50% 50%;
  transform: scale(0.92);
}
.product-meta { margin-top: 0.58rem; }
.product-meta h2,
.product-meta h3 { margin: 0.1rem 0; font-size: 0.98rem; line-height: 1.35; min-height: 2.5rem; display: flex; align-items: flex-start; }
.product-title-link { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.product-title-link:hover,
.product-title-link:focus-visible { color: var(--accent); }
.product-model { color: var(--muted); font-size: 0.86rem; margin: 0.2rem 0 0.48rem; min-height: 1.45rem; display: flex; align-items: center; }
.product-points { margin: 0; padding-left: 1.05rem; color: #35506f; font-size: 0.85rem; min-height: 66px; }
.product-points li { margin: 0.17rem 0; }
.portfolio-contact-prompt {
  text-align: center;
  margin: 1rem 0 0;
}
.portfolio-contact-prompt a {
  color: var(--accent);
  font-weight: 700;
}
.portfolio-contact-prompt a:hover { color: var(--accent-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.text-link:hover {
  color: var(--accent-2);
  transform: translateX(2px);
}

.why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.why-card { background: #fff; }
.why-card h3 { margin: 0; font-size: 0.92rem; color: #28476c; }

.process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}
.process-card h3 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--accent-2); }
.process-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.tech { background: transparent; }
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid #b9d8ec; color: var(--accent); background: rgba(0, 184, 217, 0.1); display: grid; place-items: center; margin-bottom: 0.65rem; }
.f-icon svg {
  width: 24px;
  height: 24px;
}
.f-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-grid h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.about-grid p { margin: 0; color: var(--muted); }

.inquiry-form-section { padding: 66px 0 84px; }

.form-direct-options {
  max-width: 920px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
}
.form-direct-options > span { color: var(--text); font-weight: 700; }

.inquiry-form {
  max-width: 920px;
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.4rem;
  box-shadow: 0 24px 48px rgba(18, 42, 77, 0.1);
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-weight: 700; font-size: 0.95rem; }
.form-row .req { color: #b42318; }
.inquiry-form input,
.inquiry-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.12);
}
.inquiry-form textarea { resize: vertical; min-height: 160px; }
.form-privacy { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.9rem 2.4rem;
  font-size: 1.02rem;
  border: 0;
  cursor: pointer;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; min-height: 1.2em; }
.form-status.success { color: #126b3f; }
.form-status.error { color: #b42318; }

@media (max-width: 760px) {
  .inquiry-form { grid-template-columns: 1fr; padding: 1.6rem; }
  .form-direct-options { align-items: flex-start; flex-direction: column; }
  .form-submit { justify-self: stretch; text-align: center; }
}

.inquiry-cta { padding-top: 18px; }
.inquiry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d5e4f7;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.inquiry-panel h2 { margin: 0 0 0.35rem; font-size: clamp(1.25rem, 2vw, 1.8rem); color: var(--accent-2); }
.inquiry-panel p { margin: 0; color: var(--muted); max-width: 760px; }
.inquiry-actions { display: flex; align-items: flex-start; gap: 0.65rem; flex-wrap: wrap; flex: 0 0 auto; }

.site-footer { border-top: 1px solid var(--line); background: #f2f7fc; padding-top: 34px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.3fr; gap: 1rem; }
.site-footer h3 { margin-top: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0.3rem 0; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.story-trigger {
  border: 1px solid var(--line);
  background: #fff;
  color: #114b9b;
  border-radius: 10px;
  padding: 0.68rem 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.story-hint { color: var(--muted); margin-top: 0.45rem; }

.compliance-wall { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cert-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cert-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.cert-thumb { width: 100%; height: 170px; object-fit: contain; display: block; border-radius: 6px; border: 1px solid var(--line); background: #fff; margin-bottom: 0.5rem; }
.cert-card > a { display: block; }
.cert-card strong { display: block; color: #184f95; font-size: 0.92rem; }
.cert-card span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }

.copyright { border-top: 1px solid var(--line); margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.88rem; }

.page-header {
  padding: 46px 0 30px;
  background: linear-gradient(180deg, #eef5ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.5rem; }
.breadcrumb a { color: var(--accent-2); }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--accent-2); }
.page-header p { margin: 0; color: var(--muted); max-width: 780px; }

.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--accent-2); }
.faq-item p { margin: 0; color: var(--muted); }

.brand-story { max-width: 880px; }
.brand-story p { margin: 0 0 0.85rem; color: var(--muted); }
.product-compliance-note { margin-top: 1.4rem; }
.certification-intro { margin-bottom: 1.4rem; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 1080px) {
  .cards-4,
  .features,
  .process-grid,
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .hero-grid,
  .about-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .inquiry-panel { align-items: flex-start; flex-direction: column; }
  .main-nav { position: fixed; left: 0; right: 0; top: 78px; display: none; flex-direction: column; background: #f7faff; border-bottom: 1px solid var(--line); padding: 0.9rem 4%; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 0.55rem 0.4rem; text-align: center; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 102px 0 78px; min-height: 82vh; }
  .product-media { height: 230px; }
}

@media (max-width: 760px) {
  .brand-text { max-width: 62vw; }
  .nav-wrap { gap: 0.55rem; }
  .lang-btn { height: 44px; padding: 0 0.7rem; }
}

@media (max-width: 620px) {
  .cards-4,
  .features,
  .why-grid,
  .process-grid,
  .cert-grid { grid-template-columns: 1fr; }
  .portfolio-items { grid-template-columns: 1fr; }
  .hero { padding-top: 74px; min-height: 76vh; }
  .product-media { height: 210px; }
}

@media (min-width: 1600px) {
  .container { width: min(1680px, 88%); }
  .nav-wrap { min-height: 86px; }
  .brand-logo-svg { width: 46px; height: 46px; flex-basis: 46px; }
  .main-nav { gap: 1.45rem; }
  .hero { min-height: 92vh; padding: 150px 0 118px; }
  .hero-copy { max-width: 920px; }
  .hero h1 { font-size: clamp(2.9rem, 3.4vw, 4.25rem); }
  .subtitle { font-size: 1.1rem; max-width: 980px; }
  .hero-note { font-size: 1.05rem; max-width: 920px; }
  .hero-tags span { font-size: 0.9rem; padding: 0.38rem 0.9rem; }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 1.35rem; }
  .grid { gap: 1.25rem; }
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .portfolio-group { padding: 1.2rem; }
  .portfolio-items { gap: 1.1rem; }
  .card,
  .feature,
  .product-item,
  .why-card,
  .process-card { padding: 1.2rem; }
  .cat-media { height: 160px; }
  .product-media { height: 300px; }
  .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inquiry-panel { padding: 1.55rem; }
}

@media (min-width: 2200px) {
  .container { width: min(2040px, 86%); }
  .nav-wrap { min-height: 92px; }
  .hero { min-height: 94vh; padding: 170px 0 132px; }
  .hero-copy { max-width: 1080px; }
  .hero h1 { font-size: clamp(3.2rem, 3.1vw, 4.8rem); }
  .subtitle,
  .hero-note { font-size: 1.16rem; }
  .section { padding: 92px 0; }
  .grid { gap: 1.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portfolio-group { padding: 1.45rem; }
  .portfolio-items { gap: 1.35rem; }
  .card,
  .feature,
  .product-item,
  .why-card,
  .process-card { padding: 1.35rem; }
  .cat-media { height: 180px; }
  .product-media { height: 340px; }
  .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
