@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --ui-ink: #0f172a;
  --ui-muted: #64748b;
  --ui-line: #d6dfec;
  --ui-card: rgba(255, 255, 255, 0.9);
  --ui-accent: #0ea5e9;
  --ui-accent-2: #2563eb;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html[lang^="zh"] {
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

body {
  font-family: var(--font-sans);
  color: var(--ui-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(14, 165, 233, 0.14), transparent 30%),
    radial-gradient(circle at 92% 85%, rgba(37, 99, 235, 0.12), transparent 25%),
    linear-gradient(165deg, #eef5ff 0%, #f8fafc 56%, #e2e8f0 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
  overscroll-behavior-x: none;
}

.title {
  font-family: var(--font-serif);
}

main {
  animation: pageFadeIn 220ms ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-nav-links {
  gap: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[lang^="zh"] .top-nav-links {
  gap: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
}

html[lang="en"] .top-nav-links {
  gap: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
}

html[lang="en"] .top-nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  transition: color 150ms ease;
}

html[lang="en"] .top-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

html[lang="en"] .top-nav-links a:hover::after {
  opacity: 0.5;
  transform: scaleX(1);
}

html[lang="en"] .top-nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

html[lang="en"] .nav-action {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.nav-action {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-action:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

/* Global polished controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
  outline: none;
}

button,
.btn-modern {
  border-radius: 12px;
  transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:active,
.btn-modern:active {
  transform: translateY(1px);
}

/* Elevate common cards used across pages */
.glass,
.rounded-2xl.bg-white,
.rounded-3xl.bg-white,
.rounded-2xl.ring-1,
.rounded-3xl.ring-1 {
  border: 1px solid var(--ui-line);
  background: var(--ui-card);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.core-values-card {
  padding-block: 1.4rem;
}

.core-values-label {
  letter-spacing: 0.28em;
}

.core-values-list {
  display: grid;
  gap: 0.85rem;
}

.core-values-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(214, 223, 236, 0.95);
}

.core-values-dot {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.core-values-item strong,
.core-values-item span {
  display: block;
}

.core-values-item strong {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #1e293b;
}

.core-values-item span {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

/* Better media presentation everywhere */
img {
  image-rendering: auto;
}

video {
  border-radius: 12px;
}

/* Subtle unified scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}


@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: var(--safe-bottom);
  }

  .title {
    letter-spacing: 0.01em;
  }

  .nav-action {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
  }

  button,
  .btn-modern,
  [role="button"] {
    min-height: 40px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .top-nav-links {
    gap: 1.2rem;
    letter-spacing: 0.08em;
  }

  #mobile-menu nav {
    font-size: 0.85rem;
    padding-bottom: calc(1rem + var(--safe-bottom));
  }

  #mobile-menu a {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    border-radius: 12px;
  }

  header.sticky.top-0 {
    padding-top: var(--safe-top);
  }

  .glass {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .core-values-card {
    border-radius: 1.75rem;
    padding: 1.1rem 1rem 1rem;
  }

  .core-values-label {
    letter-spacing: 0.2em;
  }

  .core-values-list {
    gap: 0.7rem;
  }

  .core-values-item {
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
  }

  .core-values-dot {
    width: 0.52rem;
    height: 0.52rem;
    margin-top: 0.4rem;
  }

  .core-values-item strong {
    font-size: 0.95rem;
  }

  .core-values-item span {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .rounded-3xl {
    border-radius: 1.25rem;
  }
}
