:root {
  color-scheme: light;
  --brand: #0057a8;
  --brand-dark: #06335c;
  --ink: #17212b;
  --muted: #64717d;
  --surface: #ffffff;
  --surface-soft: #f3f6f9;
  --line: #dce3e9;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--brand-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  align-items: center;
}

.site-header__inner {
  min-height: 76px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  width: min(250px, 32vw);
  min-height: 40px;
  align-items: center;
  color: var(--brand-dark);
  font-weight: 700;
}

.brand img {
  max-height: 50px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.1rem;
  list-style: none;
}

.site-nav a,
.site-nav span {
  display: block;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  box-shadow: inset 0 -2px var(--brand);
}

.language-switcher {
  color: var(--muted);
  font-size: 0.875rem;
}

.language-switcher__toggle {
  display: none;
}

.language-switcher__links {
  display: flex;
  gap: 0.5rem;
}

.language-switcher__links[hidden],
.portfolio-panel[hidden],
.hero-slide[hidden] {
  display: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  background: white;
}

main {
  min-height: 60vh;
}

.page-home .site-header {
  position: absolute;
  width: 100%;
  border-bottom-color: rgb(255 255 255 / 18%);
  color: white;
  background: linear-gradient(180deg, rgb(1 19 37 / 88%), rgb(1 19 37 / 18%));
  backdrop-filter: none;
}

.page-home .brand,
.page-home .language-switcher {
  color: white;
}

.page-home .nav-toggle {
  color: white;
  border-color: rgb(255 255 255 / 45%);
  background: rgb(0 0 0 / 25%);
}

.page-primary .site-header,
.page-detail .site-header {
  color: white;
  border-bottom-color: rgb(255 255 255 / 12%);
  background: var(--brand-dark);
}

.page-primary .brand,
.page-primary .language-switcher,
.page-detail .brand,
.page-detail .language-switcher {
  color: white;
}

.page-primary .nav-toggle,
.page-detail .nav-toggle {
  color: white;
  border-color: rgb(255 255 255 / 45%);
  background: rgb(0 0 0 / 20%);
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 47vw, 760px);
  color: white;
  background: #06182a;
}

.hero-track,
.hero-slide {
  min-height: inherit;
}

.hero-slide {
  display: none;
}

.hero-slide:first-child {
  display: block;
}

.hero-slide img {
  width: 100%;
  min-height: inherit;
  object-fit: cover;
}

.home-hero [data-carousel-control] {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  color: white;
  background: rgb(0 0 0 / 24%);
  font-size: 2rem;
  transform: translateY(-50%);
}

.home-hero [data-carousel-control="previous"] {
  left: 2rem;
}

.home-hero [data-carousel-control="next"] {
  right: 2rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgb(255 255 255 / 55%);
}

.hero-dots button[aria-current="true"] {
  background: white;
  transform: scale(1.35);
}

.home-section {
  padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2));
}

.home-section:nth-of-type(odd) {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  margin-bottom: 2rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2,
.company-copy h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-more {
  color: var(--brand);
  font-weight: 700;
}

.portfolio-tabs {
  display: flex;
  gap: 0.75rem;
}

.portfolio-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: white;
  font: inherit;
}

.portfolio-tabs button[aria-selected="true"] {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}

.portfolio-panel,
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.model-carousel {
  position: relative;
}

.model-grid {
  grid-auto-columns: calc((100% - 3.75rem) / 4);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.model-grid::-webkit-scrollbar {
  display: none;
}

.model-card {
  scroll-snap-align: start;
}

.model-carousel [data-model-control] {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 16px rgb(12 42 70 / 15%);
  transform: translateY(-50%);
}

.model-carousel [data-model-control="previous"] {
  left: -20px;
}

.model-carousel [data-model-control="next"] {
  right: -20px;
}

.portfolio-card,
.model-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  padding: 1rem;
  object-fit: contain;
}

.model-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.portfolio-card h3,
.model-card h3 {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
}

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

.advantage-item {
  padding: 2rem 1rem;
  text-align: center;
}

.advantage-item img {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  width: min(1180px, calc(100% - 2rem));
  margin: 5rem auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.company-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.company-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
}

.news-lead,
.news-list-item {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
}

.news-lead img {
  width: 100%;
  aspect-ratio: 1.43 / 1;
  object-fit: cover;
}

.news-lead h3,
.news-list-item h3 {
  margin: 0;
  padding: 1rem;
}

.news-list {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.page-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 28vw, 420px);
  color: white;
  background: var(--brand-dark);
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  object-fit: cover;
}

.page-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(1 24 47 / 72%), rgb(1 24 47 / 10%));
}

.page-banner__title {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  min-height: inherit;
  margin: 0 auto;
  align-items: center;
}

.page-banner h1 {
  max-width: 760px;
  margin: 2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.15;
}

.breadcrumb {
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.section-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 5rem;
  gap: clamp(2rem, 5vw, 5rem);
}

.section-sidebar ul {
  position: sticky;
  top: 100px;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--brand);
  list-style: none;
}

.section-sidebar a,
.section-sidebar span {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.5rem;
}

.section-sidebar a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.primary-content {
  min-width: 0;
}

.primary-content p {
  margin-top: 0;
  color: #394958;
  line-height: 1.9;
  white-space: pre-line;
}

.contact-panel {
  display: grid;
  margin-top: 2rem;
  border-left: 4px solid var(--brand);
  padding: 1.5rem;
  gap: 0.65rem;
  background: var(--surface-soft);
  font-style: normal;
}

.contact-panel a {
  color: var(--brand);
}

.listing-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  padding: 0.75rem;
  object-fit: contain;
}

.listing-card h2 {
  margin: 0;
  padding: 1rem 1rem 0.5rem;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.listing-card p,
.listing-card time {
  display: block;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

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

.detail-article {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 5rem;
}

.detail-article header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.detail-article h1 {
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
}

.detail-article time {
  color: var(--muted);
}

.detail-body {
  color: #394958;
  font-size: 1.05rem;
  line-height: 1.9;
}

.detail-media {
  display: grid;
  margin-top: 2rem;
  place-items: center;
  gap: 1.5rem;
}

.detail-media img {
  max-height: 620px;
  object-fit: contain;
}

.not-found {
  display: grid;
  min-height: 70vh;
  padding: 4rem 1rem;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.not-found__code {
  margin: 0;
  color: var(--brand);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
}

.not-found a {
  border-radius: 4px;
  padding: 0.7rem 1.2rem;
  color: white;
  background: var(--brand);
}

.content-blocks,
.content-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 3rem auto;
}

.content-blocks h1,
.content-blocks h2,
.content-blocks h3 {
  color: var(--brand-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 24px rgb(12 42 70 / 8%);
}

.content-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-card h3,
.content-card p {
  margin: 1rem;
}

.content-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.site-footer {
  padding: 2rem 0;
  color: white;
  background: var(--brand-dark);
}

.site-footer__inner {
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.return-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 24px rgb(12 42 70 / 24%);
}

:where(a, button):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .language-switcher {
    position: relative;
    margin-left: auto;
  }

  .language-switcher__toggle {
    display: inline-flex;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    color: inherit;
    background: transparent;
  }

  .language-switcher__links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    min-width: 130px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--ink);
    background: white;
    box-shadow: 0 10px 30px rgb(12 42 70 / 18%);
  }

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

  .page-home .site-header {
    position: relative;
    background: var(--brand-dark);
  }

  .home-hero {
    min-height: 46vw;
  }

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

  .model-grid {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }

  .model-carousel [data-model-control="previous"] {
    left: 0;
  }

  .model-carousel [data-model-control="next"] {
    right: 0;
  }

  .company-section,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .section-layout {
    grid-template-columns: 1fr;
  }

  .section-sidebar ul {
    position: static;
    display: flex;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-sidebar li {
    flex: 0 0 auto;
  }

  .section-sidebar a,
  .section-sidebar span {
    border-bottom: 0;
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

@media (max-width: 560px) {
  .site-header__inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
    width: auto;
    flex: 1;
  }

  .brand img {
    max-width: 145px;
  }

  .nav-toggle,
  .language-switcher {
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    color: white;
    background: var(--brand-dark);
  }

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

  .home-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .home-hero [data-carousel-control] {
    width: 38px;
    height: 38px;
  }

  .home-hero [data-carousel-control="previous"] {
    left: 0.75rem;
  }

  .home-hero [data-carousel-control="next"] {
    right: 0.75rem;
  }

  .portfolio-panel,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-auto-columns: 100%;
  }

  .model-carousel [data-model-control="previous"] {
    left: 0;
  }

  .model-carousel [data-model-control="next"] {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
