/* ===== CLSA Website — base styles ===== */
:root {
  --purple: #4a0d8c;
  --purple-dark: #350963;
  --purple-light: #8b5cc7;
  --purple-soft: #f3ecfb;
  --lavender: #c9a8e9;
  --ink: #1d1330;
  --muted: #6b6480;
  --bg: #ffffff;
  --line: #ece6f5;
  --max: 1140px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(91, 16, 145, 0.08);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Language visibility */
:root[data-lang="zh"] .en { display: none; }
:root[data-lang="en"] .zh { display: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--purple); display: grid; place-items: center; flex: none;
  overflow: hidden;
}
.brand .logo svg { width: 26px; height: 26px; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.media img.logo-img { width: 100%; height: 100%; object-fit: contain; }
.brand .name { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name b { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.brand .name span { font-size: 11px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--ink); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--purple); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  color: var(--purple); transition: background .2s, border-color .2s;
  font-family: inherit;
}
.lang-toggle:hover { background: var(--purple-soft); border-color: var(--lavender); }
.btn {
  display: inline-block; background: var(--purple); color: #fff;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .15s, background .2s; border: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--purple); border: 1px solid var(--lavender); }
.btn.ghost:hover { background: var(--purple-soft); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}
.hero .container { padding-top: 96px; padding-bottom: 104px; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.2; font-weight: 800; max-width: 16em; }
.hero p { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); max-width: 40em; color: rgba(255,255,255,.88); }
.hero .cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 44em; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--purple); font-weight: 700; font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

.bg-soft { background: var(--purple-soft); }

/* Cards grid */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(91,16,145,.12); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--purple-soft);
  color: var(--purple); display: grid; place-items: center; margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat b { display: block; font-size: 40px; font-weight: 800; color: var(--purple); }
.stats .stat span { color: var(--muted); font-size: 15px; }

/* Two-column intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  border-radius: var(--radius); overflow: hidden; min-height: 340px;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  display: grid; place-items: center;
}
.split .media svg { width: 140px; height: 140px; opacity: .92; }
.prose h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin-bottom: 18px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.prose .kicker { color: var(--purple); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; padding: 72px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
.page-hero p { margin-top: 16px; color: rgba(255,255,255,.85); font-size: 18px; max-width: 40em; margin-inline: auto; }

/* Research list */
.research-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.research-item .num {
  width: 56px; height: 56px; border-radius: 14px; background: var(--purple);
  color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center;
}
.research-item h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.research-item p { color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; border-radius: 24px; padding: 56px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.86); font-size: 17px; }
.cta-band .btn { margin-top: 28px; background: #fff; color: var(--purple); }
.cta-band .btn:hover { background: var(--purple-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .row { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info .row .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--purple-soft);
  color: var(--purple); display: grid; place-items: center; flex: none;
}
.contact-info .row h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info .row p { color: var(--muted); font-size: 15px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--lavender); border-color: transparent; }
.form-field textarea { min-height: 120px; resize: vertical; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfc6e0; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand .name b { color: #fff; }
.site-footer .brand .name span { color: #a99dc4; }
.site-footer p { font-size: 14px; color: #a99dc4; margin-top: 16px; max-width: 30em; }
.footer-col h5 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #cfc6e0; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px; color: #8e83a8; flex-wrap: wrap; gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: #fff;
    padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .grid.cols-3, .grid.cols-2, .stats { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  section { padding: 60px 0; }
}
