:root {
  --bg: #0a0a0b;
  --bg-alt: #121214;
  --card: #17171a;
  --card-hover: #1c1c20;
  --text: #f2f2f3;
  --text-dim: #9a9aa2;
  --orange-1: #ff6a00;
  --orange-2: #ff9a3d;
  --grad: linear-gradient(135deg, #ff6a00, #ff9a3d);
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #14070b;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.5);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: var(--orange-2);
  color: var(--orange-2);
  transform: translateY(-3px);
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 15px 38px; font-size: 1.05rem; }

/* ============ 导航 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s;
}
.navbar.scrolled { background: rgba(10, 10, 11, 0.92); }
.nav-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1px;
  line-height: 1.1;
}
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--text-dim);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("https://picsum.photos/seed/ironpulse-gym-hero/1920/1080") center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.55) 45%, rgba(10, 10, 11, 0.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 20px 60px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 5px;
  color: var(--orange-2);
  border: 1px solid rgba(255, 154, 61, 0.4);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 2px;
  text-wrap: balance;
}
.hero-title::after {
  content: "";
  display: block;
  width: 90px; height: 5px;
  margin: 26px auto 24px;
  border-radius: 3px;
  background: var(--grad);
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============ 区块通用 ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  font-size: 0.8rem;
  letter-spacing: 6px;
  color: var(--orange-1);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-desc { color: var(--text-dim); margin-top: 14px; }

/* 滚动淡入 */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 教练团队 ============ */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.coach-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.coach-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 6px 20px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 154, 61, 0.3);
}
.coach-photo { position: relative; aspect-ratio: 6/7; overflow: hidden; }
.coach-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.5s;
}
.coach-card:hover .coach-photo img { transform: scale(1.05); filter: brightness(0.38); }
.coach-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.coach-info p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.65;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.coach-card:hover .coach-info p { transform: translateY(0); opacity: 1; }
.coach-meta { padding: 18px 20px 22px; }
.coach-meta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.coach-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange-2);
  border: 1px solid rgba(255, 106, 0, 0.25);
}

/* ============ 课程表 ============ */
.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.schedule-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 12px 22px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.schedule-tab::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.schedule-tab:hover { color: var(--text); }
.schedule-tab.active { color: var(--orange-2); }
.schedule-tab.active::after { transform: scaleX(1); }

.schedule-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.class-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 22px;
  animation: fadeUp 0.5s var(--ease-out) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.class-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange-2);
  min-width: 92px;
}
.class-main { flex: 1; }
.class-name { font-weight: 600; font-size: 1rem; }
.class-coach { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }
.class-type {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.type-burn { background: rgba(255, 77, 79, 0.15); color: #ff7875; }
.type-strength { background: rgba(255, 106, 0, 0.15); color: var(--orange-2); }
.type-shape { background: rgba(114, 175, 255, 0.14); color: #85b7ff; }
.type-combat { background: rgba(168, 120, 255, 0.14); color: #c3a1ff; }
.class-slots { font-size: 0.82rem; white-space: nowrap; color: #ffd666; }
.class-slots.full { color: #6c6c74; }

/* ============ 数字统计 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
  padding: 56px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.stat-num {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-unit { font-size: 0.5em; margin-left: 4px; }
.stat-label { color: var(--text-dim); margin-top: 12px; letter-spacing: 1px; }

/* ============ 页脚 ============ */
.footer {
  background: #070708;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { color: var(--text-dim); font-size: 0.92rem; max-width: 340px; margin-bottom: 22px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 16px;
  transition: color 0.3s, border-color 0.3s;
}
.socials a:hover { color: var(--orange-2); border-color: var(--orange-2); }
.footer-col h4 {
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--orange-2);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.hours-row .hours-day { color: var(--text); }
.hours-hl .hours-day { color: var(--orange-2); }
.contact-item { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  text-align: center;
  color: #6c6c74;
  font-size: 0.82rem;
}

/* ============ 响应式 ============ */
@media (max-width: 968px) {
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a:not(.btn) { padding: 16px 0; width: 100%; text-align: center; }
  .nav-links .btn-sm { margin: 16px auto 22px; }
  .coach-grid { grid-template-columns: 1fr; }
  .schedule-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .class-item { flex-wrap: wrap; gap: 10px 16px; }
  .class-time { min-width: auto; }
}

/* ============ 减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint { animation: none; }
  .coach-card, .coach-photo img, .coach-info p, .btn, .class-item {
    transition: none !important;
    animation: none !important;
  }
}
