:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --surface-soft: #f5f5f5;
  --border: #e9e9e9;
  --border-strong: #dddddd;
  --text-main: #171717;
  --text-soft: #6c6c6c;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --content-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

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

button,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar,
.page-content,
.site-footer {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

body[data-page="home"] .page-content {
  width: 100%;
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-soft);
}

.lang-switch select {
  min-width: 132px;
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.page-content {
  flex: 1;
  padding-bottom: 28px;
}

.hero-banner,
.legal-hero,
.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: absolute;
  top: 0;
  left: clamp(36px, calc((100vw - var(--content-width)) / 2 + 112px), 160px);
  bottom: 0;
  width: min(44vw, 640px);
  padding: clamp(28px, 3.8vw, 52px) clamp(30px, 3vw, 44px) clamp(28px, 3.8vw, 52px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-90px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 66%, rgba(255, 255, 255, 0) 100%);
}

.hero-copy h1,
.section-heading h2,
.legal-hero h1 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  max-width: none;
  white-space: nowrap;
}

.eyebrow,
.section-tag {
  margin: 0 0 16px;
  color: #8b8b8b;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subtitle,
.legal-lead,
.section-note {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 33rem;
  font-size: clamp(1.06rem, 1.42vw, 1.42rem);
  line-height: 1.9;
}

html[lang="en"] .hero-subtitle {
  max-width: 42rem;
}

.feature-showcase {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 56px auto 0;
}

.feature-list {
  display: grid;
  gap: 88px;
}

.feature-panel {
  text-align: center;
}

.feature-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.feature-media img {
  width: min(100%, 980px);
  height: auto;
  display: block;
}

.feature-copy {
  margin-top: 34px;
}

.feature-copy h2 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.16;
}

.feature-copy p {
  margin: 18px auto 0;
  max-width: 26ch;
  color: var(--text-soft);
  font-size: clamp(1.12rem, 1.5vw, 1.48rem);
  line-height: 1.75;
}

.legal-page {
  display: grid;
  gap: 24px;
}

.legal-hero,
.legal-card {
  padding: 32px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-lead {
  margin: 18px 0 0;
  max-width: 42rem;
}

.legal-section + .legal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.legal-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.legal-document {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: var(--text-soft);
  line-height: 1.85;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 24px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.footer-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 920px) {
  .hero-banner {
    min-height: 500px;
    aspect-ratio: auto;
  }

  .hero-copy {
    width: min(100%, 560px);
    left: 0;
    padding-left: 20px;
    background: none;
  }

  .feature-showcase {
    margin-top: 44px;
  }

  .feature-list {
    gap: 72px;
  }

  .feature-media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .page-content,
  .site-footer {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .topbar {
    flex-direction: column;
    align-items: start;
    padding: 22px 0 18px;
  }

  .brand {
    font-size: 1.26rem;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch select {
    min-width: 122px;
  }

  .hero-banner,
  .legal-hero,
  .legal-card {
    border-radius: 22px;
  }

  .hero-banner {
    min-height: 0;
    aspect-ratio: 3 / 2;
    border-radius: 0;
  }

  .hero-copy {
    width: 100%;
    left: 0;
    padding: 24px 20px;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .legal-hero,
  .legal-card {
    padding: 22px;
  }

  .feature-showcase {
    width: min(calc(100% - 24px), var(--content-width));
    margin-top: 32px;
  }

  .feature-list {
    gap: 52px;
  }

  .feature-media {
    min-height: 0;
  }

  .feature-media img {
    width: 100%;
  }

  .feature-copy {
    margin-top: 24px;
  }

  .feature-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .feature-copy p {
    font-size: 1rem;
    max-width: 19ch;
  }

  .site-footer {
    flex-direction: column;
    align-items: start;
    padding-bottom: 20px;
  }

  .footer-links {
    justify-content: start;
  }
}
