@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* ===== 重置与基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A0E1A;
  --crimson: #E8003D;
  --light: #F5F5F5;
  --navy-mid: #141828;
  --navy-light: #1E2438;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);
  --crimson-dim: rgba(232,0,61,0.15);
  --crimson-glow: rgba(232,0,61,0.35);
  --text-muted: rgba(245,245,245,0.55);
  --text-soft: rgba(245,245,245,0.8);
  --radius-pill: 999px;
  --radius-card: 4px;
  --header-h: 56px;
  --announce-h: 36px;
  --font-main: 'Outfit', 'Work Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--light);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== 公告条 ===== */
.announce-bar {
  background: var(--crimson);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.announce-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(60px); }
  100% { transform: translateX(-100%); }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--light) 40%, var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-mark { height: 32px; width: auto; }

/* ===== 药丸胶囊导航 ===== */
.pill-nav { flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  padding: 4px 0;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  min-height: 32px;
}
.pill-link:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--light);
}
.pill-link.active {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

/* ===== Hero（仅首页）===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--announce-h) + var(--header-h) + 40px) 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(232,0,61,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 80% at 10% 80%, rgba(232,0,61,0.05) 0%, transparent 60%),
              var(--navy);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8003D' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
}
.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--light) 0%, rgba(245,245,245,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.hero-right:empty::before {
  content: '';
  display: block;
  width: 100%;
  padding-top: 60%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

/* ===== CTA 按钮 ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.cta-primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 0 0 0 var(--crimson-glow);
}
.cta-secondary {
  background: var(--glass-bg);
  color: var(--light);
  border: 1px solid var(--glass-border);
}
.cta-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.pulse-cta { animation: pulse-crimson 2.5s ease-in-out infinite; }
@keyframes pulse-crimson {
  0%, 100% { box-shadow: 0 0 0 0 var(--crimson-glow); }
  50% { box-shadow: 0 0 0 10px rgba(232,0,61,0); }
}

/* ===== 主区域容器 ===== */
.main-home, .main-inner { min-height: 60vh; }
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ===== content-section：正文 + 侧边栏 ===== */
.content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ===== 内页 page-header ===== */
.page-header { margin-bottom: 40px; }
.eyebrow-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.inner-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--light) 40%, rgba(245,245,245,0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 日期栏 ===== */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-label { font-weight: 500; }
.meta-date { color: var(--text-soft); }
.meta-sep { opacity: 0.4; }

/* ===== 正文排版 ===== */
.prose { font-size: 16px; line-height: 1.8; color: var(--text-soft); }
.prose h2, .prose h3 {
  color: var(--light);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2em 0 0.7em;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.85; }
.prose strong { color: var(--light); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--crimson);
  padding-left: 16px;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--glass-border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--navy-light); font-weight: 600; color: var(--light); }
.prose code { background: var(--navy-light); padding: 2px 6px; border-radius: 3px; font-size: 0.88em; }
.prose pre { background: var(--navy-light); padding: 16px; border-radius: var(--radius-card); overflow-x: auto; margin-bottom: 1.5em; }

/* ===== 玻璃卡片 ===== */
.glass-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== 侧边栏 ===== */
.sidebar { position: sticky; top: calc(var(--announce-h) + var(--header-h) + 20px); }
.sidebar-inner { padding: 20px; margin-bottom: 16px; }
.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sidebar-link:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--light);
}

/* ===== 首页子页卡片 ===== */
.children-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  padding: 60px 24px;
}
.children-inner { max-width: 1280px; margin: 0 auto; }
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--light);
}
.section-heading span { display: inline-block; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.glass-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: var(--light);
}
.glass-card-link:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232,0,61,0.12);
}
.glass-card-link strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.card-date { font-size: 12px; color: var(--crimson); margin-top: auto; }

/* ===== About 快捷入口块（子页列表契约）===== */
.about-quicklinks { margin-top: 48px; }
.about-cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 16px;
}
.about-cta-title span { display: inline-block; }
.quicklinks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-link-block {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  color: var(--text-soft);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 44px;
}
.quick-link-block strong { font-weight: 500; display: block; }
.quick-link-block:hover {
  border-color: var(--crimson);
  color: var(--light);
  background: var(--crimson-dim);
}
.about-cta-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  margin: 24px 0 12px;
}
.about-cta-subtitle span { display: inline-block; }
.about-cta-block { margin-top: 16px; }
.about-cta-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== FAQ ===== */
.faq-prose .faq-body { margin-top: 8px; }

/* ===== Contact 表单 ===== */
.contact-form-block { padding: 28px; margin-top: 40px; }
.form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 20px;
}
.form-title span { display: inline-block; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  color: var(--light);
  font-size: 15px;
  transition: border-color 0.2s;
  min-height: 44px;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--crimson);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }

/* ===== Privacy ===== */
.privacy-prose .privacy-body { margin-top: 8px; }

/* ===== Kinetic 动效 ===== */
.kinetic-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.kinetic-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.kinetic-h1 {
  animation: kinetic-slide-in 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes kinetic-slide-in {
  from { opacity: 0; transform: translateY(32px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer p {
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  align-items: center;
}
.site-footer p a { color: var(--text-soft); transition: color 0.15s; }
.site-footer p a:hover { color: var(--crimson); }
.footer-brand { font-weight: 600; color: var(--light) !important; }
.site-footer small {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* ===== Stagger list 动效 ===== */
.sidebar-links .sidebar-link,
.card-grid .glass-card-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}
.sidebar-links.stagger-done .sidebar-link,
.card-grid.stagger-done .glass-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .kinetic-reveal { opacity: 1; transform: none; }
  .kinetic-h1 { animation: none; }
  .announce-text { animation: none; }
  .pulse-cta { animation: none; }
  .sidebar-links .sidebar-link,
  .card-grid .glass-card-link { opacity: 1; transform: none; }
}

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: -1;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-right { display: none; }
  .hero-section { min-height: auto; padding-top: calc(var(--announce-h) + var(--header-h) + 60px); padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .wrap { padding: 40px 16px; }
  .pill-link { padding: 5px 11px; font-size: 12px; }
  .hero-h1 { font-size: 2rem; }
  .inner-h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
  .children-section { padding: 40px 16px; }
  .contact-form-block { padding: 20px 16px; }
  .quicklinks-grid { flex-direction: column; }
  .quick-link-block { width: 100%; }
  .site-footer p { flex-direction: column; gap: 4px; }
}
