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

:root {
  /* 现代新东方雅致门户设计系统规范 (Tân Á Đông Hiện Đại · lov.cc 2026) */
  --color-primary: #C69335;         /* Vàng Cung Đình (宫廷鎏金) */
  --color-primary-hover: #AD7926;   /* Đồng Cổ (黄铜古金) */
  --color-gold: #C69335;            /* Vàng Cung Đình (宫廷琉璃金) */
  --color-gold-dark: #AD7926;       /* Đồng Cổ (黄铜古金) */
  --color-gold-light: #F8F2E7;      /* Kim Cát / Giấy Dó (浅金宣纸暖白) */
  --color-gold-accent: #D97706;     /* Hổ Phách (琥珀光) */

  --color-paper: #F8F2E7;          /* Giấy Dó Noãn Bạch (宣纸暖白主背景) */
  --color-bg: #F8F2E7;             /* 页面默认背景色 */
  --color-surface: #ffffff;        /* Bạch Ngọc (白玉纯净面板) */
  --color-surface-raised: #FAF6F0; /* Giấy Dó Cao Cấp (浅茶宣纸过渡色) */
  --color-card-bg: #EDE3D3;        /* Trà Nhạt (浅茶卡片底色) */
  --color-tea: #E9D9BD;            /* Trà Ấm (暖茶色) */
  --color-muted: #B7B2A5;          /* Sơn Thủy (山水灰) */
  --color-accent: #B94332;         /* Chu Sa (朱砂古典红) */

  --color-ink: #172E3A;            /* Mặc Thanh Hắc (墨青浓黑) */
  --color-text: #172E3A;           /* 主文字墨青色 */
  --color-text-secondary: #44403C; /* Tiêu Thạch (深烟灰) */
  --color-text-muted: #78716C;     /* Mặc Nhạt (淡墨灰) */
  --color-text-subtle: #A8A29E;    /* Ngân Sa (银沙微灰) */

  --color-border: #E5DCD0;         /* Viền Ấm (暖石宣纸边框) */
  --color-border-light: #F0E8DD;   /* Viền Tinh Tế (超薄分割线) */
  --color-border-gold: #F3E5C8;    /* Viền Khảm Kim (金线框) */

  --color-cta-bg: linear-gradient(135deg, #C69335, #AD7926);
  --color-cta-hover: linear-gradient(135deg, #AD7926, #8C5F1C);
  --color-cta-text: #ffffff;

  /* 边框与圆角规范 (12~16px 现代温润质感) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-card: 14px;
  --radius-button: 24px;
  --radius-pill: 999px;
  --border-width: 1px;

  /* 微投影与层级光影 (暖金/浅墨光影) */
  --shadow-xs: 0 1px 2px rgba(111, 81, 37, 0.04);
  --shadow-sm: 0 1px 3px rgba(111, 81, 37, 0.05), 0 1px 2px rgba(111, 81, 37, 0.03);
  --shadow-card: 0 4px 16px rgba(111, 81, 37, 0.08), 0 1px 3px rgba(111, 81, 37, 0.02);
  --shadow-card-hover: 0 10px 24px rgba(111, 81, 37, 0.14);
  --shadow-hover: 0 10px 24px rgba(111, 81, 37, 0.12);
  --shadow-gold: 0 4px 16px rgba(198, 147, 53, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(111, 81, 37, 0.03);

  /* 间距基准 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 56px;
  --space-3xl: 72px;

  --container-max: 1200px;

  /* 字体栈 (针对越南语 Tiếng Việt 声调特别优化) */
  --font-family-base: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Noto Serif", "Playfair Display", "Times New Roman", Georgia, serif;
  --font-heading: var(--font-family-serif);
  --font-body: var(--font-family-base);
}

/* 基础重置 */
*, *::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;
  }
}

/* ==========================================================================
   TÂN Á ĐÔNG 3D METAPHYSICS ANIMATIONS & RITUAL ENGINE (玄学 3D 动效与仪轨体系)
   ========================================================================== */

/* 1. 3D 签筒摇曳动画 (Lắc Ống Xăm) */
@keyframes bamboo-shake {
  0%   { transform: rotate(0deg) translateY(0); }
  15%  { transform: rotate(-7deg) translateY(-8px) skewX(2deg); }
  30%  { transform: rotate(8deg) translateY(-4px) skewX(-2deg); }
  45%  { transform: rotate(-8deg) translateY(-10px) skewX(3deg); }
  60%  { transform: rotate(7deg) translateY(-5px) skewX(-3deg); }
  75%  { transform: rotate(-5deg) translateY(-8px) skewX(1deg); }
  90%  { transform: rotate(3deg) translateY(-2px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.anim-shake-tube {
  animation: bamboo-shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  transform-origin: bottom center;
}

/* 2. 灵签浮现动效 (Thẻ Xăm Xuất Hiện) */
@keyframes stick-rise {
  0%   { transform: translateY(60px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(-24px) scale(1.03); opacity: 1; filter: drop-shadow(0 0 16px rgba(217, 119, 6, 0.6)); }
  100% { transform: translateY(-16px) scale(1); opacity: 1; filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.3)); }
}

.anim-stick-rise {
  animation: stick-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3. 圣杯阴阳三维抛掷落定 (Gieo Keo Âm Dương 3D) */
@keyframes shengbei-toss-left {
  0%   { transform: translate(0, 0) rotate(0deg) scale(0.85); opacity: 0.7; }
  35%  { transform: translate(-45px, -75px) rotate(-140deg) scale(1.15); opacity: 1; }
  65%  { transform: translate(-70px, -20px) rotate(-260deg) scale(1.05); }
  85%  { transform: translate(-80px, 6px) rotate(-350deg) scale(0.98); }
  100% { transform: translate(-75px, 0) rotate(-360deg) scale(1); }
}

@keyframes shengbei-toss-right {
  0%   { transform: translate(0, 0) rotate(0deg) scale(0.85); opacity: 0.7; }
  35%  { transform: translate(45px, -80px) rotate(150deg) scale(1.15); opacity: 1; }
  65%  { transform: translate(75px, -18px) rotate(270deg) scale(1.05); }
  85%  { transform: translate(85px, 8px) rotate(355deg) scale(0.98); }
  100% { transform: translate(80px, 0) rotate(360deg) scale(1); }
}

.anim-keo-left {
  animation: shengbei-toss-left 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-keo-right {
  animation: shengbei-toss-right 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 4. 周易古铜钱 3D 抛掷翻飞动效 (Gieo Tiền Đồng Cổ 3D) */
@keyframes coin-flip-axis1 {
  0%   { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(0.9); }
  25%  { transform: translateY(-70px) rotateX(360deg) rotateY(180deg) scale(1.2); }
  60%  { transform: translateY(-100px) rotateX(720deg) rotateY(360deg) scale(1.25); filter: drop-shadow(0 15px 12px rgba(180,83,9,0.35)); }
  85%  { transform: translateY(10px) rotateX(1040deg) rotateY(500deg) scale(0.98); }
  92%  { transform: translateY(-8px) rotateX(1060deg) rotateY(530deg) scale(1.02); }
  100% { transform: translateY(0) rotateX(1080deg) rotateY(540deg) scale(1); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); }
}

@keyframes coin-flip-axis2 {
  0%   { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(0.9); }
  25%  { transform: translateY(-80px) rotateX(-360deg) rotateY(240deg) scale(1.2); }
  60%  { transform: translateY(-110px) rotateX(-720deg) rotateY(480deg) scale(1.3); filter: drop-shadow(0 15px 12px rgba(180,83,9,0.35)); }
  85%  { transform: translateY(12px) rotateX(-1050deg) rotateY(700deg) scale(0.98); }
  92%  { transform: translateY(-7px) rotateX(-1070deg) rotateY(715deg) scale(1.02); }
  100% { transform: translateY(0) rotateX(-1080deg) rotateY(720deg) scale(1); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); }
}

@keyframes coin-flip-axis3 {
  0%   { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(0.9); }
  25%  { transform: translateY(-65px) rotateX(420deg) rotateY(-180deg) scale(1.18); }
  60%  { transform: translateY(-95px) rotateX(840deg) rotateY(-360deg) scale(1.22); filter: drop-shadow(0 15px 12px rgba(180,83,9,0.35)); }
  85%  { transform: translateY(10px) rotateX(1220deg) rotateY(-510deg) scale(0.98); }
  92%  { transform: translateY(-6px) rotateX(1240deg) rotateY(-530deg) scale(1.02); }
  100% { transform: translateY(0) rotateX(1260deg) rotateY(-540deg) scale(1); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); }
}

.anim-coin-1 { animation: coin-flip-axis1 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-coin-2 { animation: coin-flip-axis2 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-coin-3 { animation: coin-flip-axis3 1.00s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* 5. 易经六爻排卦层叠微光动效 */
@keyframes hexagram-line-reveal {
  0%   { transform: scaleX(0.2); opacity: 0; filter: brightness(2); }
  50%  { transform: scaleX(1.05); opacity: 1; filter: brightness(1.5); }
  100% { transform: scaleX(1); opacity: 1; filter: brightness(1); }
}

.anim-hex-line {
  animation: hexagram-line-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center;
}

/* 6. 音效控制悬浮开关 (Audio Ritual Toggle) */
.ritual-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
  user-select: none;
}

.ritual-audio-toggle:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  box-shadow: var(--shadow-sm);
}

.ritual-audio-toggle.active {
  background: var(--color-gold-light);
  border-color: #fde047;
  color: var(--color-gold-dark);
}

.ritual-audio-toggle svg {
  color: inherit;
  flex-shrink: 0;
}

/* 7. 双层复合跨库六维矩阵样式规范 (6D Cross-Data Matrix) */
.cross-matrix-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--color-border);
}

.cross-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.cross-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cross-dim-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.cross-dim-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-gold);
}

.cross-dim-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
}
