/* ClimbPin Profile Page Styles */

/* ============================================================
   主题系统（4 套暗色主题）
   ============================================================ */

/* Ocean（默认）— 深蓝 */
.cp-profile-page {
  --cp-orange: #FF9500;
  --cp-bg-1: #1a1a2e;
  --cp-bg-2: #16213e;
  --cp-bg-3: #0f3460;
  --cp-surface: rgba(255, 255, 255, 0.06);
  --cp-border: rgba(255, 255, 255, 0.08);
  --cp-heatmap-1: #2d6a1e;
  --cp-heatmap-2: #3d9b2f;
  --cp-heatmap-3: #5bc446;
  --cp-heatmap-4: #7ddf68;
  background: linear-gradient(135deg, var(--cp-bg-1) 0%, var(--cp-bg-2) 50%, var(--cp-bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Midnight — 纯黑 */
.cp-profile-page.theme-midnight {
  --cp-orange: #FF9500;
  --cp-bg-1: #0a0a0a;
  --cp-bg-2: #111111;
  --cp-bg-3: #0a0a0a;
  --cp-surface: rgba(255, 255, 255, 0.04);
  --cp-border: rgba(255, 255, 255, 0.06);
}

/* Forest — 暗绿 */
.cp-profile-page.theme-forest {
  --cp-orange: #7ddf68;
  --cp-bg-1: #0f1d14;
  --cp-bg-2: #132b1a;
  --cp-bg-3: #0a2816;
  --cp-heatmap-1: #2d5a1e;
  --cp-heatmap-2: #3d8b2f;
  --cp-heatmap-3: #5bb446;
  --cp-heatmap-4: #7ddf68;
}

/* Ember — 暗暖 */
.cp-profile-page.theme-ember {
  --cp-orange: #FF6B6B;
  --cp-bg-1: #1f1410;
  --cp-bg-2: #2a1a14;
  --cp-bg-3: #1f1410;
  --cp-heatmap-1: #6a2d1e;
  --cp-heatmap-2: #9b3d2f;
  --cp-heatmap-3: #c45b46;
  --cp-heatmap-4: #df7d68;
}

/* 主题切换按钮 */
.cp-theme-switcher {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.cp-theme-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.cp-theme-switcher:active {
  transform: translateY(0);
}

/* 主容器 */
.cp-profile-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 2rem;
  min-height: 100vh;
}

/* Header Section */
.cp-profile-header-section {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.6s ease-out;
}

.cp-profile-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.cp-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.cp-profile-username {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  margin-bottom: 0.5rem;
}

.cp-profile-bio {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Content Area */
.cp-profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ============================================================
   全幅英雄横幅（ammken 风格）
   ============================================================ */

.cp-hero-banner {
  margin: -1.5rem -1.5rem 0;
  padding: 3rem 2rem 2rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cp-border, rgba(255, 255, 255, 0.08));
  border-top: none;
  border-radius: 0 0 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ken Burns 背景动画 */
.cp-hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenburns 25s ease-in-out infinite alternate;
}

.cp-hero-has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.7));
  z-index: 1;
}

.cp-hero-banner > *:not(.cp-hero-bg) {
  position: relative;
  z-index: 2;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -1%); }
}

/* 用户信息行 */
.cp-hero-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cp-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.cp-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-hero-user-info {
  text-align: left;
}

.cp-hero-user-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cp-hero-user-handle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.cp-hero-climbing-tag {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 149, 0, 0.2);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cp-hero-big-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.cp-big-number {
  text-align: center;
}

.cp-big-number-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

.cp-big-number-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ---- 攀爬日类型细分（共享） ---- */
.days-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  gap: 2px;
}
.days-bar-seg {
  border-radius: 2px;
  min-width: 4px;
}
.days-labels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
}
.days-label-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.days-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Card 主题 */
.cp-days-breakdown {
  max-width: 280px;
  margin: -0.5rem auto 1.2rem;
}
.cp-days-breakdown .days-bar {
  background: rgba(255, 255, 255, 0.08);
}
.cp-days-breakdown .days-label-item {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

.cp-hero-grade-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.cp-grade-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cp-grade-badge-icon {
  font-size: 1.3rem;
  opacity: 0.7;
}

.cp-grade-badge-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.cp-grade-badge-grade {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* 攀岩生涯时长行 */
.cp-hero-duration {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.cp-hero-dur-item {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cp-hero-dur-item strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-right: 0.2rem;
}

.cp-hero-since {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .cp-hero-banner {
    margin: -1rem -1rem 0;
    padding: 2rem 1rem 1.5rem;
  }
  .cp-hero-big-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .cp-big-number-value {
    font-size: 1.6rem;
  }
  .cp-hero-duration {
    gap: 1rem;
  }
  .cp-hero-dur-item strong {
    font-size: 1rem;
  }
}

/* ============================================================
   Recent Climbs 富卡片（ammken 风格）
   ============================================================ */

.cp-recent-section {
  margin-top: 0.5rem;
}

.cp-recent-header {
  margin-bottom: 1rem;
}

.cp-recent-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.cp-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cp-recent-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cp-recent-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.cp-recent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cp-recent-card:hover .cp-recent-photo img {
  transform: scale(1.05);
}

.cp-recent-location {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-recent-info {
  padding: 10px 12px 12px;
}

.cp-recent-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cp-recent-grade-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1.5px solid var(--cp-orange, #FF9500);
  background: rgba(0, 0, 0, 0.3);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.cp-recent-style-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.cp-recent-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cp-recent-notes {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.cp-recent-date {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .cp-recent-grid {
    grid-template-columns: 1fr;
  }
  .cp-recent-photo {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cp-recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 攀爬能力卡 */
.cp-ability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.cp-ability-item {
  text-align: center;
  padding: 0.6rem 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cp-ability-grade {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  line-height: 1.2;
}

.cp-ability-rate {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4CAF50;
  margin-left: 3px;
  vertical-align: super;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.cp-ability-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .cp-ability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-ability-grade {
    font-size: 1.1rem;
  }
  .cp-hero-main-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .cp-hero-stat {
    min-width: 45%;
  }
  .cp-hero-value {
    font-size: 1.3rem;
  }
}

/* 时间轴 header（标题 + 周/月切换） */
.cp-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cp-timeline-header .cp-card-title {
  margin-bottom: 0;
}

/* 时间轴图例 */
.cp-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* 散点图区域分隔 */
.cp-grade-scatter-section {
  margin-bottom: 0.75rem;
}

/* Card 基础 */
.cp-card {
  background: var(--cp-surface, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--cp-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.cp-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--cp-orange, #FF9500);
}

/* 统计网格 */
.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cp-stat-item {
  text-align: center;
}

.cp-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cp-stat-value.cp-accent {
  color: var(--cp-orange, #FF9500);
}

.cp-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
}

/* PB Section */
.cp-pb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.cp-pb-row + .cp-pb-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-pb-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.cp-pb-grade {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cp-orange, #FF9500);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ============================================================
   沉浸式照片墙（瀑布流 + 时间线双模式）
   ============================================================ */

.cp-gallery {
  margin: 0 -1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
  .cp-gallery {
    margin: 0 -1rem;
    padding: 1.25rem 1rem;
  }
}

.cp-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cp-gallery-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 3px;
}

.cp-gallery-mode {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cp-gallery-mode.active {
  background: var(--cp-orange, #FF9500);
  color: #fff;
}

.cp-gallery-mode:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

/* 共用照片卡片 */
.cp-photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  break-inside: avoid;
  margin-bottom: 8px;
}

.cp-photo-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent, #FF9500);
  z-index: 10;
}

.cp-photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cp-photo-card:hover img {
  transform: scale(1.06);
}

/* 照片信息浮层 */
.cp-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cp-photo-card:hover .cp-photo-overlay {
  opacity: 1;
}

.cp-photo-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 2px solid var(--accent, #FF9500);
  background: rgba(0, 0, 0, 0.5);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  margin-bottom: 3px;
  backdrop-filter: blur(6px);
}

.cp-photo-route {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-photo-send {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6rem;
  margin-top: 1px;
}

/* Hero 照片（瀑布流第一张） */
.cp-photo-hero img {
  min-height: 240px;
}

/* --- 瀑布流模式 --- */
.cp-waterfall {
  display: flex;
  gap: 8px;
}

.cp-waterfall-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cp-waterfall .cp-photo-card img {
  /* 伪随机高度 */
  aspect-ratio: 3 / calc(3 * var(--aspect, 1.2));
}

/* --- 时间线模式 --- */
.cp-timeline {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  padding-bottom: 8px;
}

.cp-timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  min-width: max-content;
  padding-top: 28px;
}

.cp-timeline-line {
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-orange, #FF9500), rgba(255,255,255,0.1));
  border-radius: 1px;
}

.cp-timeline-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  padding: 0 6px;
}

.cp-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.cp-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cp-orange, #FF9500);
  border: 2px solid #1a1a2e;
  margin-bottom: 4px;
}

.cp-timeline-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.cp-timeline-photos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 130px;
}

.cp-timeline-photos .cp-photo-card {
  transform: none;
}

.cp-timeline-photos .cp-photo-card img {
  aspect-ratio: 4 / 3;
}

.cp-timeline-photos .cp-photo-overlay {
  opacity: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
}

/* 时间线滚动条 */
.cp-timeline::-webkit-scrollbar {
  height: 4px;
}

.cp-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.cp-timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* 移动端 */
@media (max-width: 640px) {
  .cp-waterfall {
    gap: 6px;
  }
  .cp-waterfall-col:nth-child(3) {
    display: none; /* 移动端 2 列 */
  }
  .cp-photo-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
  }
  .cp-photo-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
  }
  .cp-timeline-group {
    min-width: 120px;
  }
  .cp-timeline-photos {
    width: 110px;
  }
}

/* 类型分布 */
.cp-distribution-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.cp-distribution-segment {
  transition: width 0.5s ease;
}

.cp-distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cp-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.cp-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Empty State */
.cp-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.35);
}

.cp-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* 加载动画 */
.cp-profile-loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.cp-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--cp-orange, #FF9500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 404 页面 */
.cp-profile-not-found {
  text-align: center;
  padding: 6rem 2rem;
}

.cp-profile-not-found h1 {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.5rem;
}

.cp-profile-not-found p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.cp-back-link {
  color: var(--cp-orange, #FF9500);
  text-decoration: none;
  font-weight: 600;
}

.cp-back-link:hover {
  text-decoration: underline;
}

/* Footer */
.cp-profile-footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

.cp-profile-footer a {
  color: var(--cp-orange, #FF9500);
  text-decoration: none;
}

/* 时间过滤器 */
.cp-period-filter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cp-period-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.cp-period-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.cp-period-btn.active {
  background: var(--cp-orange, #FF9500);
  border-color: var(--cp-orange, #FF9500);
  color: #fff;
}

/* 等级分布图（8a.nu 风格堆叠条） */

.cp-pyramid-section {
  margin-bottom: 1.5rem;
}

.cp-pyramid-section:last-of-type {
  margin-bottom: 0.75rem;
}

.cp-pyramid-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.cp-pyramid-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.cp-pyramid-section-count {
  font-size: 0.8rem;
  color: var(--cp-orange, #FF9500);
  font-weight: 600;
}

.cp-pyramid-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2px;
  height: 18px;
}

.cp-pyramid-label {
  width: 52px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  flex-shrink: 0;
  line-height: 1;
}

.cp-pyramid-bars {
  flex: 1;
  display: flex;
  height: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  overflow: hidden;
}

.cp-pyramid-bar-seg {
  height: 100%;
  min-width: 2px;
  transition: width 0.5s ease;
}

.cp-pyramid-count {
  width: 32px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  line-height: 1;
}

/* 完攀风格图例 */
.cp-send-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-send-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* CPG 趋势 SVG */
.cp-trend-svg {
  width: 100%;
  height: auto;
  animation: fadeInUp 0.6s ease-out both;
}

/* 热力图 */
.cp-heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
}

.cp-heatmap-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transition: background-color 0.2s;
}

@media (max-width: 640px) {
  .cp-heatmap-cell {
    width: 8px;
    height: 8px;
  }
}

/* 响应式 */
@media (max-width: 640px) {
  .cp-profile-main {
    padding: 5rem 1rem 2rem;
  }

  .cp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cp-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-profile-name {
    font-size: 1.4rem;
  }
}

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

/* ============================================================
   全幅热力图段落
   ============================================================ */

.cp-heatmap-section {
  margin: 0 -1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cp-heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.cp-heatmap-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 0.75rem;
  border-left: 4px solid var(--cp-orange, #FF9500);
}

.cp-heatmap-active-hero {
  text-align: right;
}

.cp-heatmap-active-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cp-heatmap-active-suffix {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.cp-heatmap-inner {
  max-width: 100%;
  overflow-x: auto;
}

.cp-heatmap-year-block {
  margin-bottom: 1.5rem;
}

.cp-heatmap-year-block:last-of-type {
  margin-bottom: 0.5rem;
}

.cp-heatmap-year-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.cp-heatmap-legend-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .cp-heatmap-section {
    margin: 0 -1rem;
    padding: 1.25rem 1rem;
  }
  .cp-heatmap-active-num {
    font-size: 1.5rem;
  }
}

/* ============================================================
   热力图网格 + 月份标签
   ============================================================ */

.cp-heatmap-months {
  display: grid;
  grid-template-columns: repeat(var(--heatmap-cols, 53), 1fr);
  gap: 2px;
  margin-bottom: 4px;
  height: 16px;
}

.cp-heatmap-month-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.cp-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cp-heatmap-legend-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 3px;
}

.cp-heatmap-legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ============================================================
   室内/室外分布
   ============================================================ */

.cp-distribution-env {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-distribution-env-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* ============================================================
   双列并排容器（分布 + 场所）
   ============================================================ */

.cp-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cp-dual-row > .cp-card {
  margin: 0;
}

@media (max-width: 640px) {
  .cp-dual-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   训练场所 TOP 5
   ============================================================ */

.cp-venues-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.cp-venue-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.cp-venue-name {
  width: 11em;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-venue-bar-wrap {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  overflow: hidden;
}

.cp-venue-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cp-orange, #FF9500), rgba(255, 149, 0, 0.5));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.cp-venue-count {
  width: 28px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (max-width: 640px) {
  .cp-venue-name {
    width: 11em;
    font-size: 0.75rem;
  }
}

/* ============================================================
   底部总结行
   ============================================================ */

.cp-footer-summary {
  margin: 0 -1.5rem;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 149, 0, 0.04) 40%, rgba(255, 149, 0, 0.08) 100%);
  border-top: 1px solid rgba(255, 149, 0, 0.12);
  text-align: center;
  border-radius: 0 0 20px 20px;
}

.cp-footer-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cp-footer-big-item {
  text-align: center;
}

.cp-footer-big-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.cp-footer-big-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .cp-footer-summary {
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
  }
  .cp-footer-numbers {
    gap: 1rem;
  }
  .cp-footer-big-value {
    font-size: 1.3rem;
  }
}

/* ============================================================
   SVG / 卡片过渡动画
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cp-card {
  animation: fadeInUp 0.5s ease-out both;
}

/* ============================================================
   EDITORIAL THEME — nodaysoff.run 风格
   ============================================================ */

/* 覆写页面背景和配色为纯黑白 */
.theme-editorial.cp-profile-page {
  --cp-orange: #111;
  --cp-surface: rgba(0, 0, 0, 0.03);
  --cp-border: rgba(0, 0, 0, 0.08);
  --cp-heatmap-1: #ccc;
  --cp-heatmap-2: #999;
  --cp-heatmap-3: #555;
  background: #fff;
}

/* 容器覆写 */
.theme-editorial .cp-profile-main {
  max-width: 900px;
  padding-top: 0;
}

.theme-editorial .cp-profile-content {
  gap: 0;
}

/* 导航栏白底 */
.theme-editorial .cp-header { display: none; }

.theme-editorial .cp-theme-switcher:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ---- Editorial Header ---- */
.theme-editorial .ed-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 1rem;
}

.theme-editorial .ed-title {
  font-size: 4rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.4rem;
}

.theme-editorial .ed-handle {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 0.6rem;
}

.theme-editorial .ed-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* 攀岩生涯时长行 */
.theme-editorial .ed-duration {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.theme-editorial .ed-dur-item {
  font-size: 0.85rem;
  color: #333;
  letter-spacing: 0.06em;
}

.theme-editorial .ed-dur-item strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: #111;
  margin-right: 0.25rem;
}

.theme-editorial .ed-since {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.3);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---- Editorial Key Stats ---- */
.theme-editorial .ed-key-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.theme-editorial .ed-key-stat {
  text-align: center;
}

.theme-editorial .ed-key-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.theme-editorial .ed-key-label {
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.35);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

/* Editorial 主题 */
.theme-editorial .ed-days-breakdown {
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto;
}
.theme-editorial .ed-days-breakdown .days-bar {
  background: rgba(0, 0, 0, 0.04);
}
.theme-editorial .ed-days-breakdown .days-label-item {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.03em;
}

/* ---- Editorial Section Titles ---- */
.theme-editorial .ed-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ---- Editorial Notable Climbs (Tabs + Table) ---- */
.theme-editorial .ed-notable {
  margin-bottom: 1rem;
}

.theme-editorial .ed-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.theme-editorial .ed-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.theme-editorial .ed-tab:hover {
  color: #333;
}

.theme-editorial .ed-tab.active {
  color: #111;
  border-bottom-color: #111;
}

.theme-editorial .ed-tab-content {
  padding: 1rem 0;
}

.theme-editorial .ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.theme-editorial .ed-table thead th {
  text-align: left;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.theme-editorial .ed-table tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}

.theme-editorial .ed-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.theme-editorial .ed-table td {
  padding: 0.6rem 0.75rem;
  color: #333;
}

.theme-editorial .ed-grade-cell {
  font-weight: 700;
  color: #111 !important;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.theme-editorial .ed-date-cell {
  color: rgba(0, 0, 0, 0.4) !important;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
}

.theme-editorial .ed-empty {
  text-align: center;
  padding: 2rem;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
}

/* ---- Editorial 2-Column Stats Grid ---- */
.theme-editorial .ed-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.theme-editorial .ed-grid-cell {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.25rem;
  animation: fadeInUp 0.5s ease-out both;
}

.theme-editorial .ed-grid-full {
  grid-column: 1 / -1;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.theme-editorial .ed-grid-full .cp-trend-svg {
  max-height: none;
}

.theme-editorial .ed-cell-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.theme-editorial .ed-chart-wrap {
  min-height: 100px;
}

/* Send Rate cell */
.theme-editorial .ed-send-rate {
  text-align: center;
  padding: 1.5rem 0;
}

.theme-editorial .ed-rate-value {
  font-size: 3rem;
  font-weight: 900;
  color: #111;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.theme-editorial .ed-rate-detail {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ---- Editorial Yearly Heatmaps ---- */
.theme-editorial .ed-heatmaps {
  margin-top: 2rem;
  padding-top: 1rem;
}

.theme-editorial .ed-year-block {
  margin-bottom: 2rem;
}

.theme-editorial .ed-year-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.theme-editorial .ed-year-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
}

.theme-editorial .ed-year-stats {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.35);
}

/* ---- Editorial Footer ---- */
.theme-editorial .ed-footer {
  text-align: center;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.theme-editorial .ed-footer-line {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.theme-editorial .ed-footer-powered {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.25);
}

.theme-editorial .ed-footer-powered a {
  color: #111;
  text-decoration: underline;
}

/* ---- Editorial: 隐藏 Card 专有的外部 Footer ---- */
.theme-editorial .cp-profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.75rem;
}
.theme-editorial .cp-profile-footer a { color: rgba(0,0,0,0.4); }

/* ---- Editorial: 复用组件白色主题覆写 ---- */

/* 金字塔 */
.theme-editorial .cp-pyramid-section-title { color: #333; }
.theme-editorial .cp-pyramid-section-count { color: #555; }
.theme-editorial .cp-pyramid-label { color: rgba(0, 0, 0, 0.5); }
.theme-editorial .cp-pyramid-bars { background: rgba(0, 0, 0, 0.04); }
.theme-editorial .cp-pyramid-count { color: rgba(0, 0, 0, 0.45); }
/* 完攀风格图例 */
.theme-editorial .cp-send-legend { border-top-color: rgba(0, 0, 0, 0.06); }
.theme-editorial .cp-send-legend-item { color: rgba(0, 0, 0, 0.5); }
/* 分布图例 */
.theme-editorial .cp-legend-item { color: rgba(0, 0, 0, 0.55); }
/* 训练场所 */
.theme-editorial .cp-venue-name { color: #333; }
.theme-editorial .cp-venue-bar-wrap { background: rgba(0, 0, 0, 0.05); }
.theme-editorial .cp-venue-bar { background: linear-gradient(90deg, #333, #999) !important; }
.theme-editorial .cp-venue-count { color: rgba(0, 0, 0, 0.45); }
/* 能力卡片 */
.theme-editorial .cp-ability-item { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.04); }
.theme-editorial .cp-ability-grade { color: #111; }
.theme-editorial .cp-ability-label { color: rgba(0, 0, 0, 0.4); }
.theme-editorial .cp-ability-rate { color: #555; }
/* 热力图 */
.theme-editorial .cp-heatmap-month-label { color: rgba(0, 0, 0, 0.35); }
.theme-editorial .cp-heatmap-cell { border-radius: 2px; }
.theme-editorial .cp-heatmap-legend-label { color: rgba(0, 0, 0, 0.3); }
/* 时间过滤器 */
.theme-editorial .cp-period-btn { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.45); }
.theme-editorial .cp-period-btn:hover { background: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.7); }
.theme-editorial .cp-period-btn.active { background: #111; border-color: #111; color: #fff; }
/* 时间轴图例 */
.theme-editorial .cp-timeline-legend .cp-legend-item { color: rgba(0, 0, 0, 0.5); }

/* 分布条背景 */
.theme-editorial .cp-distribution-bar {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

/* 金字塔堆叠条灰度 — 覆盖 JS 内联 backgroundColor */
.theme-editorial .cp-pyramid-bar-seg[data-style="onsight"] { background-color: #111 !important; }
.theme-editorial .cp-pyramid-bar-seg[data-style="flash"] { background-color: #555 !important; }
.theme-editorial .cp-pyramid-bar-seg[data-style="redpoint"] { background-color: #999 !important; }
.theme-editorial .cp-pyramid-bar-seg[data-style="attempt"] { background-color: #ddd !important; }

/* 完攀风格图例圆点灰度 */
.theme-editorial .cp-send-legend-item[data-style="onsight"] .cp-legend-dot { background-color: #111 !important; }
.theme-editorial .cp-send-legend-item[data-style="flash"] .cp-legend-dot { background-color: #555 !important; }
.theme-editorial .cp-send-legend-item[data-style="redpoint"] .cp-legend-dot { background-color: #999 !important; }
.theme-editorial .cp-send-legend-item[data-style="attempt"] .cp-legend-dot { background-color: #ddd !important; }

/* 图表周/月切换按钮 */
.theme-editorial .ed-chart-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
}

.theme-editorial .ed-toggle-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.theme-editorial .ed-toggle-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.theme-editorial .ed-toggle-btn:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.theme-editorial .ed-toggle-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.theme-editorial .ed-toggle-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: #333;
}

/* ---- Editorial 响应式 ---- */
@media (max-width: 640px) {
  .theme-editorial .ed-title {
    font-size: 2.5rem;
  }

  .theme-editorial .ed-key-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .theme-editorial .ed-key-value {
    font-size: 1.8rem;
  }

  .theme-editorial .ed-duration {
    gap: 1rem;
  }

  .theme-editorial .ed-dur-item strong {
    font-size: 1.1rem;
  }

  .theme-editorial .ed-dur-item {
    font-size: 0.75rem;
  }

  .theme-editorial .ed-stats-grid {
    grid-template-columns: 1fr;
  }

  .theme-editorial .ed-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .theme-editorial .ed-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  .theme-editorial .ed-table {
    font-size: 0.78rem;
  }

  .theme-editorial .ed-table td,
  .theme-editorial .ed-table thead th {
    padding: 0.5rem 0.5rem;
  }

  .theme-editorial .ed-section-title {
    margin-top: 2rem;
  }

  .theme-editorial .ed-header {
    padding: 2rem 0.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .theme-editorial .ed-table td:last-child,
  .theme-editorial .ed-table thead th:last-child {
    display: none;
  }
}

/* 手机端表格优化：隐藏 Mode 列，截断线路名 */
@media (max-width: 640px) {
  .ed-mode-col { display: none; }
  .ed-route-cell {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ed-date-cell {
    white-space: nowrap;
  }
}

/* ============================================================
   BENTO THEME — 数据驾驶舱
   ============================================================ */

.theme-bento {
  background: #0e0e0e !important;
  color: #e5e5e5;
}
.theme-bento .cp-header {
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-bento .cp-header-title { color: #e5e5e5; }
.theme-bento .cp-theme-switcher {
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.15);
}
.theme-bento .cp-profile-footer {
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-bento .cp-profile-footer a { color: #F59E0B; }

/* ---- Bento Grid ---- */
.theme-bento .bn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 0 1.5rem;
}
.theme-bento .bn-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.theme-bento .bn-cell:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Identity cell — spans 1 col, 2 rows */
.theme-bento .bn-identity {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.3rem;
  padding: 1.5rem 1rem;
}
.theme-bento .bn-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  overflow: hidden;
}
.theme-bento .bn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-bento .bn-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.theme-bento .bn-handle {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  margin: 0;
}
.theme-bento .bn-tag {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  color: #F59E0B;
  margin-top: 0.3rem;
}
.theme-bento .bn-since {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0.5rem 0 0;
}
.theme-bento .bn-since strong {
  color: rgba(255, 255, 255, 0.6);
}

/* Stat cells */
.theme-bento .bn-stat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.theme-bento .bn-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.theme-bento .bn-stat-value.bn-stat-sm {
  font-size: 1.6rem;
}
.theme-bento .bn-stat-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Accent cell (highest grade) */
.theme-bento .bn-accent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
  border-color: rgba(245, 158, 11, 0.2);
}
.theme-bento .bn-accent .bn-stat-value {
  color: #F59E0B;
}
.theme-bento .bn-sub-stat {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
}
.theme-bento .bn-sub-accent {
  color: #F59E0B;
  font-weight: 700;
}

/* Ability cell */
.theme-bento .bn-ability {
  grid-column: span 2;
}
.theme-bento .bn-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1rem;
}
.theme-bento .bn-ability-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.theme-bento .bn-ability-grade {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.theme-bento .bn-ability-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Days breakdown in bento */
.theme-bento .bn-days-breakdown {
  margin-top: 0.6rem;
}
.theme-bento .bn-days-breakdown .days-bar {
  background: rgba(255, 255, 255, 0.06);
}
.theme-bento .bn-days-breakdown .days-labels {
  justify-content: flex-start;
  gap: 0.6rem;
}
.theme-bento .bn-days-breakdown .days-label-item {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Bento 内复用 Editorial 子组件的样式覆盖 */
.theme-bento .cp-period-filter {
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
}
.theme-bento .cp-period-btn {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}
.theme-bento .cp-period-btn.active {
  color: #0e0e0e;
  background: #F59E0B;
  border-color: #F59E0B;
}

/* Notable climbs in bento uses editorial table styles with dark overrides */
.theme-bento .ed-notable,
.theme-bento .ed-section-title {
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.08);
}
.theme-bento .ed-tabs .ed-tab {
  color: rgba(255, 255, 255, 0.4);
  border-color: transparent;
}
.theme-bento .ed-tabs .ed-tab.active {
  color: #F59E0B;
  border-color: #F59E0B;
}
.theme-bento .ed-table {
  color: #e5e5e5;
}
.theme-bento .ed-table thead th {
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}
.theme-bento .ed-table td {
  border-color: rgba(255, 255, 255, 0.05);
}
.theme-bento .ed-table .ed-grade {
  color: #F59E0B;
}

/* Heatmap & stats grid in bento */
.theme-bento .cp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}
.theme-bento .cp-card-title {
  color: rgba(255, 255, 255, 0.5);
}
.theme-bento .ed-stats-grid {
  gap: 10px;
}
.theme-bento .ed-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}
.theme-bento .ed-stat-title {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Bento Responsive ---- */
@media (max-width: 768px) {
  .theme-bento .bn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-bento .bn-identity {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    gap: 0.8rem;
    text-align: left;
  }
  .theme-bento .bn-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .theme-bento .bn-ability {
    grid-column: span 2;
  }
  .theme-bento .bn-stat-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .theme-bento .bn-grid {
    gap: 8px;
  }
  .theme-bento .bn-cell {
    padding: 0.9rem;
    border-radius: 12px;
  }
  .theme-bento .bn-stat-value {
    font-size: 1.5rem;
  }
  .theme-bento .bn-ability-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   POSTER THEME — 排版艺术
   ============================================================ */

.theme-poster {
  background: #000 !important;
  color: #fff;
}
.theme-poster .cp-header {
  background: transparent;
  border-bottom: none;
}
.theme-poster .cp-header-title { color: #fff; }
.theme-poster .cp-theme-switcher {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}
.theme-poster .cp-profile-footer {
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-poster .cp-profile-footer a { color: rgba(255, 255, 255, 0.4); }

/* ---- Sections ---- */
.theme-poster .ps-section {
  padding: 2rem 0 3rem;
}
.theme-poster .ps-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 2.5rem;
}

/* ---- Hero ---- */
.theme-poster .ps-name {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
}
.theme-poster .ps-handle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.2em;
  margin: 0.8rem 0 0;
}
.theme-poster .ps-tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0.6rem 0 0;
}
.theme-poster .ps-since {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 2rem 0 0;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.theme-poster .ps-since strong {
  font-weight: 800;
  color: #fff;
  font-size: 1.8rem;
}
.theme-poster .ps-since-date {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  margin: 0.3rem 0 0;
}

/* ---- Giant Number (Days) ---- */
.theme-poster .ps-days-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.theme-poster .ps-giant-number {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.theme-poster .ps-giant-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
}

/* Days breakdown in poster */
.theme-poster .ps-days-breakdown {
  margin-top: 1.5rem;
  max-width: 360px;
}
.theme-poster .ps-days-breakdown .days-bar {
  background: rgba(255, 255, 255, 0.06);
  height: 3px;
}
.theme-poster .ps-days-breakdown .days-labels {
  justify-content: flex-start;
  gap: 1.2rem;
}
.theme-poster .ps-days-breakdown .days-label-item {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
}

/* ---- Grade Hero (gradient accent) ---- */
.theme-poster .ps-grade-section {
  text-align: center;
  padding: 3rem 0 4rem;
}
.theme-poster .ps-grade-hero {
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FF6B35, #F7C948);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.theme-poster .ps-grade-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0.5rem 0 0;
  text-transform: lowercase;
}
.theme-poster .ps-grade-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  margin: 0.8rem 0 0;
}
.theme-poster .ps-accent {
  background: linear-gradient(135deg, #FF6B35, #F7C948);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---- Stats Row ---- */
.theme-poster .ps-stats-row {
  display: flex;
  gap: 4rem;
}
.theme-poster .ps-stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.theme-poster .ps-stat-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.3rem;
  text-transform: lowercase;
}

/* ---- Poster reuses editorial/card sub-components with dark overrides ---- */
.theme-poster .cp-period-filter { justify-content: flex-start; margin: 0 0 2rem; }
.theme-poster .cp-period-btn { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.1); }
.theme-poster .cp-period-btn.active { color: #000; background: #fff; border-color: #fff; }

.theme-poster .ed-notable,
.theme-poster .ed-section-title { color: #fff; border-color: rgba(255,255,255,0.08); }
.theme-poster .ed-tabs .ed-tab { color: rgba(255,255,255,0.35); }
.theme-poster .ed-tabs .ed-tab.active { color: #fff; border-color: #fff; }
.theme-poster .ed-table { color: rgba(255,255,255,0.7); }
.theme-poster .ed-table thead th { color: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.08); }
.theme-poster .ed-table td { border-color: rgba(255,255,255,0.04); }
.theme-poster .ed-table .ed-grade { color: #fff; font-weight: 800; }

.theme-poster .cp-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.theme-poster .cp-card-title { color: rgba(255,255,255,0.35); }
.theme-poster .ed-stats-grid { gap: 12px; }
.theme-poster .ed-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.theme-poster .ed-stat-title { color: rgba(255,255,255,0.35); }

/* ---- Poster Responsive ---- */
@media (max-width: 600px) {
  .theme-poster .ps-days-row { flex-direction: column; gap: 0.5rem; }
  .theme-poster .ps-giant-label { font-style: normal; font-size: 0.8rem; }
  .theme-poster .ps-stats-row { gap: 2rem; flex-wrap: wrap; }
  .theme-poster .ps-stat-value { font-size: 2rem; }
  .theme-poster .ps-grade-hero { font-size: clamp(4rem, 22vw, 10rem); }
}

/* ============================================================
   ATHLETE THEME — 拳击手海报 × 8a.nu
   ============================================================ */

.theme-athlete {
  --ath-accent: #FF3366;
  --cp-orange: #FF3366;
  background: #0a0a0a !important;
  color: #e0e0e0;
}
.theme-athlete .cp-header { display: none; }
.theme-athlete .cp-profile-main { padding-top: 0; }
.theme-athlete .cp-profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.75rem;
}
.theme-athlete .cp-profile-footer a { color: rgba(255,255,255,0.35); }
.theme-athlete .cp-footer-theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-athlete .cp-footer-theme-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}

/* Editorial: footer 切换按钮隐藏（header 有） */
.theme-editorial .cp-footer-theme-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 20px;
  color: rgba(0,0,0,0.4);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-editorial .cp-footer-theme-btn:hover {
  border-color: rgba(0,0,0,0.25);
  color: rgba(0,0,0,0.6);
}

/* ---- Hero ---- */
.theme-athlete .ath-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* 水印 */
.theme-athlete .ath-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 0;
}

/* 右侧照片 */
.theme-athlete .ath-hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  z-index: 1;
  overflow: hidden;
}
.theme-athlete .ath-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) brightness(0.5);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* 左侧内容 */
.theme-athlete .ath-hero-content {
  position: relative;
  z-index: 2;
  width: 60%;
  padding: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* 名字行 */
.theme-athlete .ath-name-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.theme-athlete .ath-accent-bar {
  width: 28px;
  height: 3px;
  background: var(--ath-accent);
  flex-shrink: 0;
}
.theme-athlete .ath-name {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.theme-athlete .ath-sport-tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: -0.5rem 0 0;
  letter-spacing: 0.05em;
}

/* 8a.nu 式 Routes / Boulders */
.theme-athlete .ath-counts {
  display: flex;
  gap: 2.5rem;
  padding: 0.8rem 0;
}
.theme-athlete .ath-count-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.theme-athlete .ath-count-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.theme-athlete .ath-count-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Key-Value 信息 */
.theme-athlete .ath-info-list {
  display: flex;
  flex-direction: column;
}
.theme-athlete .ath-info-row {
  display: flex;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-athlete .ath-info-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  min-width: 110px;
}
.theme-athlete .ath-info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* 2×2 统计格 */
.theme-athlete .ath-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}
.theme-athlete .ath-stat-cell {
  padding: 1rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.theme-athlete .ath-stat-cell:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.theme-athlete .ath-stat-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.theme-athlete .ath-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ath-accent);
  font-variant-numeric: tabular-nums;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* 攀爬日细分 */
.theme-athlete .ath-days-breakdown {
  margin-top: 0.5rem;
}
.theme-athlete .ath-days-breakdown .days-bar {
  background: rgba(255,255,255,0.06);
  height: 3px;
}
.theme-athlete .ath-days-breakdown .days-labels {
  justify-content: flex-start;
  gap: 1rem;
}
.theme-athlete .ath-days-breakdown .days-label-item {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
}

/* ---- 下方复用组件暗色覆盖 ---- */
.theme-athlete .cp-period-filter { justify-content: flex-start; margin: 1rem 0 1.5rem; }
.theme-athlete .cp-period-btn { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.1); }
.theme-athlete .cp-period-btn.active { color: #fff; background: var(--ath-accent); border-color: var(--ath-accent); }

/* Notable Climbs 完整暗色适配 */
/* 板块之间统一间距 */
.theme-athlete .ed-notable { margin-bottom: 2.5rem; }
.theme-athlete .cp-card { margin-bottom: 2.5rem; }
/* ed-stats-grid 主规则已移至下方完整定义 */
.theme-athlete .cp-heatmap-section { margin-bottom: 2.5rem; }
.theme-athlete .ed-section-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-color: rgba(255,255,255,0.08);
  margin-bottom: 0.8rem;
}
.theme-athlete .ed-tabs {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 0;
  margin-bottom: 0;
}
.theme-athlete .ed-tab {
  background: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}
.theme-athlete .ed-tab:hover { color: rgba(255,255,255,0.6); }
.theme-athlete .ed-tab.active {
  color: var(--ath-accent);
  border-bottom-color: var(--ath-accent);
}
.theme-athlete .ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.theme-athlete .ed-table thead th {
  text-align: left;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.theme-athlete .ed-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.theme-athlete .ed-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.theme-athlete .ed-table td {
  padding: 0.55rem 0.75rem;
  border-color: rgba(255,255,255,0.04);
}
.theme-athlete .ed-table .ed-grade,
.theme-athlete .ed-table .ed-grade-cell {
  color: var(--ath-accent);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
.theme-athlete .ed-table .ed-date-cell {
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.theme-athlete .cp-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* 能力数据同步提示 */
.cp-ability-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  padding: 2rem 0;
}
.theme-editorial .cp-ability-hint { color: rgba(0,0,0,0.3); }

/* 每月攀爬量图例 */
.cp-volume-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}
.theme-editorial .cp-volume-legend { color: rgba(0,0,0,0.4); }
.cp-vol-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* 统一板块标题样式（重要攀登/攀爬活跃度/精选线路/等级进阶等） */
.theme-athlete .cp-card-title,
.theme-athlete .cp-heatmap-title,
.theme-athlete .cp-gallery-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 4px solid var(--ath-accent);
  padding-left: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Stats Grid 容器 */
/* Stats Grid 完整布局（不继承 editorial） */
.theme-athlete .ed-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}
/* 无卡片边框，用顶部细分割线分隔板块 */
.theme-athlete .ed-grid-cell {
  background: none;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeInUp 0.5s ease-out both;
}
.theme-athlete .ed-grid-full {
  grid-column: 1 / -1;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.theme-athlete .ed-cell-title {
  color: rgba(255,255,255,0.4);
  margin: 0.3rem 0 1.2rem;
}

/* 图表周/月切换按钮 */
.theme-athlete .ed-chart-toggle { margin-bottom: 0.75rem; }
.theme-athlete .ed-toggle-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}
.theme-athlete .ed-toggle-btn:first-child { border-radius: 6px 0 0 6px; }
.theme-athlete .ed-toggle-btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.theme-athlete .ed-toggle-btn.active {
  background: var(--ath-accent);
  border-color: var(--ath-accent);
  color: #fff;
}

/* 金字塔 — 条形颜色 */
.theme-athlete .cp-pyramid-section-title { color: #fff; font-weight: 700; margin-top: 1.2rem; }
.theme-athlete .cp-pyramid-section-count { color: rgba(255,255,255,0.35); }
.theme-athlete .cp-pyramid-header { margin-bottom: 0.8rem; }
.theme-athlete .cp-pyramid-label { color: rgba(255,255,255,0.5); }
.theme-athlete .cp-pyramid-bars { background: rgba(255,255,255,0.04); }
.theme-athlete .cp-pyramid-count { color: rgba(255,255,255,0.35); }

.theme-athlete .cp-pyramid-bar-seg[data-style="onsight"] { background-color: #4ECDC4 !important; }
.theme-athlete .cp-pyramid-bar-seg[data-style="flash"] { background-color: #FFD93D !important; }
.theme-athlete .cp-pyramid-bar-seg[data-style="redpoint"] { background-color: var(--ath-accent) !important; }
.theme-athlete .cp-pyramid-bar-seg[data-style="attempt"] { background-color: rgba(255,255,255,0.12) !important; }

/* 完攀风格图例 */
.theme-athlete .cp-send-legend { border-top-color: rgba(255,255,255,0.06); margin-top: 1rem; padding-top: 0.8rem; }
.theme-athlete .cp-send-legend-item { color: rgba(255,255,255,0.5); }
.theme-athlete .cp-send-legend-item[data-style="onsight"] .cp-legend-dot { background-color: #4ECDC4 !important; }
.theme-athlete .cp-send-legend-item[data-style="flash"] .cp-legend-dot { background-color: #FFD93D !important; }
.theme-athlete .cp-send-legend-item[data-style="redpoint"] .cp-legend-dot { background-color: var(--ath-accent) !important; }
.theme-athlete .cp-send-legend-item[data-style="attempt"] .cp-legend-dot { background-color: rgba(255,255,255,0.2) !important; }

/* 分布条 */
.theme-athlete .cp-distribution-bar { background: rgba(255,255,255,0.04); }
.theme-athlete .cp-legend-item { color: rgba(255,255,255,0.5); }

/* 训练场所 */
.theme-athlete .cp-venue-name { color: rgba(255,255,255,0.7); }
.theme-athlete .cp-venue-bar-wrap { background: rgba(255,255,255,0.04); }
.theme-athlete .cp-venue-bar { background: linear-gradient(90deg, var(--ath-accent), rgba(255,51,102,0.3)) !important; }
.theme-athlete .cp-venue-count { color: rgba(255,255,255,0.35); }

/* 完攀率 */
.theme-athlete .ed-send-rate { text-align: center; }
.theme-athlete .ed-rate-value { color: #fff; }
.theme-athlete .ed-rate-detail { color: rgba(255,255,255,0.35); }

/* 热力图卡片 */
/* 热力图年份间距 */
.theme-athlete .cp-heatmap-year-block { margin-bottom: 2.5rem; }
.theme-athlete .cp-heatmap-year-block:last-of-type { margin-bottom: 1rem; }
.theme-athlete .cp-heatmap-year-header {
  margin-bottom: 0.8rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.theme-athlete .cp-heatmap-year-title { color: rgba(255,255,255,0.5); }

/* footer 已在上方主规则中定义为 display: block */

/* ---- Athlete Responsive ---- */
@media (max-width: 768px) {
  .theme-athlete .ath-hero { min-height: auto; flex-direction: column; }
  .theme-athlete .ath-hero-photo {
    position: relative;
    width: 100%;
    height: 220px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }
  .theme-athlete .ath-hero-content {
    width: 100%;
    padding: 1rem 0 1.5rem;
    margin-top: -2rem;
  }
  .theme-athlete .ath-watermark { font-size: 5rem; }
  .theme-athlete .ath-stat-value { font-size: 1.6rem; }
}
