:root {
  --bg: #f6f8fb;
  --bg-soft: #edf2f9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #132238;
  --muted: #5e7088;
  --line: #d9e2ef;
  --line-strong: #bfd0e6;
  --accent: #2056c8;
  --accent-soft: #e7eefc;
  --accent-deep: #163f95;
  --shadow: 0 22px 60px rgba(16, 38, 72, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(32, 86, 200, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
}

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

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

p,
li {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: "Newsreader", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2.05rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.4rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  backdrop-filter: blur(20px);
  background: rgba(246, 248, 251, 0.86);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 88px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name,
.footer-brand {
  font-family: "Newsreader", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.brand-tag {
  font-size: 0.9rem;
  color: var(--muted);
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.language-button {
  min-width: 84px;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-button.active {
  background: var(--accent);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  padding: 0.35rem;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.hero-section,
.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(19, 34, 56, 0.04);
  border-bottom: 1px solid rgba(19, 34, 56, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.section-rail {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 0.8rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-rail a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-rail a:hover {
  color: var(--accent);
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  margin-bottom: 0.15rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text,
.page-intro {
  font-size: 1.12rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(32, 86, 200, 0.18);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
}

.hero-points {
  display: grid;
  gap: 0.8rem;
}

.hero-points li::marker,
.bullet-list li::marker,
.policy-list li::marker {
  color: var(--accent);
}

.hero-card,
.card-surface,
.policy-card,
.detail-card,
.contact-card,
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 100%;
}

.hero-card-inner {
  display: grid;
  gap: 1.5rem;
  padding: 1.7rem;
}

.hero-owl {
  width: min(100%, 280px);
  margin: 0 auto;
}

.hero-script {
  width: min(100%, 280px);
  margin: 0 auto;
}

.hero-note {
  padding: 1.15rem;
  border-radius: 18px;
  background: var(--accent-soft);
}

.hero-note-label,
.detail-label,
.policy-meta {
  margin-bottom: 0.4rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-stack {
  display: grid;
  gap: 2rem;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
}

.compact-heading {
  max-width: 840px;
}

.cn-line {
  color: var(--muted);
  font-weight: 700;
}

.card-grid,
.tool-grid,
.company-grid {
  display: grid;
  gap: 1.25rem;
}

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

.info-card,
.tool-card,
.detail-card {
  padding: 1.6rem;
}

.info-card {
  display: grid;
  gap: 0.8rem;
}

.story-grid,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 1rem;
}

.story-list {
  padding: 1.6rem;
}

.bullet-list {
  display: grid;
  gap: 0.8rem;
}

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

.contact-panel {
  align-items: stretch;
}

.contact-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.6rem;
}

.contact-card strong {
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.contact-link {
  color: var(--accent);
  font-weight: 700;
}

.tools-hero {
  padding-top: 4rem;
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
}

.tool-card {
  display: grid;
  gap: 1rem;
}

.tool-card h3 {
  font-size: 1.6rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.tool-app-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tool-app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-app-meta span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.policy-heading {
  max-width: 720px;
}

[data-language-section] {
  display: none;
}

body[data-language="en"] [data-language-section="en"],
body[data-language="zh"] [data-language-section="zh"] {
  display: block;
}

.policy-card {
  padding: 2rem;
}

.policy-card h2,
.policy-card h3 {
  margin-bottom: 0.85rem;
}

.policy-card > * + * {
  margin-top: 1rem;
}

.policy-list {
  display: grid;
  gap: 0.45rem;
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
}

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

.footer-row > div {
  display: grid;
  gap: 0.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

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

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

  .section-rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .card-grid,
  .company-grid,
  .story-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .header-row {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .header-panel {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0.25rem;
  }

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

  .language-toggle {
    width: fit-content;
  }

  .hero-section,
  .section {
    padding: 3.5rem 0;
  }

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

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

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

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .tool-app-meta {
    flex-direction: column;
  }
}
