/* ===== SKYCETUS DESIGN SYSTEM v1.0 ===== */
/* 珑珠统一样式 — 全站唯一CSS来源 */
/* 2026-05-09 | Etern */

/* === 1. CSS Variables === */
:root {
  /* 背景层级 */
  --bg-deep: #050505;
  --bg-primary: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.95);
  --bg-elevated: rgba(24, 24, 24, 0.98);
  --bg-glass: rgba(18, 18, 18, 0.6);
  
  /* 文字 */
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  
  /* 品牌色 — 珑珠金 */
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dim: rgba(201, 169, 98, 0.15);
  --gold-border: rgba(201, 169, 98, 0.3);
  
  /* 四象色 */
  --qinglong: #4ade80;
  --zhuque: #f97316;
  --baihu: #e2e8f0;
  --xuanwu: #3b82f6;
  --diting: #d4a574;
  
  /* 功能色 */
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --info: #3b82f6;
  
  /* 边界 */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  /* 字体 */
  --font: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.15);
  
  /* 动画 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

/* ===== Legacy Aliases — case pages compatibility ===== */
--accent: var(--gold);
--accent-hover: var(--gold-light);
--dim: var(--text-dim);
--red: var(--error);
--green: var(--success);
--card-bg: var(--bg-card);
--purple: var(--zhuque);

}

/* === 2. Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold-dim); color: var(--gold-light); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* === 3. Grain Overlay === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* === 4. Typography === */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }
p { color: var(--text-muted); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; letter-spacing: 0.05em; }

/* === 5. Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  transition: background var(--duration-normal), border var(--duration-normal);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-logo .logo-icon { font-size: 18px; }
.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.55);
  letter-spacing: 0.06em;
  transition: color var(--duration-fast);
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; gap: var(--space-sm); align-items: center; }
.nav-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.nav-btn-ghost {
  background: transparent;
  color: rgba(240, 240, 240, 0.55);
  border: 1px solid transparent;
}
.nav-btn-ghost:hover { color: var(--text); }
.nav-btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
}
.nav-btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: var(--space-xs);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: var(--space-sm);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
  }
}

/* === 6. Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.8) 80%, var(--bg-primary) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xl);
  font-weight: 500;
}
.hero h1 { margin-bottom: var(--space-lg); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 2px;
}
.hero-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: var(--space-sm);
}
.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  opacity: 0.4;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* === 7. Sections === */
.section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-number {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.section-title { margin-bottom: var(--space-sm); }
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === 8. Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-normal);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-gold:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}
.card-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* === 9. Grid === */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* === 10. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--duration-fast);
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* === 11. Progress Bar === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 1001;
  width: 0;
  transition: width 50ms linear;
}

/* === 12. Fade In Animation === */
.fi { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.fi.v { opacity: 1; transform: translateY(0); }

/* === 13. Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.badge-gold { background: var(--gold-dim); color: var(--gold); }
.badge-success { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-error { background: rgba(248, 113, 113, 0.15); color: var(--error); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }

/* === 14. Divider === */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2xl) 0;
}
.divider-gold { background: linear-gradient(90deg, transparent, var(--gold-border), transparent); }

/* === 15. Footer === */
.footer {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.footer-text {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  line-height: 2;
}
.footer-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.footer-links a:hover { color: var(--gold); }

/* === 16. Report Page Specific === */
.report-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}
.report-meta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.report-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
}
.report-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.report-content p {
  margin-bottom: var(--space-md);
  line-height: 1.9;
}
.report-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--text);
  font-style: italic;
}
.report-content code {
  font-family: var(--mono);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.report-content pre {
  background: rgba(0,0,0,0.4);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}
.report-content pre code {
  background: none;
  padding: 0;
}
.report-content ul, .report-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}
.report-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}
.report-content li::marker { color: var(--gold); }

/* === 17. Table === */
.table-wrapper { overflow-x: auto; margin: var(--space-lg) 0; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}
td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* === 18. Flywheel Status Widget === */
.flywheel-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
}
.flywheel-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}
.flywheel-status.idle .dot { background: var(--text-dim); animation: none; }

/* === 19. Breadcrumb === */
.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: var(--space-lg) 0;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text); }

/* === 20. Utility === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-xl); }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.hidden { display: none !important; }
