/* =========================================================
   zh@宝藏地 — 白玻璃质感 UI
   视觉参考 XinghuisamaBlogs:白玻璃 + 细描边 + indigo/紫点缀
   ========================================================= */
:root {
  --ink: #1f2440;              /* 主文字:近黑深蓝灰 */
  --ink-soft: #47516e;
  --ink-faint: #8b93ab;
  --indigo: #4f46e5;           /* 主强调 indigo */
  --purple: #7c3aed;
  --pink: #db2777;
  --card: rgba(255, 255, 255, .58);
  --card-strong: rgba(255, 255, 255, .72);
  --stroke: rgba(255, 255, 255, .85);
  --stroke-soft: rgba(120, 130, 190, .16);
  --shadow-sm: 0 2px 10px rgba(76, 84, 150, .10);
  --shadow: 0 14px 40px rgba(76, 84, 150, .18);
  --r-lg: 26px;
  --r: 16px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  min-height: 100vh;
  background: #eef0fa;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: rgba(99, 102, 241, .22); }

/* 滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, .25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, .55); }

/* =========================================================
   背景:夜景视频(720p) + 单层毛玻璃(整块统一模糊一次,不再逐卡模糊)
   ========================================================= */
.bg-layer {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: #d7d9f2;
}
.bg-layer video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
}
.bg-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.1) 50%, rgba(240,240,252,.32) 100%);
}
/* 单层毛玻璃:整块背景(含视频)统一模糊一次,仅此一层,内容保持清晰(轻磨,保留夜景动感) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(4px) saturate(1.08);
  backdrop-filter: blur(4px) saturate(1.08);
}
.bg-flow { display: none; }
.bg-blob { position: absolute; border-radius: 50%; opacity: .32; }
.bg-blob.b1 { top: -18%; left: -14%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(196, 181, 253, .5) 0%, transparent 60%); }
.bg-blob.b2 { bottom: -20%; right: -14%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(253, 195, 235, .42) 0%, transparent 60%); }
.bg-blob.b3 { top: 26%; left: 40%; width: 38vw; height: 38vw; background: radial-gradient(circle, rgba(165, 180, 252, .35) 0%, transparent 58%); }

/* =========================================================
   顶部导航(白玻璃)
   ========================================================= */
.navbar {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 60;
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(70, 80, 140, .12);
  transition: transform .4s ease, opacity .3s;
}
.navbar.hide { transform: translateY(-130%); opacity: 0; }
.navbar .inner {
  width: 100%; max-width: 1080px; margin: 0 auto;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
}
.brand {
  display: flex; align-items: baseline; gap: 2px;
  font-size: 20px; font-weight: 800;
  letter-spacing: .5px;
  color: #2a2f55;
  text-decoration: none;
  white-space: nowrap;
}
.brand .sep { color: var(--indigo); font-weight: 700; margin: 0 2px; }
.brand .sub { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.brand:hover { color: var(--indigo); }
.nav-links { display: flex; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all .22s ease;
}
.nav-item svg { width: 15px; height: 15px; stroke-width: 1.9; }
.nav-item:hover {
  color: var(--indigo);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .14);
}
.nav-item.active { color: var(--indigo); font-weight: 700; }
.nav-item.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 16px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--purple));
}
/* 导航右上角账号(登录态收敛于此) */
.nav-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-hello { font-size: 13px; font-weight: 700; color: #57557a; white-space: nowrap; }
.nav-logout, .nav-login {
  border: none; border-radius: 20px; padding: 7px 16px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .15s ease; font-family: inherit; white-space: nowrap;
}
.nav-logout { background: rgba(220,72,112,.1); color: #dc4870; }
.nav-logout:hover { background: #dc4870; color: #fff; }
.nav-login { background: linear-gradient(120deg,#8a6ad8,#b08ae0); color: #fff; }
.nav-login:hover { filter: brightness(1.06); }
/* 图标统一样式 */
.ic { display: inline-flex; flex: none; }
/* 所有行内 SVG(引用 sprite symbol)统一描边风格 */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic svg { width: 1em; height: 1em; stroke-width: 1.8; }

/* =========================================================
   主体布局
   ========================================================= */
main { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 100px 22px 60px; }

/* 玻璃卡(模糊由 body::after 单层统一提供,不再逐卡模糊) */
.glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.section-card { padding: 24px 26px; margin-bottom: 18px; }
.page-head { margin-bottom: 20px; }
.page-title {
  font-size: 24px; font-weight: 800;
  letter-spacing: .2px;
  color: #2a2f55;
  display: flex; align-items: center; gap: 10px;
}
.page-title .ic { width: 26px; height: 26px; color: var(--indigo); }
.page-title .ic svg { width: 24px; height: 24px; stroke-width: 1.7; }
.page-sub { font-size: 13px; color: var(--ink-faint); margin-top: 5px; }

/* =========================================================
   账号条
   ========================================================= */
.account-bar .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-bar input {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(140, 150, 210, .25);
  border-radius: 12px;
  color: var(--ink);
  padding: 9px 14px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  min-width: 150px;
  transition: border .2s, box-shadow .2s;
  box-shadow: inset 0 1px 3px rgba(70, 80, 140, .05);
}
.account-bar input::placeholder { color: #a6acc4; }
.account-bar input:focus {
  border-color: rgba(99, 102, 241, .6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.btn {
  border: none; cursor: pointer;
  border-radius: 12px; padding: 9px 22px;
  font-size: 13.5px; font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(120deg, var(--indigo), var(--purple));
  box-shadow: 0 6px 18px rgba(99, 102, 241, .3);
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn .ic svg { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 26px rgba(99, 102, 241, .42); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--indigo);
  border: 1px solid rgba(140, 150, 210, .3);
  box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(99, 102, 241, .5); box-shadow: 0 6px 16px rgba(99, 102, 241, .14); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.who-line { display: flex; align-items: center; gap: 10px; }
.account-bar .who { font-weight: 800; color: var(--ink); }
.account-bar .who-name { color: var(--indigo); }
.account-bar .hint { font-size: 12.5px; color: var(--ink-faint); }
.account-bar .msg { font-size: 12.5px; color: var(--ink-faint); width: 100%; min-height: 15px; margin-top: 5px; }
.account-bar .msg.err { color: #dc4870; }
.switch-link { font-size: 12.5px; color: var(--indigo); cursor: pointer; font-weight: 600; }

/* =========================================================
   个人资料页
   ========================================================= */
.profile-grid { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.avatar-card {
  text-align: center; padding: 34px 18px 26px;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .4s ease;
}
.avatar-card:hover { transform: translateY(-3px); }
.avatar {
  width: 118px; height: 118px;
  border-radius: 24px;
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #e9a8d6 100%);
  padding: 5px;
  box-shadow: 0 14px 34px rgba(99, 102, 241, .3);
  display: block;
  transition: transform .5s ease;
}
.avatar-card:hover .avatar { transform: rotate(3deg) scale(1.02); }
.avatar .inner {
  width: 100%; height: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800;
  color: #4338ca;
  overflow: hidden;
}
.avatar .inner svg { width: 46px; height: 46px; color: #6366f1; }
.nick { font-size: 19px; font-weight: 800; color: #262b4e; margin-top: 16px; letter-spacing: .5px; }
.role-badge {
  margin-top: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
  color: #6d28d9;
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .22);
  border-radius: 20px;
  padding: 3px 14px;
}
.bio { font-size: 14px; line-height: 2; color: var(--ink-soft); }
.bio b { color: var(--ink); font-weight: 700; }
.profile-stats { display: flex; gap: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(140, 150, 210, .2); }
.stat { flex: 1; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(140, 150, 210, .18); }
.stat .num { font-size: 24px; font-weight: 800; }
.stat .num.c-indigo { color: var(--indigo); }
.stat .num.c-purple { color: var(--purple); }
.stat .num.c-pink { color: var(--pink); }
.stat .lab { font-size: 12px; color: var(--ink-faint); margin-top: 2px; letter-spacing: 2px; }

/* =========================================================
   音乐页
   ========================================================= */
.player-wrap { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 30px 36px; }
.disc {
  width: 190px; height: 190px; margin: 6px auto 26px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, #eef0ff 0 10%, transparent 11%),
    repeating-conic-gradient(from 0deg, #d9ddf5 0deg 6deg, #eef0fb 6deg 12deg);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, .55),
    0 24px 48px rgba(99, 102, 241, .28);
}
.disc::before { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle, #eef0ff 0 18%, #c7d2fe 55%, #818cf8 100%); box-shadow: 0 0 18px rgba(255,255,255,.9); }
.disc.playing { animation: discSpin 9s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }
.track-name { font-size: 16px; font-weight: 700; color: #262b4e; letter-spacing: .5px; }
.track-sub { font-size: 12px; color: var(--ink-faint); margin: 6px 0 24px; }
.pbtn {
  border: none; cursor: pointer;
  width: 68px; height: 68px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 12px 30px rgba(99, 102, 241, .4);
  transition: all .22s;
}
.pbtn svg { width: 24px; height: 24px; }
.pbtn:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(99, 102, 241, .55); }
.player-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.player-hint .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); }

/* =========================================================
   改枪码页
   ========================================================= */
.weapons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.weapon-btn {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r);
  color: var(--ink-soft);
  padding: 13px 10px;
  font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: all .22s;
  text-transform: uppercase;
  font-family: inherit;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.weapon-btn .wname { display: block; }
.weapon-btn small { display: block; font-weight: 500; font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; letter-spacing: 1.5px; }
.weapon-btn:hover {
  transform: translateY(-2px);
  color: var(--indigo);
  box-shadow: 0 10px 24px rgba(99, 102, 241, .2);
}
.weapon-btn.active {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
}
.weapon-btn.active small { color: rgba(255,255,255,.75); }
.editor label { display: block; font-size: 12px; color: var(--ink-faint); margin-bottom: 5px; letter-spacing: 1.5px; }
.editor input[type="text"], .editor textarea {
  width: 100%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(140, 150, 210, .22);
  border-radius: 12px;
  color: var(--ink);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border .2s, box-shadow .2s;
  box-shadow: inset 0 1px 3px rgba(70, 80, 140, .05);
}
.editor input::placeholder, .editor textarea::placeholder { color: #a6acc4; }
.editor textarea { min-height: 128px; font-size: 13px; line-height: 1.7; resize: vertical; }
.editor input:focus, .editor textarea:focus {
  border-color: rgba(99, 102, 241, .6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
  background: rgba(255, 255, 255, .92);
}
.editor.guest { position: relative; }
.editor.guest::after {
  content: "登录后可添加改枪码";
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--indigo);
  background: rgba(250, 250, 255, .85);
  border-radius: var(--r-lg);
  cursor: pointer;
}
.btn-row { display: flex; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 14px; flex-wrap: wrap; gap: 10px; }
.list-head h2 { font-size: 16px; font-weight: 700; color: #262b4e; display: flex; align-items: center; gap: 8px; }
.list-head .count { font-size: 12px; color: var(--ink-faint); }
.empty { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 38px 16px; border: 1.5px dashed rgba(120, 130, 200, .35); border-radius: var(--r-lg); }
.gcard {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .95);
  border-left: 3px solid transparent;
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.gcard.mine { border-left-color: var(--indigo); }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(76, 84, 150, .16); }
.gcard .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gcard .name { font-weight: 700; font-size: 14px; color: #262b4e; }
.gcard .who {
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  color: #6d28d9; background: rgba(139, 92, 246, .08);
  border: 1px solid rgba(139, 92, 246, .2);
}
.gcard .when { font-size: 11px; color: var(--ink-faint); }
.gcard .ops { margin-left: auto; display: flex; gap: 6px; }
.mini-btn {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(140, 150, 210, .25);
  color: var(--ink-soft);
  border-radius: 9px; padding: 4px 11px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.mini-btn svg { width: 12px; height: 12px; }
.mini-btn:hover { color: var(--indigo); border-color: rgba(99,102,241,.45); box-shadow: 0 3px 10px rgba(99,102,241,.14); }
.mini-btn.danger:hover { color: #dc4870; border-color: rgba(220,72,112,.4); }
.gcard pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: Consolas, "Cascadia Mono", "Microsoft YaHei", monospace;
  font-size: 12.5px; line-height: 1.7;
  color: #3d4470;
  background: rgba(250, 250, 254, .65);
  border: 1px solid rgba(140, 150, 210, .1);
  border-radius: 12px; padding: 11px 13px;
  margin-top: 9px; max-height: 260px; overflow: auto;
}

/* =========================================================
   聊天页
   ========================================================= */
.chat-box { display: flex; flex-direction: column; }
.chat-list { min-height: 320px; max-height: 56vh; overflow-y: auto; padding: 6px 4px 12px; display: flex; flex-direction: column; gap: 14px; }
.chat-empty { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 50px 10px; }
.chat-msg { display: flex; gap: 11px; }
.chat-msg .cavatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .25);
}
.chat-msg .bubble {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 6px 18px 18px 18px;
  padding: 10px 15px;
  max-width: 74%;
  font-size: 14px; line-height: 1.7;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chat-msg .meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg .muser { font-size: 12.5px; font-weight: 700; color: var(--purple); }
.chat-msg .mtime { font-size: 11px; color: var(--ink-faint); }
.chat-msg.self { flex-direction: row-reverse; }
.chat-msg.self .bubble { border-radius: 18px 6px 18px 18px; background: linear-gradient(135deg, #eef0ff, #f5efff); }
.chat-msg.self .meta { flex-direction: row-reverse; }
.chat-input { display: flex; gap: 10px; margin-top: 14px; }
.chat-input textarea {
  flex: 1;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(140, 150, 210, .22);
  border-radius: 14px;
  color: var(--ink);
  padding: 11px 14px;
  font-size: 13.5px;
  outline: none;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.chat-input textarea::placeholder { color: #a6acc4; }
.chat-input textarea:focus { border-color: rgba(99, 102, 241, .6); box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }

/* 底部 */
footer { position: relative; z-index: 1; text-align: center; color: var(--ink-faint); font-size: 12px; padding: 28px 16px 44px; }
footer .sep-dot { margin: 0 8px; color: rgba(100, 110, 170, .4); }

/* 提示 */
.toast-holder { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; }
.toast {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .95);
  color: #2a2f55;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* =========================================================
   个人资料 · 参考图 111 完整布局
   搜索框 / 左右双列(资料卡+音乐卡) / 弹幕横幅 / 内容卡片区
   ========================================================= */

/* --- 1. 搜索框 --- */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  max-width: 680px; margin: 0 auto 22px;
  padding: 13px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}
.search-ic { width: 20px; height: 20px; color: var(--ink-faint); display: flex; }
.search-ic svg { width: 20px; height: 20px; }
.search-bar input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-size: 14.5px; color: var(--ink);
  font-family: inherit;
}
.search-bar input::placeholder { color: #a6acc4; }

/* --- 2. 主区(个人介绍 + 音乐模块 同一行两列) --- */
.main-cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* 左:个人资料大卡 */
.profile-panel {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.profile-panel .auth-inline { border-bottom: 1px solid rgba(140, 150, 210, .18); padding-bottom: 16px; }
.profile-panel .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-panel input {
  flex: 1; min-width: 120px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(140, 150, 210, .25);
  border-radius: 11px;
  color: var(--ink);
  padding: 8px 13px;
  font-size: 13px; outline: none; font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.profile-panel input::placeholder { color: #a6acc4; }
.profile-panel input:focus { border-color: rgba(99,102,241,.6); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.profile-panel .who-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-panel .who-name { font-weight: 700; color: var(--indigo); }
.profile-panel .hint { font-size: 12px; color: var(--ink-faint); }
.profile-panel .msg { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.profile-panel .msg.err { color: #dc4870; }
.switch-link { font-size: 12.5px; color: var(--indigo); cursor: pointer; font-weight: 600; }

.pc-top { display: flex; align-items: flex-start; gap: 20px; }
.pc-avatar {
  flex: none; width: 78px; height: 78px;
  border-radius: 16px;
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #e9a8d6 100%);
  padding: 4px;
  box-shadow: 0 10px 26px rgba(99,102,241,.3);
}
.pc-avatar .inner {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  color: #6366f1;
}
.pc-avatar svg { width: 34px; height: 34px; stroke-width: 1.6; }
.pc-info { min-width: 0; }
.pc-name {
  font-size: 26px; font-weight: 800; letter-spacing: .5px;
  color: #232846; line-height: 1.2;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.pc-suffix { font-size: 18px; font-weight: 600; color: var(--ink-faint); }
.pc-bio {
  margin-top: 10px; font-size: 13.5px; line-height: 1.85;
  color: var(--ink-soft); max-width: 480px;
}
/* 名片头像与编辑 */
.pc-avatar { position: relative; }
.pc-avatar img.pc-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; display: block; background: #fff; }
.pc-avatar.editable { cursor: pointer; }
.pc-edit-badge {
  position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg,#8a6ad8,#b08ae0); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.pc-edit-badge svg { width: 13px; height: 13px; }
.pc-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-edit { flex: none; padding: 6px 14px; font-size: 12px; }
.pc-edit-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pc-edit-row .btn { padding: 7px 18px; }
.pc-edit-hint { font-size: 12px; color: var(--ink-faint); }
.pc-name input.name-input {
  font-size: 22px; font-weight: 800; color: #232846;
  background: rgba(255,255,255,.75); border: 1px solid rgba(140,150,210,.35);
  border-radius: 10px; padding: 4px 10px; outline: none; max-width: 220px; font-family: inherit;
}
.pc-name input.name-input:focus { border-color: rgba(99,102,241,.6); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.pc-bio textarea.bio-input {
  width: 100%; max-width: 480px; min-height: 76px; resize: vertical; line-height: 1.7;
  background: rgba(255,255,255,.75); border: 1px solid rgba(140,150,210,.35);
  border-radius: 11px; padding: 9px 12px; font-size: 13.5px; color: #3d4160;
  outline: none; font-family: inherit;
}
.pc-bio textarea.bio-input:focus { border-color: rgba(99,102,241,.6); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.pc-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(140, 150, 210, .18);
}
.pc-stats { display: flex; gap: 0; }
.pstat { text-align: center; padding: 0 26px; }
.pstat + .pstat { border-left: 1px solid rgba(140, 150, 210, .18); }
.pstat .num { font-size: 24px; font-weight: 800; line-height: 1; }
.pstat .num.c-indigo { color: var(--indigo); }
.pstat .num.c-purple { color: var(--purple); }
.pstat .num.c-pink { color: var(--pink); }
.pstat .lab { margin-top: 6px; font-size: 12px; color: var(--ink-faint); letter-spacing: 2px; }
.pc-actions { display: flex; gap: 10px; }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(140,150,210,.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .2s; box-shadow: var(--shadow-sm);
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
  transform: translateY(-2px);
}

/* 精简音乐模块(资料页右侧,无歌词歌单) */
.music-mini {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 26px 30px;
  gap: 4px;
}
.music-mini .mini-head {
  align-self: flex-start;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #2a2f55;
  margin-bottom: 14px;
}
.music-mini .mini-head .ic { color: var(--indigo); width: 16px; height: 16px; }
.music-mini .mini-head .ic svg { width: 16px; height: 16px; }
.music-mini .md-disc { width: 140px; height: 140px; margin-bottom: 16px; }
.music-mini .md-title { font-size: 16px; }
.music-mini .md-artist { margin: 4px 0 14px; }
.music-mini .vol-row {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
}
.music-mini .vol-ic { width: 15px; height: 15px; color: var(--ink-faint); display: flex; flex: none; }
.music-mini .vol-ic svg { width: 15px; height: 15px; }
.music-mini .vol-range { margin: 0; }

/* 222 式双栏音乐播放器 */
.music-dual {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  padding: 26px;
  margin-bottom: 16px;
}
/* 左:唱片与控制 */
.md-left {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px 6px;
}
.md-disc {
  width: 170px; height: 170px; border-radius: 50%;
  background:
    radial-gradient(circle, #eef0ff 0 12%, transparent 13%),
    repeating-conic-gradient(from 0deg, #e6e8fb 0deg 5deg, #f2f3fc 5deg 10deg);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.9),
    0 0 0 9px rgba(99,102,241,.12),
    0 18px 40px rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.md-disc .inner {
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, #a5b4fc 65%, #818cf8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.9);
}
.md-disc svg { width: 24px; height: 24px; }
/* 真实专辑封面(圆形) */
.md-disc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.md-disc { position: relative; overflow: hidden; }
.md-disc.playing img { animation: discSpin 8s linear infinite; }
.md-title { font-size: 17px; font-weight: 700; color: #232846; }
.md-artist { font-size: 12px; color: var(--ink-faint); margin: 4px 0 18px; }
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--indigo) var(--fill, 0%), rgba(140,150,210,.28) var(--fill, 0%));
  outline: none; cursor: pointer; margin: 4px 0 6px;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--indigo);
  box-shadow: 0 2px 6px rgba(99,102,241,.4); cursor: pointer;
}
.range::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--indigo); cursor: pointer;
}
.md-time { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.md-controls { display: flex; align-items: center; gap: 14px; }
.mctrl {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.mctrl svg { width: 16px; height: 16px; }
.mctrl:hover { color: var(--indigo); }
.mctrl.on { color: var(--indigo); }
.mctrl.muted { color: var(--pink); }
.mctrl.play {
  width: 48px; height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 10px 24px rgba(99,102,241,.45);
}
.mctrl.play svg { width: 20px; height: 20px; }
.mctrl.play:hover { transform: scale(1.06); }

/* 右:歌词 / 歌单 */
.md-right { padding: 4px 8px 0 26px; border-left: 1px solid rgba(140,150,210,.16); }
.md-tabs { display: inline-flex; background: rgba(255,255,255,.6); border-radius: 26px; padding: 4px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.md-tab {
  border: none; cursor: pointer;
  padding: 7px 24px; border-radius: 22px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  color: var(--ink-soft); background: transparent;
  transition: all .2s;
}
.md-tab.active { color: #fff; background: linear-gradient(120deg, var(--indigo), var(--purple)); box-shadow: 0 6px 16px rgba(99,102,241,.35); }
.md-lyric {
  text-align: center;
  font-size: 15px; line-height: 2.1;
  color: var(--ink-faint);
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.md-lyric::-webkit-scrollbar { width: 0; }
.md-lyric .on { color: var(--indigo); font-weight: 700; font-size: 19px; line-height: 2.2; }
.md-lyric p { margin: 0; transition: color .3s, font-size .3s; }
.md-lyric-empty { color: var(--ink-faint); padding: 30px 10px; }
.md-list { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.md-listitem {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  font-size: 13.5px; color: var(--ink-soft);
  transition: all .2s;
  cursor: pointer;
}
.md-listitem .li-dur { flex: none; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.md-listitem:hover { background: rgba(255,255,255,.7); }
.md-listitem.row-active { background: linear-gradient(120deg, rgba(129,140,248,.18), rgba(167,139,250,.18)); color: var(--indigo); font-weight: 600; }
.md-list-empty { color: var(--ink-faint); text-align: center; padding: 30px 10px; }

/* --- 3. 弹幕横幅 --- */
.danmaku-bar {
  position: relative;
  display: flex; align-items: center;
  height: 48px; overflow: hidden;
  border-radius: 14px;
  background: rgba(30, 30, 55, .85);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.danmaku-track {
  flex: 1;
  white-space: nowrap;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92);
  padding-left: 100%;
  animation: danmaku 22s linear infinite;
}
@keyframes danmaku { to { transform: translateX(-100%); } }
.danmaku-ic {
  flex: none; width: 48px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #c9c5f5; border-left: 1px solid rgba(255,255,255,.15);
}
.danmaku-ic svg { width: 20px; height: 20px; }

/* --- 4. 内容卡片区 --- */
.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 16px;
}
.dash-card { padding: 20px 22px; display: flex; flex-direction: column; }
.dash-title {
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; letter-spacing: .3px;
}
.dash-title .ic { color: var(--indigo); }
.dash-title .ic svg { width: 16px; height: 16px; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; gap: 12px; }
.news-date { flex: none; font-size: 12px; color: var(--ink-faint); padding-top: 1px; white-space: nowrap; }
.news-item .txt { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.news-item .txt b { color: var(--ink); font-weight: 600; }
.clock-body { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.clock-time {
  font-size: 40px; font-weight: 800; letter-spacing: 2px;
  color: #232846; font-variant-numeric: tabular-nums; line-height: 1;
}
.clock-date { margin-top: 10px; font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; }
.entry-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 22px 20px 18px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(76,84,150,.16); }
.entry-cover {
  flex: none; width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 20px rgba(99,102,241,.3);
}
.entry-cover svg { width: 30px; height: 30px; stroke-width: 1.6; }
.entry-info { min-width: 0; }
.entry-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: #6d28d9; background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 6px; padding: 1px 8px; margin-bottom: 6px;
}
.entry-title { font-size: 15px; font-weight: 700; color: #232846; }
.entry-desc { margin-top: 5px; font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

/* --- 通用按钮(资料页复用) --- */
.btn {
  border: none; cursor: pointer;
  border-radius: 11px; padding: 8px 20px;
  font-size: 13px; font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(120deg, var(--indigo), var(--purple));
  box-shadow: 0 6px 18px rgba(99,102,241,.3);
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: rgba(255,255,255,.8);
  color: var(--indigo);
  border: 1px solid rgba(140,150,210,.3);
  box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(99,102,241,.5); box-shadow: 0 6px 16px rgba(99,102,241,.14); }
.switch-link { color: var(--indigo); }

/* 移动端 */
@media (max-width: 900px) {
  main { padding: 86px 14px 50px; }
  .navbar { top: 8px; left: 8px; right: 8px; border-radius: 16px; }
  .navbar .inner { height: auto; flex-direction: column; gap: 4px; padding: 8px 4px 6px; }
  .nav-links { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .nav-item { padding: 6px 9px; font-size: 12.5px; gap: 5px; }
  .nav-auth { width: 100%; justify-content: flex-end; margin-left: 0; }
  .main-cols { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .pc-top { flex-direction: column; gap: 14px; }
  .pc-name { font-size: 22px; }
  .pc-bottom { flex-direction: column; align-items: flex-start; }
  .pstat { padding: 0 18px; }
  .pstat:first-child { padding-left: 0; }
  .clock-time { font-size: 34px; }
  /* 222 播放器移动端单列 */
  .music-dual { grid-template-columns: 1fr; }
  .md-right { border-left: none; padding: 20px 2px 0; }
  .md-disc { width: 140px; height: 140px; }
}

/* ===== 页面过渡(内容块过渡,背景/导航不参与,省帧率) ===== */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 兜底进场:只对 main 整体淡入上移(整层一次合成,避免毛玻璃卡片逐帧重糊) */
main.page-enter { animation: pageIn .7s cubic-bezier(.16,1,.3,1) backwards; }

/* 首屏白帘:盖住整页重载时的白闪,自动淡出 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 999;
  background: #fff; opacity: 1; pointer-events: none;
  animation: arriveFade .34s ease .02s forwards;
}
@keyframes arriveFade { to { opacity: 0; } }

/* 退场遮罩:白色玻璃(降低 blur,毛玻璃叠在视频上很吃 GPU) */
.page-veil {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);
  opacity: 0; pointer-events: none;
  transition: opacity .32s ease;
}
.page-veil.on { opacity: 1; pointer-events: auto; }

/* 用户偏好减弱动效时关闭过渡 */
@media (prefers-reduced-motion: reduce) {
  main.page-enter { animation: none; }
  .page-veil { transition: none; }
  body::before { animation: none; opacity: 0; }
}
/* 移动端:更轻更短 */
@media (max-width: 800px) {
  main.page-enter { animation-duration: .5s; }
  .page-veil { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* ===== 跨文档视图过渡(浏览器原生):只切内容块,背景/导航静止,省帧率 ===== */
main { view-transition-name: content; }
@view-transition { navigation: auto; }
/* 背景/导航不参与动画(避免视频+毛玻璃整页每帧重合成,这是桌面掉帧主因) */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: none; }
/* 仅内容块柔和淡入上移(放慢一点) */
::view-transition-old(content) { animation: vtOut .4s ease both; }
::view-transition-new(content) { animation: vtIn .68s cubic-bezier(.16,1,.3,1) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(22px); } }
/* 支持原生视图过渡时,关闭自定义进场/白帘/遮罩,交由原生接管 */
html.vt body::before { animation: none; opacity: 0; }
html.vt main.page-enter { animation: none; }
html.vt .page-veil { display: none; }
