/* 作品集样式 —— 一般不需要改动这个文件 */
:root {
  --bg: #0e1014;
  --panel: #16191f;
  --panel-2: #1c2027;
  --line: #262b34;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent: #f2b64c;
  --accent-2: #f2874c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand::before {
  content: "🎬";
  margin-right: 8px;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--text); border-color: #3a4150; }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #16130a;
  font-weight: 600;
}

/* ---------- 首屏 ---------- */
.hero { padding: 58px 0 34px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #f6d28a, var(--accent) 45%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.slogan {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}
.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 30px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3a4150;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card:hover .thumb img { transform: scale(1.05); }

/* 没有封面图时显示视频第一帧 */
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.72);
  color: #f0d9ad;
  border: 1px solid rgba(242, 182, 76, 0.35);
  backdrop-filter: blur(4px);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  background: rgba(8, 10, 14, 0.28);
}
.card:hover .play { opacity: 1; }
.play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  padding-left: 4px;
}

.card-info { padding: 14px 16px 15px; }
.card-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}
.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- 播放大窗 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.9);
  backdrop-filter: blur(6px);
}
.lb-body {
  position: relative;
  width: min(1040px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage video {
  width: 100%;
  max-height: 72vh;
  border-radius: 12px;
  background: #000;
  outline: none;
}
.lb-info h3 { margin: 0 0 4px; font-size: 17px; }
.lb-info p { margin: 0; color: var(--muted); font-size: 13px; }

.lb-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 22, 28, 0.7);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.lb-close:hover { background: rgba(60, 64, 74, 0.9); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 22, 28, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}
.lb-nav:hover { background: rgba(60, 64, 74, 0.9); }
.lb-prev { left: -58px; }
.lb-next { right: -58px; }

/* ---------- 小屏适配 ---------- */
@media (max-width: 900px) {
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-nav { top: auto; bottom: -8px; transform: none; }
  .hero { padding: 40px 0 26px; }
}
@media (max-width: 640px) {
  .header-inner { height: 54px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-info { padding: 10px 12px 12px; }
  .card-title { font-size: 13.5px; }
  .lb-stage video { max-height: 62vh; }
}
@media (max-width: 430px) {
  .grid { grid-template-columns: 1fr; }
}
