/* ================= 作品集页面样式 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: #eef2ff;
    background: #0a0e1c;
    min-height: 100vh;
}

/* ---------- 背景 ---------- */
.bg-wrap { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-video { width: 100%; height: 100%; object-fit: cover; }
.bg-mask {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(8,12,28,.86) 0%, rgba(20,28,58,.72) 60%, rgba(8,12,28,.9) 100%);
}

/* ---------- 顶部导航 ---------- */
header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4%; border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(10,14,28,.5); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 20;
}
header .logo { font-size: 17px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.nav-menu { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-menu a { color: #c6cfe6; font-size: 14.5px; text-decoration: none; padding: 4px 2px; transition: .2s; }
.nav-menu a:hover { color: #fff; }
.nav-menu a.active { color: #7ea6ff; border-bottom: 2px solid #7ea6ff; }

/* ---------- 标题 ---------- */
.banner-title { text-align: center; padding: 52px 16px 20px; }
.banner-title h1 { font-size: 34px; letter-spacing: 4px; background: linear-gradient(135deg,#8fb0ff,#b78bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner-title p { color: #9aa7c7; margin-top: 10px; font-size: 14px; }

/* ---------- 筛选 ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 6px 16px 10px; }
.fbtn {
    padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06); color: #c6cfe6; font-size: 13.5px; cursor: pointer; transition: .2s;
    font-family: inherit;
}
.fbtn:hover { background: rgba(255,255,255,.14); color: #fff; }
.fbtn.active { background: linear-gradient(135deg,#5b8cff,#8a5bff); border-color: transparent; color: #fff; }

/* ---------- 作品网格 ---------- */
.container {
    max-width: 1080px; margin: 18px auto 70px; padding: 0 20px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
.empty { grid-column: 1 / -1; text-align: center; color: #9aa7c7; padding: 60px 0; font-size: 14px; }
.w-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px; overflow: hidden; backdrop-filter: blur(14px);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.w-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.w-cover { height: 190px; background: #0b1020; overflow: hidden; }
.w-cover .cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-cover .cover.icon { display: flex; align-items: center; justify-content: center; }
.w-cover .cover.icon span { font-size: 56px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.w-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.w-head h3 { font-size: 16.5px; line-height: 1.35; }
.w-head .tag {
    flex: none; font-size: 12px; padding: 3px 10px; border-radius: 999px;
    background: rgba(91,140,255,.18); border: 1px solid rgba(91,140,255,.4); color: #a9c4ff;
}
.w-desc { color: #aab5d4; font-size: 13.5px; line-height: 1.7; margin: 10px 0 16px; flex: 1; white-space: pre-line; }
.w-ops { display: flex; gap: 10px; flex-wrap: wrap; }
.w-ops .btn {
    padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09); color: #eef2ff; font-size: 13px; text-decoration: none; transition: .2s;
}
.w-ops .btn:hover { background: rgba(255,255,255,.2); }
.w-ops .btn.link { background: linear-gradient(135deg,#5b8cff,#8a5bff); border-color: transparent; }

@media (max-width: 640px) {
    .nav-menu { gap: 14px; }
    .container { grid-template-columns: 1fr; }
    .banner-title h1 { font-size: 26px; }
}