:root {
  --bg: #08080a;
  --surface: #101014;
  --surface-2: #17171c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3f5;
  --muted: #96969f;
  --muted-2: #6c6c77;
  --accent: #ff6a3d;
  --radius: 14px;
  --max: 1560px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

input, select { font: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0a0a0c; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.brand-mark {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--accent);
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cats {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar { display: none; }

.pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.pill.is-active { background: #fff; color: #08080a; font-weight: 500; }

.search {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.search input {
  width: 230px;
  padding: 9px 14px 9px 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, width 0.24s ease, background 0.18s ease;
}

.search input::placeholder { color: var(--muted-2); }

.search input:focus {
  width: 280px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 主视觉 ---------- */

.hero {
  position: relative;
  max-width: calc(var(--max) - var(--pad) * 2);
  margin: 28px auto 0;
  height: clamp(320px, 44vw, 500px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-2);
}

.hero-skeleton { position: absolute; inset: 0; background: var(--surface-2); }

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 6s ease-out;
}

.hero.is-loaded .hero-img { opacity: 1; transform: scale(1); }
.hero.is-loaded .hero-skeleton { opacity: 0; transition: opacity 0.6s ease; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 7, 0.94) 0%,
    rgba(5, 5, 7, 0.55) 32%,
    rgba(5, 5, 7, 0.08) 66%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.hero-actions { margin-top: 10px; }

/* ---------- 按钮 ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #08080a;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-ghost {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13.5px;
  transition: background 0.18s ease;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* ---------- 工具条 ---------- */

.toolbar {
  max-width: var(--max);
  margin: 44px auto 20px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-left { display: flex; align-items: baseline; gap: 12px; }

.section-title { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 0.01em; }

.count { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.seg {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.seg:hover { color: var(--text); }

.seg.is-active { background: #fff; color: #08080a; font-weight: 500; }

.sort-wrap { position: relative; }

.sort-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4 L5 7 L8 4' fill='none' stroke='%2396969f' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

/* ---------- 瀑布流 ---------- */

.grid {
  max-width: var(--max);
  margin: 0 auto 96px;
  padding: 0 var(--pad);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  animation: card-in 0.5s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.card-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card.is-loaded .card-img { opacity: 1; }

.card:hover .card-img { transform: scale(1.035); }

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 4, 6, 0.82) 0%,
    rgba(4, 4, 6, 0.25) 40%,
    transparent 64%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card:hover .card-shade,
.card:focus-visible .card-shade { opacity: 1; }

.card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.card:hover .card-info,
.card:focus-visible .card-info { opacity: 1; transform: none; }

.card-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.card-info p {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-variant-numeric: tabular-nums;
}

.card-dl {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.18s ease, color 0.18s ease;
}

.card:hover .card-dl,
.card:focus-within .card-dl { opacity: 1; transform: none; }

.card-dl:hover { background: #fff; color: #08080a; border-color: #fff; }

.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 空状态 ---------- */

.empty {
  max-width: var(--max);
  margin: 0 auto 96px;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  margin-left: var(--pad);
  margin-right: var(--pad);
}

.empty-title { margin: 0 0 6px; font-size: 15px; font-weight: 500; }

.empty-sub { margin: 0; font-size: 13px; color: var(--muted-2); }

/* ---------- 页脚 ---------- */

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-inner p { margin: 0; font-size: 12.5px; color: var(--muted-2); }

.foot-note { max-width: 620px; line-height: 1.7; }

/* ---------- 灯箱 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: lb-in 0.22s ease both;
}

.lightbox[hidden] { display: none; }

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-backdrop { position: absolute; inset: 0; }

.lb-stage {
  position: relative;
  margin: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 72px 96px 20px;
}

.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 236px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: lb-img-in 0.3s ease both;
}

@keyframes lb-img-in {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: none; }
}

.lb-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px 32px;
}

.lb-info h3 { margin: 0; font-size: 17px; font-weight: 500; }

.lb-meta {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.lb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.lb-tags button {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.18s ease, color 0.18s ease;
}

.lb-tags button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.lb-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.18s ease;
  z-index: 2;
}

.lb-nav:hover { background: rgba(255, 255, 255, 0.18); }

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.18s ease, color 0.18s ease;
  z-index: 2;
}

.lb-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.lb-toast {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translate(-50%, 8px);
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #08080a;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lb-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

body.is-locked { overflow: hidden; }

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .lb-stage { padding: 64px 24px 16px; }
  .lb-stage img { max-height: calc(100vh - 260px); }
}

@media (max-width: 860px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 14px var(--pad); gap: 12px 16px; }
  .cats { order: 3; width: 100%; }
  .search { flex: 1; min-width: 0; }
  .search input, .search input:focus { width: 100%; }
  .hero { margin: 16px var(--pad) 0; height: 300px; border-radius: 16px; }
  .hero-content { padding: 24px; }
  .toolbar { margin-top: 32px; }
  .lb-bar { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px; }
  .lb-actions { justify-content: flex-end; }
  .lb-nav { display: none; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .grid { gap: 12px; }
  .col { gap: 12px; }
  .toolbar { margin-bottom: 16px; }
  .section-title { font-size: 15px; }
  .hero-title { font-size: 24px; }
  .lb-stage { padding-top: 56px; }
  .lb-stage img { max-height: calc(100vh - 300px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 板块切换 ---------- */

.sections {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.sections a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.sections a:hover { color: var(--text); }

.sections a.is-active { background: #fff; color: #08080a; font-weight: 500; }

/* ---------- 表情包板块 ---------- */

.stk-intro {
  max-width: var(--max);
  margin: 44px auto 0;
  padding: 0 var(--pad);
}

.stk-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stk-intro p { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }

.stk-stats { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.pack { max-width: var(--max); margin: 44px auto 0; padding: 0 var(--pad); }

.pack:last-of-type { margin-bottom: 88px; }

.pack-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pack-title { margin: 0; font-size: 17px; font-weight: 500; }

.pack-sub {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

.stk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.stk-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: card-in 0.5s ease both;
}

.stk-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.stk-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stk-imgwrap {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
}

.stk-imgwrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.stk-card:hover .stk-imgwrap img { transform: scale(1.06); }

.stk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.stk-text {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stk-dl {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.stk-dl:hover { background: #fff; color: #08080a; border-color: #fff; }

.lb-stage img.is-sticker {
  max-width: min(380px, 72vw);
  max-height: 56vh;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}

@media (max-width: 560px) {
  .stk-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
  .sections a { padding: 5px 11px; }
}

/* ---------- 动态壁纸板块 ---------- */

.live-main { max-width: 1180px; margin: 0 auto; padding: 38px var(--pad) 100px; }

.live-intro { text-align: center; margin-bottom: 28px; }

.live-intro h1 {
  margin: 0 0 9px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.live-intro p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.live-stage {
  position: relative;
  height: min(64vh, 660px);
  aspect-ratio: 9 / 16;
  max-width: 92vw;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62);
  cursor: crosshair;
}

.live-stage canvas { display: block; width: 100%; height: 100%; }

.live-stage:fullscreen {
  height: 100vh;
  width: 100vw;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
  display: grid;
  place-items: center;
  background: #000;
}

.live-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
  pointer-events: none;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.live-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.live-stage.is-dead .live-fallback { display: grid; }
.live-stage.is-dead canvas { display: none; }

.live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 22px auto 0;
}

.live-chips { display: flex; gap: 8px; }

.live-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.live-chip:hover { color: var(--text); border-color: var(--line-strong); }

.live-chip.is-active {
  background: #fff;
  color: #08080a;
  border-color: #fff;
  font-weight: 500;
}

.live-acts { display: flex; gap: 9px; }

.btn-solid { background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.btn-solid:hover { background: #ff7d55; border-color: #ff7d55; }

.live-hint {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
  min-height: 18px;
}

.live-howto { margin-top: 60px; }

.live-howto h2 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.howto-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.howto-card h3 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.howto-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.howto-card li { margin-bottom: 5px; }

.howto-card strong { color: var(--text); font-weight: 500; }

.howto-note {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .live-main { padding-top: 26px; }
  .live-stage { height: min(58vh, 520px); }
  .live-bar { justify-content: center; }
  .live-acts { width: 100%; justify-content: center; }
}

/* ---------- 锁屏预览器 ---------- */

.lb-stage img[hidden] { display: none; }

.lb-view { padding: 3px; }
.lb-view[hidden] { display: none; }
.lb-view .seg { padding: 6px 14px; font-size: 12.5px; }

.lb-phone-hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  pointer-events: none;
}

.lb-phone-hint[hidden] { display: none; }

.phone {
  position: relative;
  height: min(70vh, 620px);
  aspect-ratio: 9 / 19.5;
  max-width: 86vw;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(155deg, #34343c 0%, #121214 38%, #26262c 100%);
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: lb-img-in 0.34s ease both;
}

.phone[hidden] { display: none; }

.phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.phone-wall {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: 50% 58%;
  transition: transform 0.46s cubic-bezier(0.2, 0, 0, 1), filter 0.46s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.phone.is-unlocked .phone-wall {
  transform: scale(1.07);
  filter: blur(1.6px) brightness(0.78);
}

.phone-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.phone.is-unlocked .phone-veil { opacity: 0.55; }

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.ps-icons { display: flex; align-items: center; gap: 4px; opacity: 0.92; }

.phone.is-unlocked .phone-status { opacity: 0; }

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #05050a;
  z-index: 4;
  pointer-events: none;
}

/* 锁屏内容 */

.phone-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 66px 18px 20px;
  color: #fff;
  z-index: 2;
  transition: opacity 0.12s ease 0.34s;
}

.phone.is-unlocked .phone-lock { opacity: 0; pointer-events: none; }

.pl-date {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.46s cubic-bezier(0.2, 0, 0, 1), opacity 0.32s ease;
}

.pl-clock {
  margin: 2px 0 0;
  font-size: 62px;
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.46s cubic-bezier(0.2, 0, 0, 1), opacity 0.32s ease;
}

.phone.is-unlocked .pl-clock {
  transform: translateY(-44px) scale(0.85);
  opacity: 0;
  transition-delay: 0s;
}

.phone.is-unlocked .pl-date {
  transform: translateY(-60px) scale(0.92);
  opacity: 0;
  transition-delay: 0.03s;
}

.pl-notifs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.pl-notif {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 11px;
  border-radius: 15px;
  background: rgba(16, 16, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: transform 0.44s cubic-bezier(0.2, 0, 0, 1), opacity 0.3s ease;
}

.phone.is-unlocked .pl-notif:nth-child(1) {
  transform: translateX(44px);
  opacity: 0;
  transition-delay: 0.04s;
}

.phone.is-unlocked .pl-notif:nth-child(2) {
  transform: translateX(-44px);
  opacity: 0;
  transition-delay: 0.09s;
}

.pn-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(145deg, #ff8a5c, #ff5a3c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pn-icon--alt { background: linear-gradient(145deg, #7aa2ff, #3b5bdb); }

.pn-body { min-width: 0; }

.pn-title {
  margin: 0 0 2px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pn-text {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

.pl-bottom { margin-top: auto; padding-top: 14px; }

.pl-actions {
  display: flex;
  justify-content: space-between;
  padding: 0 6px 16px;
  transition: transform 0.36s cubic-bezier(0.2, 0, 0, 1), opacity 0.26s ease;
}

.pl-orb {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pl-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  transition: transform 0.36s cubic-bezier(0.2, 0, 0, 1), opacity 0.26s ease;
}

.pl-hint-bar {
  width: 104px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  animation: hint-bob 1.9s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(3px); opacity: 0.55; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.phone.is-unlocked .pl-actions,
.phone.is-unlocked .pl-hint {
  transform: translateY(14px);
  opacity: 0;
  transition-delay: 0s;
}

/* 桌面 */

.phone-home {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 58px 14px 16px;
  background: rgba(6, 6, 10, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.28s ease, transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  z-index: 2;
}

.phone.is-unlocked .phone-home {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0.14s;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 10px;
}

.ph-app {
  aspect-ratio: 1;
  border-radius: 13px;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.44s cubic-bezier(0.2, 0, 0, 1);
  transition-delay: 0s;
}

.phone.is-unlocked .ph-app {
  opacity: 1;
  transform: none;
  transition-delay: calc(120ms + var(--i, 0) * 24ms);
}

.ph-dock {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ph-dock .ph-app { border-radius: 15px; }

.ph-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phone.is-unlocked .ph-tip { opacity: 1; transition-delay: 0.5s; }

/* 竖屏卡片上的小标记 */

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover .card-badge { opacity: 1; }

@media (max-width: 560px) {
  .phone { height: min(58vh, 520px); padding: 7px; border-radius: 38px; }
  .phone-screen { border-radius: 32px; }
  .pl-clock { font-size: 52px; }
  .phone-lock { padding: 60px 15px 16px; }
  .lb-view .seg { padding: 5px 11px; }
}

/* ---------- 视频壁纸模板页 ---------- */

.vid-main { max-width: 1180px; margin: 0 auto; padding: 44px var(--pad) 110px; }

.vid-intro { max-width: 720px; }

.vid-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.vid-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vid-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.vid-lead code,
.vid-steps code,
.vid-flow-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #e6e6ea;
}

/* 规格卡 */

.vid-specbox {
  margin-top: 34px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.vid-specbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.vid-specbox-head h2 { margin: 0; font-size: 15px; font-weight: 500; }

.vid-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 8px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d11;
}

.spec-k { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.02em; }

.spec-v {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.vid-specnote {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.vid-specnote strong { color: var(--muted); font-weight: 500; }

/* 模板位 */

.vid-slots { margin-top: 46px; }

.vid-slots-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vid-slots-head h2 { margin: 0; font-size: 16px; font-weight: 500; }

.vid-slots-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.vid-slots-tip { margin: 0; font-size: 12.5px; color: var(--muted-2); }

.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
}

.vcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
  animation: card-in 0.5s ease both;
}

.vcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.vcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.vcard-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0b0b0e;
}

.vcard-media img,
.vcard-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.vcard:hover .vcard-media img { transform: scale(1.045); }

.vcard-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}

.vcard-slot {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}

.vcard-state {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 106, 61, 0.16);
  border: 1px solid rgba(255, 106, 61, 0.42);
  color: #ffb59e;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vcard-state.is-ready {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.4);
  color: #9ae6b4;
}

.vcard-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vcard:hover .vcard-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.vcard-body { padding: 12px 13px 13px; }

.vcard-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.vcard-sub {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vcard-meta {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* 四步流程 */

.vid-flow { margin-top: 58px; }

.vid-flow h2 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }

.vid-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  counter-reset: step;
}

.vid-steps li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--muted);
  counter-increment: step;
}

.vid-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vid-steps strong { color: var(--text); font-weight: 500; margin-right: 2px; }

.vid-flow-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.7;
}

/* ---------- 视频预览层 ---------- */

.vlb {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 44px 34px;
  background: rgba(6, 6, 9, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  animation: vlb-in 0.24s ease both;
}

.vlb[hidden] { display: none; }

@keyframes vlb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vlb-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.vlb-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.vlb-stage { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }

.vlb-stage .phone { animation: lb-img-in 0.32s ease both; }

/* 手机框变窄时，状态栏和灵动岛会挤在一起，按手机自身宽度收缩 */

.phone-screen { container-type: inline-size; }

@container (max-width: 270px) {
  .phone-status { padding: 12px 13px 0; font-size: 11px; }
  .ps-icons { gap: 1px; transform: scale(0.86); transform-origin: right center; }
  .phone-island { width: 58px; height: 19px; top: 8px; }
  .pl-clock { font-size: 54px; }
  .pl-notif { padding: 8px 9px; }
  .pn-icon { width: 26px; height: 26px; border-radius: 8px; }
  .pn-text { font-size: 11px; }
}

.vlb-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.phone-wall > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-wall.is-still { animation: still-drift 20s ease-in-out infinite; }

.phone.is-unlocked .phone-wall { animation: none; }

@keyframes still-drift {
  0%, 100% { transform: scale(1.02) translate3d(0, 0, 0); }
  50% { transform: scale(1.1) translate3d(0, -1.4%, 0); }
}

.vlb-info {
  width: 366px;
  flex-shrink: 0;
  max-height: 84vh;
  overflow-y: auto;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.vlb-slot {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vlb-info h3 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.vlb-summary {
  margin: 0 0 16px;
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--muted);
}

.vlb-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 16px;
}

.vlb-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: #131318;
  font-size: 12.2px;
}

.vlb-meta-k { color: var(--muted-2); flex-shrink: 0; }

.vlb-meta-v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.vlb-prompt {
  padding: 13px 14px;
  border-radius: 10px;
  background: #0c0c10;
  border: 1px solid var(--line);
}

.vlb-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.vlb-prompt p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.75;
  color: #c9c9d1;
  max-height: 168px;
  overflow-y: auto;
}

.mini {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.mini:hover { background: #fff; color: #08080a; border-color: #fff; }

.vlb-note {
  margin: 11px 0 0;
  font-size: 11.8px;
  line-height: 1.65;
  color: var(--muted-2);
}

.vlb-note[hidden] { display: none; }

.vlb-acts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.vlb-acts .btn-ghost {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
}

.vlb-acts .btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vlb-nav { display: flex; gap: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.vtoast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 90;
  transform: translate(-50%, 10px);
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #08080a;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vtoast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .vlb {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 64px 18px 40px;
  }
  .vlb-info { width: 100%; max-width: 440px; max-height: none; }
  .vlb-stage .phone { height: min(56vh, 520px); }
}

@media (max-width: 560px) {
  .vid-main { padding-top: 30px; }
  .vid-specbox { padding: 18px 16px 16px; }
  .vid-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
  .vcard-body { padding: 10px 11px 11px; }
  .vcard-body h3 { font-size: 13px; }
  .vlb-stage .phone { height: min(48vh, 430px); }
}

/* ---------- 设为壁纸引导 ---------- */

.vid-setup {
  margin-top: 62px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.vid-setup-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.vid-setup-copy { max-width: 620px; }

.vid-setup-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.vid-setup-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted);
}

.vid-setup-lead strong { color: var(--text); font-weight: 500; }

/* 系统切换 */

.os-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.os-tab:hover { color: var(--text); }

.os-tab.is-active {
  background: #fff;
  color: #08080a;
  font-weight: 500;
}

.os-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 面板 */

.os-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.os-bar-hint { margin: 0; font-size: 12px; color: var(--muted-2); }

.os-panel { margin-top: 18px; animation: os-in 0.26s ease both; }

.os-panel[hidden] { display: none; }

@keyframes os-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.os-note {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: 13px;
  line-height: 1.78;
  color: var(--muted);
}

.os-note strong { color: var(--text); font-weight: 500; }

.oset-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.oset {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 7px;
  align-items: center;
  padding: 14px 18px 15px;
  background: #131318;
}

.oset-head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
}

.oset-name { font-size: 14px; font-weight: 500; color: var(--text); }

.oset-tag {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.oset-steps {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.2px;
  color: #cfcfd6;
}

.oset-steps li {
  position: relative;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.oset-steps li:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 13px;
  color: var(--muted-2);
}

.oset-alt {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 11.8px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* 注意事项 */

.os-tips {
  margin-top: 16px;
  padding: 16px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.os-tips-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.os-tips ul {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 8px;
}

.os-tips li {
  font-size: 12.6px;
  line-height: 1.72;
  color: var(--muted);
}

.os-tips strong { color: var(--text); font-weight: 500; }

.os-tips code {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #e6e6ea;
}

/* iOS 提示卡 */

.os-alert {
  margin-bottom: 18px;
  padding: 16px 18px 17px;
  border: 1px solid rgba(255, 106, 61, 0.3);
  border-radius: 14px;
  background: rgba(255, 106, 61, 0.065);
}

.os-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffb59e;
}

.os-alert p + p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.74);
}

.ios-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.ios-steps li {
  display: flex;
  gap: 12px;
  padding: 15px 17px 16px;
  background: #131318;
}

.ios-step-n {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ios-step-t { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--text); }

.ios-step-d { margin: 0; font-size: 12.4px; line-height: 1.75; color: var(--muted); }

.os-foot {
  margin: 16px 0 0;
  font-size: 12.4px;
  line-height: 1.7;
  color: var(--muted-2);
}

/* 预览层里的入口 */

.vlb-how {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 0;
  font-size: 12.4px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.vlb-how:hover { color: var(--text); }

.vlb-how svg { transition: transform 0.18s ease; }

.vlb-how:hover svg { transform: translateX(2px); }

.vlb-how:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

@media (max-width: 760px) {
  .oset { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 9px; padding: 14px 15px 15px; }
  .oset-head,
  .oset-steps,
  .oset-alt { grid-column: 1; }
  .oset-head { grid-row: 1; }
  .oset-steps { grid-row: 2; }
  .oset-alt { grid-row: 3; }
}

@media (max-width: 560px) {
  .vid-setup { margin-top: 46px; padding-top: 26px; }
  .os-tabs { width: 100%; }
  .os-tab { flex: 1; justify-content: center; padding: 9px 12px; }
  .os-bar-hint { display: none; }
}

/* ---------- 404 ---------- */

.nf {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 150px) var(--pad) 120px;
}

.nf-code {
  margin: 0 0 14px;
  font-size: clamp(56px, 11vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.nf h1 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nf-text {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.nf-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.nf-acts .btn-primary,
.nf-acts .btn-ghost { padding: 11px 20px; font-size: 13.5px; }

.foot-icp { color: var(--muted-2); transition: color 0.18s ease; }

.foot-icp:hover { color: var(--text); }

/* 备案号：按规定放在页脚中央位置，字色比正文弱一档但不至于看不见 */
.foot-beian {
  max-width: none;
  margin-top: 4px;
  text-align: center;
}

.foot-beian .foot-icp {
  display: inline-block;
  padding: 2px 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.foot-inner { text-align: center; }

.foot-inner p { margin-left: auto; margin-right: auto; }
