/* ============================================
   猫婆 — 高端易经风水命理咨询
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Serif Fallback';
  src: local('SimSun'), local('STSong'), local('Songti SC');
}

/* --- Variables --- */
:root {
  --gold: #c9a96e;
  --gold-50: rgba(201, 169, 110, 0.5);
  --gold-20: rgba(201, 169, 110, 0.2);
  --gold-10: rgba(201, 169, 110, 0.1);
  --gold-05: rgba(201, 169, 110, 0.05);
  --gold-light: #e0c992;
  --gold-dark: #a68a4b;
  --black: #0a0806;
  --dark: #12100c;
  --dark-2: #1a1610;
  --dark-3: #221e16;
  --dark-4: #2a2518;
  --cream: #f5f0e6;
  --cream-50: rgba(245, 240, 230, 0.5);
  --text: #c8c0b0;
  --text-dim: #8a8070;
  --font-serif: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bagua {
  font-size: 3rem;
  color: var(--gold);
  animation: loaderSpin 2s linear infinite;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); opacity: 1; }
  50% { opacity: 0.4; }
  to { transform: rotate(360deg); opacity: 1; }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 32px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 8, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--gold-10);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:not(.nav-cta):hover {
  color: var(--gold);
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-menu a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  color: var(--black) !important;
  background: var(--gold);
  padding: 8px 24px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}

.hero-bagua-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.03;
  font-size: 600px;
  line-height: 1;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slowRotate 120s linear infinite;
}

.hero-bagua-bg::before {
  content: '☯';
}

@keyframes slowRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero-top-line {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-50);
  letter-spacing: 10px;
  margin-bottom: 32px;
}

.hero-title {
  margin-bottom: 28px;
}

.title-line {
  display: block;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 16px;
  line-height: 1.3;
  text-shadow: 0 0 80px rgba(201, 169, 110, 0.15);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-50), transparent);
}

.divider-icon {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.6;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dim);
  letter-spacing: 8px;
  margin-bottom: 48px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 169, 110, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-20);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-05);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-50), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   Labels & Headings
   ============================================ */
.label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.label.center { text-align: center; }

.heading-lg {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.heading-lg.center {
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 60px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header .heading-lg {
  margin-bottom: 16px;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 140px 0;
  background: var(--dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-20), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.visual-frame {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagua-wheel {
  position: absolute;
  inset: 0;
  animation: slowRotate 60s linear infinite;
}

.bagua-svg {
  width: 100%;
  height: 100%;
}

.visual-text-overlay {
  position: relative;
  z-index: 2;
}

.overlay-char {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 900;
  color: var(--gold-20);
  text-shadow: 0 0 60px rgba(201, 169, 110, 0.1);
  user-select: none;
}

.about-content .heading-lg {
  margin-bottom: 24px;
}

.about-desc {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 36px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gold-10);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags li {
  padding: 6px 18px;
  border: 1px solid var(--gold-20);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 140px 0;
  background: var(--black);
  position: relative;
}

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

.service-card {
  position: relative;
  padding: 44px 32px;
  background: var(--dark);
  border: 1px solid var(--gold-10);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--gold-20);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-50), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  color: var(--gold);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.service-card > p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 1px;
  padding-left: 16px;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ============================================
   Process
   ============================================ */
.process {
  padding: 140px 0;
  background: var(--dark);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-20), transparent);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
}

.step-connector span {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-20), var(--gold-50), var(--gold-20));
}

/* ============================================
   Wisdom
   ============================================ */
.wisdom {
  padding: 140px 0;
  background: var(--black);
  position: relative;
}

.wisdom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.wisdom-card {
  padding: 40px 32px;
  border: 1px solid var(--gold-10);
  transition: border-color 0.3s, background 0.3s;
}

.wisdom-card:hover {
  border-color: var(--gold-20);
  background: var(--dark);
}

.wisdom-num {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.7;
}

.wisdom-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.wisdom-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 2;
}

.wisdom-quote {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--gold-10);
  border-bottom: 1px solid var(--gold-10);
}

.wisdom-quote p {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 6px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.wisdom-quote cite {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 3px;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 140px 0;
  background: var(--dark);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-20), transparent);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info .heading-lg {
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.contact-wechat {
  margin-bottom: 36px;
}

.wechat-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--dark-3);
  border: 1px solid var(--gold-20);
}

.wechat-icon {
  color: #07c160;
  display: flex;
}

.wechat-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.wechat-id {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

.contact-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.note-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Contact Decoration */
.deco-frame {
  aspect-ratio: 1;
  border: 1px solid var(--gold-10);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.deco-frame::before,
.deco-frame::after {
  content: '';
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 1px solid var(--gold-05);
}

.deco-content {
  text-align: center;
}

.deco-trigram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.deco-trigram span {
  font-size: 1.8rem;
  color: var(--gold-20);
  transition: color 0.3s;
}

.deco-trigram span:nth-child(5) {
  color: var(--gold-50);
  font-size: 2.2rem;
}

.deco-frame:hover .deco-trigram span {
  color: var(--gold-50);
}

.deco-text p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 8px;
  line-height: 2;
  opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0;
  background: var(--black);
  border-top: 1px solid var(--gold-10);
}

.footer-top {
  text-align: center;
  margin-bottom: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .logo-icon { font-size: 1.2rem; color: var(--gold); }
.footer-brand .logo-text { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 4px; font-weight: 700; }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 4px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-10), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 1px;
}

/* ============================================
   Reveal Animation
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .visual-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .deco-frame {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav { padding: 0 20px; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 80px;
    background: rgba(10, 8, 6, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }

  .title-line {
    font-size: 2.8rem;
    letter-spacing: 10px;
  }

  .hero-top-line {
    font-size: 0.8rem;
    letter-spacing: 6px;
  }

  .hero-sub {
    font-size: 0.95rem;
    letter-spacing: 5px;
  }

  .heading-lg {
    font-size: 1.8rem;
  }

  .about, .services, .process, .wisdom, .contact {
    padding: 100px 0;
  }

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

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

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-connector {
    padding: 16px 0;
  }

  .step-connector span {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-20), var(--gold-50), var(--gold-20));
  }

  .about-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .wisdom-quote p {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }

  .wechat-badge {
    padding: 16px 24px;
  }

  .wechat-id {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .title-line {
    font-size: 2.2rem;
    letter-spacing: 8px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .about-stats {
    flex-wrap: wrap;
  }
}

/* --- Google Fonts fallback: load via CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
