:root {
  --bg: #f3f0e8;
  --bg-alt: #fbf8f2;
  --surface: #ffffff;
  --surface-alt: #f7f4ee;
  --surface-dark: #12181d;
  --surface-dark-2: #182228;
  --text: #172127;
  --muted: #5a6770;
  --muted-strong: #43515b;
  --line: rgba(23, 33, 39, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --primary: #0f5b67;
  --primary-strong: #0b4852;
  --accent: #cc6430;
  --accent-strong: #af5425;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: rgba(255, 255, 255, 0.84);
  --shadow-soft: 0 16px 44px rgba(18, 24, 29, 0.08);
  --shadow-strong: 0 26px 70px rgba(9, 13, 17, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(15, 91, 103, 0.05), transparent 22%),
    linear-gradient(180deg, #f8f5ef 0%, #f3f0e8 100%);
  line-height: 1.6;
}

body.is-intro-active {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-inline: 16px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(15, 91, 103, 0.24), transparent 36%),
    linear-gradient(180deg, #10171b 0%, #141f24 100%);
  color: var(--text-on-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.is-intro-active .intro {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__mark {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
}

body.is-intro-active .intro__mark {
  animation: introMark 0.9s ease forwards;
}

.intro__eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro__mark strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

@keyframes introMark {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 24, 29, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-nav {
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 44px;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong,
.brand-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.brand-text small {
  font-size: 0.79rem;
  color: var(--muted);
}

.site-header.is-scrolled .brand-text strong,
.site-header.is-scrolled .brand-text small,
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .menu-toggle {
  color: var(--text-on-dark);
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.22s ease, color 0.22s ease;
}

.nav-link.is-active {
  background: rgba(15, 91, 103, 0.1);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}

.lang-button {
  min-width: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.lang-button.is-active {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.site-header.is-scrolled .lang-switch {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .lang-button {
  color: rgba(255, 255, 255, 0.72);
}

.site-header.is-scrolled .lang-button.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-on-dark);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(204, 100, 48, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-tertiary {
  align-self: flex-start;
  background: rgba(15, 91, 103, 0.1);
  color: var(--primary);
}

.btn-footer {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-large {
  min-height: 54px;
  padding: 0 28px;
}

.header-cta {
  white-space: nowrap;
  padding-inline: 18px;
  flex-shrink: 0;
}

.hero {
  position: relative;
  padding: 12px 0 0;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 91, 103, 0.14), transparent 42%),
    radial-gradient(circle at right top, rgba(204, 100, 48, 0.18), transparent 28%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  color: var(--text-on-dark);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(19, 27, 32, 0), rgba(19, 27, 32, 0.42));
  pointer-events: none;
}

.hero-grid,
.support-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  padding: 44px 0 48px;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #8ec4cd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 12ch;
}

.hero-subtitle {
  max-width: 58rem;
  margin: 18px 0 0;
  font-size: 1.04rem;
  color: var(--text-on-dark-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card {
  min-height: 420px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.08);
}

.image-frame {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f1ec 100%);
}

.image-frame img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.contain-frame img {
  object-fit: contain;
}

.section {
  padding: 68px 0;
}

.section-heading {
  max-width: 72rem;
  margin: 0 0 30px;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
}

.categories-section {
  background: var(--bg-alt);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted-strong);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.filter-button.is-active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: #fff;
}

.category-grid,
.sample-grid,
.support-cards {
  display: grid;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card,
.sample-card,
.support-card {
  overflow: hidden;
}

.category-card__body,
.sample-card__body,
.support-card {
  padding: 20px;
}

.category-card h3,
.sample-card h3,
.support-card h3,
.process-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.08rem;
}

.category-card p,
.sample-card p,
.support-card p,
.process-card p {
  margin: 0;
  color: var(--muted);
}

.category-card .image-frame,
.sample-card__media {
  min-height: 220px;
}

.samples-section {
  background:
    linear-gradient(180deg, rgba(15, 91, 103, 0.04), transparent 26%),
    var(--bg);
}

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

.sample-card__body {
  display: grid;
  gap: 14px;
}

.support-section {
  background: var(--surface);
}

.process-section {
  background:
    linear-gradient(180deg, rgba(204, 100, 48, 0.06), transparent 22%),
    var(--surface-alt);
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
}

.process-card span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface-dark);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-section {
  background:
    radial-gradient(circle at right top, rgba(15, 91, 103, 0.08), transparent 28%),
    var(--surface);
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
}

.contact-number {
  margin: 16px 0 10px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.contact-text,
.contact-company {
  max-width: 48rem;
  color: var(--muted);
}

.contact-text {
  margin: 0 0 10px;
}

.contact-company {
  margin: 0 0 24px;
}

.contact-visual {
  overflow: hidden;
}

.contact-visual__frame {
  min-height: 420px;
}

.site-footer {
  padding: 34px 0 44px;
  background: #10171b;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-title {
  margin: 0 0 10px;
  color: #8ec4cd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.02rem;
}

.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-company {
  margin-top: 10px;
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.74);
}

.floating-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  min-height: 50px;
  padding-inline: 20px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js [data-reveal="left"] {
  transform: translateX(-22px);
}

.js [data-reveal="right"] {
  transform: translateX(22px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.js .hero [data-hero-layer] {
  opacity: 0;
  transform: translateY(18px);
}

.js body.is-hero-ready .hero [data-hero-layer] {
  animation: heroFadeUp 0.7s ease forwards;
}

.js body.is-hero-ready .hero [data-hero-layer="1"] {
  animation-delay: 0.08s;
}

.js body.is-hero-ready .hero [data-hero-layer="2"] {
  animation-delay: 0.16s;
}

.js body.is-hero-ready .hero [data-hero-layer="3"] {
  animation-delay: 0.24s;
}

.js body.is-hero-ready .hero [data-hero-layer="4"] {
  animation-delay: 0.32s;
}

.js body.is-hero-ready .hero [data-hero-layer="5"] {
  animation-delay: 0.4s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .btn-primary:hover,
  .btn-primary:focus-visible {
    background: var(--accent-strong);
    box-shadow: 0 16px 30px rgba(175, 84, 37, 0.26);
  }

  .btn-secondary:hover,
  .btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  .btn-tertiary:hover,
  .btn-tertiary:focus-visible,
  .btn-footer:hover,
  .btn-footer:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(15, 91, 103, 0.08);
  }

  .filter-button:hover,
  .filter-button:focus-visible {
    border-color: rgba(15, 91, 103, 0.32);
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 91, 103, 0.2);
  }

  .image-frame:hover img {
    transform: scale(1.04);
  }
}

@media (min-width: 760px) {
  .container {
    padding-inline: 24px;
  }

  .brand-logo img {
    height: 56px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
  }

  .category-grid,
  .support-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 1120px) {
  .container {
    padding-inline: 40px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .header-left {
    flex-shrink: 0;
  }

  .header-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }

  .site-nav .nav-link {
    padding-inline: 12px;
    white-space: nowrap;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
  }

  .lang-button {
    min-width: 52px;
    padding-inline: 12px;
  }

  .hero-grid,
  .support-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 40px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 759px) {
  .brand-logo img {
    height: 44px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }

  .header-cta {
    flex: 1 1 auto;
  }

  .hero-grid {
    padding: 38px 0 42px;
  }

  .hero h1,
  .contact-copy h2 {
    max-width: none;
  }

  .hero-card,
  .contact-visual__frame {
    min-height: 320px;
  }

  .floating-call {
    right: 16px;
    bottom: 16px;
  }

  .js body.is-hero-ready .hero [data-hero-layer] {
    animation-duration: 0.55s;
  }

  .js [data-reveal] {
    transform: translateY(14px);
  }
}

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

  .js [data-reveal],
  .hero [data-hero-layer] {
    opacity: 1 !important;
    transform: none !important;
  }
}
