/* =====================================================================
 *  剪辑师作品集 · 样式表（单文件，无外部依赖）
 *  说明：作品封面图缺失或加载失败时，会露出 .cover 自带的渐变占位底
 * ===================================================================*/

:root {
  --bg: #0e1116;
  --bg-soft: #131820;
  --surface: #171d26;
  --surface-2: #1e2531;
  --line: #262f3d;
  --text: #e9edf3;
  --text-dim: #b3bdcc;
  --muted: #8a94a6;
  --accent: #ff6a3d;
  --accent-dim: rgba(255, 106, 61, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1160px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ff8a63; }

h1, h2, h3, h4 { line-height: 1.3; color: #fff; margin: 0 0 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0; }

.section-head { margin-bottom: 22px; }
.section-head h2 {
  font-size: 26px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.section-sub { color: var(--text-dim); max-width: 780px; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 17, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.brand:hover { color: #fff; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff6a3d, #ffb03d);
  color: #1a1005;
  font-weight: 700;
  font-size: 15px;
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.site-nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav a.active { color: #fff; background: var(--accent-dim); }
.nav-toggle {
  display: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
}

/* ---------------- 首页 Hero / Showreel ---------------- */
.hero { padding: 54px 0 12px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 4px 12px;
}
.hero-copy h1 { font-size: 44px; margin: 16px 0 6px; letter-spacing: 1px; }
.hero-tagline { color: #fff; font-size: 18px; margin: 0 0 14px; }
.hero-bio { color: var(--text-dim); margin: 0 0 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 22px; font-weight: 700; color: #fff; }
.stat-label { font-size: 12.5px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #21120b; font-weight: 600; }
.btn-primary:hover { background: #ff8158; color: #21120b; }
.btn-ghost { border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover { color: #fff; background: var(--surface-2); }

.showreel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}
.showreel-info strong { font-size: 15px; }
.showreel-info span { color: var(--muted); font-size: 13px; }

/* ---------------- 播放器（点击封面后加载） ---------------- */
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.player.playing { cursor: default; }
.player-media { position: absolute; inset: 0; z-index: 5; background: #000; }
.player-media iframe,
.player-media video { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  z-index: 6;
  pointer-events: none;
}
.player-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
.player.playing .player-hint,
.player.playing .cover-play,
.player.playing .cover-fallback,
.player.playing .cover-img,
.player.playing .cover-duration { display: none; }

.cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
  transition: transform 0.18s ease;
}
.cover-play::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 17px;
  width: 0;
  height: 0;
  border-left: 13px solid #16181d;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.cover-play-lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cover-play-lg::after {
  top: 21px;
  left: 25px;
  border-left-width: 18px;
  border-top-width: 11px;
  border-bottom-width: 11px;
}
.work-cover-link:hover .cover-play,
.player:hover .cover-play { transform: scale(1.08); }

/* ---------------- 封面与渐变占位 ---------------- */
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #2b3242, #47506a);
}
.grad-0 { background: linear-gradient(135deg, #ff6a3d, #ffb03d); }
.grad-1 { background: linear-gradient(135deg, #3b6cf6, #6f5bff); }
.grad-2 { background: linear-gradient(135deg, #0f9f7a, #4dd4ac); }
.grad-3 { background: linear-gradient(135deg, #c92a5f, #ff8fab); }
.grad-4 { background: linear-gradient(135deg, #5f3dc4, #4c8dff); }
.grad-5 { background: linear-gradient(135deg, #d9822b, #ffd43b); }

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
}
.cover-fallback-cat {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}
.cover-fallback-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.cover-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ---------------- 筛选栏 ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-btn em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.filter-btn:hover { color: #fff; border-color: #3a4658; }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #21120b;
  font-weight: 600;
}
.filter-btn.active em { color: rgba(33, 18, 11, 0.7); }

/* ---------------- 作品网格 ---------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.work-card:hover { transform: translateY(-3px); border-color: #3a4658; }
.work-cover-link { display: block; }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-cat {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
}
.work-title { font-size: 18px; margin: 0; }
.work-title a { color: #fff; }
.work-title a:hover { color: var(--accent); }
.work-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--text-dim); }
.work-meta span { display: inline-block; min-width: 40px; color: var(--muted); }
.work-summary { margin: 0; color: var(--text-dim); font-size: 14px; flex: 1; }
.work-foot { font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 106, 61, 0.05));
}
.tl-group { position: relative; margin-bottom: 34px; }
.tl-month {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
}
.tl-group::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.16);
}
.tl-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.tl-thumb { display: block; }
.tl-thumb .cover { border-radius: 9px; }
.tl-thumb .cover-fallback { padding: 10px; }
.tl-thumb .cover-fallback-title { font-size: 13px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl-head h3 { margin: 0; font-size: 17px; }
.tl-head h3 a { color: #fff; }
.tl-head h3 a:hover { color: var(--accent); }
.tl-client { font-size: 13px; color: var(--accent); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; font-size: 13px; color: var(--muted); }
.tl-summary { margin: 0 0 10px; color: var(--text-dim); font-size: 14px; }
.tl-metrics { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tl-metric { font-size: 12.5px; color: var(--muted); }
.tl-metric b { color: #fff; font-size: 14px; }
.tl-foot { margin-top: 8px; font-size: 14px; }

/* ---------------- 作品详情 ---------------- */
.detail-top { padding: 44px 0 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.detail-title { font-size: 34px; margin-bottom: 12px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.detail-meta b { color: var(--text); }
.detail-summary { color: var(--text-dim); max-width: 860px; margin: 0 0 16px; }
.detail-player { margin-bottom: 40px; }
.detail-block { margin-bottom: 34px; }
.detail-block h2 { font-size: 20px; }
.detail-block h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 2px;
  vertical-align: -2px;
}
.detail-block p { color: var(--text-dim); margin: 0; }
.detail-list { margin: 0; padding-left: 20px; color: var(--text-dim); }
.detail-list li { margin-bottom: 10px; }
.detail-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
}
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-card .value { font-size: 21px; font-weight: 700; color: #fff; }
.metric-card .label { font-size: 13px; color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--surface);
}
.link-btn:hover { color: #fff; border-color: var(--accent); }
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.detail-nav .disabled { color: var(--muted); }

/* ---------------- 关于页 ---------------- */
.strength-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.strength-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.strength-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.strength-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.about-card h3 { font-size: 17px; margin-bottom: 16px; }
.skill-group { margin-bottom: 16px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h4 { font-size: 13.5px; color: var(--accent); margin-bottom: 9px; font-weight: 600; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); min-width: 48px; }
.info-list .v { color: var(--text); }
.brand-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
  font-size: 14px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 18px;
}
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.flow-item:last-child { border-bottom: 0; }
.flow-index { color: var(--accent); font-weight: 700; font-size: 15px; min-width: 28px; }
.flow-body h4 { margin: 0 0 4px; font-size: 15.5px; }
.flow-body p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------------- 空状态 / 页脚 ---------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state h2 { font-size: 20px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

.site-footer {
  margin-top: 40px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy h1 { font-size: 36px; }
  .detail-two-col, .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .brand-sub { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-item { grid-template-columns: minmax(0, 1fr); }
  .tl-thumb { max-width: 240px; }
  .detail-title { font-size: 26px; }
  .section { padding: 40px 0; }
}
