/* ==========================================================================
   lov.cc — Design System Stylesheet
   遵循 DESIGN.md 规范：暖灰石材、信任优先、极简不简陋、移动端不降级
   ========================================================================== */

:root {
  /* 越南东方雅韵与温暖红金风设计系统规范 (1:1 还原 DesignDraft2.0.0) */
  --color-primary: #c5161d;
  --color-primary-dark: #991b1b;
  --color-primary-light: #fef2f2;
  --color-gold: #d97706;
  --color-gold-light: #fef3c7;
  --color-accent: #f59e0b;
  
  --color-bg: #fdfbf7;
  --color-surface: #ffffff;
  --color-border: #f1eae1;
  --color-border-light: #f5efe6;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-muted: #78716c;
  --color-text-subtle: #a8a29e;
  
  --color-cta-bg: #c5161d;
  --color-cta-text: #ffffff;

  /* 边框与圆角规范 (温润现代卡片，与设计稿完全一致) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --border-width: 1px;

  /* 阴影层级 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 28px rgba(197, 22, 29, 0.12);

  /* 间距基准 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  --container-max: 1180px;

  /* 字体栈 */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: "Playfair Display", "Noto Serif", Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* 页面容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* 字体排印 */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
}

.display-title {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.15;
}

h1 { font-size: 28px; letter-spacing: -0.5px; }
h2 { font-size: 24px; letter-spacing: -0.4px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p {
  margin-bottom: var(--space-md);
}

.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); font-size: 14px; }
.text-subtle { color: var(--color-text-subtle); font-size: 13px; }

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-primary {
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-color: var(--color-cta-bg);
}

.btn-primary:hover {
  background-color: #292524;
  border-color: #292524;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: #f5f5f4;
  border-color: var(--color-text-secondary);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-color: #fde68a;
}

.btn-accent:hover {
  background-color: #fef08a;
}

/* 标签 / 胶囊徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  background-color: var(--color-surface);
}

.badge-accent {
  background-color: var(--color-accent-bg);
  border-color: var(--color-accent);
  color: #92400e;
}

.badge-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.badge-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* 卡片组件 (严禁阴影，使用直角线框) */
.card {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--color-text-muted);
}

.card-compact {
  padding: var(--space-md);
}

/* 输入框 */
.input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color 0.15s ease;
  outline: none;
}

.input:focus {
  border-color: var(--color-text);
}

/* ==========================================================================
   Header 导航栏 (1:1 还原 DesignDraft2.0.0 规范)
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-family-serif);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: #fff;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  color: #4b5563;
  cursor: pointer;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #c5161d, #991b1b);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(197, 22, 29, 0.25);
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 22, 29, 0.35);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

/* ==========================================================================
   温暖红金风 Hero 区域 (Home Hero)
   ========================================================================== */
.home-hero-wrap {
  width: 100%;
  background: radial-gradient(circle at 75% 35%, #5a111a 0%, #380a10 50%, #1e0508 100%);
  padding: 68px 0 96px;
  color: #ffffff;
  position: relative;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.home-hero-maiden {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 55%;
  max-width: 680px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

.home-hero-maiden img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.hero-container-inner {
  position: relative;
  z-index: 2;
}

.home-hero-content {
  max-width: 600px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(254, 240, 138, 0.35);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.home-hero-title {
  font-family: var(--font-family-serif);
  font-size: clamp(34px, 4.8vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero-gold-text {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.home-hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  max-width: 540px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-search-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  max-width: 560px;
}

.home-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14.5px;
  color: #1f2937;
  background: transparent;
}

.home-search-input::placeholder {
  color: #9ca3af;
}

.btn-hero-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #c5161d, #991b1b);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(197, 22, 29, 0.35);
}

.btn-hero-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(197, 22, 29, 0.45);
}

.hero-trending-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-trending-pill {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.92;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.hero-trending-pill:hover {
  opacity: 1;
  color: #fef08a;
}

/* ==========================================================================
   4 大业务核心卡片 (Native HTML/CSS Redesign)
   ========================================================================== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -50px;
  margin-bottom: 44px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   4 大核心业务悬浮卡片 (4 Floating Feature Cards - 1:1 Design Draft)
   ========================================================================== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -46px;
  margin-bottom: 36px;
  position: relative;
  z-index: 10;
}

.feat-card-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 20px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 175px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.12);
}

/* 4 Card Themes */
.card-theme-dream {
  background: linear-gradient(135deg, #f4f8ff 0%, #e0edff 100%);
  border-color: #d0e2ff;
}
.card-theme-love {
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e6 100%);
  border-color: #fecdd3;
}
.card-theme-luck {
  background: linear-gradient(135deg, #fffdf2 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.card-theme-wealth {
  background: linear-gradient(135deg, #fffaf4 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

/* Card Top Left Avatar Icon */
.feat-card-top-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.icon-bg-dream {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fef08a;
}
.icon-bg-love {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
}
.icon-bg-luck {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}
.icon-bg-wealth {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fef08a;
}

.feat-card-body {
  position: relative;
  z-index: 2;
  max-width: 65%;
}

.feat-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.3;
}

.feat-card-desc {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Circular Bottom-Left Dark Button */
.feat-card-btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3a080d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 2;
}

.feat-card-box:hover .feat-card-btn-circle {
  transform: scale(1.1);
  background: #c5161d;
}

/* Visual illustration in bottom right */
.feat-card-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 85%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.feat-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transition: transform 0.35s ease;
}

.feat-card-box:hover .feat-card-visual img {
  transform: scale(1.08);
}

/* ==========================================================================
   两列结构：左大面板 + 右侧面板 (Unified White Panel Boxes)
   ========================================================================== */
.section-two-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
  align-items: stretch;
}

.panel-white-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.panel-head-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-head-more {
  font-size: 13.5px;
  font-weight: 600;
  color: #c5161d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.panel-head-more:hover {
  gap: 7px;
}

/* 热门梦境 4 栏网格 (Inner 4-Thumb Grid) */
.dream-thumbs-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dream-thumb-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.dream-thumb-item:hover {
  transform: translateY(-3px);
}

.dream-thumb-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dream-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dream-thumb-item:hover .dream-thumb-img-wrap img {
  transform: scale(1.06);
}

.dream-thumb-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
  line-height: 1.3;
}

.dream-thumb-meta {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 12 生肖运势卡片 (12 Circular Animal Grid - 1:1 Design Draft) */
.zodiac-animals-grid-6x2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 8px;
  padding: 4px 0 6px;
}

.zodiac-animal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.zodiac-animal-cell:hover {
  transform: translateY(-3px) scale(1.06);
}

.zodiac-animal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}

.zodiac-animal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zodiac-animal-name {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

/* ==========================================================================
   第二板块：探索自己 3 栏 + AI 运势 Oracle Card
   ========================================================================== */
.self-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.self-mini-card {
  background: #fafaf9;
  border-radius: 14px;
  border: 1px solid #f0f0ee;
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  transition: all 0.2s ease;
}

.self-mini-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: #fca5a5;
  box-shadow: 0 8px 20px rgba(197, 22, 29, 0.08);
}

.self-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.self-mini-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.self-mini-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.self-mini-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #c5161d;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* AI 解码运势横向卡片 (1:1 Design Draft) */
.ai-oracle-card {
  background: radial-gradient(circle at 80% 50%, #4a0d14 0%, #2a050a 55%, #150204 100%);
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 25px rgba(42, 5, 10, 0.2);
  color: #ffffff;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.ai-oracle-info {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.ai-oracle-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #fef08a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ai-oracle-title {
  font-family: var(--font-family-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.ai-oracle-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-ai-oracle {
  background: #fef08a;
  color: #1e0508;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ai-oracle-card:hover .btn-ai-oracle {
  transform: translateY(-2px);
  background: #ffffff;
}

.ai-oracle-visual {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 175px;
  height: 175px;
  pointer-events: none;
  z-index: 1;
}

.ai-oracle-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   统计数据栏 (Stats Bar)
   ========================================================================== */
.stats-bar-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 24px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  color: #c5161d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-num {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

/* ==========================================================================
   深色奢华 Footer (Dark Footer)
   ========================================================================== */
.site-footer {
  background-color: #141012;
  color: #9ca3af;
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h3 {
  font-family: var(--font-family-serif);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.footer-nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: #9ca3af;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-nav-links a:hover {
  color: #ffffff;
}

.footer-social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icons a {
  color: #9ca3af;
  font-size: 16px;
  transition: color 0.15s ease;
}

.footer-social-icons a:hover {
  color: #ffffff;
}

/* ==========================================================================
   面包屑组件
   ========================================================================== */
.breadcrumb-nav {
  padding: var(--space-md) 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb-item a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-subtle);
  margin: 0 4px;
}

/* ==========================================================================
   分页条组件
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.pagination {
  display: inline-flex;
  gap: var(--space-xs);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: var(--border-width) solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--color-text-secondary);
  background-color: #f5f5f4;
}

.page-btn.active {
  background-color: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   FTS5 搜索模态抽屉
   ========================================================================== */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(28, 25, 23, 0.6);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.search-modal-backdrop.open {
  display: block;
}

.search-modal-panel {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 640px;
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  z-index: 1001;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: var(--space-md);
}

.search-result-item {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.search-result-item:hover h4 {
  color: var(--color-text);
  text-decoration: underline;
}

/* ==========================================================================
   404 错误页 (还原设计稿 Trang 404 Cội Nguồn Việt)
   ========================================================================== */
.error-page-container {
  padding: var(--space-3xl) 0;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.error-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.error-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-md);
}

.error-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.error-search-box {
  margin-bottom: var(--space-2xl);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  text-align: left;
}

.quick-link-card {
  display: block;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.quick-link-card:hover {
  border-color: var(--color-text);
  background-color: #fafaf9;
}

.quick-link-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.quick-link-card span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   响应式断点适配
   ========================================================================== */
@media (max-width: 1024px) {
  .section-two-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
    gap: 14px;
  }

  .stats-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .home-hero-wrap {
    padding: 36px 0 64px;
    background-position: center top;
  }

  .home-hero-title {
    font-size: 32px;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: -24px;
    margin-bottom: 32px;
  }

  .self-cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .self-card-box {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .search-modal-panel {
    width: 95%;
    top: 5%;
  }
}

@media (max-width: 640px) {
  .dream-cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-bar-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .home-search-pill {
    flex-direction: column;
    padding: 10px;
    border-radius: 16px;
  }

  .btn-hero-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}
