/* Rilsey & Intelligence — Site Common Styles
   VI: 真墨 #070B16 / 卓见蓝 #2A43DC / 真知青 #10B4AA / 哑金 #C9982F / 奶白 #FBFAF7
   Fonts: Sora (display) / Manrope (body) / JetBrains Mono (labels) */

:root {
  --ink: #070B16;
  --ink-02: #0D1326;
  --ink-08: rgba(7,11,22,.08);
  --ink-48: rgba(7,11,22,.48);
  --blue: #2A43DC;
  --teal: #10B4AA;
  --gold: #C9982F;
  --danger: #A8442F;
  --paper: #FBFAF7;
  --line: #E6E7EB;
  --line-dark: rgba(250,251,253,.18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Manrope', sans-serif; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.section-head { margin-bottom: 72px; }
.section-head h2 {
  font-family: 'Sora', sans-serif; font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.12;
  margin-top: 14px; letter-spacing: -.02em;
}
.section-head .cn {
  display: block; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--ink-48); margin-top: 10px; letter-spacing: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-48);
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-plaque { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text .en { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.brand-text .cn { font-size: 10px; color: var(--ink-48); letter-spacing: .04em; }
.nav { display: flex; gap: 30px; font-size: 13.5px; font-weight: 500; color: var(--ink-48); }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav .cta { color: var(--blue); }
.menu-btn { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav .lang {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px;
}
.nav .lang:hover { border-color: var(--blue); color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 4px;
  font-size: 13.5px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(7,11,22,.18); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-48); }

/* Page hero (subpages) */
.page-hero { padding: 96px 0 84px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: 'Sora', sans-serif; font-size: clamp(34px, 5vw, 56px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.03em; margin-top: 16px;
}
.page-hero .lead { font-size: 17px; line-height: 1.75; color: var(--ink-48); margin-top: 22px; max-width: 640px; }
.page-hero .cn-lead { font-size: 15px; color: var(--ink); margin-top: 12px; font-weight: 500; }

/* Generic card */
.card { padding: 34px; border: 1px solid var(--line); border-radius: 4px; }
.card h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; margin: 16px 0 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--ink-48); }
.card .idx { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--blue); }

/* Dark section helpers */
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--teal); }
.dark .section-head h2 { color: var(--paper); }
.dark .section-head .cn { color: rgba(251,250,247,.55); }

/* CTA section */
.cta-section { padding: 120px 0; background: var(--ink); color: var(--paper); text-align: center; }
.cta-section h2 { font-family: 'Sora', sans-serif; font-size: clamp(30px, 4.5vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.cta-section .cn { display: block; font-size: 18px; font-weight: 500; color: rgba(251,250,247,.55); margin-top: 16px; }
.cta-section .email {
  display: inline-block; margin-top: 34px; font-family: 'JetBrains Mono', monospace; font-size: 14px;
  color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 4px;
}
.cta-section .btns { display: flex; gap: 14px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.cta-section .btn-primary { background: var(--paper); color: var(--ink); }
.cta-section .btn-ghost { border-color: var(--line-dark); color: var(--paper); }

/* Footer */
.footer { padding: 52px 0 60px; border-top: 1px solid var(--line); }
.footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-left { max-width: 420px; }
.footer-left .brand { margin-bottom: 16px; }
.footer-left p { font-size: 13px; line-height: 1.7; color: var(--ink-48); }
.footer-links { display: flex; gap: 42px; font-size: 13px; color: var(--ink-48); line-height: 2.1; }
.footer-links a:hover { color: var(--ink); }
.copyright { font-size: 12px; color: var(--ink-48); margin-top: 8px; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section { padding: 110px 0; }
.section.line-top { border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(251,250,247,.98); padding: 20px 6vw 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .page-hero { padding: 64px 0 56px; }
  .footer .container { flex-direction: column; }
  .footer-links { gap: 28px; }
}
