/* ========== 算命网站 CSS 样式 ========== */

/* 字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&family=Ma+Shan+Zheng&display=swap');

/* CSS 变量 */
:root {
  --primary: #8b2942;
  --primary-dark: #6b1d30;
  --secondary: #c9a45c;
  --accent: #d4af37;
  --gold: linear-gradient(135deg, #d4af37 0%, #f5d78e 50%, #d4af37 100%);
  
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(201, 164, 92, 0.15);
  --text-primary: #f5f0e6;
  --text-secondary: #c9b99a;
  --text-muted: #8a7d6a;
  
  --radius: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 白天模式 */
[data-theme="light"] {
  --bg-primary: #faf6f0;
  --bg-secondary: #f5efe5;
  --bg-card: rgba(139, 41, 66, 0.05);
  --bg-card-hover: rgba(139, 41, 66, 0.08);
  --border: rgba(139, 41, 66, 0.1);
  --text-primary: #2d1810;
  --text-secondary: #5c4a3d;
  --text-muted: #8a7d6a;
}

/* 重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 去掉所有a标签下划线 */
a {
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ========== 背景效果 ========== */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 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='%23c9a45c' fill-opacity='0.03'%3E%3Cpath d='M30 30l15-15v30L30 30zm0 0L15 15v30l15-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 41, 66, 0.4) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.3) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(250, 246, 240, 0.95);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 246, 240, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  position: relative;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 28px;
  color: var(--secondary);
  text-shadow: 0 2px 10px rgba(201, 164, 92, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  background: var(--bg-card);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(201, 164, 92, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 164, 92, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: #1a1a1a;
}

/* ========== Hero 区域 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--secondary) 0%, #f5d78e 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 40px;
  font-size: 16px;
}

.hero-features {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.hero-feature {
  text-align: center;
}

.hero-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.hero-feature-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 八卦展示 ========== */
.bagua-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bagua-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.bagua-circle {
  position: absolute;
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.bagua-outer {
  inset: 0;
  border: 4px solid var(--secondary);
  box-shadow: 
    0 0 60px rgba(201, 164, 92, 0.2),
    inset 0 0 60px rgba(201, 164, 92, 0.1);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bagua-inner {
  inset: 20px;
  border: 2px solid var(--secondary);
  opacity: 0.6;
}

.bagua-yin {
  inset: 60px;
  background: var(--bg-card);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.bagua-symbol {
  position: absolute;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 28px;
  color: var(--secondary);
}

.bagua-symbol.taiji {
  inset: 100px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagua-orbit {
  position: absolute;
  inset: 140px;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: rotateReverse 20s linear infinite;
}

@keyframes rotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.bagua-words {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bagua-word {
  position: absolute;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--secondary);
  opacity: 0.8;
}

.bagua-word:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.bagua-word:nth-child(2) { top: 25%; right: 0; }
.bagua-word:nth-child(3) { top: 50%; right: 10px; transform: translateY(-50%); }
.bagua-word:nth-child(4) { bottom: 25%; right: 0; }
.bagua-word:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.bagua-word:nth-child(6) { bottom: 25%; left: 0; }
.bagua-word:nth-child(7) { top: 50%; left: 10px; transform: translateY(-50%); }
.bagua-word:nth-child(8) { top: 25%; left: 0; }

/* ========== 算命服务 ========== */
.services {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 42px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(201, 164, 92, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(139, 41, 66, 0.2) 0%, rgba(201, 164, 92, 0.2) 100%);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
  background: var(--gold);
}

.service-card:hover .service-icon span {
  filter: grayscale(100%);
  opacity: 0;
}

.service-card:hover .service-icon::after {
  content: '✧';
  position: absolute;
  font-size: 36px;
  color: #1a1a1a;
}

.service-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-price {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.service-price strong {
  font-size: 24px;
  font-weight: 700;
}

.service-btn {
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 14px;
}

.service-btn:hover {
  background: var(--gold);
  border-color: transparent;
  color: #1a1a1a;
}

/* ========== 名师大师 ========== */
.masters {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 41, 66, 0.05) 50%, transparent 100%);
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.master-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .master-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.master-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(201, 164, 92, 0.15);
}

.master-image {
  height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.master-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
}

.master-info {
  padding: 24px;
  text-align: center;
}

.master-name {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.master-title {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.master-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.master-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.master-stat i {
  color: var(--secondary);
}

/* ========== 用户评价 ========== */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .testimonial-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 4px;
}

.testimonial-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 48px;
  color: var(--secondary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 20px;
  color: #1a1a1a;
}

.testimonial-info h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.1) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.cta-btn {
  padding: 16px 48px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  border-radius: 32px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ========== 页脚 ========== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
}

.footer-logo-text {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--secondary);
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 主题切换 ========== */
.theme-toggle {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.theme-btn:hover {
  transform: scale(1.1);
  border-color: var(--secondary);
}

.theme-btn.sun { display: none; }
.theme-btn.moon { display: flex; }

[data-theme="light"] .theme-btn.sun { display: flex; }
[data-theme="light"] .theme-btn.moon { display: none; }

.theme-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--secondary);
}

/* ========== 加载动画 ========== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-symbol {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 64px;
  color: var(--secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ========== 搜索框 ========== */
.search-container {
  position: relative;
  margin-left: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: var(--transition);
  width: 240px;
}

.search-box:focus-within {
  border-color: var(--secondary);
  width: 280px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  display: none;
  z-index: 100;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.search-result-info h4 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.search-result-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .bagua-container {
    order: -1;
  }

  .bagua-wrapper {
    width: 300px;
    height: 300px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .search-container {
    margin-left: 12px;
  }

  .search-box {
    width: 180px;
    padding: 6px 12px;
  }

  .search-box:focus-within {
    width: 200px;
  }

  .search-box input {
    font-size: 13px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-features {
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-grid,
  .masters-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 36px;
  }

  .theme-toggle {
    top: auto;
    bottom: 24px;
    right: 16px;
    flex-direction: row;
  }

  .bagua-wrapper {
    width: 250px;
    height: 250px;
  }
}
