/* ============================================
   糖心占星塔罗与心灵疗愈 - 主样式表
   设计风格：深紫+金的神秘占星风格
   ============================================ */

:root {
  --q79: #4A148C;
  --a68: #CE93D8;
  --e83: #1A0A2E;
  --y39: #2D1B4E;
  --n14: #FFD700;
  --t5: #E8D5F5;
  --n11: #B39DDB;
  --a49: #3D2B5E;
  --g66: 16px;
  --g39: 0 8px 32px rgba(74,20,140,0.4);
  --y25: 0 4px 24px rgba(255,215,0,0.2);
  --w53: linear-gradient(135deg, #4A148C 0%, #7B1FA2 50%, #CE93D8 100%);
  --f26: linear-gradient(145deg, #2D1B4E 0%, #1A0A2E 100%);
  --x34: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  --w4: 'Noto Serif SC', 'STSong', serif;
  --m87: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --p34: 'Ma Shan Zheng', cursive;
  --f75: cubic-bezier(0.23, 1, 0.32, 1);
  --k53: cubic-bezier(0.77, 0, 0.175, 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(--m87);
  background-color: var(--e83);
  color: var(--t5);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 星空背景粒子 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,215,0,0.6), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(206,147,216,0.5), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,215,0,0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(206,147,216,0.3), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,215,0,0.5), transparent);
  background-size: 200px 150px;
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* 链接样式 */
a {
  color: var(--n14);
  text-decoration: none;
  transition: color 0.3s var(--f75), opacity 0.3s var(--f75);
}

a:hover {
  color: var(--a68);
  opacity: 0.9;
}

/* 图片响应式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============ 导航栏 ============ */
.v5j4g9 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 10, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--a49);
  padding: 0.75rem 0;
}

._ln5ks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rp-item {
  font-family: var(--w4);
  font-size: 1.4rem;
  color: var(--n14);
  font-weight: 700;
  white-space: nowrap;
}

.rp-item span {
  color: var(--a68);
}

.q5w9s7 {
  display: none;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .q5w9s7 {
    display: flex;
  }
}

.q5w9s7 a {
  color: var(--t5);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s var(--f75);
}

.q5w9s7 a:hover,
.q5w9s7 a.active {
  color: var(--n14);
  border-bottom-color: var(--n14);
}

.lq-foot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .lq-foot {
    display: none;
  }
}

.lq-foot span {
  width: 24px;
  height: 2px;
  background: var(--n14);
  border-radius: 2px;
  transition: transform 0.3s var(--f75);
}

.mv-flow {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 10, 46, 0.98);
  z-index: 999;
  padding: 4rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.mv-flow.active {
  display: flex;
}

.mv-flow a {
  font-size: 1.2rem;
  color: var(--t5);
  padding: 0.75rem;
}

._28vl8 {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--n14);
  font-size: 2rem;
  cursor: pointer;
}

/* ============ 首屏英雄区 ============ */
.v8o6k6 {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  overflow: hidden;
}

._9lhqm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

._rt3qx {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.zt-foot {
  font-family: var(--w4);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--n14);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(255,215,0,0.3);
  line-height: 1.3;
}

._oltyb {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--n11);
  margin-bottom: 2rem;
  line-height: 1.6;
}

._c6azm {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ 按钮 ============ */
.fn-list {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--g66);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--f75);
  text-decoration: none;
}

.fn-list:active {
  transform: scale(0.97);
}

._g3upt {
  background: var(--x34);
  color: #1A0A2E;
  box-shadow: var(--y25);
}

._g3upt:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,215,0,0.35);
  color: #1A0A2E;
}

.gk-chip {
  background: transparent;
  color: var(--n14);
  border: 2px solid var(--n14);
}

.gk-chip:hover {
  background: rgba(255,215,0,0.1);
  color: var(--n14);
}

/* ============ 区块标题 ============ */
._5i5y2 {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

._70sqe {
  text-align: center;
  margin-bottom: 3rem;
}

._1juaj {
  font-family: var(--w4);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--n14);
  margin-bottom: 0.75rem;
}

._10vun {
  color: var(--n11);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 星座卡片网格 ============ */
._fxkfb {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  ._fxkfb {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  ._fxkfb {
    grid-template-columns: repeat(6, 1fr);
  }
}

.z8d8h1 {
  background: var(--f26);
  border: 1px solid var(--a49);
  border-radius: var(--g66);
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s var(--f75);
  cursor: pointer;
}

.z8d8h1:hover {
  transform: translateY(-4px);
  border-color: var(--n14);
  box-shadow: var(--y25);
}

.t3q4y5 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.m9s3t8 {
  font-family: var(--w4);
  font-size: 1rem;
  color: var(--n14);
  margin-bottom: 0.25rem;
}

._vvvk7 {
  font-size: 0.75rem;
  color: var(--n11);
}

.b8e2j1 {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.b8e2j1 .g8k5g9 {
  color: var(--n14);
  font-size: 0.85rem;
}

/* ============ 塔罗牌 ============ */
.tx-line {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  perspective: 1000px;
}

._se1te {
  width: 180px;
  height: 300px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--k53);
}

._se1te._9fimx {
  transform: rotateY(180deg);
}

.sl-zone,
.i7w7g3 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--g66);
  overflow: hidden;
  border: 2px solid var(--a49);
}

.sl-zone {
  transform: rotateY(180deg);
  background: var(--y39);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.i7w7g3 {
  background: var(--f26);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pn-mark {
  width: 80%;
  height: 80%;
  border: 2px solid var(--n14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.sl-zone img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 8px;
}

.sl-zone ._kg1ym {
  margin-top: 0.5rem;
  font-family: var(--w4);
  color: var(--n14);
  font-size: 0.9rem;
}

/* ============ 运势评分条 ============ */
.z3q7k6 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.o6b7f5 {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fn-slot {
  min-width: 60px;
  font-size: 0.9rem;
  color: var(--n11);
}

.vw-chip {
  flex: 1;
  height: 8px;
  background: rgba(206,147,216,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.n5h6o4 {
  height: 100%;
  background: var(--x34);
  border-radius: 4px;
  transition: width 1.5s var(--f75);
  width: 0;
}

.n5h6o4.rp-pan {
  width: var(--y11);
}

/* ============ 内容卡片 ============ */
.vw-cell {
  background: var(--f26);
  border: 1px solid var(--a49);
  border-radius: var(--g66);
  padding: 1.5rem;
  transition: all 0.3s var(--f75);
}

.vw-cell:hover {
  border-color: var(--n14);
  box-shadow: var(--g39);
}

._3pxnj {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  ._3pxnj {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  ._3pxnj {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sl-foot {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--g66) - 4px);
  margin-bottom: 1rem;
}

._6wz6w {
  font-family: var(--w4);
  font-size: 1.1rem;
  color: var(--n14);
  margin-bottom: 0.5rem;
}

.i1h9y7 {
  color: var(--n11);
  font-size: 0.9rem;
  line-height: 1.6;
}

.i8q2h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--n11);
}

/* ============ 占卜师卡片 ============ */
.v9u9y3 {
  background: var(--f26);
  border: 1px solid var(--a49);
  border-radius: var(--g66);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s var(--f75);
}

.v9u9y3:hover {
  transform: translateY(-4px);
  box-shadow: var(--y25);
}

.tx-col {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--n14);
  margin: 0 auto 1rem;
}

.c4i2y5 {
  font-family: var(--w4);
  font-size: 1.1rem;
  color: var(--n14);
  margin-bottom: 0.25rem;
}

._0yqju {
  font-size: 0.85rem;
  color: var(--n11);
  margin-bottom: 0.75rem;
}

.rp-mark {
  color: var(--n14);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============ 冥想播放器 ============ */
.tx-list {
  background: var(--f26);
  border: 1px solid var(--a49);
  border-radius: var(--g66);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.xz-col {
  font-family: var(--w4);
  font-size: 3rem;
  color: var(--n14);
  margin: 1.5rem 0;
}

._23khp {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ============ FAQ 手风琴 ============ */
._pvtqg {
  max-width: 800px;
  margin: 0 auto;
}

.u8h5b5 {
  border-bottom: 1px solid var(--a49);
  padding: 1.2rem 0;
}

.h7d8d6 {
  font-family: var(--w4);
  font-size: 1rem;
  color: var(--t5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.h7d8d6::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--n14);
  transition: transform 0.3s var(--f75);
}

.u8h5b5.active .h7d8d6::after {
  transform: rotate(180deg);
}

.q9p7i1 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--f75), padding 0.4s var(--f75);
  color: var(--n11);
  font-size: 0.9rem;
  line-height: 1.7;
}

.u8h5b5.active .q9p7i1 {
  max-height: 300px;
  padding-top: 1rem;
}

/* ============ 面包屑 ============ */
.hp-slot {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--n11);
}

.hp-slot a {
  color: var(--a68);
}

.hp-slot span {
  margin: 0 0.5rem;
  color: var(--n11);
}

/* ============ 页脚 ============ */
._do2de {
  background: rgba(26, 10, 46, 0.95);
  border-top: 1px solid var(--a49);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.s5c6k6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .s5c6k6 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.z5v3b4 {
  font-family: var(--w4);
  font-size: 1.3rem;
  color: var(--n14);
  margin-bottom: 0.75rem;
}

._3ya3o {
  color: var(--n11);
  font-size: 0.85rem;
  line-height: 1.6;
}

._etlq2 {
  font-family: var(--w4);
  font-size: 1rem;
  color: var(--n14);
  margin-bottom: 1rem;
}

.o8d6q6 {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.o8d6q6 a {
  color: var(--n11);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.o8d6q6 a:hover {
  color: var(--n14);
}

.xz-list {
  border-top: 1px solid var(--a49);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--n11);
}

.xz-list a {
  color: var(--a68);
}

/* ============ 星盘图 ============ */
._cr0la {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  border: 2px solid var(--n14);
  background: radial-gradient(circle, var(--y39) 0%, var(--e83) 100%);
}

._4n7je {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--a49);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

._4n7je:nth-child(1) {
  width: 90%;
  height: 90%;
}

._4n7je:nth-child(2) {
  width: 70%;
  height: 70%;
}

._4n7je:nth-child(3) {
  width: 50%;
  height: 50%;
}

/* ============ 页面内容区 ============ */
.nf-zone {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

._rauf2 {
  font-family: var(--w4);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--n14);
  margin-bottom: 1rem;
}

._8cp8j {
  color: var(--n11);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* ============ 搜索框 ============ */
.w8g9x7 {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.q7t4r9 {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3.5rem;
  background: var(--y39);
  border: 2px solid var(--a49);
  border-radius: var(--g66);
  color: var(--t5);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s var(--f75);
}

.q7t4r9:focus {
  border-color: var(--n14);
}

.q7t4r9::placeholder {
  color: var(--n11);
}

.gk-head {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--n14);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============ 合规页面 ============ */
.jm-pill {
  max-width: 800px;
  margin: 0 auto;
}

.jm-pill h2 {
  font-family: var(--w4);
  font-size: 1.3rem;
  color: var(--n14);
  margin: 2rem 0 1rem;
}

.jm-pill h3 {
  font-size: 1.1rem;
  color: var(--a68);
  margin: 1.5rem 0 0.75rem;
}

.jm-pill p {
  color: var(--n11);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.jm-pill ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--n11);
  margin-bottom: 1rem;
}

.jm-pill ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============ APP下载页 ============ */
.dk-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dk-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lq-line {
  background: var(--f26);
  border: 1px solid var(--a49);
  border-radius: var(--g66);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vw-area {
  font-size: 2rem;
  flex-shrink: 0;
}

.m9z1x8 {
  font-family: var(--w4);
  color: var(--n14);
  margin-bottom: 0.25rem;
}

.bx-zone {
  font-size: 0.9rem;
  color: var(--n11);
}

/* ============ 404页面 ============ */
._7n7ho {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.lq-tag {
  font-family: var(--w4);
  font-size: 6rem;
  color: var(--n14);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 60px rgba(255,215,0,0.3);
}

.j4e1z9 {
  font-size: 1.2rem;
  color: var(--n11);
  margin-bottom: 2rem;
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255,215,0,0); }
}

._dwoqn {
  animation: fadeInUp 0.6s var(--f75) forwards;
  opacity: 0;
}

.z5e8g2 { animation-delay: 0.1s; }
._xjs4b { animation-delay: 0.2s; }
.gk-grid { animation-delay: 0.3s; }
.wd-box { animation-delay: 0.4s; }

/* ============ 响应式减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 表格 ============ */
._9vttt {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

._9vttt th,
._9vttt td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--a49);
  text-align: left;
}

._9vttt th {
  background: var(--y39);
  color: var(--n14);
  font-family: var(--w4);
}

._9vttt td {
  color: var(--n11);
}

/* ============ 标签 ============ */
.bw-unit {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(206,147,216,0.15);
  border: 1px solid var(--a49);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--a68);
  margin: 0.25rem;
}

/* ============ 分割线 ============ */
.o4e7h4 {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--a49), transparent);
  margin: 2rem 0;
}
