/*
 * 红炉点雪 — 武侠 Aero 主题
 * @package  HongLuDianXue
 * @author   Your Name
 * @version  2.0
 * @link     https://typecho.org
 *
 * 将此文件放入主题根目录，Typecho 会读取顶部注释作为主题信息。
 */

/* ================================================
   CSS 变量 — 默认：暖金武侠风
   ================================================ */
:root {
  --gold:            #C9A84C;
  --gold-light:      #F0D080;
  --gold-glow:       rgba(201,168,76,0.45);
  --jade:            #5AAE84;
  --jade-glow:       rgba(90,174,132,0.4);
  --crimson:         #D04040;

  /* 完全透明面板 */
  --glass-bg:        rgba(0, 0, 0, 0);
  --glass-bg-panel:  rgba(0, 0, 0, 0);
  --glass-bg-hover:  rgba(255, 220, 120, 0.06);
  --glass-border:    rgba(201, 168, 76, 0.32);
  --glass-border-hi: rgba(240, 200, 100, 0.6);
  --glass-blur:      blur(16px) saturate(160%);

  /* 暖色文字 */
  --text-main:  rgba(245, 232, 185, 0.95);
  --text-sub:   rgba(220, 200, 145, 0.75);
  --text-dim:   rgba(190, 165, 105, 0.55);

  --hud-font: 'LXGW WenKai Screen', 'LXGW WenKai', sans-serif;
  --serif:    'LXGW WenKai', serif;
}

/* ================================================
   暗黑模式 — 冷蓝逆水寒风（点击🌙切换）
   ================================================ */
[data-theme="dark"] {
  --glass-bg:        rgba(0, 0, 0, 0);
  --glass-bg-panel:  rgba(0, 0, 0, 0);
  --glass-bg-hover:  rgba(100, 160, 255, 0.06);
  --glass-border:    rgba(100, 160, 255, 0.22);
  --glass-border-hi: rgba(140, 190, 255, 0.4);
  --text-main:  rgba(220, 235, 255, 0.92);
  --text-sub:   rgba(160, 185, 220, 0.7);
  --text-dim:   rgba(120, 150, 190, 0.5);
}

/* ================================================
   全局 Reset
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: rgba(201,168,76,0.2); }

/* ================================================
   背景 — 深林意境
   ================================================ */
body {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  background: #1a2a1a;
}

/* 背景层：有背景图时自动生效，没有时显示渐变 */
#wuxia-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image: url(img/bp.webp);
  background-size: cover;
  background-position: center;
  background-color: #1e3520;
}
/* 遮罩层 — 默认暖色调，暗黑模式变冷 */
#wuxia-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(30,60,20,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(50,80,20,0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.4) 100%);
  transition: background 0.5s;
}
[data-theme="dark"] #wuxia-bg::after {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(10,40,80,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(10,50,30,0.3) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,10,0.5) 0%, rgba(0,0,10,0.2) 40%, rgba(0,0,10,0.2) 70%, rgba(0,0,10,0.55) 100%);
}

/* 浮动光点 Bokeh — 冷蓝色调 */
#wuxia-bokeh { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bk {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,140,255,0.15) 0%, transparent 70%);
  animation: bokehFloat linear infinite;
}
@keyframes bokehFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80px) scale(1.3); opacity: 0; }
}

/* 薄雾 */
#wuxia-mist {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg,
    rgba(200,220,200,0.04) 0%, transparent 30%,
    transparent 70%, rgba(200,220,200,0.03) 100%);
  animation: mistDrift 25s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { transform: translateX(-15px); }
  to   { transform: translateX(15px); }
}

/* ================================================
   面板 — 完全透明，无模糊
   ================================================ */
.glass {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
/* 顶部光泽条也去掉 */
.glass::before { display: none; }
/* 内边框光晕保留（只是边框效果，不影响透明） */
.glass::after {
  content: '';
  position: absolute; inset: 0; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,240,160,0.1);
  pointer-events: none; z-index: 2;
}
/* 金色角标 — 保留作为点缀 */
.glass .corner { position: absolute; width: 8px; height: 8px; z-index: 3; pointer-events: none; }
.glass .corner::before, .glass .corner::after { content: ''; position: absolute; background: var(--gold); opacity: 0.7; }
.glass .corner.tl { top: 0; left: 0; }
.glass .corner.tl::before { top:0; left:0; width:6px; height:1px; }
.glass .corner.tl::after  { top:0; left:0; width:1px; height:6px; }
.glass .corner.br { bottom: 0; right: 0; }
.glass .corner.br::before { bottom:0; right:0; width:6px; height:1px; }
.glass .corner.br::after  { bottom:0; right:0; width:1px; height:6px; }

/* 面板标题 */
.panel-title {
  position: relative; z-index: 4;
  padding: 5px 8px 4px;
  font-family: var(--hud-font); font-size: 9px; font-weight: 500;
  color: var(--gold-light); letter-spacing: 2px;
  border-bottom: 1px solid rgba(100,160,255,0.12);
  display: flex; align-items: center; gap: 5px;
  text-shadow: 0 0 8px var(--gold-glow);
}
.panel-title .pt-diamond {
  width: 4px; height: 4px; background: var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 5px var(--gold); flex-shrink: 0;
  animation: diamondPulse 3s ease-in-out infinite;
}
@keyframes diamondPulse {
  0%,100% { box-shadow: 0 0 5px var(--gold); }
  50%      { box-shadow: 0 0 12px var(--gold), 0 0 3px rgba(255,220,80,0.8); }
}

/* ================================================
   HUD 总布局
   ================================================ */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: all; }

/* 中央滚动内容区 */
#content-area {
  position: fixed;
  top: 52px; bottom: 80px; left: 220px; right: 210px;
  overflow-y: auto; z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,160,255,0.2) transparent;
  padding: 10px 12px 30px;
}
#content-area::-webkit-scrollbar { width: 3px; }
#content-area::-webkit-scrollbar-thumb { background: rgba(80,140,255,0.25); border-radius: 2px; }

/* ================================================
   顶部导航栏
   ================================================ */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 10px;
  background: linear-gradient(180deg, rgba(4,10,22,0.96) 0%, rgba(4,10,22,0.7) 80%, transparent 100%);
  border-bottom: 1px solid rgba(100,160,255,0.12);
}
#topbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,0.3), var(--gold), rgba(100,160,255,0.3), transparent);
  box-shadow: 0 0 6px rgba(100,160,255,0.2);
}
.top-loc {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--hud-font); font-size: 10px; color: var(--gold-light);
  letter-spacing: 1.5px; text-shadow: 0 0 10px var(--gold-glow);
}
.loc-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(201,168,76,0.4);
  animation: locBlink 2.5s ease-in-out infinite;
}
@keyframes locBlink {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.4; transform: scale(0.7); }
}
.top-loc .sep { color: rgba(100,160,255,0.3); }
.top-stats { display: flex; gap: 14px; align-items: center; }
.stat-chip {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--hud-font); font-size: 9px; color: var(--text-sub);
  padding: 2px 8px; background: rgba(40,70,120,0.3);
  border: 1px solid rgba(100,160,255,0.15); border-radius: 20px;
}
.stat-chip strong { color: var(--gold-light); }
.top-nav { display: flex; gap: 2px; align-items: center; }
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-family: var(--hud-font); font-size: 9px; color: var(--text-sub);
  background: rgba(30,55,100,0.25); border: 1px solid rgba(100,160,255,0.1);
  cursor: pointer; text-decoration: none; transition: all 0.25s; position: relative; overflow: hidden;
}
.nav-pill::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(180deg, rgba(120,180,255,0.1) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.2s;
}
.nav-pill:hover { color: var(--text-main); border-color: rgba(100,160,255,0.3); background: rgba(40,80,150,0.35); }
.nav-pill:hover::before { opacity: 1; }
.nav-pill.active { color: var(--gold-light); border-color: var(--gold); background: rgba(80,55,10,0.35); box-shadow: 0 0 8px rgba(201,168,76,0.2); }
.nav-pill .ni { font-size: 11px; }

/* ================================================
   左侧面板
   ================================================ */
#left-panel {
  position: absolute; top: 54px; left: 10px; bottom: 82px; width: 210px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
#left-panel::-webkit-scrollbar { display: none; }

/* chat-box 作为左侧面板最后一个子元素，紧贴底部 */
#left-panel #chat-box {
  position: static;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

/* 置顶任务 */
.quest-item {
  position: relative; z-index: 4; padding: 6px 8px;
  border-bottom: 1px solid rgba(100,160,255,0.06);
  cursor: pointer; transition: background 0.2s; display: flex; align-items: flex-start; gap: 7px;
}
.quest-item:hover { background: rgba(60,100,180,0.12); }
.quest-item:last-child { border-bottom: none; }
/* 彩色小图标 */
.quest-item .q-icon {
  width: 20px; height: 20px; border-radius: 3px; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  background: linear-gradient(135deg, rgba(120,80,200,0.6), rgba(80,40,160,0.8));
  border: 1px solid rgba(160,100,255,0.4);
  box-shadow: 0 0 6px rgba(120,80,200,0.3);
}
.quest-item .q-body { flex: 1; min-width: 0; }
.q-name {
  font-family: var(--hud-font); font-size: 10px; font-weight: 500;
  color: var(--text-main); line-height: 1.4; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.q-prog { display: flex; align-items: center; gap: 5px; }
.q-bar { flex: 1; height: 2px; background: rgba(100,160,255,0.1); border-radius: 1px; overflow: hidden; }
.q-fill { height: 100%; background: linear-gradient(90deg, #4a8fff, #80c0ff); border-radius: 1px; box-shadow: 0 0 4px rgba(80,150,255,0.5); }
.q-pct { font-family: var(--hud-font); font-size: 8px; color: var(--text-dim); }

/* 江湖动态 */
.ann-row {
  position: relative; z-index: 4;
  padding: 5px 8px; display: flex; gap: 6px; align-items: flex-start;
  font-family: var(--hud-font); font-size: 10px; color: var(--text-sub);
  border-bottom: 1px solid rgba(100,160,255,0.05); line-height: 1.5;
}
.ann-row:last-child { border-bottom: none; }
.ann-row:hover { background: rgba(60,100,180,0.1); }
.atag { padding: 1px 4px; font-size: 8px; border-radius: 2px; flex-shrink: 0; font-weight: 600; margin-top: 1px; }
.atag.new { background: rgba(200,50,50,0.7); color: #fff; }
.atag.hot { background: rgba(180,130,20,0.7); color: #fff; }
.atag.sys { background: rgba(40,120,80,0.7); color: #fff; }

/* 社交按钮 */
.soc-row { position: relative; z-index: 4; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.soc-btn {
  display: flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 10px;
  font-family: var(--hud-font); font-size: 9px; color: var(--text-sub);
  background: rgba(30,55,100,0.3); border: 1px solid rgba(100,160,255,0.12);
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.soc-btn:hover { color: var(--text-main); border-color: rgba(100,160,255,0.3); background: rgba(50,90,160,0.35); }

/* ================================================
   右侧面板
   ================================================ */
#right-panel {
  position: absolute; top: 54px; right: 10px; bottom: 82px; width: 195px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  padding-bottom: 4px;
}
#right-panel::-webkit-scrollbar { display: none; }

/* 角色状态 */
.char-hdr { position: relative; z-index: 4; padding: 7px 8px 4px; display: flex; gap: 7px; align-items: center; }
.char-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(80,140,255,0.4) 0%, rgba(20,40,100,0.8) 100%);
  border: 1px solid rgba(100,160,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(80,140,255,0.25), inset 0 1px 0 rgba(140,190,255,0.2);
}
.char-name { font-family: var(--hud-font); font-size: 11px; font-weight: 700; color: var(--text-main); line-height: 1.1; }
.char-title { font-family: var(--hud-font); font-size: 8px; color: var(--gold); margin-top: 2px; letter-spacing: 0.5px; }
.char-lv {
  font-family: var(--hud-font); font-size: 8px; color: var(--gold);
  padding: 2px 4px; border: 1px solid rgba(201,168,76,0.3); border-radius: 2px;
  margin-left: auto; flex-shrink: 0;
}
.char-bars { position: relative; z-index: 4; padding: 2px 8px 7px; }
.bar-r { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.bar-l { font-family: var(--hud-font); font-size: 8px; width: 12px; flex-shrink: 0; }
.bar-t { flex: 1; height: 4px; border-radius: 2px; overflow: hidden; }
.bar-hp { background: rgba(192,57,43,0.15); }
.bar-mp { background: rgba(80,140,255,0.1); }
.bar-hpf { height: 100%; width: 78%; background: linear-gradient(90deg, #600,var(--crimson),#E74C3C); border-radius: 2px; box-shadow: 0 0 4px rgba(200,60,40,0.5); }
.bar-mpf { height: 100%; width: 55%; background: linear-gradient(90deg, #1a3080,#4a8fff,#80c0ff); border-radius: 2px; box-shadow: 0 0 4px rgba(80,150,255,0.4); }
.bar-v { font-family: var(--hud-font); font-size: 8px; color: var(--text-dim); width: 28px; text-align: right; flex-shrink: 0; }

/* 目录 TOC */
.toc-list { list-style: none; padding: 3px 0; position: relative; z-index: 4; }
.toc-item {
  padding: 4px 8px 4px 10px; font-family: var(--hud-font); font-size: 9px;
  color: var(--text-sub); cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  border-left: 2px solid transparent; transition: all 0.18s; text-decoration: none;
}
.toc-item:hover { color: var(--text-main); border-left-color: rgba(100,160,255,0.4); background: rgba(60,100,180,0.1); }
.toc-item.active { color: var(--gold-light); border-left-color: var(--gold); font-weight: 500; text-shadow: 0 0 8px var(--gold-glow); }
.toc-item .td { width: 3px; height: 3px; border-radius: 50%; border: 1px solid currentColor; flex-shrink: 0; }
.toc-item.h3 { padding-left: 18px; font-size: 8px; color: var(--text-dim); }

/* 标签云 */
.tags-cloud { position: relative; z-index: 4; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 3px; }
.tpill {
  padding: 1px 7px; border-radius: 10px; font-family: var(--hud-font); font-size: 9px;
  border: 1px solid rgba(100,160,255,0.15); color: var(--text-dim);
  cursor: pointer; transition: all 0.18s; text-decoration: none;
}
.tpill:hover { border-color: rgba(100,160,255,0.4); color: var(--text-main); background: rgba(50,90,160,0.25); }
.tpill.on { background: var(--gold); color: #1a0f00; border-color: var(--gold); box-shadow: 0 0 8px rgba(201,168,76,0.4); }

/* ================================================
   归档面板 — 年份折叠 + 月份双列
   ================================================ */
#arc-body::-webkit-scrollbar { width: 2px; }
#arc-body::-webkit-scrollbar-thumb { background: rgba(100,160,255,0.2); border-radius: 1px; }

.arc-year-hdr {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px; cursor: pointer;
  border-bottom: 1px solid rgba(100,160,255,0.06);
  transition: background 0.18s; position: relative; z-index: 4;
}
.arc-year-hdr:hover { background: rgba(60,100,180,0.1); }
.arc-arrow { font-size: 8px; color: var(--gold); width: 8px; flex-shrink: 0; transition: transform 0.2s; }
.arc-yr-label { font-family: var(--hud-font); font-size: 9px; color: var(--text-sub); font-weight: 500; }
.arc-yr-count { margin-left: auto; font-family: var(--hud-font); font-size: 8px; color: var(--text-dim); }

.arc-months {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 4px 6px 5px; position: relative; z-index: 4;
}
.arc-mo-pill {
  padding: 2px 5px; border-radius: 2px;
  font-family: var(--hud-font); font-size: 8px;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid rgba(100,160,255,0.1);
  background: rgba(40,70,130,0.15);
  text-align: center; transition: all 0.18s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arc-mo-pill:hover { color: var(--text-main); border-color: rgba(100,160,255,0.35); background: rgba(50,90,180,0.25); }

/* ================================================
   聊天框 — 纯黑无边框，对标游戏
   ================================================ */
#chat-box {
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-top: 1px solid rgba(201,168,76,0.12);
  border-radius: 0 0 3px 3px;
  overflow: hidden;
}
.chat-msgs { max-height: 110px; overflow-y: auto; padding: 5px 7px; scrollbar-width: none; }
.chat-msgs::-webkit-scrollbar { display: none; }
.cm { font-family: var(--hud-font); font-size: 10px; line-height: 1.6; color: rgba(200,215,240,0.7); animation: cmIn 0.3s ease; }
@keyframes cmIn { from { opacity:0; transform: translateY(3px); } to { opacity:1; transform: translateY(0); } }
.cm .spk { font-weight: 500; }
.cm .spk.g { color: #A0C8FF; }
.cm .spk.r { color: #FFB0A0; }
.chat-irow { border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; padding: 3px 7px; gap: 5px; }
.chat-tab { font-family: var(--hud-font); font-size: 9px; color: rgba(120,180,255,0.7); letter-spacing: 0.5px; flex-shrink: 0; }
.chat-in { flex: 1; background: none; border: none; outline: none; font-family: var(--hud-font); font-size: 10px; color: rgba(210,225,250,0.85); caret-color: #80b0ff; }
.chat-in::placeholder { color: rgba(120,150,200,0.3); }

/* ================================================
   滚动进度条（内力条）
   ================================================ */
#scroll-bar {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%);
  width: 240px; display: flex; align-items: center; gap: 6px;
  font-family: var(--hud-font); font-size: 8px; color: rgba(100,160,255,0.5);
}
.scroll-track { flex: 1; height: 2px; background: rgba(100,160,255,0.08); border-radius: 1px; overflow: hidden; }
.scroll-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2a6fff, #80c0ff); border-radius: 1px; box-shadow: 0 0 5px rgba(80,150,255,0.5); transition: width 0.15s linear; }

/* ================================================
   底部技能栏 — 圆形按钮，冷色内发光
   ================================================ */
#bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 74px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(3,8,18,0.97) 0%, rgba(3,8,18,0.6) 80%, transparent 100%);
  border-top: 1px solid rgba(100,160,255,0.1);
}
#bottom-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,0.25), var(--gold), rgba(100,160,255,0.25), transparent);
}
.skill-row { display: flex; align-items: center; gap: 7px; padding: 0 30px; }

/* 圆形按钮主体 */
.sk-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  border: none; background: none; padding: 0;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.sk-btn .sk-fill {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    rgba(80,120,220,0.35) 0%, rgba(40,70,160,0.25) 40%, rgba(5,10,30,0.7) 100%);
  /* 内发光边框 — 对标游戏技能槽 */
  border: 1px solid rgba(100,160,255,0.35);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(140,200,255,0.2),
    inset 0 -1px 0 rgba(0,0,30,0.4),
    inset 0 0 8px rgba(60,120,255,0.1);
  transition: all 0.2s;
}
.sk-btn .sk-shine {
  position: absolute; top: 3px; left: 7px; right: 7px; height: 40%;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  background: linear-gradient(180deg, rgba(140,200,255,0.18) 0%, rgba(100,160,255,0.04) 70%, transparent 100%);
  pointer-events: none;
}
.sk-btn .sk-icon { position: relative; z-index: 2; font-size: 18px; line-height: 1; transition: transform 0.2s; filter: drop-shadow(0 0 3px rgba(80,150,255,0.4)); }
.sk-btn .sk-key {
  position: absolute; bottom: 2px; right: 3px;
  font-family: var(--hud-font); font-size: 7px; color: rgba(100,160,255,0.5); z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.sk-btn .sk-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  border: 1px solid rgba(100,160,255,0.3); padding: 4px 10px; border-radius: 3px;
  font-family: var(--hud-font); font-size: 9px; color: var(--text-main);
  white-space: nowrap; opacity: 0; transition: all 0.2s; pointer-events: none;
  box-shadow: 0 0 10px rgba(80,140,255,0.2);
}
.sk-btn .sk-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: rgba(100,160,255,0.3);
}
.sk-btn:hover .sk-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.sk-btn:hover { transform: translateY(-4px) scale(1.08); }
.sk-btn:hover .sk-fill {
  border-color: rgba(140,200,255,0.6);
  box-shadow:
    0 0 16px rgba(80,140,255,0.5),
    0 0 32px rgba(80,140,255,0.2),
    0 4px 14px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(160,210,255,0.3),
    inset 0 0 12px rgba(80,150,255,0.2);
}
.sk-btn:hover .sk-icon { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(100,180,255,0.7)); }
.sk-btn:active { transform: translateY(-2px) scale(0.96); }
.sk-btn:active .sk-fill {
  box-shadow:
    0 0 28px rgba(80,140,255,0.9),
    0 0 56px rgba(80,140,255,0.45),
    0 0 84px rgba(80,140,255,0.15),
    inset 0 1px 0 rgba(160,220,255,0.4);
  background: radial-gradient(circle at 40% 35%,
    rgba(120,180,255,0.5) 0%, rgba(80,140,255,0.3) 40%, rgba(5,10,30,0.6) 100%);
}
.sk-div { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, rgba(100,160,255,0.2), transparent); margin: 0 3px; }

/* 涟漪环动画 — 蓝色调 */
@keyframes rippleOut {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}
.ripple-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(120,190,255,0.8);
  animation: rippleOut 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
  pointer-events: none;
}

/* ================================================
   Logo 徽章
   ================================================ */
#lv-badge { position: absolute; bottom: 12px; right: 14px; text-align: right; }
.lv-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--gold); letter-spacing: 3px;
  text-shadow: 0 0 12px var(--gold-glow), 0 0 24px rgba(201,168,76,0.2);
  animation: goldPulse 4s ease-in-out infinite;
}
@keyframes goldPulse {
  0%,100% { text-shadow: 0 0 12px var(--gold-glow), 0 0 24px rgba(201,168,76,0.15); }
  50%      { text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(201,168,76,0.3); }
}
.lv-sub { font-family: var(--hud-font); font-size: 7px; color: rgba(201,168,76,0.4); letter-spacing: 2px; text-transform: uppercase; margin-top: 1px; }

/* ================================================
   文章卡片（列表页）
   ================================================ */
.post-card {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 3px; padding: 14px 16px; margin-bottom: 8px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(120,180,255,0.07) 0%, transparent 100%);
  border-radius: 3px 3px 0 0; pointer-events: none;
}
.post-card::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 1px 0 rgba(140,200,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
  pointer-events: none; border-radius: 3px;
}
.post-card:hover {
  border-color: rgba(100,160,255,0.35);
  background: rgba(25,40,75,0.65);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 12px rgba(80,140,255,0.08);
}
.pc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--hud-font); font-size: 9px; color: var(--text-dim); position: relative; z-index: 2; }
.pc-cat { color: var(--gold); font-weight: 500; }
.pc-sep { color: rgba(100,160,255,0.2); }
.pc-title { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--text-main); line-height: 1.5; margin-bottom: 7px; position: relative; z-index: 2; }
.pc-ex { font-family: var(--serif); font-size: 11px; color: var(--text-sub); line-height: 1.8; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 2; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.pc-tags { display: flex; gap: 3px; }
.pc-tag { padding: 1px 5px; font-family: var(--hud-font); font-size: 8px; border: 1px solid rgba(100,160,255,0.15); color: var(--text-dim); border-radius: 2px; }
.pc-rm { font-family: var(--hud-font); font-size: 9px; color: var(--gold); letter-spacing: 0.5px; display: flex; align-items: center; gap: 3px; }
.pc-rm::after { content: '▶'; font-size: 6px; }

/* ================================================
   文章正文（单篇）
   ================================================ */
.pf-wrap {
  background: transparent;
  border: 1px solid var(--glass-border); border-radius: 4px;
  padding: 22px 24px; position: relative; overflow: hidden;
}
.pf-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,220,0.09) 0%, transparent 100%);
  pointer-events: none;
}
.pf-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: rgba(245,232,185,0.97); line-height: 1.4; margin-bottom: 10px; }
.pf-meta { display: flex; gap: 12px; font-family: var(--hud-font); font-size: 10px; color: rgba(190,175,130,0.6); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(201,168,76,0.15); }
.pf-body { font-family: var(--serif); font-size: 14px; color: rgba(218,205,168,0.85); line-height: 2; position: relative; z-index: 2; }
.pf-body h2 { font-size: 16px; font-weight: 700; color: rgba(240,225,175,0.97); margin: 24px 0 10px; padding-bottom: 5px; border-bottom: 1px solid rgba(201,168,76,0.18); }
.pf-body h3 { font-size: 14px; font-weight: 700; color: rgba(235,220,170,0.9); margin: 18px 0 8px; }
.pf-body p { margin-bottom: 14px; }
.pf-body blockquote { margin: 14px 0; padding: 8px 14px; border-left: 2px solid var(--gold); background: rgba(201,168,76,0.05); color: rgba(200,185,140,0.7); font-style: italic; border-radius: 0 3px 3px 0; }
.pf-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.3); transition: border-color 0.2s; }
.pf-body a:hover { border-bottom-color: var(--gold); }
.pf-body code { background: rgba(10,20,10,0.6); padding: 2px 5px; border-radius: 2px; font-size: 12px; color: var(--jade); font-family: monospace; }
.pf-body pre { background: rgba(6,14,6,0.75); border: 1px solid rgba(201,168,76,0.15); padding: 12px 14px; border-radius: 3px; overflow-x: auto; margin-bottom: 14px; }
.pf-body pre code { color: var(--jade); font-size: 11px; background: none; padding: 0; }
.pf-body img { max-width: 100%; border-radius: 3px; border: 1px solid rgba(201,168,76,0.2); }
.pf-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 13px; }
.pf-body th { background: rgba(201,168,76,0.1); color: var(--gold-light); padding: 6px 10px; border: 1px solid rgba(201,168,76,0.2); font-weight: 500; }
.pf-body td { padding: 6px 10px; border: 1px solid rgba(201,168,76,0.1); color: rgba(218,205,168,0.8); }

/* 文章上下篇 */
.post-near { list-style: none; margin: 20px 0 0; padding: 14px; background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.12); border-radius: 3px; }
.post-near li { font-family: var(--hud-font); font-size: 11px; color: rgba(200,185,140,0.6); margin-bottom: 4px; }
.post-near li:last-child { margin-bottom: 0; }
.post-near a { color: var(--gold-light); text-decoration: none; }
.post-near a:hover { text-decoration: underline; }

/* ================================================
   分页导航 — 武侠风格
   同时覆盖 ol/ul，兼容 Typecho 不同版本输出
   ================================================ */
.page-navigator,
ol.page-navigator,
ul.page-navigator {
  list-style: none !important;
  list-style-type: none !important;
  margin: 16px 0 8px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.page-navigator li,
ol.page-navigator li,
ul.page-navigator li {
  display: flex;
  list-style: none !important;
  list-style-type: none !important;
  /* 去掉 ol 自动加的序号 */
  counter-increment: none;
}
/* 完全禁掉 ol 的序号伪元素 */
.page-navigator li::before,
ol.page-navigator li::before {
  content: none !important;
  display: none !important;
}

/* 每一个分页按钮 */
.page-navigator a,
.page-navigator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  font-family: var(--hud-font);
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* 普通页码链接 */
.page-navigator a {
  color: rgba(210,195,150,0.75);
  background: rgba(255,250,235,0.08);
  border: 1px solid rgba(201,168,76,0.2);
}
/* Aero 顶部光泽弧 */
.page-navigator a::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,210,0.1) 0%, transparent 100%);
  border-radius: 15px 15px 0 0;
  pointer-events: none;
}
.page-navigator a:hover {
  color: var(--gold-light);
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.14);
  box-shadow: 0 0 10px rgba(201,168,76,0.25);
  transform: translateY(-1px);
}

/* 当前页高亮 — 覆盖所有可能的结构 */
.page-navigator .current a,
.page-navigator .current span,
.page-navigator li.current a,
.page-navigator li.current span {
  color: #1a0f00 !important;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 0 14px rgba(201,168,76,0.45),
              inset 0 1px 0 rgba(255,255,200,0.4) !important;
  font-weight: 600;
}

/* 省略号 */
.page-navigator .space a,
.page-navigator .space span {
  color: rgba(201,168,76,0.4) !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  letter-spacing: 2px;
  min-width: 20px;
  cursor: default;
  pointer-events: none;
}

/* 前一页 / 后一页 — Typecho 用 li.prev 和 li.next */
.page-navigator li.prev a,
.page-navigator li.next a,
.page-navigator li:first-child a,
.page-navigator li:last-child a {
  padding: 0 14px;
  color: var(--gold);
  border-color: rgba(201,168,76,0.35);
  letter-spacing: 0.5px;
}
.page-navigator li.prev a:hover,
.page-navigator li.next a:hover,
.page-navigator li:first-child a:hover,
.page-navigator li:last-child a:hover {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
}

/* ================================================
   评论区
   ================================================ */
#comments {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--glass-border); border-radius: 4px;
  padding: 16px 18px; position: relative; overflow: hidden;
}
#comments::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,220,0.07) 0%, transparent 100%);
  pointer-events: none;
}
#comments h3 { font-family: var(--hud-font); font-size: 11px; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-weight: 500; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; }
.comment-list li {
  padding: 10px 12px; margin-bottom: 8px; border-radius: 3px;
  border: 1px solid rgba(201,168,76,0.1); position: relative;
}
.comment-list li.comment-level-odd { background: rgba(255,250,235,0.06); }
.comment-list li.comment-level-even { background: rgba(255,250,235,0.03); }
.comment-list li.comment-by-author { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.2); }
.comment-author { display: block; margin-bottom: 5px; color: rgba(230,215,170,0.9); font-family: var(--hud-font); font-size: 11px; }
.comment-author cite { font-weight: 600; font-style: normal; color: var(--gold-light); }
.comment-meta a { color: rgba(190,175,130,0.5); font-size: 9px; font-family: var(--hud-font); text-decoration: none; }
.comment-content { font-family: var(--serif); font-size: 12px; color: rgba(210,195,155,0.8); line-height: 1.8; }
.comment-list li .comment-reply { text-align: right; font-size: 10px; margin-top: 4px; }
.comment-list li .comment-reply a { color: var(--gold); text-decoration: none; font-family: var(--hud-font); }

/* 评论表单 */
.respond { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(201,168,76,0.15); }
.respond h3 { font-family: var(--hud-font); font-size: 11px; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-weight: 500; }
#comment-form p { margin-bottom: 8px; }
#comment-form label { display: block; margin-bottom: 3px; font-family: var(--hud-font); font-size: 10px; color: rgba(200,185,140,0.7); font-weight: 500; }
#comment-form .required::after { content: ' *'; color: var(--crimson); }
#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form input[type="url"],
#comment-form textarea {
  width: 100%; padding: 6px 10px;
  background: rgba(10,20,10,0.5);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 3px;
  color: rgba(230,218,180,0.9); font-family: var(--serif); font-size: 13px;
  transition: border-color 0.2s; outline: none;
}
#comment-form input:focus, #comment-form textarea:focus { border-color: rgba(201,168,76,0.5); box-shadow: 0 0 8px rgba(201,168,76,0.15); }
#comment-form textarea { resize: vertical; min-height: 80px; }
#comment-form button.submit {
  padding: 7px 20px; border-radius: 20px; cursor: pointer;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light); font-family: var(--hud-font); font-size: 11px; letter-spacing: 1px;
  transition: all 0.2s; position: relative; overflow: hidden;
}
#comment-form button.submit::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,200,0.1) 0%, transparent 100%);
  pointer-events: none;
}
#comment-form button.submit:hover { background: rgba(201,168,76,0.22); border-color: var(--gold); box-shadow: 0 0 12px rgba(201,168,76,0.3); }

/* ================================================
   404 页面
   ================================================ */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h2 { font-family: var(--serif); font-size: 22px; color: rgba(240,225,175,0.9); margin-bottom: 12px; }
.error-page p { font-family: var(--hud-font); font-size: 12px; color: rgba(200,185,140,0.6); margin-bottom: 14px; }

/* ================================================
   系统通知
   ================================================ */
#notif-area {
  position: fixed; top: 54px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 5px;
  pointer-events: none; width: 300px;
}
.notif {
  border: 1px solid rgba(100,160,255,0.2); border-radius: 20px; padding: 6px 14px;
  font-family: var(--hud-font); font-size: 10px; color: var(--text-main);
  display: flex; align-items: center; gap: 7px;
  animation: nIn 0.4s cubic-bezier(0.34,1.56,0.64,1), nOut 0.3s ease 2.7s forwards;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(140,200,255,0.1);
}
@keyframes nIn  { from { opacity:0; transform: translateY(-8px) scale(0.95); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes nOut { from { opacity:1; } to { opacity:0; transform: translateY(-4px); } }

/* ================================================
   搜索覆盖层
   ================================================ */
#search-ov {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(2,6,16,0.88);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
#search-ov.open { display: flex; animation: soIn 0.3s ease; }
@keyframes soIn { from { opacity:0; } to { opacity:1; } }
#search-in {
  width: 480px; max-width: 90vw;
  border: 1px solid rgba(100,160,255,0.3); color: var(--text-main);
  font-family: var(--hud-font); font-size: 15px; padding: 12px 18px; border-radius: 24px; outline: none;
  box-shadow: 0 0 24px rgba(80,140,255,0.15), inset 0 1px 0 rgba(140,200,255,0.1);
}
#search-in::placeholder { color: rgba(100,150,220,0.35); }

/* ================================================
   面板入场动画
   ================================================ */
@keyframes aeroOpen {
  0%   { opacity:0; transform: scale(0.92) translateY(8px); }
  60%  { opacity:1; transform: scale(1.01) translateY(-2px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
.aero-open { animation: aeroOpen 0.4s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ================================================
   响应式：窄屏隐藏侧栏
   ================================================ */
@media (max-width: 1024px) {
  #left-panel, #right-panel { display: none; }
  #content-area { left: 10px; right: 10px; }
  #chat-box { left: 10px; }
  .skill-row { padding: 0 10px; }
}
@media (max-width: 600px) {
  #topbar { flex-wrap: wrap; height: auto; padding: 6px 10px; }
  .top-stats { display: none; }
}

/* 竖屏（手机）隐藏右下角站点标题，防止被技能栏遮挡 */
@media (orientation: portrait) {
  #lv-badge { display: none; }
}