:root {
  --bg: #f5f5f7;
  --bg-soft: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --primary: #ffd348;
  --primary-hover: #f2c53e;
  --primary-ink: #3b2a00;
  --header-bg: rgba(245, 245, 247, 0.9);
  --signal-bg: rgba(255, 255, 255, 0.75);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-soft: #111114;
  --surface: #151519;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: #2b2b31;
  --primary: #ffd348;
  --primary-hover: #eec340;
  --primary-ink: #2d2204;
  --header-bg: rgba(15, 15, 18, 0.88);
  --signal-bg: rgba(21, 21, 25, 0.74);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Inter, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.28s ease, color 0.28s ease;
}

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

.page-shell {
  position: relative;
}

.container {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.section {
  padding: clamp(34px, 5.2vw, 54px) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  z-index: 999;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(128, 128, 140, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.logo-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.icon-btn:hover {
  opacity: 0.72;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s ease;
}

.icon-btn.mode-system,
.icon-btn.mode-light,
.icon-btn.mode-dark {
  color: var(--muted);
}

.icon-btn.mode-system .icon-svg {
  opacity: 0.9;
}

#lang-toggle {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

#lang-toggle.mode-en,
#lang-toggle.mode-zh {
  color: var(--muted);
}

:root[data-theme="dark"] .icon-btn.mode-light {
  color: var(--muted);
}

:root[data-theme="dark"] .icon-btn.mode-dark {
  color: var(--muted);
}

:root[data-theme="dark"] #lang-toggle.mode-en {
  color: var(--muted);
}

:root[data-theme="dark"] #lang-toggle.mode-zh {
  color: var(--muted);
}

.icon-btn.is-switching .icon-svg {
  animation: theme-icon-pop 0.24s ease;
}

@keyframes theme-icon-pop {
  0% {
    opacity: 0.32;
    transform: scale(0.74) rotate(-14deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.07) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero {
  padding-top: clamp(26px, 4.5vw, 44px);
  padding-bottom: clamp(10px, 2vw, 18px);
}

.hero-simple {
  max-width: 1020px;
}

.hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 {
  max-width: none;
  font-size: clamp(1.34rem, 2.45vw, 1.88rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.4rem);
  font-weight: 650;
}

h3 {
  font-size: 1.08rem;
  font-weight: 620;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.08vw, 1.02rem);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--primary-hover);
}

.signals {
  padding-top: 18px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: var(--signal-bg);
  backdrop-filter: blur(8px);
}

.signal-card h3 {
  margin-bottom: 8px;
  font-size: 0.99rem;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 18px;
  max-width: 920px;
}

.section-head h2 {
  margin-top: 4px;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.56;
}

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

.simple-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  background: var(--surface);
  transition: border-color 0.26s ease;
}

.simple-card:hover {
  border-color: var(--primary);
}

:root[data-theme="dark"] .simple-card:hover {
  border-color: var(--primary);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.card-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simple-card h3 {
  margin-bottom: 8px;
}

.simple-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.56;
}

.card-points {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.card-points li {
  position: relative;
  padding-left: 14px;
  color: var(--text);
  font-size: 0.87rem;
  line-height: 1.45;
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
}

.site-footer {
  margin-top: clamp(26px, 4vw, 36px);
  padding: 16px 0 20px;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-wrap p {
  margin: 0;
}

#footer-rights {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container {
    width: min(1240px, calc(100% - 18px));
  }

  .section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-main {
    gap: 12px;
  }

  .hero-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .hero-actions {
    gap: 8px;
  }

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

  .btn {
    min-height: 30px;
    padding: 4px 11px;
    font-size: 0.8rem;
  }

  .simple-card {
    border-radius: 18px;
    padding: 18px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .card-icon-image {
    width: 100%;
    height: 100%;
  }

  .nav-controls {
    gap: 6px;
  }
}

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