/* =====================================================================
   幸运塔罗牌占卜系统 · 全复刻样式表（与 React 预览版 1:1 视觉对齐）
   主题：深空黑底 / 鎏金点睛 / 墨玉绿与玫瑰朱砂辅色
   ===================================================================== */

@font-face {
  font-family: 'JiangChengJianRenHei';
  src: url('https://resource-static.cdn.bcebos.com/fonts/JiangChengJianRenHei.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 0.25rem;
  --background: hsl(0 0% 10%);
  --foreground: hsl(43 55% 93%);
  --card: hsl(0 0% 12%);
  --card-foreground: hsl(43 55% 93%);
  --popover: hsl(0 0% 12%);
  --popover-foreground: hsl(43 55% 93%);
  --primary: hsl(43 74% 53%);
  --primary-foreground: hsl(0 0% 4%);
  --secondary: hsl(168 75% 22%);
  --secondary-foreground: hsl(43 55% 93%);
  --muted: hsl(0 0% 16%);
  --muted-foreground: hsl(0 0% 60%);
  --accent: hsl(0 96% 28%);
  --accent-foreground: hsl(43 55% 93%);
  --destructive: hsl(0 84% 60%);
  --destructive-foreground: hsl(43 55% 93%);
  --border: hsl(0 0% 23%);
  --input: hsl(0 0% 18%);
  --ring: hsl(43 74% 53%);
  --gold: hsl(43 74% 53%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(224, 174, 46, 0.25); border-radius: 4px; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JiangChengJianRenHei', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
}

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

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

/* 视觉签名 */
.font-display {
  font-family: 'JiangChengJianRenHei', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--muted-foreground);
}

.text-shadow-gold {
  text-shadow: 0 0 16px hsl(43 74% 53% / 0.45);
}

.gradient-text-gold {
  background: linear-gradient(135deg, hsl(43 74% 60%), hsl(43 74% 45%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mystic-border {
  position: relative;
  border: 1px solid rgba(224, 174, 46, 0.22);
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.mystic-border::before {
  display: none;
}

.bg-mystic-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, hsl(43 74% 53% / 0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, hsl(0 96% 28% / 0.05) 0%, transparent 35%);
  background-attachment: fixed;
}

/* 布局容器 */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-area {
  min-height: 70vh;
  padding: 32px 0 60px;
}

/* 顶部导航栏（100% 对齐 https://tlp.appmiaoda.com Header.tsx） */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 64px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-brand-link svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-brand {
  font-size: 19px;
  color: var(--foreground);
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-link {
  font-size: 14px;
  color: var(--muted-foreground);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.desktop-only { display: inline; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
  .nav-inner { padding: 0 12px; }
  .nav-brand { font-size: 17px; }
}

/* ==========================================
   首页 Hero、Banner 与专区排版（100% 对齐 tlp.appmiaoda.com）
   ========================================== */
.home-hero {
  position: relative;
  text-align: center;
  padding: 48px 16px 28px;
  max-width: 768px;
  margin: 0 auto;
}

.home-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(224, 174, 46, 0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.home-hero-star {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.home-hero-title {
  font-size: 38px;
  color: var(--foreground);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-hero-sub {
  font-size: 16px;
  color: var(--muted-foreground);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* 姻缘高亮卡片（Rose Banner） */
.banner-love {
  max-width: 768px;
  margin: 24px auto 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: linear-gradient(135deg, rgba(76, 5, 25, 0.25) 0%, rgba(26, 26, 26, 0.85) 100%);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.banner-love:hover {
  border-color: rgba(244, 63, 94, 0.55);
  transform: translateY(-2px);
}

.banner-love-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb7185;
}

.banner-love-content {
  flex: 1;
  min-width: 0;
}

.banner-love-title {
  font-size: 18px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tag-new {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.banner-love-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.banner-love-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-foreground);
}

.banner-love-arrow {
  color: rgba(244, 63, 94, 0.7);
  flex-shrink: 0;
}

/* 专区标题 */
.section-header {
  max-width: 768px;
  margin: 36px auto 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.section-header h2 {
  font-size: 20px;
  color: var(--foreground);
}

.section-header .sub-tip {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-left: 4px;
}

/* 塔罗专区卡片网格（3 列） */
.grid-tarot {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-tarot {
  background: rgba(31, 31, 31, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.card-tarot:hover {
  border-color: rgba(224, 174, 46, 0.6);
  transform: translateY(-2px);
}

.card-tarot-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(224, 174, 46, 0.1);
  border: 1px solid rgba(224, 174, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
  transition: all 0.2s;
}

.card-tarot:hover .card-tarot-icon {
  background: rgba(224, 174, 46, 0.2);
  border-color: rgba(224, 174, 46, 0.45);
}

.card-tarot h3 {
  font-size: 17px;
  color: var(--foreground);
  margin-bottom: 8px;
}

.card-tarot p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* 八字命理卡片网格（2 列，横排） */
.grid-bazi {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-bazi {
  background: rgba(31, 31, 31, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: all 0.3s;
  height: 100%;
  text-decoration: none;
}

.card-bazi:hover {
  border-color: rgba(224, 174, 46, 0.6);
  transform: translateY(-2px);
}

.card-bazi-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(224, 174, 46, 0.1);
  border: 1px solid rgba(224, 174, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}

.card-bazi:hover .card-bazi-icon {
  background: rgba(224, 174, 46, 0.2);
  border-color: rgba(224, 174, 46, 0.45);
}

.card-bazi-content {
  flex: 1;
  min-width: 0;
}

.card-bazi-title {
  font-size: 17px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.tag-gold {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(224, 174, 46, 0.12);
  border: 1px solid rgba(224, 174, 46, 0.3);
  color: var(--primary);
}

.card-bazi-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.card-bazi-arrow {
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: all 0.2s;
}

.card-bazi:hover .card-bazi-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* 使用步骤（3 列） */
.grid-steps {
  max-width: 768px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-step {
  border: 1px solid var(--border);
  background: rgba(31, 31, 31, 0.3);
  padding: 18px 20px;
  text-align: left;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card-step:hover {
  border-color: rgba(224, 174, 46, 0.4);
}

.card-step h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-step p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* 移动端响应式：告别老人机粗笨排版，卡片转为精致紧凑横向流式，信息清晰高级 */
@media (max-width: 768px) {
  .home-hero { padding: 32px 14px 24px; }
  .home-hero-title { font-size: 26px; }
  .home-hero-sub { font-size: 14px; margin-bottom: 20px; }
  .section-header { margin: 24px auto 12px; }
  .section-header h2 { font-size: 18px; }

  /* 塔罗专区卡片：手机端精致横向卡片，小巧灵动，拒绝大方块粗苯 */
  .grid-tarot {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card-tarot {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    min-height: auto !important;
  }
  .card-tarot-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
  .card-tarot-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .card-tarot h3 {
    font-size: 15px !important;
    margin: 0 0 3px !important;
  }
  .card-tarot p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-tarot .btn {
    width: auto !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important;
    border-radius: 6px !important;
  }

  /* 八字与步骤专区在移动端的紧凑化 */
  .grid-bazi { grid-template-columns: 1fr; gap: 10px; }
  .card-bazi { padding: 12px 14px !important; }
  .card-bazi-icon { width: 42px !important; height: 42px !important; min-width: 42px !important; }
  .grid-steps { grid-template-columns: 1fr; gap: 10px; }
  .card-step { padding: 14px !important; }
  .banner-love { padding: 14px !important; }
  .banner-love-icon { width: 44px !important; height: 44px !important; min-width: 44px !important; }
}

/* 全站卡片与输入排版现代深色磨砂质感 */
.card {
  background: rgba(24, 24, 24, 0.75);
  border: 1px solid rgba(224, 174, 46, 0.22);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(224, 174, 46, 0.4);
}

/* 牌阵与分类选择项现代流线卡片 */
.spread-pick-item, .cat-pick-item {
  display: block;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(224, 174, 46, 0.22);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

.spread-pick-item:hover, .cat-pick-item:hover {
  border-color: var(--primary, #E0AE2E);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 174, 46, 0.15);
}

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

.nav-link {
  font-size: 14px;
  color: var(--muted-foreground);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link svg {
  width: 14px;
  height: 14px;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 按钮规范（复刻 shadcn/ui Button） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  color: var(--foreground);
  background: var(--muted);
}

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

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

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

/* 公告条 */
.announce-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: hsl(43 74% 53% / 0.08);
  border-bottom: 1px solid hsl(43 74% 53% / 0.25);
  padding: 10px 16px;
  font-size: 13px;
}

.announce-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.announce-close {
  background: transparent;
  border: 0;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 18px;
}

/* 首页 Hero 区域（1:1 复刻 Home.tsx） */
.home-hero {
  position: relative;
  text-align: center;
  padding: 40px 16px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: hsl(43 74% 53% / 0.12);
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.home-hero-star {
  color: var(--primary);
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.home-hero-title {
  font-size: 44px;
  color: var(--foreground);
  margin-bottom: 14px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-hero-sub {
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* 姻缘高亮卡片（Rose Banner） */
.banner-love {
  max-width: 768px;
  margin: 28px auto 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: linear-gradient(135deg, rgba(76, 5, 25, 0.25) 0%, rgba(26, 26, 26, 0.9) 100%);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.banner-love:hover {
  border-color: rgba(244, 63, 94, 0.55);
  transform: translateY(-2px);
}

.banner-love-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb7185;
}

.banner-love-content {
  flex: 1;
  min-width: 0;
}

.banner-love-title {
  font-size: 18px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tag-new {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.banner-love-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.banner-love-tags {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-foreground);
}

.banner-love-arrow {
  color: rgba(244, 63, 94, 0.7);
  flex-shrink: 0;
}

/* 专区标题 */
.section-header {
  max-width: 768px;
  margin: 32px auto 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.section-header h2 {
  font-size: 20px;
  color: var(--foreground);
}

.section-header .sub-tip {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-left: 4px;
}

/* 塔罗专区卡片网格（3 列） */
.grid-tarot {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-tarot {
  background: rgba(31, 31, 31, 0.6);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.card-tarot:hover {
  border-color: rgba(224, 174, 46, 0.65);
  transform: translateY(-2px);
}

.card-tarot-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(224, 174, 46, 0.1);
  border: 1px solid rgba(224, 174, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
  transition: all 0.2s;
}

.card-tarot:hover .card-tarot-icon {
  background: rgba(224, 174, 46, 0.2);
  border-color: rgba(224, 174, 46, 0.45);
}

.card-tarot h3 {
  font-size: 17px;
  color: var(--foreground);
  margin-bottom: 8px;
}

.card-tarot p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* 八字命理卡片网格（2 列，横排） */
.grid-bazi {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-bazi {
  background: rgba(31, 31, 31, 0.6);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: all 0.3s;
  height: 100%;
}

.card-bazi:hover {
  border-color: rgba(224, 174, 46, 0.65);
  transform: translateY(-2px);
}

.card-bazi-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(224, 174, 46, 0.1);
  border: 1px solid rgba(224, 174, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}

.card-bazi:hover .card-bazi-icon {
  background: rgba(224, 174, 46, 0.2);
  border-color: rgba(224, 174, 46, 0.45);
}

.card-bazi-content {
  flex: 1;
  min-width: 0;
}

.card-bazi-title {
  font-size: 17px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.tag-gold {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(224, 174, 46, 0.12);
  border: 1px solid rgba(224, 174, 46, 0.3);
  color: var(--primary);
}

.card-bazi-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.card-bazi-arrow {
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: all 0.2s;
}

.card-bazi:hover .card-bazi-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* 使用步骤（3 列） */
.grid-steps {
  max-width: 768px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-step {
  border: 1px solid var(--border);
  background: rgba(31, 31, 31, 0.3);
  padding: 18px 20px;
  text-align: left;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card-step:hover {
  border-color: rgba(224, 174, 46, 0.4);
}

.card-step h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-step p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.95);
  padding: 24px 0 32px;
  margin-top: 60px;
}

.footer-inner {
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .home-hero-title { font-size: 30px; }
  .grid-tarot { grid-template-columns: 1fr; }
  .grid-bazi { grid-template-columns: 1fr; }
  .grid-steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .burger { display: block; }
}

/* ==========================================
   前台精致表单与组件强化（移动端完美对齐）
   ========================================== */
.input, .select, .textarea {
  width: 100%;
  box-sizing: border-box;
  background: hsl(0 0% 12%) !important;
  color: #fff !important;
  border: 1px solid hsl(43 74% 53% / 0.3) !important;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 8px hsl(43 74% 53% / 0.35) !important;
}

.gender-radio {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 8px 0;
}

.gender-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: hsl(0 0% 90%);
  font-size: 14px;
}

.gender-radio input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.birth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.person-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed hsl(43 74% 53% / 0.25);
}

.person-head .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--primary);
  color: #111;
  font-weight: 700;
  font-size: 13px;
}

.person-head h2 {
  font-size: 17px;
  margin: 0;
  color: var(--primary);
}

/* ===================== 安装部署教程页 ===================== */
.guide-wrap {
  max-width: 768px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.guide-hero {
  text-align: center;
  padding: 28px 20px 22px;
  margin-bottom: 22px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 60% 80% at 50% -10%, hsl(43 74% 53% / 0.12), transparent),
    rgba(31, 31, 31, 0.5);
  border: 1px solid hsl(43 74% 53% / 0.25);
  position: relative;
  z-index: 0;
}

.guide-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 8px;
}

.guide-hero h1 {
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--foreground);
  background: linear-gradient(120deg, var(--primary), hsl(43 74% 70%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-lead {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.guide-lead strong {
  color: var(--primary);
}

.guide-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.guide-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--primary);
  background: hsl(43 74% 53% / 0.1);
  border: 1px solid hsl(43 74% 53% / 0.35);
}

.guide-note {
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.guide-note strong {
  color: var(--foreground);
}

.guide-step {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(31, 31, 31, 0.5);
  border: 1px solid hsl(43 74% 53% / 0.18);
  backdrop-filter: blur(6px);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(140deg, var(--primary), hsl(43 74% 66%));
  box-shadow: 0 4px 14px hsl(43 74% 53% / 0.35);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  margin: 4px 0 10px;
  font-size: 18px;
  color: var(--primary);
}

.step-body p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
  color: var(--foreground);
}

.step-body p strong {
  color: var(--primary);
}

.guide-code {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid hsl(43 74% 53% / 0.2);
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: hsl(43 60% 78%);
  overflow-x: auto;
  white-space: pre;
}

.guide-code::-webkit-scrollbar {
  height: 5px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
  font-size: 13px;
}

.guide-table th,
.guide-table td {
  padding: 8px 10px;
  border: 1px solid hsl(43 74% 53% / 0.2);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.guide-table th {
  background: hsl(43 74% 53% / 0.12);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.guide-table td:first-child {
  white-space: nowrap;
  color: var(--primary);
}

.guide-list {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.guide-list li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--foreground);
}

.step-body code,
.faq-item code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid hsl(43 74% 53% / 0.25);
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  color: hsl(43 60% 78%);
  word-break: break-all;
}

.guide-tip,
.guide-warn {
  padding: 10px 14px;
  margin: 10px 0 4px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.guide-tip {
  background: hsl(43 74% 53% / 0.08);
  border-left: 3px solid var(--primary);
  color: var(--muted-foreground);
}

.guide-warn {
  background: hsl(0 62% 45% / 0.1);
  border-left: 3px solid hsl(0 62% 55%);
  color: var(--muted-foreground);
}

.guide-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.faq-item {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(31, 31, 31, 0.5);
  border: 1px solid hsl(43 74% 53% / 0.18);
}

.faq-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 6px;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.guide-cta {
  text-align: center;
  padding: 26px 20px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 55% 90% at 50% 120%, hsl(43 74% 53% / 0.14), transparent),
    rgba(31, 31, 31, 0.5);
  border: 1px solid hsl(43 74% 53% / 0.25);
}

.guide-cta h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--primary);
}

.guide-cta p {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 16px;
}

@media (max-width: 768px) {
  .guide-hero h1 {
    font-size: 24px;
  }

  .guide-lead {
    font-size: 13px;
  }

  .guide-step {
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
  }

  .step-num {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .step-body h3 {
    font-size: 16px;
  }

  .step-body p,
  .guide-list li {
    font-size: 13px;
  }

  .guide-faq {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-table td:first-child,
  .guide-table th {
    white-space: normal;
  }
}
