/* TWINKLE / 星点 — 官方网站样式表
   独立于 brand/ 和 live/ 的现有样式，互不影响
*/

:root {
  --brand-primary: #d64800;
  --brand-primary-dark: #a93600;
  --brand-primary-soft: rgba(214, 72, 0, 0.08);
  --brand-ink: #09090b;
  --brand-ink-muted: #52525b;
  --brand-ink-soft: #71717a;
  --brand-bg: #fafaf7;
  --brand-bg-alt: #f4f1eb;
  --brand-line: rgba(9, 9, 11, 0.08);
  --brand-card: #ffffff;
  --serif: "Cormorant Garamond", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--brand-bg);
  color: var(--brand-ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* ---------- Top Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 250, 247, 0.85);
  border-bottom: 1px solid var(--brand-line);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.02em;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(214, 72, 0, 0.4);
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-size: 14px; color: var(--brand-ink-muted); font-weight: 500;
}
.nav-links a.active { color: var(--brand-ink); }
.nav-links a { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--brand-primary);
}
.nav-cta {
  font-size: 14px; font-weight: 500;
  background: var(--brand-ink); color: #fff;
  padding: 10px 22px; border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-primary); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--brand-ink); margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  padding: 140px 32px 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(214, 72, 0, 0.08), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(214, 72, 0, 0.04), transparent 60%),
    var(--brand-bg);
}
.hero-content {
  max-width: 920px; text-align: center; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-primary); font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  background: var(--brand-primary-soft);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.05; font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic; color: var(--brand-primary);
  font-family: var(--serif);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--brand-ink-muted); max-width: 620px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: all 0.2s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-primary); opacity: 1; }
.btn-ghost { background: transparent; color: var(--brand-ink); border: 1px solid var(--brand-line); }
.btn-ghost:hover { border-color: var(--brand-ink); opacity: 1; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.2em; color: var(--brand-ink-soft);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-hint::after {
  content: ""; width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--brand-ink-soft), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* ---------- Section base ---------- */
section { padding: 100px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-primary); font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 24px;
  max-width: 700px;
}
.section-lead {
  font-size: 18px; color: var(--brand-ink-muted);
  line-height: 1.7; max-width: 640px; margin-bottom: 60px;
}

/* ---------- Story (two-column with quote) ---------- */
.story { background: var(--brand-bg); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: start;
}
.story-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1.4; color: var(--brand-ink);
  position: relative; padding-top: 30px;
}
.story-quote::before {
  content: """; position: absolute; top: -30px; left: -10px;
  font-size: 100px; color: var(--brand-primary); opacity: 0.3;
  font-family: var(--serif); line-height: 1;
}
.story-author {
  margin-top: 30px; font-size: 13px; letter-spacing: 0.1em;
  color: var(--brand-ink-soft); text-transform: uppercase; font-style: normal;
}
.story-text p {
  font-size: 17px; color: var(--brand-ink-muted); line-height: 1.8;
  margin-bottom: 22px;
}
.story-text p strong { color: var(--brand-ink); font-weight: 500; }

/* ---------- Pillars (philosophy) ---------- */
.pillars { background: var(--brand-bg-alt); }
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 60px;
}
.pillar {
  background: var(--brand-card);
  padding: 40px 32px; border-radius: 4px;
  border: 1px solid var(--brand-line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(9, 9, 11, 0.08);
}
.pillar-num {
  font-family: var(--serif); font-style: italic;
  font-size: 36px; color: var(--brand-primary); margin-bottom: 20px;
}
.pillar h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin-bottom: 14px; line-height: 1.3;
}
.pillar p {
  font-size: 15px; color: var(--brand-ink-muted); line-height: 1.7;
}

/* ---------- Timeline ---------- */
.timeline { background: var(--brand-bg); position: relative; }
.timeline-list {
  margin-top: 60px;
  position: relative;
  max-width: 800px;
}
.timeline-list::before {
  content: ""; position: absolute; left: 80px; top: 8px; bottom: 8px;
  width: 1px; background: var(--brand-line);
}
.timeline-item {
  position: relative; display: grid;
  grid-template-columns: 80px 1fr; gap: 60px;
  padding-bottom: 50px; align-items: start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; color: var(--brand-primary); padding-top: 4px;
}
.timeline-item::before {
  content: ""; position: absolute; left: 76px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-bg);
}
.timeline-body h4 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; margin-bottom: 8px;
}
.timeline-body p {
  font-size: 15px; color: var(--brand-ink-muted); line-height: 1.7;
}

/* ---------- Stats ---------- */
.stats { background: var(--brand-ink); color: #fff; }
.stats .section-title { color: #fff; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-top: 60px;
}
.stat-num {
  font-family: var(--serif); font-size: 64px;
  font-weight: 400; color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 16px; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- CTA bottom ---------- */
.cta-bottom {
  background: var(--brand-bg-alt);
  text-align: center; padding: 120px 32px;
}
.cta-bottom h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 64px);
  font-weight: 400; line-height: 1.1; margin-bottom: 24px;
}
.cta-bottom h2 em { font-style: italic; color: var(--brand-primary); }
.cta-bottom p {
  font-size: 18px; color: var(--brand-ink-muted);
  margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-ink); color: rgba(255, 255, 255, 0.7);
  padding: 80px 32px 30px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px;
}
.footer-brand .nav-brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; color: rgba(255, 255, 255, 0.5); }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); font-weight: 500; margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.footer-col a:hover { color: var(--brand-primary); opacity: 1; }
.footer-bottom {
  max-width: var(--max-w); margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding: 14px 20px; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }

  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px 32px; border-bottom: 1px solid var(--brand-line);
  }
  .nav-mobile-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--brand-line); }

  section { padding: 70px 24px; }
  .hero { padding: 110px 24px 60px; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-quote { font-size: 24px; }
  .story-quote::before { font-size: 60px; top: -10px; }

  .pillar-grid { grid-template-columns: 1fr; gap: 20px; }
  .pillar { padding: 32px 24px; }

  .timeline-list::before { left: 22px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 24px; padding-bottom: 36px; }
  .timeline-item::before { left: 18px; }
  .timeline-year { font-size: 18px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-num { font-size: 44px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
