/* ============================================================
   星片素材库 · Star Clip Hub
   深色玻璃拟态设计系统
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-soft: #0e1222;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --text-dim: #a3abcc;
  --text-faint: #6d769a;
  --violet: #7c5cff;
  --pink: #ff4d8d;
  --cyan: #38d9ff;
  --amber: #ffd166;
  --green: #3ddc97;
  --grad-main: linear-gradient(120deg, #7c5cff 0%, #ff4d8d 60%, #ff9d4d 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(255, 77, 141, 0.35));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景氛围光斑 */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}
.bg-aurora::before {
  top: -20vw;
  left: -12vw;
  background: radial-gradient(circle, #7c5cff, transparent 65%);
}
.bg-aurora::after {
  bottom: -25vw;
  right: -14vw;
  background: radial-gradient(circle, #ff4d8d, transparent 65%);
}
.bg-aurora .blob {
  position: absolute;
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
}
.bg-aurora .blob.b1 { top: 30vh; left: -20vw; background: radial-gradient(circle, #38d9ff, transparent 65%); }
.bg-aurora .blob.b2 { top: 55vh; right: -18vw; background: radial-gradient(circle, #ffd166, transparent 65%); }

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); background-clip: content-box; }

/* ============ 容器 ============ */
.container { width: min(1180px, 92vw); margin: 0 auto; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .eyebrow { font-size: 13px; letter-spacing: 3px; color: var(--pink); font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: 0.5px; margin-top: 4px; }
.section-head p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

.link-more { font-size: 14px; color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.25s var(--ease); white-space: nowrap; }
.link-more:hover { gap: 8px; }

/* ============ 导航 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 14, 26, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; }
.logo .logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad-main);
  display: grid; place-items: center;
  font-size: 18px; box-shadow: 0 6px 20px -6px rgba(255, 77, 141, 0.6);
}
.logo .logo-sub { display: block; font-size: 10px; font-weight: 600; color: var(--text-dim); letter-spacing: 2px; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--text-dim); transition: all 0.25s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-links a.active { color: #fff; background: linear-gradient(120deg, rgba(124,92,255,0.35), rgba(255,77,141,0.35)); }
.nav-links a .nav-badge { font-size: 10px; background: var(--pink); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.points-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 209, 102, 0.12); border: 1px solid rgba(255, 209, 102, 0.3);
  font-size: 13px; font-weight: 700; color: var(--amber);
}
.points-pill .lv { font-weight: 500; color: var(--text-dim); font-size: 12px; border-left: 1px solid rgba(255,209,102,0.3); padding-left: 8px; margin-left: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: all 0.28s var(--ease); position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 77, 141, 0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255, 77, 141, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-soft { background: rgba(124, 92, 255, 0.16); border: 1px solid rgba(124, 92, 255, 0.4); color: #cfc6ff; }
.btn-soft:hover { background: rgba(124, 92, 255, 0.26); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .btn-shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover .btn-shine { left: 120%; }

/* 汉堡菜单 */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 74px 0 60px; text-align: center; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.35);
  color: #cfc6ff; margin-bottom: 22px;
  animation: floaty 4s ease-in-out infinite;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(34px, 6.4vw, 62px); font-weight: 900; letter-spacing: 1px; line-height: 1.15; }
.hero h1 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .sub { max-width: 640px; margin: 20px auto 0; color: var(--text-dim); font-size: clamp(15px, 2vw, 17px); }

.hero-search {
  max-width: 640px; margin: 34px auto 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-search:focus-within { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }
.hero-search .s-icon { font-size: 17px; opacity: 0.8; }
.hero-search input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; padding: 9px 0; color: var(--text); }
.hero-search input::placeholder { color: var(--text-faint); }

.hero-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.stat-pill {
  padding: 12px 24px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  min-width: 130px; transition: all 0.3s var(--ease);
}
.stat-pill:hover { transform: translateY(-4px); border-color: var(--border-strong); background: rgba(255,255,255,0.08); }
.stat-pill b { display: block; font-size: 24px; font-weight: 800; background: linear-gradient(120deg,#fff,#b9c1ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-pill span { font-size: 12.5px; color: var(--text-dim); }

/* ============ 分类入口 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; padding: 22px 14px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; transition: all 0.32s var(--ease); overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, 0.25), transparent 55%);
  opacity: 0; transition: opacity 0.32s;
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5); box-shadow: var(--shadow); }
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-icon { font-size: 30px; position: relative; z-index: 1; display: inline-block; transition: transform 0.32s var(--ease); }
.cat-card:hover .cat-icon { transform: scale(1.18) rotate(-6deg); }
.cat-card .cat-name { font-weight: 700; font-size: 15px; margin-top: 10px; position: relative; z-index: 1; }
.cat-card .cat-count { font-size: 12px; color: var(--text-faint); margin-top: 2px; position: relative; z-index: 1; }

/* ============ 素材卡片 ============ */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.material-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.m-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.34s var(--ease); cursor: pointer;
}
.m-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); background: var(--bg-card-hover); }

.m-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.m-cover .cover-bg { position: absolute; inset: 0; transition: transform 0.5s var(--ease); }
.m-card:hover .cover-bg { transform: scale(1.08); }
.m-cover .cover-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 24, 0.85));
}
.cover-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.18); }
.cover-tag.hot { background: linear-gradient(120deg, #ff4d8d, #ff7a3d); border-color: transparent; }
.cover-dur { position: absolute; bottom: 10px; right: 10px; z-index: 2; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); }
.cover-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.3s;
}
.m-card:hover .cover-play { opacity: 1; }
.cover-play .play-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px); font-size: 18px; transform: scale(0.7); transition: transform 0.35s var(--ease);
}
.m-card:hover .cover-play .play-btn { transform: scale(1); }

.m-body { padding: 14px 16px 16px; }
.m-title { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m-title:hover { color: var(--cyan); }
.m-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; font-size: 12px; color: var(--text-dim); }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); }
.chip.res4k { color: var(--violet); border-color: rgba(124,92,255,0.5); background: rgba(124,92,255,0.14); }
.chip.free { color: var(--green); border-color: rgba(61,220,151,0.5); background: rgba(61,220,151,0.12); }

.m-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.m-points { font-weight: 800; font-size: 15px; color: var(--amber); }
.m-points small { font-size: 11px; font-weight: 600; color: var(--text-faint); }
.m-like { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px; }

/* 调色板封面 */
.tone-violet  .cover-bg { background: linear-gradient(135deg, #6a4dff 0%, #a45cff 50%, #ff6fb2 100%); }
.tone-pink    .cover-bg { background: linear-gradient(135deg, #ff4d8d 0%, #ff7a9e 50%, #ffb199 100%); }
.tone-cyan    .cover-bg { background: linear-gradient(135deg, #0ea5e9 0%, #38d9ff 50%, #7dd3fc 100%); }
.tone-amber   .cover-bg { background: linear-gradient(135deg, #f59e0b 0%, #ffd166 50%, #ffb37b 100%); }
.tone-green   .cover-bg { background: linear-gradient(135deg, #0f9d7d 0%, #3ddc97 50%, #a3e9c4 100%); }
.tone-royal   .cover-bg { background: linear-gradient(135deg, #312e81 0%, #6366f1 50%, #8b5cf6 100%); }
.tone-night   .cover-bg { background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #4f46e5 100%); }
.tone-sunset  .cover-bg { background: linear-gradient(135deg, #ea580c 0%, #f43f5e 55%, #fb7185 100%); }
.m-cover .cover-art {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
}
.m-cover .cover-art span { font-size: 46px; opacity: 0.9; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)); }
.m-cover .cover-char {
  position: absolute; right: -8px; bottom: -24px; z-index: 1;
  font-size: 110px; font-weight: 900; color: rgba(255,255,255,0.12);
  letter-spacing: 2px; user-select: none;
}

/* ============ 模板卡片 ============ */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.34s var(--ease); display: flex; flex-direction: column;
}
.t-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); background: var(--bg-card-hover); }
.t-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.t-cover .cover-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #312e81, #6d28d9 60%, #db2777); transition: transform 0.5s var(--ease); }
.t-card:hover .t-cover .cover-bg { transform: scale(1.07); }
.t-cover .cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,13,24,0.8)); }
.t-cover .t-preview { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.t-cover .t-preview .play-btn {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(8px); font-size: 20px; transition: all 0.35s var(--ease);
}
.t-card:hover .t-preview .play-btn { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255,255,255,0.08); }
.t-cover .t-type { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); }
.t-cover .sw-badge { position: absolute; bottom: 10px; right: 10px; z-index: 3; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: var(--violet); color: #fff; box-shadow: 0 6px 14px -4px rgba(124,92,255,0.7); }
.sw-badge.pr { background: var(--pink); box-shadow: 0 6px 14px -4px rgba(255,77,141,0.7); }
.sw-badge.bj { background: var(--cyan); color: #06213a; box-shadow: 0 6px 14px -4px rgba(56,217,255,0.6); }

.t-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.t-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.t-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.t-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 13px; }
.t-foot .meta-tiny { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.stars { color: var(--amber); font-size: 12.5px; letter-spacing: 1px; }

/* ============ 素材库工具条 ============ */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(10px); margin-bottom: 24px; position: sticky; top: calc(var(--nav-h) + 12px); z-index: 40;
}
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
.search-box input { flex: 1; background: transparent; border: none; outline: none; font-size: 14.5px; }
.search-box input::placeholder { color: var(--text-faint); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  height: 44px; padding: 0 38px 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text);
  outline: none; cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.select-wrap select:hover { background: rgba(255,255,255,0.1); }
.select-wrap select:focus { border-color: rgba(124,92,255,0.7); }
.select-wrap option { background: #141831; color: var(--text); }

.seg-group { display: inline-flex; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 2px; }
.seg-group button { padding: 8px 15px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); transition: all 0.25s var(--ease); }
.seg-group button.active { background: var(--grad-main); color: #fff; box-shadow: 0 6px 14px -6px rgba(255,77,141,0.7); }
.seg-group button:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.06); }

/* 筛选条 */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-label { font-size: 13px; color: var(--text-dim); margin-right: 2px; display: inline-flex; align-items: center; gap: 6px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.f-chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.25s var(--ease); cursor: pointer;
}
.f-chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.f-chip.active { background: var(--grad-main); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(255,77,141,0.7); }

.result-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 13.5px; color: var(--text-dim); }
.result-meta b { color: var(--text); font-size: 15px; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: all 0.25s; }
.sort-btn:hover { background: rgba(255,255,255,0.1); }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.empty .empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.8; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty p { font-size: 14px; }

/* ============ 详情页 ============ */
.detail-hero { padding: 40px 0 30px; }
.crumb { font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.crumb a:hover { color: var(--cyan); }
.crumb .sep { opacity: 0.5; }
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }

.d-player {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.d-player .cover-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #4c1d95, #be185d 60%, #f43f5e); }
.d-player .cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.5)); }
.d-player .cover-art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; }
.d-player .big-play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  cursor: pointer; background: transparent; transition: background 0.3s;
}
.d-player .big-play:hover { background: rgba(0,0,0,0.15); }
.d-player .big-play .play-btn {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(10px); font-size: 30px; transition: all 0.35s var(--ease);
  box-shadow: 0 0 60px -10px rgba(255,255,255,0.4);
}
.d-player .big-play:hover .play-btn { transform: scale(1.1); }
.d-player .d-topbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; display: flex; justify-content: space-between; align-items: center; }
.d-player .cover-tag { position: static; }
.d-player .d-bottom { position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.d-player .d-title { font-size: clamp(17px, 2.6vw, 22px); font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.d-player .d-dur { font-size: 12.5px; font-weight: 700; background: rgba(0,0,0,0.5); padding: 3px 10px; border-radius: 8px; white-space: nowrap; }

.d-info { display: flex; flex-direction: column; gap: 16px; }
.d-card { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); padding: 20px 22px; }
.d-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.d-card h3 .ic { font-size: 18px; }
.desc-text { font-size: 14.5px; color: var(--text-dim); line-height: 1.9; }

.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.meta-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.meta-item .mi-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,92,255,0.14); font-size: 15px; flex-shrink: 0; }
.meta-item .mi-label { color: var(--text-faint); font-size: 12px; }
.meta-item .mi-value { font-weight: 700; font-size: 13.5px; }

.d-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 4px; }
.d-actions .btn { width: 100%; }
.d-actions .btn:not(.btn-primary) { width: auto; padding: 11px 18px; }

.d-share { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); transition: all 0.28s var(--ease);
}
.share-btn:hover { transform: translateY(-3px) scale(1.05); border-color: var(--border-strong); background: rgba(255,255,255,0.13); }
.share-btn.wx:hover { box-shadow: 0 10px 22px -8px rgba(61,220,151,0.6); border-color: var(--green); }
.share-btn.wb:hover { box-shadow: 0 10px 22px -8px rgba(255,77,141,0.6); border-color: var(--pink); }
.share-btn.dy:hover { box-shadow: 0 10px 22px -8px rgba(56,217,255,0.6); border-color: var(--cyan); }
.share-btn.qq:hover { box-shadow: 0 10px 22px -8px rgba(124,92,255,0.6); border-color: var(--violet); }

/* 相关素材 */
.related { padding: 20px 0 70px; }

/* ============ 上传页 ============ */
.upload-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.form-card { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); padding: 28px; backdrop-filter: blur(10px); }
.form-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.form-card .form-sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.form-field label .req { color: var(--pink); }
.form-field input[type="text"], .form-field input[type="number"], .form-field select, .form-field textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px; font-size: 14.5px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text);
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: rgba(124,92,255,0.7); box-shadow: 0 0 0 4px rgba(124,92,255,0.14); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.dropzone {
  border: 2px dashed rgba(124, 92, 255, 0.4); border-radius: 14px; padding: 34px 20px;
  text-align: center; cursor: pointer; transition: all 0.3s var(--ease);
  background: rgba(124, 92, 255, 0.05);
}
.dropzone:hover, .dropzone.drag { border-color: var(--violet); background: rgba(124, 92, 255, 0.12); transform: scale(1.01); }
.dropzone .dz-icon { font-size: 38px; margin-bottom: 8px; }
.dropzone .dz-title { font-weight: 700; font-size: 15px; }
.dropzone .dz-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.dropzone .dz-file { margin-top: 12px; font-size: 13px; color: var(--cyan); font-weight: 600; word-break: break-all; }

.upload-success { text-align: center; padding: 50px 20px; }
.upload-success .ok-icon { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: radial-gradient(circle at 30% 30%, rgba(61,220,151,0.4), rgba(61,220,151,0.1)); border: 1px solid rgba(61,220,151,0.5); animation: pop 0.5s var(--ease); }
.upload-success h3 { font-size: 22px; font-weight: 800; }
.upload-success p { color: var(--text-dim); font-size: 14px; margin: 10px auto 24px; max-width: 380px; }

.side-card { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); padding: 20px 22px; }
.side-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.level-box { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(124,92,255,0.1); border: 1px solid rgba(124,92,255,0.3); margin-bottom: 16px; }
.level-box .lv-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; background: var(--grad-main); box-shadow: 0 8px 18px -8px rgba(255,77,141,0.7); }
.level-box .lv-name { font-weight: 800; font-size: 15px; }
.level-box .lv-progress { font-size: 12px; color: var(--text-dim); }
.level-box .lv-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.12); margin-top: 7px; overflow: hidden; }
.level-box .lv-bar i { display: block; height: 100%; width: 68%; border-radius: 99px; background: var(--grad-main); }
.reward-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.reward-item:last-child { border-bottom: none; padding-bottom: 0; }
.reward-item .r-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
.reward-item .r-t { font-size: 13.5px; font-weight: 700; }
.reward-item .r-d { font-size: 12px; color: var(--text-faint); margin-top: 1px; }

/* ============ 规则区 ============ */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule-card { padding: 22px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); transition: all 0.3s var(--ease); }
.rule-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.rule-card .r-num { font-size: 26px; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rule-card h4 { font-size: 15px; font-weight: 800; margin: 8px 0 6px; }
.rule-card p { font-size: 13px; color: var(--text-dim); line-height: 1.75; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--border); padding: 44px 0 30px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(124,92,255,0.05)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-brand .logo { font-size: 18px; margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--text-dim); max-width: 320px; line-height: 1.8; }
.foot-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13px; color: var(--text-dim); padding: 5px 0; transition: all 0.2s; }
.foot-col a:hover { color: var(--cyan); transform: translateX(3px); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 7, 16, 0.78); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: all 0.32s var(--ease);
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  width: min(680px, 100%); max-height: 86vh; overflow: auto;
  border-radius: 22px; background: #141831; border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
  transform: translateY(24px) scale(0.97); transition: all 0.35s var(--ease);
}
.modal-mask.show .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,0.07); transition: all 0.25s; }
.modal-close:hover { background: rgba(255,77,141,0.25); transform: rotate(90deg); }
.modal-body { padding: 22px; }

/* 预览弹窗 */
.preview-stage { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; position: relative; display: grid; place-items: center; }
.preview-stage .cover-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #4c1d95, #be185d 60%, #f43f5e); }
.preview-stage .cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55)); }
.preview-stage .cover-art { position: absolute; font-size: 60px; animation: floaty 3.5s ease-in-out infinite; }
.preview-stage .pp-tip { position: relative; z-index: 2; bottom: auto; margin-top: 0; }
.preview-stage .pp-tip { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 2; font-size: 13px; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.35); padding: 6px 14px; width: max-content; margin: 0 auto; border-radius: 99px; backdrop-filter: blur(6px); }
.pp-info { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.pp-info b { font-size: 15px; }
.pp-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pp-desc { margin-top: 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.8; }

/* 分享弹窗 */
.share-dialog { text-align: center; }
.share-dialog .qr { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; font-size: 14px; background: #fff; color: #111; border: 1px solid var(--border-strong); position: relative; overflow: hidden; }
.share-dialog .qr canvas, .share-dialog .qr svg { position: absolute; inset: 0; }
.share-dialog .qr .qr-corners { position: absolute; inset: 0; }
.share-dialog p { color: var(--text-dim); font-size: 13.5px; }
.copy-row { display: flex; gap: 8px; margin-top: 18px; }
.copy-row input { flex: 1; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); font-size: 13px; outline: none; }

/* 下载确认弹窗 */
.need-points { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255,209,102,0.08); border: 1px solid rgba(255,209,102,0.28); margin-bottom: 16px; }
.need-points .np-ic { font-size: 26px; }
.need-points b { color: var(--amber); }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); transition: all 0.25s; }
.dl-item:hover { border-color: rgba(56,217,255,0.5); background: rgba(56,217,255,0.07); }
.dl-item .dl-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: rgba(56,217,255,0.12); flex-shrink: 0; }
.dl-item .dl-name { font-size: 14px; font-weight: 700; }
.dl-item .dl-size { font-size: 12px; color: var(--text-faint); }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 13px; min-width: 240px; max-width: 320px;
  background: #1a1f3a; border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7);
  transform: translateX(120%); opacity: 0; transition: all 0.4s var(--ease);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--pink); }
.toast.info { border-left: 3px solid var(--cyan); }
.toast .t-ic { font-size: 17px; }
.toast .t-msg { font-size: 13.5px; font-weight: 600; }

/* ============ 通用动效 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton { border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.skeleton .sk-cover { aspect-ratio: 16/9; background: linear-gradient(100deg, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line { height: 14px; margin: 14px 16px; border-radius: 6px; background: linear-gradient(100deg, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.05) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; background: rgba(255,255,255,0.08); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--grad-main); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(11, 14, 26, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; transform: translateY(-16px);
    opacity: 0; visibility: hidden; transition: all 0.32s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 16px; border-radius: 12px; font-size: 15px; }
  .points-pill { display: none; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 52px 0 44px; }
  .hero-stats { gap: 8px; }
  .stat-pill { min-width: 104px; padding: 10px 14px; }
  .stat-pill b { font-size: 19px; }
  .toolbar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .d-actions { grid-template-columns: 1fr; }
  .d-actions .btn:not(.btn-primary) { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .material-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .meta-list { grid-template-columns: 1fr; }
  .select-wrap select { max-width: 150px; }
}
