/* ============================================================
   攻略页 guides.css
   - 页面头（与成员页同款，独立定义，不依赖 members.css）
   - 视频攻略网格：数据来自 data/videos.json，由 js/guides.js 渲染
   ============================================================ */

/* ---------- 页面头 ---------- */
.page-head {
  padding: calc(var(--header-h) + 62px) 0 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -100px; top: -140px;
  width: 420px; height: 420px;
  border: 1px solid var(--accent-dim);
  transform: rotate(45deg);
  pointer-events: none;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 2.5px;
}
.page-head h1 .accent { color: var(--accent); }
.page-head p { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 680px; }

/* ---------- 区块 ---------- */
.video-section { padding: 48px 0 40px; }

/* ---------- 视频网格 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 22px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .28s var(--ease, ease), border-color .28s, box-shadow .28s;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.v-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.v-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.video-card:hover .v-cover img { transform: scale(1.05); }

.v-rank {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 2px 9px;
  color: var(--accent-2);
  background: rgba(10, 7, 16, .82);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.v-dur {
  position: absolute;
  right: 8px; bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 7px;
  color: var(--text);
  background: rgba(10, 7, 16, .8);
  border: 1px solid var(--line);
}

.v-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.v-title {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-3);
}
.v-meta .v-play { color: var(--accent); }

/* ---------- 底部「查看更多」（2026-09-29 新增） ---------- */
.video-more { margin-top: 42px; text-align: center; }

/* ---------- 数据说明条 ---------- */
.data-note {
  margin-top: 40px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.data-note h3 {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 8px;
  font-weight: 600;
}
.data-note code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-2);
  background: rgba(200, 169, 106, .08);
  padding: 1px 6px;
}
.data-note a { color: var(--accent-2); }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-head { padding-top: calc(var(--header-h) + 40px); }
}
