/* 糖心情感电台与树洞社区 - 深夜星空治愈风格 */
:root {
  --v74: #1A237E;
  --a40: #5C6BC0;
  --t3: #0D1B2A;
  --v75: #1B2838;
  --y85: #FFD54F;
  --z88: #E0E0E0;
  --n45: #9E9E9E;
  --w56: 24px;
  --p28: 0 8px 32px rgba(26, 35, 126, 0.4);
  --u69: 'Noto Serif SC', serif;
  --m8: 'Noto Serif SC', serif;
  --a21: 'ZCOOL XiaoWei', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--m8);
  background-color: var(--t3);
  color: var(--z88);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.hp-body {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle var(--p7, 3s) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* 导航栏 */
.cy-list {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 107, 192, 0.2);
  padding: 0.8rem 2rem;
}

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

.lq-col {
  font-family: var(--u69);
  font-size: 1.4rem;
  color: var(--y85);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lq-col svg {
  width: 28px;
  height: 28px;
}

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

.e2n5q1 a {
  color: var(--z88);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

.e2n5q1 a:hover,
.e2n5q1 a.active {
  color: var(--y85);
}

.e2n5q1 a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--y85);
  transition: width 0.3s;
}

.e2n5q1 a:hover::after {
  width: 100%;
}

._713ti {
  display: none;
  background: none;
  border: none;
  color: var(--z88);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 首屏英雄区 */
.qr-list {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

._v1djl {
  font-family: var(--u69);
  font-size: 3.2rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 40px rgba(255, 213, 79, 0.3);
}

._qbmfj {
  font-size: 1.2rem;
  color: var(--n45);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 2;
}

.hp-col {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

._p80v4 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--a40), var(--v74));
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

._p80v4:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 107, 192, 0.5);
}

.xz-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--y85);
  border: 1px solid var(--y85);
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.xz-card:hover {
  background: var(--y85);
  color: var(--t3);
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 区块标题 */
.b3u7k1 {
  padding: 4rem 0;
}

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

.g3d4m9 {
  font-family: var(--u69);
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.o7v2d6 {
  color: var(--n45);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* 卡片网格 */
._rdv9u {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.xz-head {
  background: var(--v75);
  border-radius: var(--w56);
  padding: 1.8rem;
  box-shadow: var(--p28);
  border: 1px solid rgba(92, 107, 192, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.xz-head:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 35, 126, 0.6);
}

.hp-grid {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--w56) - 8px);
  margin-bottom: 1rem;
}

._6sdzv {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(92, 107, 192, 0.2);
  color: var(--a40);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.z3h3t5 {
  font-family: var(--u69);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

._i416m {
  color: var(--n45);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

/* 电台播放器 */
._dd21c {
  background: var(--v75);
  border-radius: var(--w56);
  padding: 2rem;
  box-shadow: var(--p28);
  border: 1px solid rgba(255, 213, 79, 0.2);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.z7r5c8 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--y85);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.qr-flow {
  flex: 1;
}

.k5s4e7 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.tx-box {
  font-size: 0.85rem;
  color: var(--y85);
}

.n4s1y2 {
  font-size: 0.8rem;
  color: var(--n45);
  margin-top: 0.3rem;
}

.gk-box {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.k1v4u5 {
  width: 4px;
  background: var(--y85);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.k1v4u5:nth-child(1) { height: 20px; animation-delay: 0s; }
.k1v4u5:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.k1v4u5:nth-child(3) { height: 15px; animation-delay: 0.2s; }
.k1v4u5:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.k1v4u5:nth-child(5) { height: 25px; animation-delay: 0.4s; }
.k1v4u5:nth-child(6) { height: 18px; animation-delay: 0.5s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* 树洞投稿框 */
._wpn58 {
  background: var(--v75);
  border-radius: var(--w56);
  padding: 2rem;
  box-shadow: var(--p28);
  border: 1px solid rgba(92, 107, 192, 0.2);
}

._wpn58 textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid rgba(92, 107, 192, 0.3);
  border-radius: 16px;
  padding: 1.2rem;
  color: var(--z88);
  font-family: var(--a21);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}

._wpn58 textarea:focus {
  border-color: var(--y85);
}

._wpn58 textarea::placeholder {
  color: var(--n45);
}

._yxu5a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.r2n4s4 {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(92, 107, 192, 0.3);
  background: transparent;
  color: var(--n45);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.r2n4s4:hover,
.r2n4s4.active {
  background: var(--a40);
  color: #ffffff;
  border-color: var(--a40);
}

.fn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

._bfsxw {
  font-size: 0.8rem;
  color: var(--n45);
}

/* 暖心语录 */
.dk-chip {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.4), rgba(92, 107, 192, 0.2));
  border-radius: var(--w56);
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(255, 213, 79, 0.15);
  margin: 2rem 0;
}

.o4j7b3 {
  font-family: var(--u69);
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 300;
  line-height: 2;
  margin-bottom: 1rem;
}

.tx-item {
  color: var(--y85);
  font-size: 0.9rem;
}

/* 暖心回复墙 */
.d3p1e1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.g3l6n6 {
  background: rgba(27, 40, 56, 0.8);
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid rgba(92, 107, 192, 0.1);
}

.hp-mark {
  font-family: var(--a21);
  color: var(--z88);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

._9czag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--n45);
}

.nf-line {
  color: var(--y85);
}

/* 面包屑 */
.qr-body {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--n45);
}

.qr-body a {
  color: var(--a40);
  text-decoration: none;
}

.qr-body a:hover {
  color: var(--y85);
}

.qr-body span {
  margin: 0 0.5rem;
}

/* 页脚 */
._3xifc {
  background: rgba(13, 27, 42, 0.95);
  border-top: 1px solid rgba(92, 107, 192, 0.2);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

._685zi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

._5npqp h4 {
  color: var(--y85);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

._5npqp a {
  display: block;
  color: var(--n45);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

._5npqp a:hover {
  color: var(--y85);
}

.b7t4s7 {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 107, 192, 0.15);
  color: var(--n45);
  font-size: 0.8rem;
}

.b7t4s7 a {
  color: var(--a40);
  text-decoration: none;
}

/* 页面内容区 */
.k7k1z1 {
  padding-top: 5rem;
  min-height: 80vh;
}

.b9m3c3 {
  text-align: center;
  padding: 3rem 0;
}

.b9m3c3 h1 {
  font-family: var(--u69);
  font-size: 2.4rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 1rem;
}

.b9m3c3 p {
  color: var(--n45);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ区块 */
.a7j3o5 {
  max-width: 800px;
  margin: 0 auto;
}

._0bbke {
  background: var(--v75);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(92, 107, 192, 0.15);
}

._y0qzo {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 1rem;
}

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

._0bbke.open ._y0qzo::after {
  transform: rotate(180deg);
}

._5njmm {
  padding: 0 1.5rem 1.2rem;
  color: var(--n45);
  font-size: 0.9rem;
  line-height: 1.8;
  display: none;
}

._0bbke.open ._5njmm {
  display: block;
}

/* 搜索页 */
.wd-box {
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.wd-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3rem;
  background: var(--v75);
  border: 1px solid rgba(92, 107, 192, 0.3);
  border-radius: 50px;
  color: var(--z88);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.wd-box input:focus {
  border-color: var(--y85);
}

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

._qfgkd {
  max-width: 800px;
  margin: 2rem auto;
}

.m5o4o7 {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(92, 107, 192, 0.1);
}

.m5o4o7 h3 a {
  color: var(--a40);
  text-decoration: none;
  font-size: 1.1rem;
}

.m5o4o7 p {
  color: var(--n45);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

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

.gk-card {
  font-size: 8rem;
  font-weight: 300;
  color: var(--a40);
  opacity: 0.5;
  line-height: 1;
}

.fn-line {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 1rem 0;
}

/* 咨询师列表 */
.bx-unit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.q3s5q1 {
  background: var(--v75);
  border-radius: var(--w56);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(92, 107, 192, 0.15);
}

.w9v6w3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--a40);
}

._22s96 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.h5j7g7 {
  color: var(--y85);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* 测试卡片 */
.bx-foot {
  background: var(--v75);
  border-radius: var(--w56);
  padding: 1.8rem;
  border: 1px solid rgba(92, 107, 192, 0.15);
  text-align: center;
}

.qr-row {
  color: var(--y85);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
}

/* 打字机效果 */
.vw-unit {
  overflow: hidden;
  border-right: 2px solid var(--y85);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--y85); }
}

/* 社区公约 */
.fn-foot {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(13, 27, 42, 0.8));
  border-radius: var(--w56);
  padding: 2.5rem;
  border: 1px solid rgba(255, 213, 79, 0.1);
}

.m6e3g4 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

._v2f9v {
  color: var(--y85);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.bw-unit {
  color: var(--z88);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* APP下载区 */
.dk-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.j1b8g5 {
  list-style: none;
}

.j1b8g5 li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--z88);
}

.j1b8g5 li::before {
  content: '✦';
  color: var(--y85);
}

/* 响应式 */
@media (max-width: 768px) {
  .e2n5q1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .e2n5q1.show {
    display: flex;
  }

  ._713ti {
    display: block;
  }

  ._v1djl {
    font-size: 2rem;
  }

  ._qbmfj {
    font-size: 1rem;
  }

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

  ._dd21c {
    flex-direction: column;
    text-align: center;
  }

  .dk-note {
    grid-template-columns: 1fr;
  }

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

  .g3d4m9 {
    font-size: 1.6rem;
  }

  .o4j7b3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  ._685zi {
    grid-template-columns: 1fr;
  }

  .hp-col {
    flex-direction: column;
  }

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

/* 页面过渡动画 */
._o09i5 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

._o09i5.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 内页通用 */
.x6y2d3 {
  padding-top: 5rem;
}

.vw-chip {
  margin-bottom: 3rem;
}

.vw-chip h2 {
  font-family: var(--u69);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 400;
}

.vw-chip p {
  color: var(--z88);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* 标签云 */
.cy-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cy-foot a {
  padding: 0.3rem 1rem;
  background: rgba(92, 107, 192, 0.15);
  color: var(--a40);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.cy-foot a:hover {
  background: var(--a40);
  color: #ffffff;
}

/* 专题页横幅 */
.e6n2e5 {
  background: linear-gradient(135deg, var(--v74), var(--a40));
  border-radius: var(--w56);
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.e6n2e5 h1 {
  font-family: var(--u69);
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 1rem;
}

.e6n2e5 p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}
