/* ===== AK工作室 · 前台发布页 ===== */
.page { position: relative; z-index: 1; }

/* ---------- 顶部品牌区 ---------- */
.hero { padding: 44px 0 30px; text-align: center; position: relative; }

.topbar {
  position: absolute; top: 0; right: 22px;
  display: flex; gap: 10px; align-items: center;
}
.topbar .btn { backdrop-filter: blur(6px); }

.brand {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 22px;
}

.logo-wrap {
  width: 104px; height: 104px;
  position: relative;
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.logo-wrap::before {
  content: "";
  position: absolute; inset: -14px;
  background: radial-gradient(circle, rgba(56, 189, 248, .28), transparent 68%);
  filter: blur(18px);
  animation: breathe 4.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(1) } 50% { opacity: .95; transform: scale(1.08) } }

.logo-svg { width: 100%; height: 100%; position: relative; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }

.brand-name {
  font-size: 42px; font-weight: 800; letter-spacing: 6px;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff, #a9c6ff 70%, #8ab4ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 34px rgba(120, 170, 255, .28);
}
.brand-sub { font-size: 13px; color: var(--muted); letter-spacing: 3.4px; }

.slogan-line {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px 0 0;
  font-size: 13.5px; color: var(--muted);
}
.slogan-line i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

.notice {
  margin: 22px auto 0;
  max-width: 760px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, .22);
  background: linear-gradient(90deg, rgba(56, 189, 248, .1), rgba(168, 85, 247, .08));
  font-size: 13.5px; color: #b7cbe8;
  display: flex; align-items: center; gap: 10px;
}
.notice::before { content: "公告"; flex: none; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 2px 7px; border-radius: 6px; background: rgba(56, 189, 248, .22); color: #7dd3fc; }
.notice[hidden] { display: none; }

/* ---------- 筛选栏 ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  margin-top: 30px;
  padding: 14px 0;
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.toolbar-inner { display: flex; flex-direction: column; gap: 12px; }
.search-line { display: flex; gap: 12px; align-items: center; }
.search-box { position: relative; flex: 1; }
.search-box .input { padding-left: 40px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px; cursor: pointer; transition: .16s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on {
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(168, 85, 247, .18));
  border-color: rgba(56, 189, 248, .5); color: #cbeafe;
}

.result-line { font-size: 12.5px; color: var(--muted-2); }

/* ---------- 卡片列表 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 26px 0 10px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: .22s cubic-bezier(.2, .8, .3, 1);
  display: flex; flex-direction: column;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; opacity: 0; transition: .22s;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .45), 0 22px 50px rgba(0, 0, 0, .5);
}
.card:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, .34); }
.card:hover::after { opacity: 1; }

.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: repeating-linear-gradient(45deg, #0d1526, #0d1526 10px, #101a2e 10px, #101a2e 20px);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--muted-2); font-size: 30px;
}
.media-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.media-badges .badge { background: rgba(6, 12, 24, .72); backdrop-filter: blur(4px); border-color: rgba(255, 255, 255, .16); }

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { font-size: 16.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.4; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.card-sum {
  font-size: 13.5px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 0;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* 支持系统 / 稳定性 / 更新日期 */
.card-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--border);
}
.card-specs .spec { display: flex; align-items: center; gap: 6px; font-size: 12.2px; min-width: 0; }
.card-specs .spec-k { color: var(--muted-2); flex: none; }
.card-specs .spec b {
  font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-specs .spec:nth-child(3) { grid-column: 1 / -1; }
.st { padding: 1px 7px; border-radius: 999px; font-size: 11.5px; border: 1px solid transparent; }
.st-ok { color: #6ee7b7; background: rgba(52, 211, 153, .13); border-color: rgba(52, 211, 153, .3); }
.st-warn { color: #fcd34d; background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .3); }
.st-bad { color: #fca5a5; background: rgba(248, 113, 113, .13); border-color: rgba(248, 113, 113, .32); }
.detail-specs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }

/* 下载 / 购买按钮 */
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.card-act {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 8px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.card-act-dl {
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(168, 85, 247, .22));
  border-color: rgba(56, 189, 248, .38); color: #a5e8ff;
}
.card-act-dl:hover { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #08101f; border-color: transparent; }
.card-act-buy {
  background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(251, 113, 133, .2));
  border-color: rgba(251, 191, 36, .38); color: #fde68a;
}
.card-act-buy:hover { background: linear-gradient(135deg, #fbbf24, #fb7185); color: #1a1206; border-color: transparent; }
.card-actions:has(.card-act:only-child) { grid-template-columns: 1fr; }
.btn-buy {
  background: linear-gradient(135deg, rgba(251, 191, 36, .22), rgba(251, 113, 133, .22)) !important;
  border-color: rgba(251, 191, 36, .4) !important; color: #fde68a !important;
}

.card-foot { padding-top: 4px; }
.btn-detail {
  width: 100%;
  padding: 9px; border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, .3);
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .18s;
}
.card:hover .btn-detail { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #08101f; border-color: transparent; }

/* ---------- 详情页 ---------- */
.detail-hero {
  position: relative; width: 100%; aspect-ratio: 21 / 9;
  border-radius: 14px; overflow: hidden; margin-bottom: 18px;
  background: #0d1526;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.detail-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.detail-title { font-size: 25px; font-weight: 800; letter-spacing: .5px; margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.detail-meta b { color: #cbd5e1; font-weight: 600; }

.sec { margin-bottom: 22px; }
.sec-title {
  font-size: 13px; font-weight: 700; color: #9fb2d0;
  letter-spacing: 1.6px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 9px;
}
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.detail-lead {
  padding: 13px 16px; border-radius: 12px;
  background: rgba(56, 189, 248, .07);
  border: 1px solid rgba(56, 189, 248, .18);
  border-left: 3px solid var(--cyan);
  font-size: 14.5px; color: #cad9ef; line-height: 1.8;
  white-space: pre-wrap;
}

.detail-text {
  font-size: 14.5px; color: #c3cddf; line-height: 1.9;
  white-space: pre-wrap; word-break: break-word;
}

.video-box {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #05080f; border: 1px solid var(--border);
}
.video-box video, .video-box iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.video-note {
  text-align: center; color: var(--muted); font-size: 13px; padding: 22px 14px;
}
.video-box .video-broken {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 20px; line-height: 1.85; text-align: center;
  background: rgba(5, 8, 15, .82); backdrop-filter: blur(2px);
}
.video-broken b { color: var(--amber); }

.video-lazy-box {
  position: relative; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  background-color: #05080f; background-size: cover; background-position: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-lazy-box::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,8,16,.25), rgba(4,8,16,.72));
}
.video-lazy-box:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.video-play-btn {
  position: relative; z-index: 2; width: 68px; height: 68px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 24px; color: #04101c; padding-left: 5px;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 8px 26px rgba(56, 189, 248, .45);
}
.video-lazy-meta {
  position: absolute; z-index: 2; bottom: 18px; left: 0; right: 0;
  text-align: center; color: #e2e8f0; font-size: 14px; line-height: 1.7;
}
.video-lazy-size { font-size: 12px; color: #94a3b8; }
.video-lazy-box .spinner { position: relative; z-index: 2; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border);
  cursor: zoom-in; transition: .2s;
}
.gallery img:hover { transform: scale(1.03); border-color: rgba(56, 189, 248, .55); }

.detail-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 4px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2, 5, 12, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 30px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 30px; opacity: .7; }

/* ---------- 底部 ---------- */
.footer {
  margin-top: 50px; padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--muted-2); font-size: 12.5px;
}
.footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer a:hover { color: var(--cyan); }

/* ---------- 背景音乐悬浮按钮 ---------- */
.bgm-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(13, 19, 34, .82);
  backdrop-filter: blur(8px);
  color: #7dd3fc; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: .2s;
}
.bgm-btn:hover { transform: scale(1.06); border-color: var(--cyan); }
.bgm-icon { font-size: 19px; line-height: 1; }
.bgm-btn.is-playing { color: #a5e8ff; border-color: rgba(56, 189, 248, .7); }
.bgm-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, .5); opacity: 0; pointer-events: none;
}
.bgm-btn.is-playing .bgm-ring { animation: bgmPulse 1.8s ease-out infinite; }
@keyframes bgmPulse {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 32px; letter-spacing: 3px; }
  .logo-wrap { width: 84px; height: 84px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-title { font-size: 21px; }
  .topbar { position: static; justify-content: center; margin-bottom: 18px; }
  .toolbar { margin-top: 16px; }
  .card-actions { grid-template-columns: 1fr; }
  .bgm-btn { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
