/* ============================================================
   style_hud.css — DTS 多鲁基大逃杀 HUD 科幻界面通用样式
   包含：通用背景（量子深海）、粒子容器、header/footer 新样式
   创建日期：2026-05-12
   更新日期：2026-05-17 — 眼疲劳优化（减少 text-shadow 泛光、提升可读性）
   ============================================================ */

/* ========== CSS 变量定义 ========== */
:root {
    --bg-deep: #071222;
    --panel-bg: rgba(22, 40, 68, 0.90);
    --panel-bg-alt: rgba(24, 44, 74, 0.88);
    --border-glow: rgba(55, 150, 200, 0.42);
    --border-bright: rgba(85, 185, 225, 0.65);
    --border-dim: rgba(45, 125, 175, 0.28);
    --text-primary: #c4d8ea;
    --text-bright: #dce6f0;
    --text-dim: #8eb4cc;
    --accent-cyan: #5cb5dc;
    --accent-blue: #4a98d8;
    --accent-glow: #5fb8dc;
    --corner-mark: rgba(75, 175, 220, 0.55);
    --grid-color: rgba(35, 100, 160, 0.06);
    --scan-line: rgba(60, 160, 215, 0.10);
    --particle-color: rgba(135, 220, 248, 0.80);
    --ring-color: rgba(65, 175, 220, 0.55);
    --ring-gap-color: rgba(65, 175, 220, 0.10);
    --btn-bg: rgba(6, 14, 32, 0.68);
    --btn-border: rgba(45, 125, 195, 0.50);
    --btn-hover-bg: rgba(10, 22, 48, 0.72);
    --btn-hover-border: rgba(70, 165, 225, 0.70);
    --btn-active-bg: rgba(14, 32, 60, 0.75);
    --btn-active-border: rgba(95, 195, 240, 0.82);
    --btn-glow: rgba(35, 120, 200, 0.10);
    --btn-glow-hover: rgba(55, 150, 220, 0.28);
    --input-bg: rgba(6, 16, 30, 0.72);
    --input-border: rgba(42, 110, 155, 0.32);
    --input-focus-border: rgba(95, 200, 235, 0.75);
    --input-focus-glow: rgba(60, 170, 220, 0.28);
    --scrollbar-thumb-hover: rgba(80, 185, 225, 0.58);
}

/* ========== 量子深海通用背景 ========== */
body {
    background: #020a14 !important;
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(8, 30, 60, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse at 30% 60%, rgba(6, 22, 48, 0.32) 0%, transparent 60%) !important;
    position: relative;
    font-size: 13px;
    /* 简洁十字准星光标 */
    cursor: crosshair;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-image, none);
    opacity: 1;
    mix-blend-mode: normal;
    pointer-events: none;
    z-index: -1;
}

/* ========== 量子涟漪层 ========== */
.quantum-ripple-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.quantum-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}
.quantum-ripple:nth-child(1) {
    width: 1100px; height: 1100px;
    background: radial-gradient(circle, rgba(70, 195, 245, 0.16) 0%, rgba(45, 150, 220, 0.09) 20%, rgba(25, 110, 190, 0.04) 40%, transparent 60%);
    top: 25%; left: 15%;
    animation: ripple1 22s ease-in-out infinite alternate;
}
.quantum-ripple:nth-child(2) {
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(90, 215, 248, 0.13) 0%, rgba(55, 170, 230, 0.07) 18%, rgba(35, 130, 200, 0.03) 35%, transparent 55%);
    bottom: 5%; right: 10%;
    animation: ripple2 28s ease-in-out infinite alternate;
}
.quantum-ripple:nth-child(3) {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(110, 225, 250, 0.10) 0%, rgba(70, 190, 235, 0.06) 15%, rgba(45, 150, 215, 0.03) 30%, transparent 50%);
    top: 55%; left: 50%;
    animation: ripple3 25s ease-in-out infinite alternate;
}

@keyframes ripple1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(40px, -20px) scale(1.06); opacity: 0.7; }
    100% { transform: translate(-30px, 15px) scale(0.95); opacity: 0.45; }
}
@keyframes ripple2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-45px, 25px) scale(1.08); opacity: 0.65; }
    100% { transform: translate(30px, -15px) scale(0.94); opacity: 0.35; }
}
@keyframes ripple3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate(20px, -30px) scale(1.04); opacity: 0.65; }
    100% { transform: translate(-30px, 20px) scale(0.96); opacity: 0.4; }
}

/* ========== 粒子容器 ========== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, left, top, opacity;
}

/* ========== Header 新样式（HUD 科幻风格） ========== */

/* 游戏主标题 - 替换旧版 .title */
.title {
    font-size: 24px;
    letter-spacing: 6px;
    color: #c8dff0;
    text-shadow: 0 0 10px rgba(90, 175, 225, 0.35);
    margin: 8px 0;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    text-decoration: none;
    filter: none;
    width: 100%;
}

/* 导航链接栏 - 替换旧版 .headerlink */
.headerlink {
    text-align: center;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 2px;
}
.headerlink a {
    color: #8fbcd5;
    text-decoration: none;
    margin: 0 8px;
    transition: all 0.2s;
    font: 12px 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 22px;
    cursor: crosshair;
}
.headerlink a:hover {
    color: #bce0f5;
    text-shadow: 0 0 6px rgba(90, 180, 220, 0.45);
    text-decoration: none;
}

/* 副标题 - 替换旧版 .subtitle */
.subtitle {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    margin: 6px;
    color: #b8daf0;
    text-shadow: 0 0 8px rgba(70, 170, 220, 0.3);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: center;
}

/* ========== Footer 新样式 ========== */

/* 版本信息 - 替换旧版 .ver（在 end 页面中使用） */
.ver {
    text-align: right;
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1px;
}
.ver a {
    color: #8ab8ce;
    text-decoration: none;
    font: 10pt 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    transition: all 0.2s;
    line-height: 20px;
}
.ver a:hover {
    color: #bce0f5;
    text-shadow: 0 0 6px rgba(90, 180, 220, 0.4);
    text-decoration: none;
}

/* ========== 按钮样式（新版 HUD 科幻风格） ========== */

/* 游戏内操作按钮 - 保留原宽高，替换为 HUD 风格 */
#gamecmd input.cmdbutton {
    width: 90px; height: 30px; margin: 2px;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(35, 120, 200, 0.06) 82%, rgba(35, 120, 200, 0.12) 100%),
        var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: #c0d8ee;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 3px;
    cursor: crosshair;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: inset 0 0 8px rgba(35, 120, 200, 0.05), 0 0 4px var(--btn-glow);
}
#gamecmd input.cmdbutton:hover {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(55, 150, 220, 0.14) 78%, rgba(55, 150, 220, 0.24) 100%),
        var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    box-shadow: inset 0 0 10px rgba(55, 150, 220, 0.16), 0 0 8px var(--btn-glow-hover);
    color: #dceeff;
}
#gamecmd input.cmdbutton:active {
    transform: scale(0.97);
    background:
        radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(65, 165, 230, 0.18) 72%, rgba(65, 165, 230, 0.30) 100%),
        var(--btn-active-bg);
    border-color: var(--btn-active-border);
    box-shadow: inset 0 0 12px rgba(65, 165, 230, 0.22), 0 0 8px rgba(55, 150, 220, 0.30);
}
#gamecmd input.cmdbutton:disabled {
    background: rgba(12, 16, 24, 0.5);
    border-color: rgba(60, 80, 100, 0.2);
    color: #707880;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    transition: none;
}

/* 通用按钮（用于 end、itemmove、itemmerge、chat、gambling 等页面） */
.nmbutton {
    height: 30px;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(35, 120, 200, 0.06) 82%, rgba(35, 120, 200, 0.12) 100%),
        var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: #b8d0e8;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: crosshair;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: inset 0 0 8px rgba(35, 120, 200, 0.05), 0 0 4px var(--btn-glow);
}
.nmbutton:hover {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(55, 150, 220, 0.14) 78%, rgba(55, 150, 220, 0.24) 100%),
        var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    box-shadow: inset 0 0 10px rgba(55, 150, 220, 0.16), 0 0 8px var(--btn-glow-hover);
    color: #dceeff;
}
.nmbutton:active {
    transform: scale(0.97);
}
.nmbutton:disabled {
    background: rgba(12, 16, 24, 0.5);
    border-color: rgba(60, 80, 100, 0.2);
    color: #707880;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    transition: none;
}

/* 移动下拉框（command 页面中的移动 select） */
.nmenu1 {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: #e0ecf5;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: crosshair;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s;
}
.nmenu1:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    color: #eef6ff;
}
/* 下拉框选项列表 - 暗色背景 */
.nmenu1 option {
    background: #101a28;
    color: #c0d8ee;
    padding: 6px 10px;
}

/* ========== 输入框样式（HUD 科幻风格） ========== */
input[type="text"],
input[type="password"],
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not(.cmdbutton):not(.nmbutton):not(.hud-btn) {
    font-family: inherit;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    color: var(--text-bright);
    outline: none;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-out;
    box-shadow: 0 0 6px rgba(35, 110, 165, 0.05), inset 0 0 10px rgba(12, 35, 65, 0.04);
}
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not(.cmdbutton):not(.nmbutton):not(.hud-btn)::placeholder {
    color: rgba(95, 160, 195, 0.35);
    letter-spacing: 0.5px;
    font-style: italic;
}
input[type="text"]:focus,
input[type="password"]:focus,
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not(.cmdbutton):not(.nmbutton):not(.hud-btn):focus {
    border-color: var(--input-focus-border);
    box-shadow:
        0 0 12px var(--input-focus-glow),
        0 0 24px rgba(40, 130, 190, 0.08),
        inset 0 0 12px rgba(15, 45, 85, 0.06);
}
input[type="text"]:disabled,
input[type="password"]:disabled {
    opacity: 0.4;
    filter: grayscale(30%);
    cursor: not-allowed;
    box-shadow: none;
}

/* ========== 全局滚动条样式（HUD 科幻风格） ========== */
/* WebKit 内核滚动条 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track, rgba(10, 25, 45, 0.5));
    border-radius: 2px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb, rgba(60, 160, 210, 0.45));
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(60, 160, 210, 0.3);
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover, rgba(90, 200, 240, 0.65));
    box-shadow: 0 0 12px rgba(90, 200, 240, 0.5);
}
/* Firefox 滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb, rgba(60, 160, 210, 0.45)) var(--scrollbar-track, rgba(10, 25, 45, 0.5));
}
/* ========== 通用辅助样式 ========== */

/* 滚动条美化的基类 */
.shiny_scroll_bar::-webkit-scrollbar {
    width: 6px;
}
.shiny_scroll_bar::-webkit-scrollbar-track {
    background: rgba(10, 25, 45, 0.5);
    border-radius: 3px;
}
.shiny_scroll_bar::-webkit-scrollbar-thumb {
    background: rgba(60, 160, 210, 0.45);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(60, 160, 210, 0.3);
}
.shiny_scroll_bar::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 200, 240, 0.65);
}

/* ========== 游戏主界面 HUD 布局（新版 div 结构） ========== */

/* 主容器：左右两栏 */
.game-hud {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 1120px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 0 10px;
}

/* 左侧主面板（profile / battle） */
.hud-main-panel {
    width: 870px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 右侧日志面板 */
.hud-log-panel {
    width: 300px;
    flex-shrink: 0;
}

/* ========== 通用卡片 ========== */
.hud-card {
    border: 1px solid var(--border-glow);
    border-radius: 4px;
    padding: 10px 12px;
    position: relative;
    box-shadow: 0 0 15px rgba(50, 155, 215, 0.1);
    display: flex;
    flex-direction: column;
}
.hud-card::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid var(--corner-mark);
    border-left: 1.5px solid var(--corner-mark);
    pointer-events: none;
}
.hud-card::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    border-bottom: 1.5px solid var(--corner-mark);
    border-right: 1.5px solid var(--corner-mark);
    pointer-events: none;
}

/* 卡片标题 */
.hud-card-header {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(55, 140, 190, 0.28);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-card-header #pls {
    font-size: 13px;
}

/* 标题旁边的菱形装饰 */
.hud-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(80, 200, 240, 0.6);
}

/* ========== 状态栏（顶部） ========== */
.hud-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 24, 42, 0.75);
    border: 1px solid rgba(45, 135, 185, 0.32);
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #b5d4ec;
}

/* ========== Profile 行（头像 + 属性 + 熟练 + 状态） ========== */
.hud-profile-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
/* 属性、熟练度卡片等宽 */
.hud-profile-row > .hud-card:nth-child(2),
.hud-profile-row > .hud-card:nth-child(3) {
    flex: 1;
    min-width: 0;
}
/* 状态卡片（合并后） */
.hud-profile-row > .hud-card:nth-child(4) {
    flex-shrink: 0;
    width: 290px;
}

/* ========== 头像区域 ========== */
.hud-avatar-area {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
}
.hud-avatar-frame {
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hud-avatar-frame img {
    width: 130px;
    height: auto;
    object-fit: contain;
}

/* 头像下方迷你属性 */
.hud-attr-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    width: 100%;
    font-size: 12px;
    letter-spacing: 0.8px;
}

/* ========== 属性行（通用） ========== */
.hud-attr-row {
    display: flex;
    justify-content: space-between;
    background: rgba(10, 25, 45, 0.45);
    padding: 4px 7px;
    border-radius: 2px;
    border: 1px solid rgba(50, 140, 190, 0.22);
    font-size: 12px;
    gap: 4px;
}
.attr-label {
    color: #aed8ee;
    white-space: nowrap;
    flex-shrink: 0;
}
.attr-value {
    color: #e8f2fa;
    font-size: 13px;
}

/* ========== 单列列表 ========== */
.hud-single-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ========== 状态卡片（左侧图标竖排 + 中部画像 + 右侧血条，底部buff图标） ========== */
.hud-status-top {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: stretch;
    margin-bottom: 6px;
}
/* 状态图标左列（竖向排列） */
.hud-status-icon-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    padding-top: 2px;
}
/* 角色画像中间列 */
.hud-status-char-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* 生命/体力竖条右列 */
.hud-status-bars-col {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
}
/* 底部 buff 图标行（替代原状态图标位置） */
.hud-status-buff-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(60, 150, 200, 0.4);
}
/* 底部状态图标水平行（保留兼容） */
.hud-status-icon-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(60, 150, 200, 0.25);
}
.hud-status-icon {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(70, 175, 220, 0.35);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 30, 50, 0.55);
    font-size: 12px;
    color: #9fd0e8;
    position: relative;
}
.hud-status-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ========== 生命/体力竖条 ========== */
.hud-status-bars-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex: 1;
}
.hud-v-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hud-v-bar-label {
    font-size: 10px;
    color: #8ab8d5;
    letter-spacing: 1px;
}
.hud-v-bar-bg {
    width: 20px;
    height: 100px;
    background: rgba(15, 35, 55, 0.7);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(70, 170, 225, 0.4);
}
.hud-v-bar-bg.hud-v-bar-tall {
    height: 200px;
    width: 22px;
}
.hud-v-bar-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, #ff3333, #ff5555);
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.5);
    border-radius: 2px;
    transition: height 0.5s ease;
}
.hud-v-bar-fill.hud-sp-fill {
    background: linear-gradient(0deg, #3b9eff, #6bc0ff);
    box-shadow: 0 0 8px rgba(70, 180, 230, 0.5);
}

/* ========== 角色画像卡片 ========== */
.hud-character-img {
    position: relative;
    border: 1px solid rgba(90, 200, 240, 0.50);
    border-radius: 3px;
    background: rgba(14, 28, 48, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7b99;
    font-size: 10px;
    letter-spacing: 1px;
    min-height: 160px;
    width: 130px;
    height: 250px;
    box-shadow: 0 0 10px rgba(40, 130, 190, 0.1);
    overflow: hidden;
}
/* 科幻网格背景 */
.hud-character-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(50, 150, 210, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 150, 210, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}
/* 扫描线从上到下循环 */
.hud-character-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(70, 180, 225, 0.25), transparent);
    box-shadow: 0 0 6px rgba(70, 180, 225, 0.2);
    pointer-events: none;
    z-index: 10;
    animation: hud-scan-line 4s linear infinite;
}
@keyframes hud-scan-line {
    0% { top: -3px; opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { top: 100%; opacity: 0.4; }
}

/* ========== 减少动画偏好（无障碍） ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .quantum-ripple,
    .bg-particle,
    .hud-character-img::after {
        display: none;
    }
}
/* 只有带onclick的div（受伤部位）才显示pointer光标 */
.hud-character-img div[onclick] {
    cursor: crosshair;
}

/* ========== 装备/道具表格行 ========== */
.hud-equip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 小表格 */
.hud-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.hud-mini-table th {
    background: rgba(12, 32, 55, 0.7);
    padding: 5px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b0cee6;
    border-bottom: 1px solid rgba(50, 135, 185, 0.28);
}
.hud-mini-table td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(50, 135, 185, 0.28);
    background: rgba(6, 18, 35, 0.45);
    color: #e8f2fa;
    font-size: 13px;
    white-space: nowrap;
}
.hud-mini-table td.grey {
    color: #9a9a9a;
}
.hud-mini-table tr:nth-child(even) td {
    background: rgba(9, 24, 44, 0.5);
}
/* 列宽：种类窄 / 名称宽 / 属性中 / 效窄 / 耐窄 */
.hud-mini-table th:nth-child(1),
.hud-mini-table td:nth-child(1) {
    width: 14%;
    max-width: 80px;
    font-size: 12px;
}
.hud-mini-table th:nth-child(2),
.hud-mini-table td:nth-child(2) {
    width: 36%;
}
.hud-mini-table th:nth-child(3),
.hud-mini-table td:nth-child(3) {
    width: 26%;
}
.hud-mini-table th:nth-child(4),
.hud-mini-table td:nth-child(4) {
    width: 12%;
}
.hud-mini-table th:nth-child(5),
.hud-mini-table td:nth-child(5) {
    width: 12%;
}

/* ========== 状态卡片表格（属性/熟练度） ========== */
.hud-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.hud-stats-table td {
    padding: 5px 7px;
    border-bottom: 1px solid rgba(50, 135, 185, 0.22);
    vertical-align: middle;
}
.hud-stats-table tr:nth-child(even) td {
    background: rgba(9, 24, 44, 0.35);
}
.hud-stats-table tr:nth-child(odd) td {
    background: rgba(6, 18, 35, 0.25);
}
/* 标签列：左对齐 */
.stats-label {
    color: #aed8ee;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap;
    width: 40%;
    font-weight: 500;
}
/* 数值列：右对齐 */
.stats-value {
    color: #e8f2fa;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

/* ========== 战斗卡片表格 ========== */
.hud-battle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.6;
}
.hud-battle-table td {
    padding: 4px 8px;
    border: 1px solid rgba(55, 140, 190, 0.18);
}
.hud-battle-table .nb1 {
    background: rgba(12, 32, 55, 0.55);
    color: #8ab8d5;
    font-weight: 600;
    white-space: nowrap;
}
.hud-battle-table .b3 {
    background: rgba(5, 16, 32, 0.4);
    color: #e8f2fa;
}
.hud-battle-table .b5 {
    background: rgba(4, 12, 25, 0.5);
    border: none;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}
.hud-battle-table img {
    display: block;
    margin: 0 auto;
    max-width: 140px;
    height: auto;
}

/* ========== 日志滚动区 ========== */
.hud-log-scroll {
    overflow-y: visible;
    padding-right: 4px;
    font-size: 12px;
    line-height: 1.9;
    color: #a8c6dd;
    scrollbar-width: thin;
    scrollbar-color: rgba(55, 145, 195, 0.4) rgba(10, 25, 45, 0.45);
    text-align: left;
}

/* ========== 通用行距调整 ========== */
/* 主内容区域、丢弃/存放道具页面、日志区域的文字行间留白 */
#main br, .hud-log-scroll br {
    display: block;
    content: '';
    margin-bottom: 4px;
}

/* ========== 进行状况页面 ========== */
#newsinfo ul, #newsinfo li {
    font-size: 12px;
}

/* ========== 帮助页面整体行高 ========== */
/* 覆盖 help.php 内联的 P { line-height:16px } / DIV.FAQ { line-height:16px } */
/* 使用 !important 是因为 help.php 的 <style> 在 style_hud.css 之后加载 */
div[align="left"] P,
div[align="left"] DL,
div[align="left"] DT,
div[align="left"] DD {
    line-height: 1.8 !important;
    font-size: 12px;
}
/* 帮助页面的 FAQ 区域 */
div[align="left"] DIV.FAQ,
div[align="left"] DIV.FAQ P,
div[align="left"] DIV.FAQ DL,
div[align="left"] DIV.FAQ DT,
div[align="left"] DIV.FAQ DD {
    line-height: 1.8 !important;
    font-size: 12px;
}

/* ========== 指令区 ========== */
#cmd, .hud-cmd-area {
    margin-top: 8px;
    flex-shrink: 0;
    text-align: left;
    white-space: normal;
}

/* ========== 迷你按钮（卸下装备等） ========== */
.hud-btn-mini {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(35, 120, 200, 0.05) 82%, rgba(35, 120, 200, 0.10) 100%),
        rgba(6, 14, 32, 0.68);
    border: 1px solid rgba(45, 125, 195, 0.50);
    color: #b8d0e8;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: crosshair;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: inset 0 0 6px rgba(35, 120, 200, 0.04), 0 0 3px var(--btn-glow);
}
.hud-btn-mini:hover {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(55, 150, 220, 0.12) 78%, rgba(55, 150, 220, 0.20) 100%),
        rgba(10, 22, 48, 0.72);
    border-color: rgba(70, 165, 225, 0.70);
    box-shadow: inset 0 0 8px rgba(55, 150, 220, 0.14), 0 0 6px var(--btn-glow-hover);
    color: #dceeff;
}
.hud-btn-mini:disabled {
    background: rgba(12, 16, 24, 0.5);
    border-color: rgba(60, 80, 100, 0.2);
    color: #707880;
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    transition: none;
}

/* ========== 通用 HUD 按钮 ========== */
.hud-btn {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(35, 120, 200, 0.06) 82%, rgba(35, 120, 200, 0.12) 100%),
        rgba(6, 14, 32, 0.68);
    border: 1px solid rgba(45, 125, 195, 0.50);
    color: #b8d0e8;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: crosshair;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: inset 0 0 8px rgba(35, 120, 200, 0.05), 0 0 4px var(--btn-glow);
}
.hud-btn:hover {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(55, 150, 220, 0.14) 78%, rgba(55, 150, 220, 0.24) 100%),
        rgba(10, 22, 48, 0.72);
    border-color: rgba(70, 165, 225, 0.70);
    box-shadow: inset 0 0 10px rgba(55, 150, 220, 0.16), 0 0 8px var(--btn-glow-hover);
    color: #dceeff;
}
.hud-btn:disabled {
    background: rgba(12, 16, 24, 0.5);
    border-color: rgba(60, 80, 100, 0.2);
    color: #707880;
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(30%);
    box-shadow: none;
    transform: none;
    transition: none;
}

/* ========== HUD 下拉选择框 ========== */
.hud-select {
    background: rgba(6, 16, 30, 0.75);
    border: 1px solid rgba(42, 110, 155, 0.38);
    color: #c0ddf2;
    font-size: 12px;
    letter-spacing: 0.3px;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: crosshair;
    font-family: inherit;
    max-width: 80px;
}
.hud-select option {
    background: #101a28;
    color: #c0d8ee;
}
.hud-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== 聊天卡片 ========== */
.hud-chat-card {
    margin-top: 10px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
}
.hud-chat-list {
    overflow-y: auto;
    min-height: 80px;
    max-height: 220px;
    font-size: 12px;
    line-height: 1.65;
    color: #b5d4ec;
    text-align: left;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: rgba(8, 18, 34, 0.80);
    border: 1px solid rgba(30, 80, 120, 0.32);
    border-radius: 3px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.02);
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(55, 140, 190, 0.28) rgba(4, 12, 25, 0.45);
}
.hud-chat-list::-webkit-scrollbar {
    width: 5px;
}
.hud-chat-list::-webkit-scrollbar-track {
    background: rgba(4, 12, 25, 0.5);
    border-radius: 3px;
}
.hud-chat-list::-webkit-scrollbar-thumb {
    background: rgba(60, 150, 200, 0.3);
    border-radius: 3px;
}
.hud-chat-list::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 200, 240, 0.5);
}
.hud-chat-list br {
    display: block;
    content: '';
    margin-bottom: 2px;
}
.hud-chat-input-row {
    border-top: 1px solid rgba(60, 150, 200, 0.3);
    padding-top: 6px;
}
.hud-chat-input {
    flex: 1;
    background: rgba(12, 22, 38, 0.72);
    border: 1px solid rgba(42, 110, 155, 0.32);
    color: #c4d8ea;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.hud-chat-input:focus {
    border-color: rgba(100, 210, 245, 0.7);
    box-shadow: 0 0 6px rgba(70, 185, 235, 0.25);
}
.hud-chat-card select {
    background: rgba(6, 16, 30, 0.8);
    border: 1px solid rgba(45, 120, 165, 0.4);
    color: #c0ddf2;
    font-size: 11px;
    padding: 3px 4px;
    border-radius: 2px;
    font-family: inherit;
    cursor: crosshair;
}

/* ========== 悬浮窗卡片样式（覆盖旧版） ========== */
.modal .content {
    background: rgba(16, 28, 50, 0.96);
    border: 1px solid rgba(70, 175, 225, 0.50);
    border-radius: 4px;
    padding: 18px 22px;
    box-shadow: 0 0 15px rgba(45, 145, 205, 0.12), 0 0 30px rgba(0,0,0,0.5);
    color: #c4d8ea;
    position: relative;
}
/* 悬浮窗内表格样式 */
.modal .content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.modal .content td {
    padding: 6px 8px;
    border: 1px solid rgba(60, 150, 200, 0.2);
    vertical-align: middle;
}
.modal .content .nb1 {
    background: rgba(12, 32, 55, 0.75);
    color: #8ab8d5;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.modal .content .b3 {
    background: rgba(5, 16, 32, 0.45);
    color: #c8dff5;
}

/* ========== 颜色工具类（兼容旧模板） ========== */
.red { color: #ff4444; }
.yellow { color: #ffe600; }
.clan { color: #4debf6; }
.grey { color: #888888; }
.lime { color: #88ff00; }
.gold { color: #ffd700; }
.purple { color: #cc88ff; }
.skill_blue { color: #4dc9f6; }

/* ========== 地点名称发光特效 ========== */
#pls {
    text-shadow: 0 0 5px rgba(255, 200, 0, 0.4), 0 0 10px rgba(255, 170, 0, 0.2);
    letter-spacing: 1.5px;
}
.material_color {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(200deg, #7abfff, #dc61fb);
}
