/* ============================================
   糖心健身打卡与运动社区 - 核心样式表
   设计风格：活力绿+黑 专业运动风格
   ============================================ */

:root {
  --m62: #00C853;
  --t75: #B9F6CA;
  --j46: #0D1117;
  --n70: #1C2333;
  --u11: #FF6D00;
  --g23: #E0E0E0;
  --v7: #9E9E9E;
  --h29: 12px;
  --y97: 0 4px 20px rgba(0, 200, 83, 0.2);
  --q47: 0 4px 20px rgba(255, 109, 0, 0.2);
  --g71: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --y29: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --p48: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --m48: 'JetBrains Mono', 'Courier New', monospace;
}

/* 重置与基础 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--p48);
  background-color: var(--j46);
  color: var(--g23);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--m62);
  text-decoration: none;
  transition: var(--g71);
}

a:hover {
  color: var(--t75);
  text-decoration: underline;
}

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

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

/* 导航栏 */
._r25pw {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 200, 83, 0.1);
  padding: 0.75rem 0;
}

._r25pw .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b1y7a7 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--m62);
  letter-spacing: -0.02em;
}

._tmsx9 {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

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

._tmsx9 a {
  color: var(--g23);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

._tmsx9 a::after {
  vw-line: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--m62);
  transition: width 0.3s ease;
}

._tmsx9 a:hover {
  color: var(--m62);
  text-decoration: none;
}

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

._jhn5w {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

._jhn5w span {
  width: 24px;
  height: 2px;
  background: var(--g23);
  border-radius: 2px;
  transition: var(--g71);
}

/* 移动端菜单 */
._f15n8 {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.98);
  padding: 1.5rem;
  z-index: 999;
  border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}

._f15n8.active {
  display: block;
}

._f15n8 a {
  display: block;
  padding: 0.75rem 0;
  color: var(--g23);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 首屏英雄区 */
._jy6jv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.b4e1n3 {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.b4e1n3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

._mwxqu {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.6) 100%);
  z-index: 1;
}

.rp-grid {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

._jy6jv h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--m62), var(--t75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

._jy6jv p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--v7);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* 按钮系统 */
.bx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--h29);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--g71);
  text-decoration: none;
}

.bx-tag:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.bx-tag:active {
  transform: scale(0.97);
}

.bw-flow {
  background: var(--m62);
  color: #0D1117;
  box-shadow: var(--y97);
}

.bw-flow:hover {
  background: #00E676;
  color: #0D1117;
  box-shadow: 0 8px 30px rgba(0, 200, 83, 0.35);
}

.c1o7u6 {
  background: var(--u11);
  color: #fff;
  box-shadow: var(--q47);
}

.c1o7u6:hover {
  background: #FF8F00;
  color: #fff;
}

.fn-card {
  background: transparent;
  color: var(--m62);
  border: 2px solid var(--m62);
}

.fn-card:hover {
  background: var(--m62);
  color: #0D1117;
}

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

._jq1vd {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.bw-grid {
  color: var(--v7);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* 卡片系统 */
.l1a1j6 {
  background: var(--n70);
  border-radius: var(--h29);
  padding: 1.5rem;
  border: 1px solid rgba(0, 200, 83, 0.08);
  transition: var(--g71);
}

.l1a1j6:hover {
  border-color: rgba(0, 200, 83, 0.25);
  box-shadow: var(--y97);
  transform: translateY(-4px);
}

/* 网格布局 */
._t1qi2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

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

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

.w1p5e2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

/* 环形进度条 */
.ring-progress {
  position: relative;
  width: 160px;
  height: 160px;
}

.ring-progress svg {
  transform: rotate(-90deg);
}

.ring-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.ring-progress .ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-progress .ring-fill {
  stroke: var(--m62);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ring-progress .ring-fill._o3zn9 {
  stroke-dashoffset: 0;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center .hp-grid {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--m48);
  color: #fff;
}

.ring-center ._yhayh {
  font-size: 0.75rem;
  color: var(--v7);
}

/* 打卡日历热力图 */
._r438j {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

._ohpss {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(0, 200, 83, 0.05);
  transition: var(--g71);
}

._ohpss.fn-pill { background: rgba(0, 200, 83, 0.2); }
._ohpss._rkt80 { background: rgba(0, 200, 83, 0.4); }
._ohpss.n4w6w4 { background: rgba(0, 200, 83, 0.6); }
._ohpss.e2m9r3 { background: rgba(0, 200, 83, 0.85); }

/* 进度条 */
.pn-item {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.wd-chip {
  height: 100%;
  background: linear-gradient(90deg, var(--m62), var(--t75));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 数据卡片 */
._xp8ip {
  text-align: center;
  padding: 1.5rem 1rem;
}

.e8h1s8 {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--m48);
  color: var(--m62);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.d6g8g5 {
  font-size: 0.85rem;
  color: var(--v7);
}

/* 排行榜 */
.xz-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.5rem;
  transition: var(--g71);
}

.xz-note:hover {
  background: rgba(0, 200, 83, 0.05);
}

.lq-pill {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--m48);
  color: var(--u11);
  min-width: 2rem;
}

._nvd07 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--m62);
}

.w9j6s2 {
  flex: 1;
}

.sl-flow {
  font-weight: 600;
  font-size: 0.9rem;
}

._xgx6v {
  font-size: 0.8rem;
  color: var(--v7);
}

/* 课程卡片 */
._b3uf4 {
  overflow: hidden;
  border-radius: var(--h29);
}

.dk-head {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.dk-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

._b3uf4:hover .dk-head img {
  transform: scale(1.05);
}

.nf-line {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--u11);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sl-head {
  padding: 1.25rem;
}

.h3v8x3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

._emt1r {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--v7);
}

/* 教练卡片 */
.a4a6o6 {
  text-align: center;
  padding: 2rem 1.5rem;
}

._d1rf2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--m62);
  object-fit: cover;
}

._8do2a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

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

/* 计时器 */
.bw-item {
  text-align: center;
  padding: 2rem;
}

._lr0hl {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--m48);
  color: var(--m62);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

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

/* 面包屑 */
.zt-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--v7);
  margin-top: 70px;
}

.zt-foot a {
  color: var(--v7);
}

.zt-foot a:hover {
  color: var(--m62);
}

.zt-foot span {
  color: var(--g23);
}

/* 页脚 */
.t6m4g8 {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 200, 83, 0.08);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

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

._6gcf8 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--m62);
  margin-bottom: 0.75rem;
}

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

.m8c4i5 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.e2c7p2 {
  list-style: none;
}

.e2c7p2 li {
  margin-bottom: 0.5rem;
}

.e2c7p2 a {
  color: var(--v7);
  font-size: 0.85rem;
}

.e2c7p2 a:hover {
  color: var(--m62);
}

._qnuaq {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--v7);
}

/* FAQ */
.a9a7a1 {
  border: 1px solid rgba(0, 200, 83, 0.08);
  border-radius: var(--h29);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.r5f5e7 {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--n70);
  transition: var(--g71);
}

.r5f5e7:hover {
  background: rgba(0, 200, 83, 0.05);
}

.gk-box {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--v7);
  line-height: 1.8;
}

.a9a7a1.active .gk-box {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* 标签 */
.k4w2x3 {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0, 200, 83, 0.1);
  color: var(--m62);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.bw-unit {
  background: rgba(255, 109, 0, 0.1);
  color: var(--u11);
  border-color: rgba(255, 109, 0, 0.2);
}

/* 搜索框 */
.rp-list {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hp-flow {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3.5rem;
  background: var(--n70);
  border: 2px solid rgba(0, 200, 83, 0.15);
  border-radius: var(--h29);
  color: var(--g23);
  font-size: 1rem;
  outline: none;
  transition: var(--g71);
}

.hp-flow:focus {
  border-color: var(--m62);
  box-shadow: var(--y97);
}

.hp-flow::placeholder {
  color: var(--v7);
}

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

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 200, 83, 0); }
}

.r2l7e2 {
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* 页面内容区 */
._deec3 {
  padding: 5rem 0 2rem;
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.03) 0%, transparent 100%);
}

._deec3 h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

._deec3 p {
  color: var(--v7);
  max-width: 600px;
  font-size: 1rem;
}

/* 内容文本 */
.vw-line {
  line-height: 2;
  color: var(--g23);
}

.vw-line h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
}

.vw-line h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--t75);
  margin: 1.5rem 0 0.75rem;
}

.vw-line p {
  margin-bottom: 1rem;
}

.vw-line ul, .vw-line ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.vw-line li {
  margin-bottom: 0.5rem;
}

/* 响应式工具 */
@media (max-width: 767px) {
  .r7t5j4 { display: none !important; }
  ._ud202 { padding: 2.5rem 0; }
}

@media (min-width: 768px) {
  .rp-note { display: none !important; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
