:root {
  --red: #e14d3d;
  --red-dark: #c63b2d;
  --red-soft: #fdecea;
  --ink: #1b1d21;
  --ink-2: #3a3f47;
  --muted: #6b7280;
  --line: #e8eaee;
  --bg: #f6f7f9;
  --white: #fff;
  --shadow: 0 12px 40px rgba(17, 24, 39, .08);
  --radius: 10px;
  --max: 1200px;
  --header: 78px;
  --top: 36px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--red); color: #fff; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: .2s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { background: #fff; color: var(--red); border: 1px solid var(--red); }
.kicker {
  color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .12em;
  margin: 0 0 10px;
}
h1, h2, h3, h4 { font-family: "PingFang SC", "Noto Sans SC", Inter, sans-serif; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 20px; }
.logo-sub { display: block; font-size: 11px; letter-spacing: .28em; color: var(--muted); font-style: normal; font-weight: 600; margin-top: -2px; }
p { margin: 0 0 12px; color: var(--ink-2); }

/* Topbar */
.topbar {
  height: var(--top); background: #111318; color: #d5d8de;
  font-size: 13px; display: flex; align-items: center;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #d5d8de; }
.topbar a:hover { color: #fff; }
.top-left, .top-right { display: flex; gap: 18px; align-items: center; }
.lang { display: flex; align-items: center; gap: 6px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  height: var(--header); border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo svg { width: 36px; height: 36px; }
.logo-name {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: 28px; letter-spacing: .06em; font-style: italic; line-height: 1;
}
.logo-name span { color: var(--red); }
nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: flex; align-items: center; gap: 5px; padding: 10px 14px;
  background: none; border: 0; cursor: pointer; color: var(--ink-2); font-weight: 600;
}
.nav-item > a.active, .nav-item > a:hover, .nav-item > button:hover { color: var(--red); }
.nav-item > a.active { box-shadow: inset 0 -2px 0 var(--red); }
.drop {
  position: absolute; top: calc(100% - 4px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px; display: none;
}
.nav-item:hover .drop { display: block; }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.drop a:hover { background: var(--red-soft); color: var(--red); }
.drop.wide { min-width: 520px; display: none; grid-template-columns: 1fr 1fr; }
.nav-item:hover .drop.wide { display: grid; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.burger { display: none; }

/* Hero */
.hero { position: relative; min-height: 640px; overflow: hidden; color: #fff; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background: #111 center/cover no-repeat;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,16,.78) 0%, rgba(8,10,16,.28) 62%, rgba(8,10,16,.12) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 720px; }
.hero-copy h1 { text-shadow: 0 8px 28px rgba(0,0,0,.35); }
.hero-copy p { color: #e7e9ee; font-size: 17px; max-width: 560px; }
.hero-nav {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; pointer-events: none; z-index: 3;
}
.hero-nav button {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.dots {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.dots button { width: 28px; height: 4px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.dots button.on { background: var(--red); }

.red-strip {
  background: var(--red); color: #fff; text-align: center; padding: 16px 20px;
  font-weight: 600; letter-spacing: .04em;
}
.red-strip p { color: #fff; margin: 0; font-size: 15px; }

/* Sections */
.section { padding: 78px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

.cat-card {
  position: relative; min-height: 280px; border-radius: 16px; overflow: hidden;
  color: #fff; isolation: isolate;
}
.cat-card img, .cat-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.cat-card span {
  position: absolute; z-index: 1; left: 22px; bottom: 22px;
  font-family: "Barlow Condensed", sans-serif; font-size: 28px; font-weight: 700; letter-spacing: .04em;
}

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  text-align: center;
}
.stat b { display: block; color: var(--red); font-size: 30px; font-family: "Barlow Condensed", sans-serif; }
.stat span { color: var(--muted); font-size: 13px; }

.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert {
  width: 120px; height: 88px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 13px; color: var(--ink-2); letter-spacing: .04em;
}
.cert small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why article {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.why .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft);
  color: var(--red); display: grid; place-items: center; margin-bottom: 14px; font-weight: 800;
}

.factory-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.tabs button.on { background: var(--red); color: #fff; border-color: var(--red); }
.factory-photo { border-radius: 16px; overflow: hidden; min-height: 340px; background: #111; }
.factory-photo img { width: 100%; height: 340px; object-fit: cover; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.kpi div { background: #111318; color: #fff; border-radius: 12px; padding: 16px; text-align: center; }
.kpi b { display: block; font-size: 24px; color: #ffb4ab; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step {
  text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.step b { display: block; width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--red); color: #fff; line-height: 36px; }
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 13px; margin: 0; color: var(--muted); }

.custom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.custom-grid article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.custom-grid ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.custom-grid li { margin: 6px 0; }

.scene-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.scene-tabs button {
  border: 0; background: #eceef2; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600;
}
.scene-tabs button.on { background: var(--red); color: #fff; }
.scene-view {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.scene-view img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.scene-view div { padding: 28px; }
.scene-view ul { margin: 12px 0 0; padding-left: 18px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.quote p { font-size: 15px; }
.quote b { display: block; margin-top: 14px; }
.quote span { color: var(--muted); font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.news-card img { height: 150px; width: 100%; object-fit: cover; }
.news-card div { padding: 16px; }
.news-card small { color: var(--muted); }
.news-card h3 { font-size: 18px; }

.cta-band {
  background: linear-gradient(120deg, #171a21, #2b1210 70%);
  color: #fff; border-radius: 18px; padding: 42px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band p { color: #ddd; }

/* Footer */
.prefoot {
  background: #14171d; color: #d7dae1; padding: 56px 0 28px;
}
.prefoot h3, .prefoot h4 { color: #fff; }
.prefoot-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr; gap: 28px; }
.inquiry input, .inquiry textarea {
  width: 100%; margin: 0 0 10px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid #2d323c; background: #1c2028; color: #fff;
}
.inquiry textarea { min-height: 90px; resize: vertical; }
.site-footer {
  background: #0e1014; color: #9aa1ad; font-size: 14px; padding: 28px 0 90px;
  border-top: 1px solid #232833;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: #fff; }
.foot-nav { display: flex; gap: 14px; flex-wrap: wrap; }

.float-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 8px;
}
.float-bar a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.float-bar a.wa { background: #25d366; }
.float-bar a.ph { background: #3b82f6; }
.float-bar a.em { background: #f59e0b; }
.float-bar a.inq { background: var(--red); }

/* Inner pages */
.page-hero {
  background: #111 center/cover no-repeat; color: #fff; min-height: 220px;
  display: flex; align-items: flex-end;
}
.page-hero .wrap { padding: 70px 0 32px; }
.crumbs { font-size: 13px; color: #d0d4dc; margin-bottom: 8px; }
.crumbs a { color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  transition: .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product .thumb { height: 190px; background: #111; position: relative; overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 14px 16px 18px; }
.product h3 { font-size: 18px; margin: 0 0 6px; }
.product p { font-size: 13px; margin: 0; }
.tag { display: inline-block; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 3px 8px; margin-bottom: 6px; }

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; }
.detail-gallery { background: #111; border-radius: 16px; overflow: hidden; min-height: 420px; }
.detail-gallery img { width: 100%; height: 420px; object-fit: contain; background: #111; }
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec th, .spec td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 14px; }
.spec th { width: 38%; background: var(--bg); }

.article { max-width: 820px; margin: 0 auto; }
.article img { border-radius: 14px; margin: 18px 0; }
.article h2 { margin-top: 28px; }

.search-modal {
  position: fixed; inset: 0; background: rgba(10,12,16,.55); display: none;
  align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 80;
}
.search-modal.on { display: flex; }
.search-box { width: min(640px, calc(100% - 32px)); background: #fff; border-radius: 16px; padding: 18px; }
.search-box input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.search-results { margin-top: 12px; max-height: 320px; overflow: auto; }
.search-results a { display: block; padding: 10px; border-radius: 8px; }
.search-results a:hover { background: var(--bg); }

.mobile-panel {
  display: none; position: fixed; inset: 0; background: #fff; z-index: 70; padding: 20px;
  overflow: auto;
}
.ok-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111; color: #fff; padding: 12px 18px; border-radius: 999px; display: none; z-index: 90;
}

@media (max-width: 980px) {
  nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .grid-3, .grid-4, .why, .steps, .custom-grid, .quotes, .news-grid, .product-grid,
  .about-stats, .kpi, .prefoot-grid, .factory-panel, .scene-view, .detail, .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 520px; }
  .hero-copy { padding: 80px 0 70px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpi, .about-stats { grid-template-columns: repeat(2, 1fr); }
  .drop, .drop.wide { position: static; display: none !important; }
}
