/* ============================================================
   richy.fit — Landing Page Stylesheet
   Design Anchor: Cosmic Dark Elegance (高对比度深空 + 生动流光动效)
   ============================================================ */

:root {
  /* Deep Space Backgrounds */
  --space-bg:         #05070B;
  --space-deep:       #020306;
  --space-card:       rgba(13, 17, 27, 0.88);
  --space-card-hover: rgba(20, 26, 42, 0.95);
  
  /* Text & Inks - High Contrast */
  --text-main:        #FFFFFF;
  --text-primary:     #F8FAFC;
  --text-soft:        #E2E8F0;          /* Raised from dim slate to bright crisp slate */
  --text-sub:         #94A3B8;          /* Clear secondary text, fully readable */
  --text-dim:         #64748B;

  /* Nebula, Starlight & Vivid Accents */
  --star-gold:        #FDE047;
  --star-cyan:        #38BDF8;
  --star-purple:      #C084FC;
  --accent:           #FF5722;          /* Richy vivid terracotta/flame */
  --accent-light:     #FF8A65;
  --accent-glow:      rgba(255, 87, 34, 0.5);
  --cyan-glow:        rgba(56, 189, 248, 0.45);
  --purple-glow:      rgba(192, 132, 252, 0.35);

  /* Borders & Glassmorphism */
  --border-glass:     rgba(255, 255, 255, 0.14);
  --border-active:    rgba(56, 189, 248, 0.6);
  --border-accent:    rgba(255, 87, 34, 0.5);
  --rule:             rgba(255, 255, 255, 0.12);
  --rule-light:       rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-display:     "Newsreader", "Noto Serif SC", serif;
  --font-body:        "Noto Serif SC", "Newsreader", serif;
  --font-mono:        "JetBrains Mono", ui-monospace, monospace;

  /* Sizing */
  --max-w:            1140px;
  --max-w-narrow:     780px;

  /* Transitions */
  --transition-fast:  180ms ease;
  --transition-normal:280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:  500ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--space-bg);
}

body {
  background-color: var(--space-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

/* ============================================================
   CANVAS STARFIELD & NEBULA BACKGROUNDS
   ============================================================ */
.starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Cosmic Dynamic Nebula Clouds */
.cosmos-nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  animation: floatNebula 20s infinite alternate ease-in-out;
}

.nebula-1 {
  width: 600px;
  height: 600px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.32) 0%, rgba(67, 56, 202, 0.22) 60%, transparent 100%);
}

.nebula-2 {
  width: 650px;
  height: 650px;
  top: 22%;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.26) 0%, rgba(147, 51, 234, 0.28) 60%, transparent 100%);
  animation-duration: 24s;
  animation-delay: -4s;
}

.nebula-3 {
  width: 750px;
  height: 750px;
  bottom: 5%;
  left: 20%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.28) 0%, rgba(2, 132, 199, 0.18) 65%, transparent 100%);
  animation-duration: 30s;
}

@keyframes floatNebula {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(45px, 35px) scale(1.12) rotate(4deg); }
  100% { transform: translate(-35px, 45px) scale(0.95) rotate(-3deg); }
}

.star-dust-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   GLASSMORPHISM & GLOW CONTAINERS
   ============================================================ */
.glass-card {
  background: var(--space-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-box {
  background: rgba(13, 17, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

/* Shimmer animated gradient border effect */
@keyframes borderShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 5px;
  padding: 4px;
  box-sizing: border-box;
  transition: transform var(--transition-fast);
}
.brand-logo-icon .icon-img,
img[src$="richy-logo.svg"] {
  background-color: white;
}
.brand-badge:hover .brand-logo-icon {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.dot {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.nav-cta-btn {
  background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
  color: #FFFFFF !important;
  padding: 7px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px var(--accent-glow);
  transition: all var(--transition-fast) !important;
}

.nav-cta-btn:hover {
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.8);
  transform: translateY(-2px);
}

/* ============================================================
   PAGE LAYOUT & HERO
   ============================================================ */
.page-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 36px 40px;
  position: relative;
  z-index: 10;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding: 68px 0 76px;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 14px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--star-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.pulse-star {
  font-size: 13px;
  color: var(--star-gold);
  animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.25); text-shadow: 0 0 12px var(--star-gold); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(72px, 10.5vw, 132px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 26px;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 255, 255, 0.1);
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 44ch;
  margin-bottom: 44px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF7043 0%, #F4511E 100%);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.7);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--star-cyan);
  color: #FFFFFF;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

/* ============================================================
   NOTE CARD WITH COSMIC GLOW & 3D TILT
   ============================================================ */
.note-card {
  padding: 32px 30px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, rgba(16, 22, 36, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.12);
}

.card-glow-reflection {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 15px;
  margin-bottom: 22px;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 87, 34, 0.2);
  border: 1px solid rgba(255, 87, 34, 0.45);
  padding: 3px 9px;
  color: #FFAB91;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.25);
}

.card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.card-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFFFFF;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.card-share-chip:hover {
  border-color: var(--star-cyan);
  color: #FFFFFF;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: scale(1.03);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sub);
}

.sig-name {
  font-weight: 600;
  color: #FFFFFF;
}

.sig-divider {
  margin: 0 6px;
  color: var(--rule);
}

.card-tags span {
  margin-left: 8px;
  color: var(--star-cyan);
  font-weight: 500;
}

/* ============================================================
   ORNAMENT DIVIDER
   ============================================================ */
.ornament {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 60px 0;
  color: var(--rule);
}

.o-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.o-mark {
  font-size: 15px;
  color: var(--star-gold);
  text-shadow: 0 0 14px rgba(253, 224, 71, 0.8);
  transform: translateY(-1px);
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--star-cyan);
  margin-bottom: 12px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.section-p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}

.experience-desc {
  max-width: 44ch;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ============================================================
   MANIFESTO & SPEC GRID
   ============================================================ */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 36px 0;
}

.meta-spec-box {
  padding: 34px 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.spec-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 14px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #FFFFFF;
  font-weight: 500;
}

.highlight-cyan {
  color: var(--star-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ============================================================
   EXPERIENCE / SIMULATOR
   ============================================================ */
.experience-section {
  padding: 44px 0;
}

.editor-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.1);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(12, 16, 26, 0.9);
  border-bottom: 1px solid var(--rule);
}

.editor-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glow-orb {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10B981;
}

.editor-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #A7F3D0;
  font-weight: 500;
}

.editor-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.editor-content-area {
  padding: 44px 38px;
  min-height: 230px;
}

.dynamic-entry .entry-meta {
  margin-bottom: 16px;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--star-cyan);
  font-weight: 500;
}

.entry-paragraph {
  font-size: 18px;
  line-height: 1.85;
  color: #FFFFFF;
  margin-bottom: 24px;
  font-weight: 400;
}

.entry-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: #FFCC80;
  text-shadow: 0 0 15px rgba(255, 204, 128, 0.2);
}

.editor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--rule);
  background: rgba(10, 14, 22, 0.85);
}

.word-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.btn-micro {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--star-cyan);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-micro:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--star-cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: translateY(-1px);
}

/* ============================================================
   SHARING PRESET CARDS
   ============================================================ */
.sharing-section {
  padding: 54px 0;
}

.cards-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.share-preset-card {
  padding: 30px 26px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.share-preset-card:hover {
  transform: translateY(-8px);
}

.preset-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.preset-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 600;
}

.preset-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 10px;
  color: var(--text-sub);
  font-weight: 500;
}

.preset-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.preset-body {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 26px;
  color: var(--text-soft);
}

.preset-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

/* Card Themes */
.theme-cosmos {
  background: linear-gradient(170deg, rgba(14, 20, 36, 0.92) 0%, rgba(6, 9, 16, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
}
.theme-cosmos .preset-glow { background: linear-gradient(90deg, #38BDF8, #818CF8); }
.theme-cosmos .preset-badge { color: #7DD3FC; }
.theme-cosmos:hover {
  border-color: #38BDF8;
  box-shadow: 0 16px 44px var(--cyan-glow);
}

.theme-aurora {
  background: linear-gradient(170deg, rgba(28, 16, 24, 0.92) 0%, rgba(10, 6, 12, 0.98) 100%);
  border-color: rgba(255, 87, 34, 0.38);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
}
.theme-aurora .preset-glow { background: linear-gradient(90deg, #FF5722, #C084FC); }
.theme-aurora .preset-badge { color: #FFAB91; }
.theme-aurora:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 44px var(--accent-glow);
}

.theme-starlight {
  background: linear-gradient(170deg, rgba(28, 24, 12, 0.92) 0%, rgba(12, 10, 6, 0.98) 100%);
  border-color: rgba(253, 224, 71, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
}
.theme-starlight .preset-glow { background: linear-gradient(90deg, #FDE047, #FB923C); }
.theme-starlight .preset-badge { color: #FDE047; }
.theme-starlight:hover {
  border-color: #FDE047;
  box-shadow: 0 16px 44px rgba(253, 224, 71, 0.3);
}

/* ============================================================
   FEATURES TRIO
   ============================================================ */
.features-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 44px 0;
}

.feature-item {
  padding: 34px 28px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-light);
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-glow);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 56px 0 24px;
}

.cta-card {
  border-radius: 14px;
  padding: 68px 44px;
  text-align: center;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  border: 1px solid rgba(255, 87, 34, 0.45);
  background: linear-gradient(160deg, rgba(24, 18, 28, 0.95) 0%, rgba(8, 9, 15, 0.98) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 87, 34, 0.35);
}

.cta-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--star-gold);
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 50px);
  font-weight: 500;
  margin-bottom: 18px;
  color: #FFFFFF;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.cta-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-form-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 26px;
}

.cta-input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: 4px;
  outline: none;
  transition: all var(--transition-fast);
}

.cta-input::placeholder {
  color: #64748B;
}

.cta-input:focus {
  border-color: var(--star-cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
  background: rgba(8, 12, 20, 0.95);
}

.cta-footnote {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER (ICP ON THE RIGHT, SAME LINE WITH COPYRIGHT)
   ============================================================ */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 52px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.footer-slogan {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 40ch;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.meta-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.footer-col a {
  color: var(--text-soft);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--star-cyan);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Bottom Bar: Single row, space-between, copyright left, beian right */
.footer-bottom-bar {
  border-top: 1px solid var(--rule);
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-copyright-text {
  color: var(--text-sub);
  font-weight: 400;
}

.footer-beian-box {
  display: flex;
  align-items: center;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
}

.beian-link:hover {
  color: var(--star-gold);
  border-bottom-color: var(--star-gold);
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.beian-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent-light);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 38px 0;
  }
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cards-deck {
    grid-template-columns: 1fr;
  }
  .features-trio {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .page-container {
    padding: 20px 18px 36px;
  }
  .nav-inner {
    padding: 12px 18px;
  }
  .nav-links a:not(.nav-cta-btn) {
    display: none;
  }
  .cta-form-wrap {
    flex-direction: column;
  }
  .cta-card {
    padding: 40px 22px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}

/* ============================================================
   NOTES SECTION — 随手小记(首页)
   复用 .note-card / .glass-card / .card-* 已有的视觉,
   只补栅格 + 微调 hover
   ============================================================ */

.notes-section {
  margin: 96px 0 0;
  padding: 0 0 8px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .notes-grid { grid-template-columns: 1fr; }
}

.note-card-link {
  display: block;
  padding: 26px 28px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              background var(--transition-normal);
  position: relative;
}
.note-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}
.note-card-link .card-arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform var(--transition-fast);
  display: inline-block;
}
.note-card-link:hover .card-arrow {
  transform: translateX(6px);
}

/* ============================================================
   POST DETAIL — 详情页(/posts/*.html)
   与 landing 同一设计语言
   ============================================================ */

.post {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 56px 32px 80px;
  position: relative;
}

@media (max-width: 720px) {
  .post { padding: 36px 20px 60px; }
}

.post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin-bottom: 48px;
  padding: 6px 14px;
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.post__back:hover {
  color: var(--accent-light);
  border-color: var(--border-accent);
}

.post__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px 0;
}
.post__kicker .pulse-star {
  color: var(--star-gold);
  font-size: 13px;
  animation: pulseStar 2s infinite ease-in-out;
}

@keyframes pulseStar {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.post__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  margin: 0 0 56px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__meta .meta-sep { color: var(--rule); }

.post__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-primary);
}

.post__body .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 40px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 87, 34, 0.04);
  border-radius: 0 4px 4px 0;
}

.post__body p { margin: 0 0 22px 0; }

.post__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 52px 0 18px 0;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.post__body h2::before {
  content: "✦";
  color: var(--star-cyan);
  font-size: 14px;
  font-style: normal;
}

.post__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 36px 0 12px 0;
  color: var(--text-primary);
}

.post__body ul,
.post__body ol {
  padding-left: 22px;
  margin: 0 0 24px 0;
  color: var(--text-soft);
}
.post__body li {
  margin: 0 0 10px 0;
  line-height: 1.75;
}
.post__body li::marker { color: var(--accent); }

.post__body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--star-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 1px 7px;
  border-radius: 3px;
}

.post__body pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-primary);
  background: rgba(2, 6, 14, 0.85);
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  overflow-x: auto;
  margin: 0 0 28px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.post__body pre code {
  color: var(--text-primary);
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.post__body hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
}

.post__body blockquote {
  margin: 0 0 24px 0;
  padding: 14px 22px;
  border-left: 2px solid var(--star-purple);
  background: rgba(192, 132, 252, 0.05);
  color: var(--text-soft);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.post__body strong { color: var(--text-main); font-weight: 600; }
.post__body em { color: var(--accent-light); }

.post-nav {
  max-width: var(--max-w-narrow);
  margin: 64px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .post-nav { padding: 0 20px; grid-template-columns: 1fr; }
}

.post-nav__cell {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: rgba(13, 17, 27, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.post-nav__cell:not(.post-nav__cell--disabled):hover {
  border-color: var(--border-active);
  background: rgba(20, 26, 42, 0.7);
  transform: translateY(-2px);
}
.post-nav__cell--prev { text-align: left; }
.post-nav__cell--next { text-align: right; }
@media (max-width: 720px) {
  .post-nav__cell--next { text-align: left; }
}
.post-nav__cell--disabled { opacity: 0.4; pointer-events: none; }

.post-nav__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.post-nav__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ============================================================
   POST DETAIL FIXES — 详情页 footer + 星空背景
   1) .post-bg 不能用 z-index: -1(body position:relative 创建了
      stacking context,负 z-index 跑到 body 后面被遮)
   2) .post / .post-nav / .site-footer 需要 z-index: 1
   3) .site-footer 加 background / padding-bottom / max-width
      让 footer 在视觉上"真存在"
   ============================================================ */

.post-bg {
  position: fixed;
  inset: 0;
  z-index: 0;            /* FIX: 改 -1 → 0(背景在最底,但还在 body 内可见) */
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 87, 34, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(192, 132, 252, 0.40) 0%, transparent 65%);
}

.post {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 56px 32px 80px;
  position: relative;
  z-index: 1;            /* FIX: 内容浮在背景之上 */
}

@media (max-width: 720px) {
  .post { padding: 36px 20px 60px; }
}

/* 详情页 footer — 沿用首页同款,但补全视觉
   (首页 footer 已经是完整版,这里给详情页加 max-width 和 padding-bottom) */
.post + .site-footer,
article + nav + .site-footer,
.site-footer--post {
  position: relative;
  z-index: 1;
  margin: 64px auto 0;                  /* FIX: 居中,不再全宽 */
  max-width: var(--max-w-narrow);
  background: rgba(13, 17, 27, 0.6);
  border-top: 1px solid var(--border-glass);
  border-radius: 12px 12px 0 0;
  padding: 40px 0 36px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 详情页 footer — 强制 flexbox 让 footer-inner "并排",不再前后堆叠 */
.site-footer--post .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  margin: 0 0 32px;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .site-footer--post .footer-inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 28px;
  }
}

.site-footer--post .footer-meta {
  display: flex;
  gap: 60px;
}

@media (max-width: 720px) {
  .site-footer--post .footer-meta { gap: 40px; }
}

.site-footer--post .footer-bottom-bar {
  width: 100%;
  margin: 0;
  padding: 22px 32px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-footer--post .footer-bottom-bar {
    padding: 22px 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   ICON IMAGE STYLES — 让 <img> 在 brand-logo-icon / footer-brand 里自适应
   ============================================================ */
.brand-logo-icon img,
.brand-logo-icon .icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.footer-brand .icon-img,
.footer-brand-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 14px;
  background: transparent;
  padding: 7px;
  box-sizing: border-box;
}

/* 让 footer-brand 横排时图和文字垂直对齐 */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
