/* ============================================================
   成品视频展示 —— 样式（浅色默认 / 深色可切，宽屏铺满）
   主题通过 <html data-theme="light|dark"> 切换
   ============================================================ */

/* 浅色主题（默认） */
:root, [data-theme="light"] {
  --bg:         #f5f6f8;
  --surface:    #ffffff;
  --raised:     #eef0f3;
  --line:       rgba(0,0,0,0.09);
  --text:       #191c22;
  --muted:      #697586;
  --accent:     #c67b1a;
  --accent-dim: rgba(198,123,26,0.12);
  --accent-fg:  #ffffff;
  --shadow:     0 2px 12px rgba(0,0,0,0.06);
  --glow:       rgba(198,123,26,0.10);
}
/* 深色主题 */
[data-theme="dark"] {
  --bg:         #101318;
  --surface:    #191d24;
  --raised:     #20252e;
  --line:       rgba(255,255,255,0.08);
  --text:       #eceef1;
  --muted:      #99a1ad;
  --accent:     #f2b45a;
  --accent-dim: rgba(242,180,90,0.14);
  --accent-fg:  #1a1205;
  --shadow:     none;
  --glow:       rgba(242,180,90,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

/* 铺满整个屏幕宽度，仅两侧留边距 */
.wrap { width: 100%; max-width: none; margin: 0; padding: 0 48px; }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { height: 32px; width: auto; display: block; max-width: 340px; object-fit: contain; }
[data-theme="light"] .brand-logo { filter: brightness(0); }
.brand-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 18px var(--glow); }
.brand-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .2px; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.admin-link { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; white-space: nowrap; }
.admin-link:hover { color: var(--accent); }
.theme-toggle {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all .2s; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 主视觉（宽屏两栏：标题左，搜索右） ---------- */
.hero { position: relative; padding: 64px 0 44px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; width: 100%; height: 620px;
  background: radial-gradient(ellipse 55% 100% at 72% 0%, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.hero-left { flex: 1 1 420px; min-width: 300px; }
.hero-right { flex: 0 1 620px; min-width: 280px; padding-bottom: 6px; }
.eyebrow { font-family: "Sora", sans-serif; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--accent); margin: 0 0 16px; }
.hero-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.07; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 0; }
.searchbar { position: relative; width: 100%; }
.searchbar .search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
#searchInput {
  width: 100%; padding: 15px 18px 15px 50px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 15px; font-family: inherit; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
#searchInput::placeholder { color: var(--muted); }
#searchInput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }

/* ---------- 分类 ---------- */
.main { padding-bottom: 90px; }
.category-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 8px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; cursor: pointer;
  transition: all .18s; font-family: inherit; box-shadow: var(--shadow);
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }

/* ---------- 视频网格（宽屏多列铺满） ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--raised), var(--surface)); display: flex; align-items: center; justify-content: center; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.play-badge {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.card:hover .play-badge { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.play-badge svg { width: 20px; height: 20px; margin-left: 3px; }
.card:hover .play-badge svg path { fill: var(--accent-fg); }
.card-body { padding: 16px 18px 18px; }
.card-cat { font-family: "Sora", sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.card-status { color: var(--accent); font-size: 13px; margin: 6px 0 0; }
.card-status:empty { display: none; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12px; color: var(--muted); background: var(--raised); padding: 3px 10px; border-radius: 6px; }

.empty { text-align: center; color: var(--muted); padding: 80px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- 手机适配 ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 52px 0 36px; }
  .video-grid { grid-template-columns: 1fr; }
  .header-inner { height: 58px; }
  .brand-name em { display: none; }
}

/* 复制成功提示 */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 12px 24px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   开场页 —— 电影放映厅氛围（分层光影 + 逐层入场）
   ============================================================ */
body.intro-open { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 200;
  background: #08090c; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease;
}
.intro.hide { opacity: 0; pointer-events: none; }

/* 舞台光：顶部聚光锥 + 底部环境光 + 暗角 */
.intro-stage { position: absolute; inset: 0; pointer-events: none; }
.intro-stage::before {
  content: ""; position: absolute; top: -22%; left: 50%;
  width: 130vw; max-width: 1500px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 42% 60% at 50% 0%, rgba(242,180,90,0.22) 0%, rgba(242,180,90,0.05) 42%, transparent 70%);
  filter: blur(4px);
}
.intro-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 46%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.6) 100%);
}

.intro-inner { position: relative; text-align: center; padding: 24px; }

/* 逐层入场：每个元素依次淡入上浮 */
.intro-eyebrow, .intro-logo, .intro-divider, .intro-tagline, .intro-enter {
  opacity: 0; animation: introRise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.intro-eyebrow  { animation-delay: .05s; }
.intro-logo     { animation-delay: .22s; }
.intro-divider  { animation-delay: .40s; }
.intro-tagline  { animation-delay: .55s; }
.intro-enter    { animation-delay: .78s; }
@keyframes introRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.intro-eyebrow {
  font-family: "Sora", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent, #f2b45a); margin-bottom: 30px;
}
.intro-logo {
  display: block; margin: 0 auto; width: auto;
  max-width: min(840px, 92vw); max-height: 200px;
  filter: drop-shadow(0 6px 40px rgba(242,180,90,0.18));
}
.intro-divider { display: flex; align-items: center; justify-content: center; margin: 34px auto 30px; width: 200px; }
.intro-divider span { position: relative; flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.28), transparent); }
.intro-divider span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  transform: translate(-50%,-50%) rotate(45deg); background: var(--accent, #f2b45a);
  box-shadow: 0 0 12px rgba(242,180,90,0.7);
}
.intro-tagline {
  font-family: "Sora", sans-serif; color: #f4f5f7;
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 700;
  line-height: 1.18; letter-spacing: 2px; margin: 0 0 54px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.intro-enter {
  position: relative; background: none; border: none;
  color: rgba(244,245,247,0.72);
  font-family: "Sora", sans-serif; font-size: 17px; font-weight: 500;
  letter-spacing: 6px; padding: 12px 8px; cursor: pointer;
  transition: color .45s ease, letter-spacing .45s ease;
}
.intro-enter::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 1px; background: var(--accent, #f2b45a);
  transform: translateX(-50%); transition: width .45s ease;
}
.intro-enter:hover { color: #fff; letter-spacing: 9px; }
.intro-enter:hover::after { width: 100%; }

@media (max-width: 640px) {
  .intro-logo { max-height: 150px; }
  .intro-divider { width: 150px; margin: 26px auto 22px; }
}
