/* ============================================================
   打卡攻略页 - 专属样式
   ============================================================ */

/* ===== 打卡统计条 ===== */
.checkin-stats-bar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 32px 0;
}
.checkin-stats-bar .stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.checkin-stats-bar .stat-num { color: #ff6b35; }
.checkin-stats-bar .stat-label { color: rgba(255,255,255,0.6); }

/* ===== 打卡路线 ===== */
.route-section { background: var(--bg-light); }
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.route-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.route-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.route-header {
  padding: 28px 28px 24px;
  color: #fff;
}
.route-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.route-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.route-subtitle {
  font-size: 0.88rem;
  opacity: 0.85;
}
.route-body { padding: 24px 28px 28px; }
.route-img-wrap {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.route-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.route-card:hover .route-img-wrap img { transform: scale(1.06); }
.route-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.route-stops { margin-bottom: 20px; }
.stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stop-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}
.stop-food {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 50px;
}
.stop-line {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin-left: 4px;
}
.route-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.route-time, .route-cost {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
}
.route-diff {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.diff-easy   { background: #d1fae5; color: #065f46; }
.diff-medium { background: #fef3c7; color: #92400e; }
.diff-hard   { background: #fee2e2; color: #991b1b; }

/* ===== 热门打卡地点 ===== */
.hotspot-section { background: var(--bg-white); }
.hotspot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hotspot-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.hotspot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.hotspot-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.hotspot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hotspot-card:hover .hotspot-img img { transform: scale(1.06); }
.hotspot-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.hotspot-info { padding: 18px 20px 20px; }
.hotspot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.hotspot-header h4 { font-size: 1rem; font-weight: 700; }
.hotspot-checkin { font-size: 0.75rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.hotspot-info > p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.hotspot-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== 打卡技巧 Banner ===== */
.checkin-tips-section { background: var(--bg-light); }
.tips-banner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.tips-banner-img { height: 100%; min-height: 420px; }
.tips-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.tips-banner-content { padding: 40px 40px 40px 0; }
.pro-tip-list { display: flex; flex-direction: column; gap: 28px; }
.pro-tip { display: flex; align-items: flex-start; gap: 16px; }
.pro-tip-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pro-tip h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.pro-tip p  { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }

/* ===== 排行榜 ===== */
.leaderboard-section { background: var(--bg-white); }
.leaderboard-table {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.lb-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 100px 1fr;
  gap: 16px;
  padding: 14px 24px;
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lb-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 100px 1fr;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--bg-light); }
.lb-top1 { background: linear-gradient(90deg, rgba(255,215,0,0.08), transparent); }
.lb-top2 { background: linear-gradient(90deg, rgba(192,192,192,0.08), transparent); }
.lb-top3 { background: linear-gradient(90deg, rgba(205,127,50,0.08), transparent); }
.lb-rank {
  font-size: 0.9rem;
  font-weight: 800;
}
.rank-gold   { color: #d4a017; }
.rank-silver { color: #808080; }
.rank-bronze { color: #a0522d; }
.lb-food { font-size: 0.92rem; color: var(--text-dark); }
.lb-loc  { font-size: 0.85rem; color: var(--text-mid); }
.lb-count { font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.lb-bar-wrap {
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}
.lb-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* ===== 打卡社区 ===== */
.community-section { background: var(--bg-light); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.share-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.share-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.share-img { height: 200px; overflow: hidden; }
.share-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.share-card:hover .share-img img { transform: scale(1.05); }
.share-body { padding: 18px 20px 20px; }
.share-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.share-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.share-name { font-size: 0.88rem; font-weight: 700; }
.share-time { font-size: 0.75rem; color: var(--text-light); }
.share-like {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}
.share-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}
.share-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.share-tags .tag { color: var(--secondary); background: rgba(124,58,237,0.08); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .route-grid    { grid-template-columns: 1fr; }
  .hotspot-grid  { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-banner   { grid-template-columns: 1fr; }
  .tips-banner-img { min-height: 260px; }
  .tips-banner-content { padding: 32px; }
  .lb-header,
  .lb-row {
    grid-template-columns: 60px 1fr 1fr 80px 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
}
@media (max-width: 768px) {
  .hotspot-grid  { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .lb-header,
  .lb-row { grid-template-columns: 50px 1fr 80px; gap: 8px; }
  .lb-header span:nth-child(3),
  .lb-row .lb-loc,
  .lb-header span:nth-child(5),
  .lb-row .lb-bar-wrap { display: none; }
}
