:root {
  --color-ink: #173042;
  --color-ink-soft: #536875;
  --color-blue: #123a56;
  --color-blue-deep: #071827;
  --color-green: #4f7f72;
  --color-green-strong: #356b60;
  --color-green-soft: #dcebe6;
  --color-ivory: #f7faf8;
  --color-blue-gray: #edf3f5;
  --color-paper: #ffffff;
  --color-line: rgba(23, 48, 66, 0.12);
  --shadow-soft: 0 18px 44px rgba(18, 58, 86, 0.075);
  --shadow-card: 0 10px 28px rgba(18, 58, 86, 0.055);
  --header-height: 76px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  background: #fbfdfc;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

body.lang-en {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-height);
  color: #ffffff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--color-ink);
  background: rgba(250, 252, 251, 0.94);
  box-shadow: 0 10px 30px rgba(18, 58, 86, 0.07);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 210px;
  letter-spacing: 0;
}

.brand-mark {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.74rem;
  color: currentColor;
  opacity: 0.78;
  line-height: 1.25;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-panel a {
  position: relative;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.nav-panel a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  opacity: 1;
}

.nav-panel a:hover::after,
.nav-panel a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .language-switch,
.site-header.is-open .language-switch {
  border-color: rgba(23, 48, 66, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.language-switch button {
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
}

.language-switch button.is-active {
  font-weight: 700;
  opacity: 1;
}

.menu-toggle {
  display: none;
  min-width: 78px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: rgba(23, 48, 66, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-blue-deep);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: opacity 1000ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-1 {
  background-image: url("./assets/hero-1.jpg");
}

.hero-slide-2 {
  background-image: url("./assets/hero-2.jpg");
}

.hero-slide-3 {
  background-image: url("./assets/hero-3.jpg");
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(7, 24, 39, 0.34), rgba(7, 24, 39, 0.02) 42%, rgba(7, 24, 39, 0.28));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 24, 39, 0.9) 0%, rgba(10, 38, 59, 0.72) 45%, rgba(22, 67, 76, 0.38) 100%),
    linear-gradient(0deg, rgba(7, 24, 39, 0.58) 0%, rgba(7, 24, 39, 0.16) 52%, rgba(7, 24, 39, 0.38) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 160px 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--color-green-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  width: min(1180px, 100%);
  min-height: 2.35em;
  margin: 0;
  font-size: clamp(3.4rem, 5.8vw, 6.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

body.lang-en .hero-title {
  font-size: clamp(2.75rem, 4.25vw, 3.9rem);
}

.typing-text {
  overflow-wrap: normal;
  word-break: keep-all;
}

.cursor-lock {
  display: inline;
  white-space: nowrap;
}

.type-cursor {
  display: inline-block;
  margin-left: 0.08em;
  font-weight: 500;
  vertical-align: baseline;
  animation: cursorBlink 0.82s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  width: min(760px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-dots {
  position: absolute;
  right: clamp(24px, 4vw, 68px);
  bottom: clamp(34px, 8vh, 78px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
  border-color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--color-blue-deep);
  background: #ffffff;
  border: 1px solid #ffffff;
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 108px 0;
  border-top: 1px solid rgba(23, 48, 66, 0.045);
}

.section-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.42fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.split-layout.compact {
  align-items: center;
}

.section-heading h2,
.philosophy-card h2 {
  margin: 0;
  color: var(--color-blue);
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--color-ink-soft);
  line-height: 1.82;
}

.centered {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.section .eyebrow,
.philosophy-card .eyebrow {
  color: var(--color-green);
}

.rich-copy {
  color: var(--color-ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.rich-copy p {
  margin: 0;
}

.rich-copy p + p {
  margin-top: 20px;
}

.about-section {
  background: #fbfdfc;
}

.products-section {
  background: var(--color-blue-gray);
}

.customers-section {
  background: #ffffff;
}

.strengths-section {
  background: #f5f9f7;
}

.contact-section {
  background: #eef4f5;
}

.philosophy-section {
  padding: 44px 0;
  border-top: 1px solid rgba(23, 48, 66, 0.05);
  border-bottom: 1px solid rgba(23, 48, 66, 0.05);
  background: linear-gradient(115deg, #edf6f2 0%, #f8fbf9 54%, #edf4f7 100%);
}

.philosophy-card {
  position: relative;
  padding: clamp(42px, 7vw, 78px);
  overflow: hidden;
  border: 1px solid rgba(53, 107, 96, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 251, 0.78)),
    repeating-linear-gradient(90deg, rgba(18, 58, 86, 0.035) 0 1px, transparent 1px 78px);
  box-shadow: 0 16px 38px rgba(18, 58, 86, 0.055);
}

.philosophy-card h2 {
  max-width: 940px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.customer-card {
  border: 1px solid rgba(23, 48, 66, 0.11);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card {
  min-height: 285px;
  padding: 30px;
}

.info-card .card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--color-green-strong);
  border: 1px solid rgba(79, 127, 114, 0.24);
  background: #f1f7f4;
  font-weight: 800;
  font-size: 0.86rem;
}

.info-card h3,
.contact-card h3 {
  margin: 0;
  color: var(--color-blue);
  font-size: 1.2rem;
  line-height: 1.35;
}

.info-card .english-title {
  margin: 7px 0 18px;
  color: var(--color-green-strong);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.info-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-card {
  min-height: 118px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-card span {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--color-green-strong);
}

.customer-card strong {
  color: var(--color-blue);
  font-size: 1.06rem;
}

.customer-card small {
  margin-top: 5px;
  color: var(--color-ink-soft);
  font-size: 0.83rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(23, 48, 66, 0.11);
  border-radius: 8px;
  background: var(--color-paper);
  box-shadow: 0 16px 40px rgba(18, 58, 86, 0.07);
}

.contact-card dl {
  margin: 28px 0 0;
}

.contact-card div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}

.contact-card dt {
  color: var(--color-green-strong);
  font-weight: 800;
}

.contact-card dd {
  margin: 0;
  color: var(--color-ink-soft);
  overflow-wrap: anywhere;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--color-blue);
}

.site-footer {
  padding: 28px 0;
  color: #60717c;
  border-top: 1px solid rgba(23, 48, 66, 0.09);
  background: #f8fbfa;
}

@media (hover: hover) {
  .info-card:hover,
  .customer-card:hover {
    border-color: rgba(53, 107, 96, 0.24);
    box-shadow: 0 16px 36px rgba(18, 58, 86, 0.08);
    transform: translateY(-3px);
  }
}

.footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 0.78;
}

.mps-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.mps-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@media (max-width: 980px) {
  .header-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(23, 48, 66, 0.1);
    border-radius: 8px;
    color: var(--color-ink);
    background: rgba(250, 252, 251, 0.97);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(16px);
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-panel a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  }

  .nav-panel a:last-child {
    border-bottom: 0;
  }

  .nav-panel a::after {
    display: none;
  }

  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    max-width: 48vw;
  }

  .brand-mark {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    padding: 7px 10px;
    gap: 5px;
    font-size: 0.73rem;
  }

  .menu-toggle {
    min-width: 66px;
    height: 32px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .hero-inner {
    width: min(calc(100% - 32px), var(--max-width));
    min-height: 100vh;
    min-height: 100svh;
    padding: 126px 0 104px;
  }

  .hero-kicker,
  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.7rem;
  }

  .hero-title {
    min-height: 2.6em;
    font-size: clamp(2.5rem, 10vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  body.lang-en .hero-title {
    font-size: clamp(2.1rem, 8.2vw, 3.05rem);
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  .btn {
    min-width: 0;
    flex: 1 1 132px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .section {
    padding: 74px 0;
  }

  .section-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .centered {
    margin-bottom: 36px;
    text-align: left;
  }

  .section-heading h2,
  .philosophy-card h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .philosophy-section {
    padding: 28px 0;
  }

  .philosophy-card {
    padding: 34px 24px;
  }

  .product-grid,
  .strength-grid,
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
    padding: 26px;
  }

  .contact-card {
    padding: 26px;
  }

  .contact-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    max-width: 44vw;
  }

  .language-switch {
    padding: 6px 8px;
  }

  .menu-toggle {
    min-width: 58px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 9.2vw, 2.5rem);
  }

  body.lang-en .hero-title {
    font-size: clamp(1.8rem, 7.4vw, 2rem);
  }
}
