/* ==========================================================================
   谷教练个人单板滑雪教学网站 V1 — 视觉系统 (遵循 Landing Page Design B1-B11 规范)
   - 字体：Manrope + 中文无衬线，数值/编码用 Geist Mono；全局禁用斜体与 900 超粗体
   - 字阶：严格对齐 Tailwind 默认 Type Scale
   - 间距：仅使用 0, 2px, 4px, 8px, 12px, 16px, 24px, 32px, 40px, 48px, 64px, 80px, 96px
   - 暗色背景：纯色 #000000 / #181818 / #1F1F1F / #272727 / #313131，禁用背景渐变
   - 边框：全闭合四周边框，禁用单侧边框
   - 动效：cubic-bezier(0.22, 1, 0.36, 1)
   ========================================================================== */

:root {
  --bg-000: #000000;
  --bg-18: #181818;
  --bg-1f: #1f1f1f;
  --bg-27: #272727;
  --bg-31: #313131;

  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #9b9b9b;
  --accent-ice: #38bdf8;
  --accent-ice-soft: #bae6fd;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(56, 189, 248, 0.45);

  --font-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", Consolas, monospace;

  --ease-weighted: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-000);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-000);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select {
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: inherit;
}

/* 无障碍跳链 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-27);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  transform: translateY(-96px);
  transition: transform 300ms var(--ease-weighted);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-ice);
}

/* 容器与布局间距 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-block {
  padding: 80px 0;
  background-color: var(--bg-000);
  border-bottom: 1px solid var(--border-subtle);
}

.section-block.surface-alt {
  background-color: var(--bg-18);
}

/* 顶部悬浮导航 (B7 Navigation) */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  padding: 8px 16px;
  background-color: rgba(24, 24, 24, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-strong);
  color: var(--accent-ice);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 300ms var(--ease-weighted), color 300ms var(--ease-weighted);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--bg-27);
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 按钮体系 (B1 & B2 & B9) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--accent-ice);
  color: var(--bg-000);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border: 1px solid var(--accent-ice);
  cursor: pointer;
  transition: transform 300ms var(--ease-weighted), opacity 300ms var(--ease-weighted), background-color 300ms var(--ease-weighted);
}

.btn-primary.btn-sm {
  font-size: 14px;
  line-height: 20px;
}

.btn-primary:hover {
  background-color: var(--accent-ice-soft);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-27);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 300ms var(--ease-weighted), background-color 300ms var(--ease-weighted), border-color 300ms var(--ease-weighted);
}

.btn-secondary:hover {
  background-color: var(--bg-31);
  border-color: var(--border-strong);
}

.btn-secondary:active {
  transform: scale(0.98);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-ice);
  outline-offset: 2px;
}

/* 移动端菜单开关 */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 500ms var(--ease-weighted), transform 500ms var(--ease-weighted);
}

.mobile-menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-link {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background-color: var(--bg-18);
  border: 1px solid var(--border-subtle);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

/* 字阶与排版规则 (B1 & B5) */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-weight: 700;
}

p,
li {
  text-wrap: pretty;
}

.hero-section {
  padding-top: 128px;
  padding-bottom: 80px;
  background-color: var(--bg-000);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* B5: Hero 标题文字渐变 #FFFFFF -> #9B9B9B 且宽度上限 680px */
.hero-headline {
  max-width: 680px;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subheadline {
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.proof-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-18);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 8px;
  background-color: var(--bg-1f);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--accent-ice);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid rgba(52, 211, 153, 0.45);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* 嵌套圆角公式 (B3): 外层 rounded-2xl (16px)，内间距 8px -> 内层 rounded-lg (8px) */
.card-outer {
  background-color: var(--bg-18);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 8px;
  transition: transform 500ms var(--ease-weighted), border-color 300ms var(--ease-weighted);
}

.card-outer:hover {
  border-color: var(--border-strong);
}

.card-inner {
  background-color: var(--bg-1f);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metrics-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

/* Section 标题区 */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 680px;
}

.section-title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.body-copy {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

/* B11: 强制 Tagline Reveal 滚动逐词点亮板块 */
.tagline-reveal-section {
  padding: 96px 0;
  background-color: var(--bg-18);
  border-bottom: 1px solid var(--border-subtle);
}

.tagline-reveal-box {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tagline-reveal-text {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tagline-word {
  color: var(--text-primary);
  opacity: 0.28;
  transition: opacity 500ms var(--ease-weighted), transform 500ms var(--ease-weighted);
}

.tagline-word.active {
  opacity: 1;
}

/* 板块一：资质证书网格 */
.cert-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.cert-side-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cert-preview-frame {
  background-color: var(--bg-27);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.bullet-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ice);
  font-size: 12px;
  line-height: 16px;
}

/* 筛选按钮条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-18);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 300ms var(--ease-weighted), color 300ms var(--ease-weighted), border-color 300ms var(--ease-weighted);
}

.filter-btn:hover {
  background-color: var(--bg-27);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-ice);
  color: var(--bg-000);
  border-color: var(--accent-ice);
}

/* 板块二：画廊网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  height: 192px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb svg,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

/* 板块三：学员前后对比与口碑评价 */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.ba-compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ba-box {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-box.after-state {
  border-color: rgba(52, 211, 153, 0.45);
}

.ba-box-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 板块四：雪场排期与课程体系 */
.resorts-panel {
  margin-bottom: 40px;
}

.resort-Subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 板块五：交互式预约向导 */
.booking-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-span {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 24px;
}

.summary-output-box {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  white-space: pre-line;
}

.feedback-banner {
  padding: 12px 16px;
  border-radius: 8px;
  background-color: var(--bg-27);
  border: 1px solid rgba(52, 211, 153, 0.5);
  font-size: 14px;
  line-height: 20px;
  color: var(--accent-emerald);
  display: none;
}

.feedback-banner.visible {
  display: block;
}

/* FAQ 问答 */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-question {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* 预览模态框 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-weighted);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  padding: 64px 0;
  background-color: var(--bg-18);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

/* 404 页 */
.not-found-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.not-found-card {
  max-width: 560px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Scroll Reveal 进场动效 (B7) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms var(--ease-weighted), transform 600ms var(--ease-weighted);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .tagline-word,
  .btn-primary,
  .btn-secondary {
    transition: opacity 200ms var(--ease-weighted);
    transform: none !important;
  }
}

/* 响应式适配 */
@media (max-width: 960px) {
  .hero-grid,
  .cert-grid,
  .booking-layout,
  .ba-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .reviews-grid,
  .courses-grid,
  .resort-Subgrid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero-headline,
  .tagline-reveal-text {
    font-size: 36px;
    line-height: 40px;
  }

  .section-title {
    font-size: 30px;
    line-height: 36px;
  }

  .gallery-grid,
  .reviews-grid,
  .courses-grid,
  .resort-Subgrid,
  .metrics-grid,
  .ba-compare-cols,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
