/* ========================================
   星座运势查询网站 - 核心样式表
   独特配色方案：深紫+星空蓝+金色点缀
   ======================================== */

/* CSS变量定义 */
:root {
  --primary-deep: #1a0a2e;
  --primary-mid: #2d1b69;
  --primary-light: #5b3e9e;
  --accent-gold: #f0c040;
  --accent-warm: #e8a838;
  --accent-rose: #e85d75;
  --text-main: #e8e0f0;
  --text-secondary: #b8a8d0;
  --text-dark: #2a1a3e;
  --bg-card: rgba(45, 27, 105, 0.6);
  --bg-card-hover: rgba(91, 62, 158, 0.5);
  --border-glow: rgba(240, 192, 64, 0.3);
  --shadow-deep: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(240, 192, 64, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-heading: "Noto Serif SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--primary-deep);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(91,62,158,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45,27,105,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26,10,46,0.8) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 干扰标签区块 - 肉眼不可见 */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* 星空背景粒子 */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.starfield .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--max-opacity); transform: scale(1); }
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ========== 导航栏 ========== */
.site-nav {
  background: rgba(26, 10, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  padding: 0;
  z-index: 100;
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
  background: rgba(240, 192, 64, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 1px;
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-glow);
  color: var(--accent-gold);
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
  background: rgba(240, 192, 64, 0.1);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ========== 首页英雄区 ========== */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(240, 192, 64, 0.3);
  letter-spacing: 4px;
  line-height: 1.3;
}

.hero-section .hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-date {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

/* ========== 区块标题 ========== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2 span {
  color: var(--accent-gold);
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== 十二星座网格 ========== */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.zodiac-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.zodiac-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
  opacity: 0;
  transition: var(--transition-smooth);
}

.zodiac-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.zodiac-card:hover::before {
  opacity: 1;
}

.zodiac-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
}

.zodiac-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.zodiac-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.zodiac-brief {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 12px;
}

.zodiac-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.zodiac-rating .star-filled {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.zodiac-rating .star-empty {
  color: rgba(184, 168, 208, 0.3);
  font-size: 1.1rem;
}

/* 运势等级标签 */
.fortune-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.fortune-tag.excellent {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.fortune-tag.good {
  background: rgba(240, 192, 64, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(240, 192, 64, 0.3);
}

.fortune-tag.average {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.fortune-tag.caution {
  background: rgba(232, 93, 117, 0.2);
  color: var(--accent-rose);
  border: 1px solid rgba(232, 93, 117, 0.3);
}

/* ========== 本周星象解析 ========== */
.weekly-analysis {
  padding: 80px 0;
  position: relative;
}

.analysis-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
}

.analysis-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.analysis-card p {
  color: var(--text-main);
  line-height: 2;
  margin-bottom: 16px;
  text-indent: 2em;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.event-item {
  background: rgba(26, 10, 46, 0.6);
  border: 1px solid rgba(91, 62, 158, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-smooth);
}

.event-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.event-item h4 {
  color: var(--accent-warm);
  font-size: 1rem;
  margin-bottom: 8px;
}

.event-item p {
  font-size: 0.9rem;
  text-indent: 0;
  margin-bottom: 0;
}

/* ========== 专家点评 ========== */
.expert-section {
  padding: 80px 0;
}

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

.expert-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.expert-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.expert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  margin-bottom: 16px;
  object-fit: cover;
}

.expert-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.expert-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.expert-card blockquote {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.8;
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
  font-style: italic;
}

/* ========== 本地活动推荐 ========== */
.local-section {
  padding: 80px 0;
}

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

.local-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.local-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.local-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.local-card-body {
  padding: 20px;
}

.local-card-body h4 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.local-card-body .location {
  font-size: 0.85rem;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.local-card-body p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ========== 用户反馈 ========== */
.feedback-section {
  padding: 80px 0;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feedback-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.feedback-card:hover {
  border-color: var(--border-glow);
}

.feedback-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.feedback-user .name {
  font-weight: 600;
  color: var(--accent-gold);
}

.feedback-user .zodiac {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.feedback-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.feedback-stars {
  margin-top: 12px;
  color: var(--accent-gold);
}

/* ========== 内页通用 ========== */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(240, 192, 64, 0.2);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 运势详情卡片 */
.fortune-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.fortune-detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.fortune-detail-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.fortune-detail-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fortune-detail-card p {
  line-height: 1.9;
  color: var(--text-main);
  text-indent: 2em;
}

/* 时间维度切换 */
.time-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.time-tab {
  padding: 10px 28px;
  border: 1px solid rgba(91, 62, 158, 0.5);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.time-tab:hover,
.time-tab.active {
  background: rgba(240, 192, 64, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* 星座搭配推荐 */
.match-section {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.match-item {
  background: rgba(26, 10, 46, 0.5);
  border: 1px solid rgba(91, 62, 158, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.match-item:hover {
  border-color: var(--border-glow);
}

.match-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.match-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== 百科页面 ========== */
.wiki-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.wiki-content h2 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.6rem;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 192, 64, 0.2);
}

.wiki-content h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.2rem;
  margin: 32px 0 16px;
}

.wiki-content p {
  line-height: 2;
  margin-bottom: 16px;
  text-indent: 2em;
  color: var(--text-main);
}

.wiki-content .term-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.wiki-content .term-card dt {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.wiki-content .term-card dd {
  color: var(--text-main);
  line-height: 1.8;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: rgba(240, 192, 64, 0.05);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  line-height: 1.9;
  color: var(--text-main);
}

/* ========== 页脚 ========== */
.site-footer {
  background: rgba(10, 5, 20, 0.95);
  border-top: 1px solid rgba(91, 62, 158, 0.3);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3,
.footer-links h4 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-about p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(91, 62, 158, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(240, 192, 64, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(91, 62, 158, 0.2);
  padding-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== 评论区 ========== */
.comment-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(91, 62, 158, 0.3);
}

.comment-form {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 32px;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(26, 10, 46, 0.6);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition-smooth);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.comment-form button {
  margin-top: 12px;
  padding: 10px 32px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  border: none;
  border-radius: 50px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
}

/* ========== 动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .expert-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 10, 46, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border-glow);
    gap: 4px;
  }
  .mobile-menu-btn { display: block; }

  .hero-section { padding: 50px 0 40px; }
  .hero-section h1 { font-size: 1.8rem; letter-spacing: 2px; }

  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .zodiac-card { padding: 20px 14px; }
  .zodiac-icon { width: 48px; height: 48px; }

  .expert-cards,
  .local-cards {
    grid-template-columns: 1fr;
  }

  .feedback-cards {
    grid-template-columns: 1fr;
  }

  .fortune-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .analysis-card { padding: 24px; }
  .match-section { padding: 24px; }

  .time-tabs {
    flex-wrap: wrap;
  }

  .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-section h1 { font-size: 1.5rem; }
  .container { padding: 0 14px; }
}

/* ========== 懒加载图片 ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ========== 本地服务页面地图 ========== */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 24px 0;
}

/* ========== 服务卡片 ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(91, 62, 158, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.service-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 16px;
}

.btn-book {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  border: none;
  border-radius: 50px;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
}

/* ========== 隐私政策等文本页 ========== */
.text-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.text-page h2 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin: 36px 0 16px;
}

.text-page p {
  line-height: 2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.text-page ul {
  margin: 12px 0 12px 24px;
  color: var(--text-main);
}

.text-page li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 99;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(240, 192, 64, 0.2);
  transform: translateY(-3px);
}
