/* 古滑 · 教练 / 学员轨共用样式（与 product.css 同族 token） */
:root {
  --primary: #1e5aa8;
  --primary-dark: #0d2a54;
  --gold: #d4af37;
  --dark: #0f172a;
  --slate: #334155;
  --bg: #eef1f5;
  --text: #1a2433;
  --sub: #5c6b7e;
  --line: rgba(18, 58, 107, 0.12);
  --white: #fff;
  --music-bg: linear-gradient(to right, #fdf2f8, #fae8ff);
  --design-bg: linear-gradient(to right, #f0f9ff, #e0f2fe);
  --code-bg: linear-gradient(to right, #f0fdf4, #dcfce7);
  --accent: #f5b43c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wx-share-img {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 300px;
  height: 300px;
  z-index: -1;
}

.container {
  max-width: 520px;
  margin: auto;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 24px rgba(18, 58, 107, 0.08);
  position: relative;
  padding-bottom: 8px;
}

.back-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  background: rgba(11, 28, 51, 0.72);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

/* —— 教练页专属 —— */
.coach-hero {
  background: var(--dark);
  padding: 64px 20px 28px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.coach-hero-text { flex: 1; min-width: 0; }
.coach-hero-photo {
  width: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.coach-hero-photo img { width: 100%; display: block; }

.coach-id {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.95;
  margin-bottom: 8px;
  display: block;
  font-weight: 800;
}
.name-area h1 {
  font-size: clamp(26px, 7vw, 34px);
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
}
.name-area .name-sub {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.main-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
}

.coach-hero-desc-wrap {
  background: var(--dark);
  padding: 0 20px 28px;
  color: #fff;
}
.hero-desc {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  margin-top: -22px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: #fff;
  padding: 16px 10px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 3px solid #eee;
}
.stat-card b { font-size: 20px; color: var(--primary); margin-bottom: 2px; }
.stat-card span { font-size: 11px; color: #64748b; font-weight: 700; text-align: center; }
.stat-card.gold-border { border-bottom-color: var(--gold); }

.section-header {
  padding: 28px 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 {
  font-size: 18px;
  margin: 0;
  color: var(--dark);
  font-weight: 800;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: #e8eef4;
}

.skill-list { padding: 0 16px; }
.skill-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  border-left: 5px solid transparent;
}
.bg-music { background: var(--music-bg); border-left-color: #d946ef; }
.bg-design { background: var(--design-bg); border-left-color: #0ea5e9; }
.bg-code { background: var(--code-bg); border-left-color: #22c55e; }
.skill-icon { font-size: 22px; flex-shrink: 0; }
.skill-text h3 { margin: 0 0 4px; font-size: 15px; color: #1e293b; font-weight: 800; }
.skill-text p { margin: 0; font-size: 13px; color: #475569; line-height: 1.55; }

.philosophy-list { padding: 0 16px; }
.philo-item {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}
.philo-item b { display: block; font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.philo-item p { margin: 0; font-size: 13px; color: #475569; }

.student-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 16px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.student-wrapper::-webkit-scrollbar { display: none; }
.student-item {
  min-width: 132px;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(45deg, #fbbf24, #f43f5e, #6366f1);
  text-decoration: none;
  color: inherit;
  display: block;
}
.student-item:active { transform: scale(0.98); }
.student-inner { background: #fff; border-radius: 12px; overflow: hidden; }
.student-inner img { width: 100%; height: 112px; object-fit: cover; display: block; }
.student-name { padding: 10px 8px; text-align: center; }
.student-name b { font-size: 13px; display: block; margin-bottom: 2px; color: var(--text); }
.student-name span { font-size: 11px; color: #64748b; line-height: 1.3; display: block; }

.coach-section-pad { padding: 0 16px 8px; }

.related-links {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}
.related-links a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  line-height: 1.4;
}
.related-links a span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
}

.qr-block {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, #0f2f57, var(--primary));
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  margin: 8px 0 0;
  box-shadow: 0 12px 28px rgba(18, 58, 107, 0.18);
}
.qr-block img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}
.qr-block p { margin: 0; }
.qr-block .consult-title { font-size: 15px; font-weight: 800; }
.qr-block .sub { margin-top: 4px; font-size: 13px; opacity: 0.9; }
.qr-block .wx {
  margin-top: 8px;
  display: inline-block;
  background: var(--accent);
  color: #0b1c33;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.footer-notice {
  margin: 16px 16px 0;
  background: #fff3f3;
  color: #c0392b;
  font-size: 12px;
  padding: 12px 14px;
  line-height: 1.55;
  border-radius: 12px;
}
.footer-legal {
  margin: 10px 16px 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sub);
  font-size: 11px;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.55;
}

.coach-footer {
  margin-top: 20px;
  padding: 36px 20px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.coach-footer b {
  color: #fff;
  font-size: 17px;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.coach-footer a { color: #999; text-decoration: none; }
.coach-footer .copy { margin-top: 12px; font-size: 10px; opacity: 0.7; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.55s ease forwards; opacity: 0; }

/* 学员页：共用互链区（嵌入各页底部，不覆盖人物专属样式） */
.student-crosslinks {
  padding: 8px 16px 0;
}
.student-crosslinks .section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
