/* Hangyuan Textile — brighter brand blues & greens */
:root {
  --blue: #1a8cff;
  --blue-mid: #0d6fd4;
  --blue-deep: #0a4a9e;
  --blue-ink: #0b2f66;
  --green: #8fe03a;
  --green-mid: #74c922;
  --green-deep: #58a812;
  --white: #ffffff;
  --fog: #f3f7fc;
  --mist: #e6eef8;
  --ink: #14233a;
  --muted: #5a6b82;
  --line: rgba(13, 111, 212, 0.14);
  --shadow: 0 18px 50px rgba(10, 74, 158, 0.12);
  --radius: 4px;
  --nav-h: 88px;
  --font: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .brand-text {
  color: var(--blue-ink);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--blue-ink);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.15;
  transition: color 0.3s;
}

.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.78rem;
  opacity: 0.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-inner .site-header,
.site-header.theme-light {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
}

body.page-inner .nav-link,
body.page-inner .brand-text,
.site-header.theme-light .nav-link,
.site-header.theme-light .brand-text {
  color: var(--blue-ink);
}

body.page-inner .nav-toggle span,
.site-header.theme-light .nav-toggle span {
  background: var(--blue-ink);
}

body.page-inner .lang-switch,
.site-header.theme-light .lang-switch {
  border-color: var(--line);
}

body.page-inner .lang-btn,
.site-header.theme-light .lang-btn {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.site-header.is-scrolled .lang-switch {
  border-color: var(--line);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header:not(.is-scrolled) .lang-btn {
  color: #fff;
}

.site-header.is-scrolled .lang-btn {
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--green);
  color: var(--blue-ink) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--blue-ink);
  box-shadow: 0 10px 28px rgba(143, 224, 58, 0.35);
}

.btn-primary:hover {
  background: #9eeb4d;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border-color: rgba(26, 140, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(26, 140, 255, 0.08);
}

.nav-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 47, 102, 0.82) 0%, rgba(13, 111, 212, 0.45) 48%, rgba(10, 74, 158, 0.55) 100%),
    linear-gradient(to top, rgba(8, 28, 62, 0.75), transparent 42%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- Shared sections ---------- */
section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-label {
  display: inline-block;
  color: var(--blue-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--blue-ink);
  max-width: 18ch;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .section-title {
  max-width: 14ch;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Proof bar ---------- */
.proof {
  padding: 0;
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.08em;
}

.proof-value .wave {
  color: var(--green);
  font-weight: 700;
  padding: 0 0.05em;
}

.proof-value .unit {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--green-mid);
}

.proof-label {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About ---------- */
.about {
  background: var(--fog);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mist);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(10, 47, 102, 0.88);
  color: #fff;
  backdrop-filter: blur(8px);
}

.about-badge strong {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pillars {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 3px solid var(--green);
}

.pillar-num {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

.pillar h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Production / switcher ---------- */
.production {
  background: var(--blue-ink);
  color: #fff;
  overflow: hidden;
}

.production .section-label {
  color: var(--green);
}

.production .section-title {
  color: #fff;
  max-width: 16ch;
}

.production .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.factory-switcher {
  margin-top: 2.25rem;
  max-width: 920px;
}

.prod-main {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #061833;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prod-main video,
.prod-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(6, 24, 51, 0.92), transparent);
  font-size: 0.95rem;
}

.factory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.factory-filmstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.factory-filmstrip .factory-tab {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #061833;
  cursor: pointer;
}

.factory-filmstrip .factory-tab video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  display: block;
  transition: opacity 0.25s, transform 0.4s var(--ease);
}

.factory-filmstrip .factory-tab span {
  position: absolute;
  left: 0.55rem;
  bottom: 0.45rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.factory-filmstrip .factory-tab.is-active,
.factory-filmstrip .factory-tab:hover {
  border-color: var(--green);
}

.factory-filmstrip .factory-tab.is-active video,
.factory-filmstrip .factory-tab:hover video {
  opacity: 1;
  transform: scale(1.03);
}

.factory-tab {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.7rem 1.05rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.factory-tab:hover {
  border-color: rgba(143, 224, 58, 0.55);
}

.factory-tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--blue-ink);
}

.factory-filmstrip .factory-tab.is-active {
  background: transparent;
  color: #fff;
}

/* ---------- Applications ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.app-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  isolation: isolate;
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.app-card:hover img {
  transform: scale(1.08);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 47, 102, 0.92) 0%, rgba(10, 47, 102, 0.15) 55%, transparent 100%);
  z-index: 1;
}

.app-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.25rem;
  color: #fff;
}

.app-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.app-body p {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: max-height 0.45s var(--ease), opacity 0.35s, margin 0.35s;
}

.app-card:hover .app-body p,
.app-card:focus-within .app-body p {
  max-height: 8rem;
  opacity: 1;
  margin-top: 0.55rem;
}

.app-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  background: rgba(143, 224, 58, 0.2);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--blue-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.section-more a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

/* ---------- Colors ---------- */
.colors {
  background: var(--fog);
}

.colors-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.color-card-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.color-card-frame img {
  width: 100%;
  height: auto;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: default;
}

.swatch:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(10, 74, 158, 0.2);
  z-index: 1;
}

.swatch span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem;
  font-size: 0.58rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.swatch:hover span {
  opacity: 1;
}

/* ---------- Advantage ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.advantage-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: var(--mist);
}

.advantage-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-points {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.adv-point {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.adv-point:hover {
  border-color: rgba(26, 140, 255, 0.45);
  transform: translateX(4px);
}

.adv-point h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--blue-ink);
}

.adv-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(143, 224, 58, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 30%, rgba(26, 140, 255, 0.2), transparent 40%),
    var(--fog);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-info {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(160deg, var(--blue-deep), var(--blue-ink));
  color: #fff;
}

.contact-info h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.2;
}

.contact-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list small {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-list a,
.contact-list span {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--green);
}

.contact-form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--fog);
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input[type="file"] {
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  background: #fff;
}

.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0.15rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.2s;
}

.news-row:hover {
  background: rgba(26, 140, 255, 0.04);
  padding-left: 0.45rem;
}

.news-row time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-mid);
  letter-spacing: 0.02em;
}

.news-row-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--blue-ink);
  line-height: 1.35;
}

.news-row-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-row-go {
  color: var(--green-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .news-row {
    grid-template-columns: 1fr auto;
  }

  .news-row time {
    grid-column: 1 / -1;
  }

  .factory-filmstrip {
    grid-template-columns: 1fr;
  }
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.file-field .file-pick-btn {
  width: auto;
  margin-top: 0.15rem;
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-field {
  position: relative;
}

.file-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.file-thumb {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--mist);
  overflow: hidden;
  aspect-ratio: 1;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-thumb-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 20, 40, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.file-thumb-remove:hover {
  background: #c0392b;
}

.file-thumb figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.3rem;
  background: rgba(7, 24, 51, 0.72);
  color: #fff;
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.inquiry-modal[hidden] {
  display: none !important;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 51, 0.55);
}

.inquiry-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.75rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(7, 24, 51, 0.22);
  text-align: center;
}

.inquiry-modal-dialog h3 {
  margin: 0 0 0.65rem;
  color: var(--blue-ink);
  font-size: 1.35rem;
}

.inquiry-modal-dialog p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  line-height: 1.6;
}

html[data-theme="dark"] .inquiry-modal-dialog {
  background: #121c2e;
  border-color: rgba(255, 255, 255, 0.08);
}

.inquiry-modal-dialog .btn {
  min-width: 8rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #071833;
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  border-top: 3px solid var(--green);
}

.footer-shell {
  padding: 1.35rem 0 1rem;
  display: grid;
  gap: 0.85rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.footer-logo strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.footer-logo em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.12rem;
}

.footer-nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.footer-nav-inline a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-nav-inline a:hover {
  color: var(--green);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--green);
}

.footer-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.footer-meta .map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.footer-meta .map-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
}

.footer-meta .map-link svg {
  width: 13px;
  height: 13px;
  color: var(--green);
  flex-shrink: 0;
}

.social-row {
  display: flex;
  gap: 0.45rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 36px;
  height: 36px;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(143, 224, 58, 0.08);
}

.social-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.contact-info .social-link {
  border-color: rgba(255, 255, 255, 0.28);
  height: auto;
  min-width: 0;
  padding: 0.45rem 0.75rem;
}

.map-link {
  color: inherit;
}

.map-link:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
  color: var(--green);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .theme-toggle,
.site-header.theme-light .theme-toggle,
body.page-inner .theme-toggle {
  border-color: var(--line);
  color: var(--blue-ink);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* Dark theme tokens */
html[data-theme="dark"] {
  --white: #0b1220;
  --fog: #111a2b;
  --mist: #182338;
  --ink: #e8eef8;
  --muted: #9aabbf;
  --line: rgba(143, 196, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--white);
  color: var(--ink);
}

html[data-theme="dark"] .site-header.is-scrolled,
html[data-theme="dark"] .site-header.theme-light,
html[data-theme="dark"] body.page-inner .site-header {
  background: rgba(11, 18, 32, 0.94);
}

html[data-theme="dark"] .site-header.is-scrolled .nav-link,
html[data-theme="dark"] .site-header.is-scrolled .brand-text,
html[data-theme="dark"] .site-header.theme-light .nav-link,
html[data-theme="dark"] .site-header.theme-light .brand-text,
html[data-theme="dark"] body.page-inner .nav-link,
html[data-theme="dark"] body.page-inner .brand-text,
html[data-theme="dark"] .site-header.is-scrolled .theme-toggle,
html[data-theme="dark"] .site-header.theme-light .theme-toggle,
html[data-theme="dark"] body.page-inner .theme-toggle {
  color: #e8eef8;
}

html[data-theme="dark"] .proof-grid,
html[data-theme="dark"] .pillar,
html[data-theme="dark"] .adv-point,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .case-rich,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .color-card-frame {
  background: #121c2e;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
  background: #0b1220;
  color: var(--ink);
}

html[data-theme="dark"] .btn-outline {
  color: #8ec8ff;
  border-color: rgba(142, 200, 255, 0.4);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .news-card h3,
html[data-theme="dark"] .case-row-body h3,
html[data-theme="dark"] .adv-point h3 {
  color: #eef4ff;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .nav-links,
  .nav-actions .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-open {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header.is-open .nav-link,
  .site-header.is-open .brand-text,
  .site-header.is-open .lang-btn {
    color: var(--blue-ink);
  }

  .site-header.is-open .nav-toggle span {
    background: var(--blue-ink);
  }

  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 0.75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav-actions .nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(var(--nav-h) + 17.5rem);
    left: 1.25rem;
    right: 1.25rem;
    z-index: 101;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(1),
  .proof-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .about-grid,
  .colors-layout,
  .advantage-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .about-visual {
    aspect-ratio: 16 / 11;
  }

  .advantage-visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .apps-grid,
  .form-row,
  .proof-grid,
  .swatch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .swatch-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media video,
  .hero-media img {
    transform: none;
  }
}

/* ---------- Subpage hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(143, 224, 58, 0.16), transparent 42%),
    linear-gradient(160deg, #0b2f66 0%, #0d6fd4 55%, #0a4a9e 100%);
  color: #fff;
}

.page-hero .section-label {
  color: var(--green);
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 16ch;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--green);
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 140, 255, 0.4);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mist);
}

.news-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.news-card time {
  font-size: 0.78rem;
  color: var(--blue-mid);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.news-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--blue-ink);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.article {
  max-width: 720px;
}

.article p {
  color: var(--muted);
  font-size: 1.05rem;
}

.article h2 {
  color: var(--blue-ink);
  font-size: 1.35rem;
  margin-top: 2rem;
}

/* ---------- Case knowledge list / detail ---------- */
.case-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.case-row {
  display: grid;
  grid-template-columns: 1fr minmax(7.5rem, 11rem);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.case-row:hover {
  background: rgba(26, 140, 255, 0.04);
  padding-left: 0.45rem;
}

.case-row-body {
  min-width: 0;
}

.case-row-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-mid);
}

.case-row-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  color: var(--blue-ink);
}

.case-row-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.case-row-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
  border: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  position: sticky;
  top: 5.5rem;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.detail-panel .section-title {
  margin-bottom: 0.35rem;
}

.detail-specs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.detail-specs li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.detail-specs strong {
  color: var(--blue-ink);
}

.detail-specs span {
  color: var(--muted);
}

.case-rich {
  margin-top: 1.35rem;
  padding: 1.15rem 1.2rem;
  background: var(--fog);
  border-left: 3px solid var(--green);
}

.case-rich h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--blue-ink);
}

.case-rich p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.case-rich p:last-child {
  margin-bottom: 0;
}

.case-rich img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.85rem 0;
  border: 1px solid var(--line);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.app-card {
  display: block;
  color: inherit;
}

@media (max-width: 980px) {
  .news-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-media {
    position: static;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .case-row {
    grid-template-columns: 1fr 5.5rem;
    gap: 0.75rem;
  }

  .detail-specs li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }
}
