/* 求富之路 - 样式表 */

/* ========== 变量 ========== */
:root {
  /* 专业商务蓝金配色 */
  --primary: #1E3A5F;      /* 藏蓝 - 主色 */
  --primary-dark: #152A45;  /* 深藏蓝 */
  --primary-light: #2E5A8F; /* 亮藏蓝 */
  --secondary: #C9A227;     /* 金色 - 强调色 */
  --accent: #E8B923;        /* 亮金色 */
  --bg-light: #F5F7FA;      /* 浅灰蓝背景 */
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A2E;       /* 深蓝黑 */
  --text: #2D3748;          /* 深灰文字 */
  --text-light: #718096;    /* 浅灰文字 */
  --border: #E2E8F0;
  --shadow: 0 4px 15px rgba(30,58,95,0.08);
  --shadow-hover: 0 8px 25px rgba(30,58,95,0.15);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ========== 重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover { background: #1a252f; }

/* ========== Header ========== */
.header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-inner { gap: 20px; }

.date-info {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 20px;
  align-items: center;
}

.date-info .solar-date { color: var(--text); }
.date-info .lunar-date { color: var(--primary); font-weight: 500; }
.date-info .solar-term {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.nav { display: flex; gap: 30px; }

.nav-link {
  font-size: 16px;
  color: var(--text);
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.nav-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E5A8F 50%, #152A45 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* 浮动装饰元素 */
.hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(201,162,39,0.15);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero .hero-float {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero .hero-float:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero .hero-float:nth-child(2) { top: 60%; left: 5%; width: 60px; height: 60px; animation-delay: 1s; }
.hero .hero-float:nth-child(3) { top: 30%; right: 10%; width: 100px; height: 100px; animation-delay: 2s; }
.hero .hero-float:nth-child(4) { bottom: 20%; right: 15%; width: 50px; height: 50px; animation-delay: 3s; }

.hero h1 { font-size: 48px; margin-bottom: 15px; position: relative; z-index: 1; }
.hero .subtitle { font-size: 20px; opacity: 0.9; margin-bottom: 10px; position: relative; z-index: 1; }
.hero .hero-desc { font-size: 16px; opacity: 0.7; margin-bottom: 30px; position: relative; z-index: 1; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; position: relative; z-index: 1; }
.hero-buttons .btn { padding: 15px 40px; font-size: 18px; border-radius: 30px; }
.hero-buttons .btn-primary { background: white; color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-buttons .btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.hero-buttons .btn-secondary { background: transparent; border: 2px solid white; }
.hero-buttons .btn-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ========== Features ========== */
.features { padding: 80px 0; background: var(--bg-white); }
.features h2 { text-align: center; font-size: 32px; margin-bottom: 50px; color: var(--secondary); }

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

.feature-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  padding: 35px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-card h3 { color: var(--primary); margin-bottom: 12px; font-size: 20px; font-weight: 600; }
.feature-card p { color: var(--text-light); line-height: 1.7; }

/* 功能卡片图标 */
.feature-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C9A227, #E8B923);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(201,162,39,0.3);
  transition: all 0.3s ease;
}
.feature-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

/* 卡片顶部装饰线 */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(201,162,39,0.08) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
}

/* ========== Latest Cases ========== */
.latest-cases { padding: 80px 0; background: var(--bg-light); }
.latest-cases h2 { text-align: center; font-size: 32px; margin-bottom: 50px; color: var(--secondary); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--bg-white);
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* 文章封面图区域 */
.post-card .card-cover {
  height: 160px;
  background: linear-gradient(135deg, #1E3A5F, #2E5A8F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.post-card .card-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A227' fill-opacity='0.1'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.post-card .card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }

.post-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  align-self: flex-start;
}

.post-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.5; flex: 1; }
.post-card h3 a:hover { color: var(--primary); }
.post-summary { color: var(--text-light); margin-bottom: 15px; font-size: 14px; line-height: 1.7; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tag {
  background: var(--bg-light);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: var(--text-light);
}

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: auto;
}

.post-meta .author { color: var(--primary); font-weight: 500; }

.more-link { text-align: center; margin-top: 30px; }
.more-link a { color: var(--primary); font-size: 16px; font-weight: 500; }
.more-link a:hover { text-decoration: underline; }

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E5A8F 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta h2 { font-size: 36px; margin-bottom: 15px; position: relative; z-index: 1; }
.cta p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; position: relative; z-index: 1; }
.cta .btn-primary {
  background: linear-gradient(135deg, #C9A227, #E8B923);
  color: #1E3A5F;
  padding: 18px 50px;
  font-size: 18px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,162,39,0.5);
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 40px 0 20px;
}

.disclaimer {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.8;
}
.disclaimer p:first-child { margin-bottom: 5px; }

.copyright { text-align: center; color: rgba(255,255,255,0.6); font-size: 14px; }

/* ========== Page Header ========== */
.page-header {
  background: var(--secondary);
  color: white;
  padding: 40px 0;
  text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { font-size: 18px; opacity: 0.9; }

/* ========== Cases Section ========== */
.cases-section { padding: 40px 0; }

.categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.category-tag {
  background: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-light);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.category-tag:hover,
.category-tag.active {
  background: var(--primary);
  color: white;
}

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a {
  padding: 8px 15px;
  background: white;
  border-radius: var(--radius);
  color: var(--text);
}
.pagination a.active { background: var(--primary); color: white; }

/* ========== Article ========== */
.article { padding: 40px 0; }

.article-header { max-width: 800px; margin: 0 auto 30px; }
.article-category { color: var(--primary); font-size: 14px; }
.article-header h1 { font-size: 32px; margin: 10px 0; }
.article-meta { display: flex; gap: 20px; font-size: 14px; color: var(--text-light); margin: 10px 0; }
.article-tags { display: flex; gap: 10px; margin-top: 10px; }

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-content h2 { color: var(--secondary); margin: 25px 0 15px; font-size: 24px; }
.article-content h3 { color: var(--secondary); margin: 20px 0 10px; font-size: 20px; }
.article-content p { margin-bottom: 15px; line-height: 1.8; }
.article-content strong { color: var(--primary); }

.fortune-cta { background: var(--bg-light); padding: 40px 0; text-align: center; }
.fortune-cta h3 { font-size: 24px; margin-bottom: 10px; color: var(--secondary); }
.fortune-cta p { margin-bottom: 20px; color: var(--text-light); }

/* ========== Error Page ========== */
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-size: 120px; color: var(--primary); }
.error-page h2 { font-size: 32px; margin-bottom: 15px; }
.error-page p { color: var(--text-light); margin-bottom: 30px; }

/* ========== Fortune Section ========== */
.fortune-section { padding: 40px 0; }

.tool-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
}

.tab-btn {
  padding: 12px 25px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.tool-intro { text-align: center; margin-bottom: 30px; }
.tool-intro h2 { font-size: 28px; color: var(--secondary); margin-bottom: 10px; }
.tool-intro p { color: var(--text-light); }

.fortune-form {
  max-width: 700px;
  margin: 0 auto 30px;
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row { display: flex; gap: 15px; flex-wrap: wrap; }

.form-group { flex: 1; min-width: 120px; }
.form-group.full { width: 100%; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.fortune-form h3 {
  font-size: 18px;
  color: var(--secondary);
  margin: 20px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.fortune-form .btn { width: 100%; margin-top: 20px; }

/* ========== Result ========== */
.result {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.result.show { display: block; }

.result h3 { color: var(--secondary); margin-bottom: 20px; text-align: center; }

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-label { color: var(--text-light); }
.result-value { color: var(--text); font-weight: 500; }

.bazi-display {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.bazi-display .bazi { font-size: 28px; color: var(--primary); font-weight: 700; }
.bazi-display .nayin { font-size: 16px; color: var(--text-light); margin-top: 5px; }

.suggestions { margin-top: 20px; }
.suggestions li {
  padding: 10px 15px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 15px;
}

.compatibility-score {
  text-align: center;
  padding: 30px;
}
.score-value { font-size: 64px; font-weight: 700; color: var(--primary); }
.score-level { font-size: 24px; color: var(--secondary); margin-top: 10px; }
.score-tips { margin-top: 20px; color: var(--text-light); }

.month-luck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.month-luck-item {
  padding: 15px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-light);
}
.month-luck-item.good { background: #e8f5e9; color: #2e7d32; }
.month-luck-item.bad { background: #ffebee; color: #c62828; }
.month-luck-item .month { font-size: 12px; color: var(--text-light); }
.month-luck-item .luck { font-size: 18px; font-weight: 600; margin: 5px 0; }
.month-luck-item .advice { font-size: 12px; }

.divination-result {
  text-align: center;
  padding: 30px;
}
.divination-type { font-size: 36px; margin-bottom: 15px; }
.divination-type.da-ji { color: #c62828; }
.divination-type.zhong-ji { color: #f57c00; }
.divination-type.xiao-ji { color: #1976d2; }
.divination-type.ping-ping { color: #666; }
.divination-interpretation { font-size: 18px; color: var(--text); margin-bottom: 20px; }
.divination-guidance { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.divination-guidance span {
  padding: 8px 20px;
  background: var(--bg-light);
  border-radius: 20px;
  color: var(--secondary);
}

/* ========== Disclaimer Box ========== */
.disclaimer-box {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
}
.disclaimer-box p { font-size: 14px; color: #856404; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 元素入场动画 */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 卡片悬停动效增强 */
.post-card {
  animation: fadeInUp 0.6s ease-out forwards;
}
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }

.feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 悬停时图片放大效果 */
.post-card:hover .card-cover img,
.post-card:hover .card-cover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* 按钮涟漪效果 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn:hover::after {
  width: 200px;
  height: 200px;
}

/* 页面滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1E3A5F, #2E5A8F, #C9A227);
  z-index: 1000;
  transition: width 0.1s;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero .hero-float { display: none; }

  .nav { gap: 15px; }
  .nav-link { font-size: 14px; }

  .feature-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .form-row { flex-direction: column; }
  .form-group { min-width: 100%; }

  .month-luck-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 50px 0; }
  .cta h2 { font-size: 28px; }

  .post-meta { flex-wrap: wrap; gap: 10px; }
}

/* ==================== 出生信息缓存条 ==================== */
.birth-cache-bar {
  background: linear-gradient(135deg, #f8f5e8 0%, #fff9e6 100%);
  border: 1px solid #e8d9a8;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.birth-cache-bar.flash {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.birth-cache-label {
  font-size: 14px;
  color: #856404;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 4px;
}

.birth-cache-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.birth-cache-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: #fff;
  border: 1px solid #d4b876;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  color: #5d4e1e;
  transition: all 0.2s ease;
  user-select: none;
  max-width: 100%;
}

.birth-cache-tag:hover {
  background: #fffaeb;
  border-color: #b8941f;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(184, 148, 31, 0.2);
}

.birth-cache-tag .tag-name {
  font-weight: 600;
  color: #5d4e1e;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birth-cache-tag .tag-summary {
  font-size: 11px;
  color: #999;
  font-family: monospace;
  white-space: nowrap;
}

.birth-cache-tag .tag-remove {
  width: 18px;
  height: 18px;
  border: none;
  background: #e0e0e0;
  color: #666;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.birth-cache-tag .tag-remove:hover {
  background: #c62828;
  color: #fff;
  transform: rotate(90deg);
}

.birth-cache-add {
  padding: 5px 12px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.birth-cache-add:hover {
  background: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.birth-cache-full {
  padding: 5px 12px;
  background: #f5f5f5;
  color: #999;
  border-radius: 18px;
  font-size: 12px;
  font-style: italic;
}

.birth-cache-hint {
  width: 100%;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-style: italic;
}

/* 移动端 */
@media (max-width: 768px) {
  .birth-cache-bar {
    padding: 10px 12px;
  }
  .birth-cache-label {
    font-size: 13px;
  }
  .birth-cache-tag .tag-summary {
    display: none;
  }
}
