/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 线性 SVG 图标（icons.php / 内联 sprite） ===== */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft Yahei", sans-serif;
    color: #ffffff;
    position: relative;
    background: linear-gradient(180deg, #051028 0%, #0a1f45 100%);
    overflow-x: hidden;
}

/* 隐藏全局页面滚动条（保留滚动能力；Firefox / Chrome / Edge / Safari） */
html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ===== 公共星空粒子 ===== */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== 公共流星效果 ===== */
.meteor {
    position: fixed;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    transform: rotate(-30deg);
    animation: meteor 4s linear infinite;
    opacity: 0;
    z-index: 1;
}
.meteor:nth-child(1) { top: 10%; right: 10%; animation-delay: 0s; }
.meteor:nth-child(2) { top: 25%; right: 5%; animation-delay: 1.5s; }
.meteor:nth-child(3) { top: 5%; right: 30%; animation-delay: 3s; }
@keyframes meteor {
    0% { opacity: 0; transform: rotate(-30deg) translateY(-100px); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-30deg) translateY(600px); }
}

/* ===== 鼠标拖尾粒子 ===== */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.trail-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(45, 140, 240, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 1.3s ease-out forwards;
}
@keyframes trailFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* ===== 公共渐变按钮 ===== */
.gradient-btn {
    padding: 14px 48px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
}
.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 140, 240, 0.55);
    filter: brightness(1.1);
}
.gradient-btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #00d084, #00b894);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(0, 208, 132, 0.55);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
.btn-secondary:hover {
    box-shadow: 0 10px 28px rgba(255, 107, 107, 0.55);
}

/* ===== 首页样式 ===== */
.index-page {
    overflow-x: hidden;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(0,10,30,0.2) 0%, rgba(0,5,20,0.75) 100%),
        url('ikun_online.jpg') center center / cover no-repeat;
}

.index-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 60px;
    gap: 24px;
}

.title-wrap {
    margin-bottom: 10px;
}

.earth-logo {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(45, 140, 240, 0.5));
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.index-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #7b5cff, #2d8cf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(123, 92, 255, 0.3);
    letter-spacing: 4px;
    min-height: 64px;
}

.index-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    letter-spacing: 2px;
}

.index-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    white-space: pre-line;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ===== 游戏设定卡片 ===== */
.game-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1100px;
    width: 100%;
    margin: 20px 0;
    padding: 0 10px;
}

.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.8), rgba(10, 25, 55, 0.9));
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(45, 140, 240, 0.8);
    box-shadow: 0 12px 40px rgba(45, 140, 240, 0.3), inset 0 0 20px rgba(45, 140, 240, 0.1);
}

.game-card.danger {
    border-color: rgba(255, 71, 87, 0.4);
}
.game-card.danger:hover {
    border-color: rgba(255, 71, 87, 0.8);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.3), inset 0 0 20px rgba(255, 71, 87, 0.1);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-tag {
    display: inline-block;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-tag.rare {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.card-tag.common {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #fff;
}

.card-tag.epic {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

.card-tag.legendary {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 67, 147, 0.4);
    animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(232, 67, 147, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(232, 67, 147, 0.8); }
}

.card-tag.danger {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: #fff;
    box-shadow: 0 2px 8px rgba(214, 48, 49, 0.4);
}

.card-brief {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 4px;
}

.card-detail {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== 在线人数计数器 ===== */
.online-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 10px 0;
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.counter-number {
    font-size: 24px;
    font-weight: 800;
    color: #00d084;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 208, 132, 0.5);
    min-width: 100px;
    text-align: center;
}

.counter-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 操作按钮组 ===== */
.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

/* ===== 底部提示 ===== */
.footer-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ===== 服务器公告栏（首页 / 大厅） ===== */
.notice-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 9px 16px;
    background: rgba(10, 22, 50, 0.72);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.notice-bar-icon {
    flex-shrink: 0;
    color: #ffd700;
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    will-change: transform;
    flex: 1;
}

.notice-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
}

.notice-event {
    color: #ffd700;
    font-weight: 600;
}

.notice-event .icon {
    vertical-align: -0.15em;
}

.index-notice {
    margin: 14px 0 6px;
    max-width: 640px;
    width: 100%;
}

/* ===== 服务器分区排行（同国/同城） ===== */
.rank-panel {
    position: relative;
    z-index: 10;
    margin: 14px 0;
    padding: 16px 20px;
    background: linear-gradient(145deg, rgba(18, 36, 74, 0.8), rgba(10, 22, 50, 0.88));
    border: 1px solid rgba(45, 140, 240, 0.22);
    border-radius: 12px;
}

.rank-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rank-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rank-title .icon {
    color: #5ab2ff;
}

.rank-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.rank-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 28px 0;
}

.rank-tab {
    padding: 6px 16px;
    border-radius: 18px;
    border: 1px solid rgba(45, 140, 240, 0.3);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.rank-tab:hover {
    border-color: rgba(45, 140, 240, 0.6);
    color: #fff;
}

.rank-tab.active {
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.35), rgba(123, 92, 255, 0.35));
    border-color: rgba(45, 140, 240, 0.6);
    color: #fff;
    font-weight: 600;
}

.rank-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 28px 20px;
}

.rank-list.active {
    display: flex;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-no {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.rank-no-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #1a1a2e; }
.rank-no-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #1a1a2e; }
.rank-no-3 { background: linear-gradient(135deg, #cd7f32, #b06a28); color: #fff; }

.rank-name {
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    overflow: hidden;
}

.rank-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2d8cf0, #00d084);
    border-radius: 5px;
}

.rank-nums {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.rank-nums b {
    color: #ffd700;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* ============================================================
   阶段 0 · 评价图片（上传 + 缩略图 + 灯箱）
   ============================================================ */
.upload-section {
    margin-top: 14px;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.upload-label .icon {
    color: #5ab2ff;
}

.upload-hint-tip {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 0;
}

.upload-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(45, 140, 240, 0.3);
}

.upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-item-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.upload-item-del:hover {
    background: #ff6b6b;
}

.upload-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(45, 140, 240, 0.5);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-pick-btn:hover {
    border-color: rgba(45, 140, 240, 0.9);
    color: #fff;
    background: rgba(45, 140, 240, 0.15);
}

/* 评论配图缩略图（大厅时间线 / 详情页） */
.comment-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.comment-img-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.comment-img-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(45, 140, 240, 0.6);
}

/* 图片灯箱 */
.lightbox-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-mask.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 107, 107, 0.5);
}

@media (max-width: 600px) {
    .comment-img-thumb {
        width: 72px;
        height: 72px;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .game-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .index-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .game-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 8px;
    }
    .game-card {
        padding: 12px 6px;
    }
    .card-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .card-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .card-tag {
        font-size: 9px;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    .card-brief {
        font-size: 9px;
    }
    .card-detail {
        font-size: 8px;
    }
    .action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .gradient-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 32px;
        font-size: 16px;
    }
    .online-counter {
        padding: 8px 16px;
    }
    .counter-number {
        font-size: 18px;
        min-width: 80px;
    }
    .footer-hint {
        font-size: 10px;
    }
    .earth-logo {
        font-size: 48px;
    }
}

/* =============================================
   ===== 世界设定手册页 (settings.html) =====
   ============================================= */

.settings-page {
    background: linear-gradient(180deg, #040d1f 0%, #0a1f45 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.settings-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ===== 左侧导航栏（游戏任务日志风格） ===== */
.settings-sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(10, 25, 55, 0.95), rgba(5, 15, 35, 0.98));
    border-right: 1px solid rgba(45, 140, 240, 0.2);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 20;
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.2);
    margin-bottom: 20px;
}

.sidebar-logo {
    font-size: 36px;
    margin-bottom: 8px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin: 4px 12px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(45, 140, 240, 0.15);
    color: #fff;
    border-left-color: #2d8cf0;
}

.sidebar-menu a .menu-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.sidebar-menu a .menu-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
}

.sidebar-footer .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(45, 140, 240, 0.2);
    border: 1px solid rgba(45, 140, 240, 0.4);
    border-radius: 8px;
    color: #2d8cf0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sidebar-footer .back-btn:hover {
    background: rgba(45, 140, 240, 0.4);
    color: #fff;
}

/* ===== 主内容区 ===== */
.settings-main {
    margin-left: 260px;
    flex: 1;
    padding: 40px 50px;
    max-width: calc(100% - 260px);
}

.settings-section {
    margin-bottom: 50px;
    scroll-margin-top: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.2);
}

.section-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.2), rgba(123, 92, 255, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(45, 140, 240, 0.3);
}

.section-title-wrap {
    flex: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 设定详情卡片 ===== */
.setting-detail-card {
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.6), rgba(10, 25, 55, 0.8));
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.setting-detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(45, 140, 240, 0.1), transparent);
    border-radius: 50%;
}

.card-danger { border-color: rgba(255, 71, 87, 0.3); }
.card-danger::after { background: radial-gradient(circle, rgba(255, 71, 87, 0.1), transparent); }

.card-legendary { border-color: rgba(253, 121, 168, 0.3); }
.card-legendary::after { background: radial-gradient(circle, rgba(253, 121, 168, 0.1), transparent); }

.card-rare { border-color: rgba(255, 215, 0, 0.3); }
.card-rare::after { background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent); }

.setting-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* ===== 游戏属性面板 ===== */
.game-attributes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.attr-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.attr-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.attr-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.attr-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.attr-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.attr-bar-fill.blue { background: linear-gradient(90deg, #2d8cf0, #7b5cff); }
.attr-bar-fill.green { background: linear-gradient(90deg, #00d084, #00b894); }
.attr-bar-fill.gold { background: linear-gradient(90deg, #ffd700, #ffaa00); }
.attr-bar-fill.red { background: linear-gradient(90deg, #ff7675, #d63031); }
.attr-bar-fill.purple { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.attr-bar-fill.pink { background: linear-gradient(90deg, #fd79a8, #e84393); }

/* ===== 规则列表 ===== */
.rule-list {
    list-style: none;
    padding: 0;
}

.rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-list li:last-child {
    border-bottom: none;
}

.rule-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-content {
    flex: 1;
}

.rule-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.rule-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ===== 玩家须知弹窗 ===== */
.notice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.notice-modal-overlay.active {
    display: flex;
}

.notice-modal {
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.98), rgba(10, 25, 55, 0.98));
    border: 1px solid rgba(45, 140, 240, 0.4);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.notice-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notice-modal-content {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.notice-modal-content p {
    margin-bottom: 12px;
}

.notice-modal-close {
    display: block;
    margin: 24px auto 0;
    padding: 10px 32px;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-modal-close:hover {
    filter: brightness(1.2);
}

/* ===== 设定手册页响应式 ===== */
@media (max-width: 900px) {
    .settings-sidebar {
        width: 260px;
        position: fixed;
        height: 100vh;
        border-right: 1px solid rgba(45, 140, 240, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
        top: 0;
        left: 0;
        background: linear-gradient(180deg, rgba(10, 25, 55, 0.98), rgba(5, 15, 35, 1));
    }
    .settings-sidebar.active {
        transform: translateX(0);
    }
    .settings-layout {
        flex-direction: column;
    }
    .settings-main {
        margin-left: 0;
        max-width: 100%;
        padding: 80px 16px 24px;
    }
    .sidebar-footer {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }
    .game-attributes {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 移动端顶部导航栏 */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 52px;
        background: linear-gradient(180deg, rgba(10, 25, 55, 0.98), rgba(5, 15, 35, 0.98));
        border-bottom: 1px solid rgba(45, 140, 240, 0.2);
        padding: 0 16px;
        z-index: 40;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        background: rgba(45, 140, 240, 0.15);
        border: 1px solid rgba(45, 140, 240, 0.3);
        border-radius: 8px;
        cursor: pointer;
        gap: 4px;
        padding: 6px;
    }
    .menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #2d8cf0;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    .mobile-title {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 1px;
        flex: 1;
        text-align: center;
    }
    .mobile-home {
        font-size: 20px;
        text-decoration: none;
        padding: 4px 8px;
    }

    /* 遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 45;
    }
    .sidebar-overlay.active {
        display: block;
    }
}

@media (min-width: 901px) {
    .mobile-header,
    .sidebar-overlay {
        display: none;
    }
}

@media (max-width: 600px) {
    .game-attributes {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    .settings-main {
        padding: 16px;
    }
}

/* =============================================
   ===== 登录页样式 (login.php) =====
   ============================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #040d1f 0%, #0a1f45 100%);
    padding: 20px;
}

.form-card {
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.9), rgba(10, 25, 55, 0.95));
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(45, 140, 240, 0.1);
    backdrop-filter: blur(10px);
}

.form-card h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #fff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-item input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-item input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-item input:focus {
    border-color: rgba(45, 140, 240, 0.8);
    box-shadow: 0 0 12px rgba(45, 140, 240, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* ===== 自定义下拉框 ===== */
.custom-select {
    position: relative;
    width: 100%;
}

.cs-trigger {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
}

.cs-trigger:hover {
    border-color: rgba(45, 140, 240, 0.55);
}

.cs-trigger:focus-visible {
    outline: none;
    border-color: rgba(45, 140, 240, 0.8);
    box-shadow: 0 0 12px rgba(45, 140, 240, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.cs-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-value.cs-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cs-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select.open .cs-arrow {
    transform: rotate(180deg);
}

.cs-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    background: linear-gradient(145deg, rgba(15, 32, 65, 0.98), rgba(8, 20, 45, 0.98));
    border: 1px solid rgba(45, 140, 240, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 140, 240, 0.08);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cs-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cs-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cs-option:hover,
.cs-option.cs-active {
    background: rgba(45, 140, 240, 0.15);
    color: #fff;
}

.cs-option.selected {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.25), rgba(123, 92, 255, 0.25));
}

.cs-option.selected::after {
    content: '✓';
    color: #2d8cf0;
    font-weight: 700;
}

/* 菜单内细滚动条 */
.cs-menu::-webkit-scrollbar {
    width: 6px;
}

.cs-menu::-webkit-scrollbar-thumb {
    background: rgba(45, 140, 240, 0.35);
    border-radius: 3px;
}

.cs-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 140, 240, 0.65);
}

.cs-menu::-webkit-scrollbar-track {
    background: transparent;
}

/* 禁用态 */
.custom-select.disabled .cs-trigger {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-select.disabled .cs-trigger:hover {
    border-color: rgba(45, 140, 240, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 140, 240, 0.55);
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .form-card {
        padding: 28px 20px;
    }
    .form-card h2 {
        font-size: 18px;
    }
}

/* =============================================
   ===== 大厅页样式 (hall.php) =====
   ============================================= */

.hall-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #040d1f 0%, #0a1f45 100%);
    padding: 0;
    overflow-x: hidden;
}

.hall-wrap {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ===== 顶部游戏顶栏 ===== */
.hall-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.15);
}

.hall-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hall-globe {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(45, 140, 240, 0.4));
    animation: float 3s ease-in-out infinite;
}

.hall-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hall-brand-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.hall-brand-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 玩家信息卡片 */
.hall-player-card {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(45, 140, 240, 0.1);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 12px;
    padding: 6px 10px 6px 6px;
}

/* 可点击的玩家卡片链接 → 个人中心 */
.player-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 4px 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.player-card-link:hover .player-avatar {
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.55), 0 4px 16px rgba(45, 140, 240, 0.5);
}

.player-card-link:hover .player-name {
    color: #7fd0ff;
}

.player-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
    transition: box-shadow 0.25s ease;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: color 0.25s ease;
}

.player-location {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.player-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 15px;
    text-decoration: none;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    opacity: 1;
    transition: all 0.3s ease;
}

.player-logout:hover {
    color: #fff;
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

/* 评论正文下方的玩家签名 */
.comment-signature,
.reply-signature {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    letter-spacing: 0.3px;
    line-height: 1.5;
    word-break: break-all;
}

.reply-signature {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 11px;
}

/* 性别徽章（顶栏 / 评论 / 回复作者名旁） */
.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    vertical-align: middle;
    color: #fff;
    flex-shrink: 0;
}

/* 男：蓝色实心渐变 */
.gender-badge.gender-male {
    background: linear-gradient(135deg, #2d8cf0, #4da3ff);
    box-shadow: 0 2px 8px rgba(45, 140, 240, 0.5);
}

/* 女：粉色实心渐变 */
.gender-badge.gender-female {
    background: linear-gradient(135deg, #ff6b9b, #ff8fb3);
    box-shadow: 0 2px 8px rgba(255, 107, 155, 0.5);
}

/* 保密：浅灰 */
.gender-badge.gender-secret {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* 评论/回复作者名旁的徽章略小，避免喧宾夺主 */
.comment-author .gender-badge,
.reply-author .gender-badge {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    font-size: 10px;
}

/* 佩戴的成就称号（顶栏玩家名旁） */
.title-chip {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ===== 数据看板 ===== */
.hall-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dash-item {
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.5), rgba(10, 25, 55, 0.7));
    border: 1px solid rgba(45, 140, 240, 0.15);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.dash-item:hover {
    border-color: rgba(45, 140, 240, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 140, 240, 0.15);
}

.dash-item.dash-highlight {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 170, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.25);
}

.dash-item.dash-highlight:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.dash-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.dash-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.dash-item.dash-highlight .dash-value {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.dash-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* ===== 操作栏 ===== */
.hall-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.1);
}

.action-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-icon {
    font-size: 20px;
}

.publish-btn {
    position: relative;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.publish-btn .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.55);
    filter: brightness(1.1);
}

.publish-btn:hover .btn-glow {
    opacity: 1;
}

/* ===== 评价时间线 ===== */
.comments-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    display: flex;
    gap: 16px;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.4), rgba(10, 25, 55, 0.6));
    border: 1px solid rgba(45, 140, 240, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-card:hover {
    border-color: rgba(45, 140, 240, 0.25);
    box-shadow: 0 8px 32px rgba(45, 140, 240, 0.12);
    transform: translateX(4px);
}

.comment-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, rgba(45, 140, 240, 0.3), transparent);
    margin-top: 8px;
    min-height: 20px;
    border-radius: 1px;
}

.comment-card-body {
    flex: 1;
    min-width: 0;
}

.comment-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.comment-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.comment-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
}

.comment-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars-display {
    font-size: 14px;
    color: #ffd700;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.rating-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.page-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.4), rgba(10, 25, 55, 0.6));
    border: 1px solid rgba(45, 140, 240, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.page-btn:hover {
    border-color: rgba(45, 140, 240, 0.5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(45, 140, 240, 0.25);
    transform: translateY(-2px);
}

.page-current {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 4px 16px rgba(45, 140, 240, 0.35);
}

.page-current:hover {
    color: #fff;
    transform: none;
}

.page-dots {
    color: rgba(255, 255, 255, 0.35);
    padding: 0 2px;
}

/* ===== 评论卡片底部（回复数入口） ===== */
.comment-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(45, 140, 240, 0.15);
}

.reply-count-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(45, 140, 240, 0.12);
    border: 1px solid rgba(45, 140, 240, 0.2);
    padding: 3px 10px;
    border-radius: 10px;
}

.reply-enter-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
    transition: color 0.25s ease;
}

.comment-card:hover .reply-enter-hint {
    color: #7b5cff;
}

/* ===== 评论详情页 (comment.php) ===== */
.detail-nav {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(45, 140, 240, 0.1);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.back-link:hover {
    color: #fff;
    border-color: rgba(45, 140, 240, 0.5);
    box-shadow: 0 4px 16px rgba(45, 140, 240, 0.2);
}

/* 主楼评论：不可点击跳转，视觉更突出 */
.main-comment-card {
    cursor: default;
    border-color: rgba(45, 140, 240, 0.3);
    background: linear-gradient(145deg, rgba(25, 50, 95, 0.55), rgba(12, 30, 65, 0.75));
}

.main-comment-card:hover {
    transform: none;
}

.main-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

/* 回复列表 */
.replies-section {
    margin-top: 24px;
}

.replies-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.replies-title .reply-total {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.reply-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-card {
    display: flex;
    gap: 12px;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.35), rgba(10, 25, 55, 0.5));
    border: 1px solid rgba(45, 140, 240, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.reply-card:hover {
    border-color: rgba(45, 140, 240, 0.25);
}

.reply-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.25);
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reply-body {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.reply-author {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.reply-loc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.reply-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
}

.reply-text {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    word-break: break-word;
}

.reply-btn {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.reply-btn:hover {
    color: #7b5cff;
}

.reply-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.3), rgba(10, 25, 55, 0.4));
    border: 1px dashed rgba(45, 140, 240, 0.15);
    border-radius: 14px;
}

/* 回复输入框 */
.reply-box {
    margin-top: 28px;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.45), rgba(10, 25, 55, 0.65));
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
}

.reply-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.reply-textarea {
    width: 100%;
    min-height: 90px;
    box-sizing: border-box;
    background: rgba(5, 15, 40, 0.6);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-textarea:focus {
    outline: none;
    border-color: rgba(45, 140, 240, 0.6);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.15);
}

.reply-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.reply-box-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.reply-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.reply-submit {
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(45, 140, 240, 0.3);
}

.reply-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 140, 240, 0.45);
    filter: brightness(1.1);
}

/* 评论不存在 */
.notfound-box {
    text-align: center;
    padding: 80px 20px;
}

.notfound-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.notfound-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.notfound-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-mask.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.98), rgba(10, 25, 55, 0.98));
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-mask.active .modal-box {
    transform: scale(1) translateY(0);
}

/* 游戏风格弹窗 */
.modal-game {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(45, 140, 240, 0.25);
}

.modal-accent-line {
    height: 4px;
    background: linear-gradient(90deg, #2d8cf0, #7b5cff, #ff6b6b);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
}

.modal-close:hover {
    color: #ff6b6b;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 28px 0;
}

.modal-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.2), rgba(123, 92, 255, 0.2));
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

.modal-header-text {
    flex: 1;
}

.modal-game .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-align: left;
}

.modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* 评分区 */
.rating-section {
    padding: 24px 28px 0;
    text-align: center;
}

.rating-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.rating-hint {
    font-size: 13px;
    margin-top: 8px;
    transition: all 0.3s ease;
    min-height: 20px;
}

.stars-group {
    display: flex;
    gap: 10px;
    font-size: 32px;
    justify-content: center;
}

.star-item {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    user-select: none;
    display: inline-block;
}

.star-item.active {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.star-item:hover {
    transform: scale(1.2);
}

/* 输入区 */
.textarea-section {
    padding: 0 28px;
    margin-top: 20px;
}

.textarea-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.modal-textarea:focus {
    border-color: rgba(45, 140, 240, 0.6);
    box-shadow: 0 0 16px rgba(45, 140, 240, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

/* 弹窗底部按钮 */
.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.modal-btn-submit {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
}

.modal-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 140, 240, 0.55);
    filter: brightness(1.1);
}

/* ===== 大厅页移动端 ===== */
@media (max-width: 600px) {
    .hall-wrap {
        padding: 20px 14px 40px;
    }
    .hall-topbar {
        gap: 16px;
    }
    .hall-brand-title {
        font-size: 16px;
    }
    .hall-dashboard {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .dash-item {
        padding: 14px 8px;
    }
    .dash-icon {
        font-size: 22px;
    }
    .dash-value {
        font-size: 20px;
    }
    .dash-label {
        font-size: 10px;
    }
    .hall-action-bar {
        flex-direction: column;
        gap: 12px;
    }
    .comment-card {
        padding: 16px;
    }
    .comment-avatar {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .comment-author {
        font-size: 14px;
    }
    .modal-box {
        padding: 0;
        margin: 10px;
    }
    .modal-header {
        padding: 24px 20px 0;
    }
    .rating-section,
    .textarea-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .modal-actions {
        padding: 16px 20px 24px;
    }
    .checkin-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .checkin-modal-body .modal-actions {
        padding-left: 0;
        padding-right: 0;
    }
    .rank-tabs {
        padding: 12px 20px 0;
    }
    .rank-list {
        padding-left: 20px;
        padding-right: 20px;
    }
    .stars-group {
        font-size: 26px;
    }
    .reply-card {
        padding: 14px;
    }
    .reply-time {
        margin-left: 0;
        width: 100%;
    }
    .reply-box {
        padding: 16px;
    }
    .reply-box-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .reply-submit {
        width: 100%;
    }
}

/* =============================================
   ===== 升级页样式 (upgrade.php) =====
   ============================================= */

.upgrade-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #040d1f 0%, #0a1f45 100%);
    padding: 0;
    overflow-x: hidden;
}

.upgrade-wrap {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 32px;
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(45, 140, 240, 0.4));
    animation: float 3s ease-in-out infinite;
}

.upgrade-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.upgrade-version {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

/* 体检大类概览行 */
.cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(45, 140, 240, 0.15);
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.35), rgba(10, 25, 55, 0.5));
    transition: all 0.25s ease;
}

.cat-row:last-child {
    margin-bottom: 0;
}

.cat-row:hover {
    transform: translateX(4px);
}

.cat-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.cat-status {
    font-size: 12px;
    margin-left: auto;
    font-weight: 600;
}

.cat-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.cat-ok {
    border-color: rgba(46, 204, 113, 0.25);
}

.cat-ok .cat-status {
    color: #2ecc71;
}

.cat-warn {
    border-color: rgba(253, 203, 110, 0.3);
}

.cat-warn .cat-status {
    color: #fdcb6e;
}

.cat-bad {
    border-color: rgba(255, 118, 117, 0.35);
}

.cat-bad .cat-status {
    color: #ff7675;
}

/* 检查面板 */
.check-panel,
.upgrade-info {
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.5), rgba(10, 25, 55, 0.7));
    border: 1px solid rgba(45, 140, 240, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-ok {
    color: #00d084;
    border-left: 3px solid #00d084;
}

.check-warn {
    color: #ffd700;
    border-left: 3px solid #ffd700;
}

.check-error {
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b;
}

.check-info {
    color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

/* 体检汇总 */
.check-summary {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 8px 12px;
    margin: 14px 0 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* 体检分组标题 */
.check-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d8cf0;
    letter-spacing: 1px;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(45, 140, 240, 0.25);
}

.check-group-title:first-child {
    margin-top: 0;
}

/* 可修复标记 */
.check-fixable {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(45, 140, 240, 0.15);
    color: #2d8cf0;
    font-weight: 600;
    white-space: nowrap;
}

/* 升级列表 */
.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.item-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.item-tag.new {
    background: rgba(0, 208, 132, 0.2);
    color: #00d084;
}

.item-tag.fix {
    background: rgba(45, 140, 240, 0.2);
    color: #2d8cf0;
}

.item-tag.opt {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.item-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* 操作区 */
.upgrade-actions {
    margin-top: 24px;
    text-align: center;
}

.action-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.6;
}

.action-hint.action-success {
    color: #00d084;
    font-size: 15px;
    font-weight: 600;
}

.action-hint.action-error {
    color: #ff6b6b;
}

.action-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.upgrade-btn-primary {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
}

.upgrade-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 140, 240, 0.55);
    filter: brightness(1.1);
}

.upgrade-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.upgrade-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.upgrade-btn-retry {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.upgrade-btn-retry:hover {
    background: rgba(255, 107, 107, 0.25);
}

/* 升级页移动端 */
@media (max-width: 600px) {
    .upgrade-wrap {
        padding: 24px 14px;
    }
    .upgrade-title {
        font-size: 20px;
    }
    .check-panel,
    .upgrade-info {
        padding: 16px;
    }
    .upgrade-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    .action-links {
        flex-direction: column;
        width: 100%;
    }
}

/* =============================================
   ===== 个人中心页样式 (profile.php) =====
   ============================================= */

.profile-card {
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.9), rgba(10, 25, 55, 0.95));
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 0 auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(45, 140, 240, 0.1);
    backdrop-filter: blur(10px);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.profile-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.25), rgba(123, 92, 255, 0.25));
    border: 1px solid rgba(45, 140, 240, 0.35);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.25);
}

.profile-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

/* 个人中心头部签名展示 */
.profile-signature {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
    word-break: break-all;
}

/* 性别选择（分段按钮） */
.gender-group {
    display: flex;
    gap: 10px;
}

.gender-option {
    flex: 1;
    cursor: pointer;
}

.gender-option input {
    display: none;
}

.gender-option span {
    display: block;
    text-align: center;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.25s ease;
}

.gender-option span:hover {
    border-color: rgba(45, 140, 240, 0.55);
}

.gender-option input:checked + span {
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.35), rgba(123, 92, 255, 0.35));
    border-color: rgba(45, 140, 240, 0.6);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(45, 140, 240, 0.2);
}

/* 签名输入框 */
.signature-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.signature-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.signature-input:focus {
    border-color: rgba(45, 140, 240, 0.8);
    box-shadow: 0 0 12px rgba(45, 140, 240, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* 提示消息 */
.profile-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid;
}

.profile-msg-success {
    background: rgba(0, 208, 132, 0.12);
    border-color: rgba(0, 208, 132, 0.35);
    color: #00d084;
}

.profile-msg-error {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ff6b6b;
}

/* 页签 */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.15);
    padding-bottom: 12px;
}

.profile-tab {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-tab:hover {
    color: #fff;
    background: rgba(45, 140, 240, 0.12);
}

.profile-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.3), rgba(123, 92, 255, 0.3));
    border-color: rgba(45, 140, 240, 0.5);
    box-shadow: 0 4px 14px rgba(45, 140, 240, 0.2);
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
    animation: profileFade 0.3s ease;
}

@keyframes profileFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头像上传区 */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.avatar-preview {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border-radius: 50%;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    border: 2px solid rgba(45, 140, 240, 0.4);
    box-shadow: 0 8px 24px rgba(45, 140, 240, 0.35);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
    align-self: flex-start;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 140, 240, 0.55);
    filter: brightness(1.1);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.profile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 140, 240, 0.25), transparent);
    margin: 20px 0 22px;
}

.profile-card .form-item input:disabled,
.profile-card .form-item input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 账号安全面板 */
.security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(45, 140, 240, 0.1);
}

.security-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

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

.security-email {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.security-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.badge-coming {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    white-space: nowrap;
}

.coming-soon {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 12px;
}

.coming-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.coming-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.coming-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* 个人中心移动端 */
@media (max-width: 600px) {
    .profile-card {
        padding: 20px 18px;
    }
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    .security-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .security-value {
        justify-content: flex-start;
        text-align: left;
    }
    .gender-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== SVG 图标容器配色（替换 emoji 后颜色随主题） ===== */
.earth-logo { color: #4da3ff; }
.card-icon { color: #8ab4ff; }
.game-card.danger .card-icon { color: #ff8a8a; }
.sidebar-logo { color: #5ab2ff; }
.section-icon { color: #7fd0ff; }
.hall-globe { color: #4da3ff; }
.dash-icon { color: #2d8cf0; }
.dash-item.dash-highlight .dash-icon { color: #ffd700; }
.action-icon { color: #ffd700; }
.empty-icon { color: rgba(255, 255, 255, 0.45); }
.notfound-icon { color: rgba(255, 255, 255, 0.45); }
.modal-badge { color: #5ab2ff; }
.upgrade-icon { color: #4da3ff; }
.profile-badge { color: #5ab2ff; }
.coming-icon { color: #ffd700; }

/* 性别保密徽章内的锁图标 */
.gender-badge.gender-secret .icon { width: 12px; height: 12px; }

/* ===== 由内联样式迁移而来的类（集中管理） ===== */

/* SVG sprite 容器（隐藏定义区） */
.icon-sprite { display: none; }

/* 登录页 */
.login-error {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.login-required {
    color: #ff6b6b;
}

.login-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* 个人中心表单小字提示 */
.profile-field-note {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

/* 体检页安全提醒 */
.upgrade-note {
    text-align: center;
    margin-top: 16px;
}

/* 世界手册：返回启动器 */
.sidebar-return {
    margin-top: 12px;
}

/* 世界手册：玩家须知致谢语 */
.notice-blessing {
    color: #ffd700;
    margin-top: 16px;
}

/* ============================================================
   阶段 0 · 随机人生（属性面板 + 人生进度）
   ============================================================ */
.life-panel {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(16, 34, 70, 0.75), rgba(8, 20, 46, 0.85));
    border: 1px solid rgba(45, 140, 240, 0.22);
    border-radius: 12px;
}

.life-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.life-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-panel-title .icon {
    color: #ffd700;
}

.life-panel-sub {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.life-attrs {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.life-attr {
    display: flex;
    align-items: center;
    gap: 10px;
}

.la-icon {
    width: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

.la-name {
    width: 42px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.la-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.la-bar i {
    display: block;
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.la-val {
    width: 34px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #fff;
    flex-shrink: 0;
}

.life-progress {
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.life-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.life-progress-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 6px;
}

.life-progress-label .icon {
    color: #5ab2ff;
}

.life-progress-pct {
    font-size: 15px;
    font-weight: 700;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

.life-progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.life-progress-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2d8cf0, #00d084, #ffd700);
    border-radius: 8px;
    transition: width 0.8s ease;
}

.life-progress-text {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.life-progress-years {
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   阶段 0 · 注册抽卡动画页（draw.php）
   ============================================================ */
.draw-page {
    min-height: 100vh;
}

.draw-wrap {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.draw-topbar {
    margin-bottom: 20px;
}

.draw-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 20px 0;
}

.draw-scene {
    perspective: 1200px;
}

.gacha-card {
    position: relative;
    width: 300px;
    height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.gacha-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

/* 卡片背面 */
.gacha-back {
    background: linear-gradient(145deg, #16224a, #0b1430);
    border: 1px solid rgba(90, 178, 255, 0.4);
    box-shadow: 0 0 40px rgba(45, 140, 240, 0.25), inset 0 0 60px rgba(45, 140, 240, 0.08);
}

.gacha-back-icon {
    font-size: 52px;
    color: #5ab2ff;
    filter: drop-shadow(0 0 18px rgba(90, 178, 255, 0.7));
    animation: gachaFloat 2.5s ease-in-out infinite;
}

@keyframes gachaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gacha-back-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 20px rgba(90, 178, 255, 0.6);
}

.gacha-back-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
}

/* 洗牌抖动 */
.gacha-shake {
    animation: gachaShake 0.6s ease-in-out;
}

@keyframes gachaShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px) rotate(-2deg); }
    40% { transform: translateX(10px) rotate(2deg); }
    60% { transform: translateX(-7px); }
    80% { transform: translateX(7px); }
}

/* 翻转 */
.gacha-flipped {
    transform: rotateY(180deg);
}

/* 卡片正面 */
.gacha-front {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #12224a, #0a1738);
    border: 2px solid rgba(45, 140, 240, 0.35);
    padding: 22px;
    justify-content: flex-start;
    padding-top: 34px;
}

.gacha-front-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gacha-front.gacha-reveal .gacha-front-glow {
    opacity: 1;
}

.gacha-legendary .gacha-front-glow { background: radial-gradient(circle at 50% 20%, rgba(253, 121, 168, 0.35), transparent 65%); }
.gacha-epic .gacha-front-glow { background: radial-gradient(circle at 50% 20%, rgba(162, 155, 254, 0.35), transparent 65%); }
.gacha-rare .gacha-front-glow { background: radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.3), transparent 65%); }
.gacha-common .gacha-front-glow { background: radial-gradient(circle at 50% 20%, rgba(116, 185, 255, 0.25), transparent 65%); }

.gacha-rarity {
    margin-bottom: 14px;
    font-size: 12px;
}

.gacha-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.35), rgba(123, 92, 255, 0.35));
    border: 2px solid rgba(90, 178, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.gacha-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.gacha-avg {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.gacha-avg b {
    color: #ffd700;
    font-size: 15px;
}

.gacha-attrs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gacha-attr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ga-icon {
    width: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.ga-name {
    width: 32px;
    color: rgba(255, 255, 255, 0.8);
}

.ga-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    overflow: hidden;
}

.ga-bar i {
    display: block;
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

.gacha-front.gacha-reveal .ga-bar i {
    animation: gaBarGrow 0.9s ease forwards;
}

@keyframes gaBarGrow {
    from { width: 0; }
}

.ga-val {
    width: 28px;
    text-align: right;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #fff;
}

/* 结果文案 */
.draw-result {
    margin-top: 28px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.draw-result.show {
    opacity: 1;
    transform: translateY(0);
}

.draw-result-rarity {
    font-size: 14px;
    margin-bottom: 10px;
}

.draw-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.draw-result-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* 操作按钮 */
.draw-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.draw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.draw-btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    color: #fff;
    box-shadow: 0 6px 24px rgba(45, 140, 240, 0.45);
}

.draw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 140, 240, 0.6);
}

.draw-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.draw-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnSweep 2.6s linear infinite;
    pointer-events: none;
}

@keyframes btnSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 600px) {
    .gacha-card {
        width: 260px;
        height: 380px;
    }
    .draw-result-title {
        font-size: 15px;
    }
}

/* ============================================================
   阶段 0 · 玩法快捷操作 + 打卡/排行弹窗（hall.php）
   ============================================================ */
.hall-quick-actions {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 12px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: linear-gradient(135deg, rgba(18, 36, 74, 0.85), rgba(10, 22, 50, 0.9));
    border: 1px solid rgba(45, 140, 240, 0.28);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
}

.quick-btn:hover {
    border-color: rgba(45, 140, 240, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.3), rgba(123, 92, 255, 0.3));
    color: #5ab2ff;
}

.quick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.quick-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.quick-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.quick-dot.done {
    background: #00d084;
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.7);
}

/* 打卡弹窗 */
.checkin-modal-body {
    padding: 30px 28px 4px;
}

.checkin-modal-body .modal-actions {
    padding: 20px 0 28px;
}

.checkin-big-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.checkin-big-stat {
    text-align: center;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 10px;
}

.cbs-num {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #ffd700;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
}

.cbs-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.checkin-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 14px;
}

.checkin-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 34px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    box-shadow: 0 5px 18px rgba(45, 140, 240, 0.4);
    transition: all 0.3s ease;
}

.checkin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 140, 240, 0.55);
}

.checkin-btn.checkin-done,
.checkin-btn:disabled {
    background: linear-gradient(135deg, #00b36b, #00d084);
    box-shadow: 0 4px 14px rgba(0, 208, 132, 0.35);
    cursor: default;
    opacity: 0.9;
}

.checkin-btn .icon {
    position: relative;
    z-index: 1;
}

/* 排行弹窗 */
.modal-rank {
    max-height: 80vh;
    overflow-y: auto;
}

.rank-empty {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   阶段 0 · 成就称号墙（profile.php）
   ============================================================ */
.achieve-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.achieve-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.achieve-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.achieve-level {
    text-align: right;
}

.achieve-level-num {
    font-size: 20px;
    font-weight: 800;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.achieve-level-exp {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.achieve-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(45, 140, 240, 0.2);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

.achieve-current-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
}

.achieve-current-label .icon {
    color: #ffd700;
}

.achieve-none {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.achieve-card {
    position: relative;
    padding: 16px 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(20, 40, 80, 0.7), rgba(10, 25, 55, 0.8));
    border: 1px solid rgba(45, 140, 240, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.25s ease;
}

.achieve-card.unlocked {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.08);
}

.achieve-card.locked {
    opacity: 0.55;
    filter: grayscale(0.7);
}

.achieve-card-icon {
    font-size: 26px;
    color: #ffd700;
}

.achieve-card.locked .achieve-card-icon {
    color: rgba(255, 255, 255, 0.35);
}

.achieve-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.achieve-card-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    flex: 1;
}

.achieve-card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.achieve-wear-btn {
    padding: 2px 12px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    transition: all 0.25s ease;
}

.achieve-wear-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.4);
}

.achieve-wearing {
    font-size: 12px;
    color: #00d084;
    font-weight: 700;
}

.achieve-locked-tip {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 600px) {
    .hall-quick-actions {
        flex-direction: column;
    }
    .quick-btn {
        min-width: 100%;
    }
    .checkin-big-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .achieve-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}



/* ============================================================
   阶段1（管理后台联动）· 置顶/精华徽章
   ============================================================ */
.badge-pin, .badge-essence {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    vertical-align: middle;
    white-space: nowrap;
}
.badge-pin {
    background: rgba(79, 124, 255, .12);
    color: #4f7cff;
    border: 1px solid rgba(79, 124, 255, .35);
}
.badge-essence {
    background: rgba(240, 185, 62, .14);
    color: #b07a12;
    border: 1px solid rgba(240, 185, 62, .45);
}

/* ============================================================
   阶段2（账号体系）· 多步登录 / 站内信 / 验证页样式
   ============================================================ */
.hidden { display: none !important; }

/* 多步登录：步骤容器 */
.login-step { animation: fadeInUp .35s ease; }
.login-step-panel { animation: fadeInUp .35s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 等待动画 */
.login-loading { text-align: center; padding: 46px 0 34px; }
.login-spinner {
    width: 44px; height: 44px; margin: 0 auto 16px;
    border: 4px solid rgba(79, 124, 255, .18);
    border-top-color: #4f7cff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login-loading-text { color: #8a93a8; font-size: 14px; }

/* 身份卡片 */
.login-identity {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(79,124,255,.08), rgba(122,92,255,.06));
    border: 1px solid rgba(79,124,255,.25);
    border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.li-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #4f7cff, #7a5cff);
    color: #fff; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.li-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.li-name { font-size: 16px; font-weight: 700;}
.li-loc { font-size: 12.5px; color: #8a93a8; margin-top: 3px; }
.login-identity-tip { font-size: 12.5px; color: #98a1b5; line-height: 1.7; margin-bottom: 16px; }

.login-back {
    width: 100%; margin-top: 14px; padding: 8px;
    background: none; border: none; cursor: pointer;
    color: #98a1b5; font-size: 13px; font-family: inherit;
}
.login-back:hover { color: #4f7cff; }
.login-links { margin-top: 12px; text-align: center; font-size: 12.5px; }
.login-links a { color: #4f7cff; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

/* 站内信铃铛（大厅顶栏） */
.player-bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; color: #c6cede;
    text-decoration: none; transition: background .15s, color .15s;
}
.player-bell:hover { background: rgba(255,255,255,.08); color: #fff; }
.bell-badge {
    position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: 10px; background: #ff5d5d; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px rgba(18, 24, 43, .9);
}

/* 大厅提示横幅（未验证邮箱 / 异地登录） */
.hall-notice {
    display: flex; align-items: center; gap: 8px;
    background: rgba(79,124,255,.10); border: 1px solid rgba(79,124,255,.30);
    color: #3d6bdc; border-radius: 10px; padding: 9px 14px;
    font-size: 12.5px; margin-bottom: 12px; flex-wrap: wrap;
}
.hall-notice a { color: #4f7cff; font-weight: 600; }
.hall-notice-warn { background: rgba(240,185,62,.12); border-color: rgba(240,185,62,.4); color: #a3760f; }

/* 站内信页面 */
.notify-wrap { max-width: 720px; margin: 0 auto; }
.notify-card {
    background: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.notify-ic {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.notify-ic.type-reply   { background: rgba(79,124,255,.12); color: #4f7cff; }
.notify-ic.type-verify  { background: rgba(46,204,113,.12); color: #1c9d5a; }
.notify-ic.type-reset   { background: rgba(240,185,62,.12); color: #b07a12; }
.notify-ic.type-system  { background: rgba(122,92,255,.12); color: #7a5cff; }
.notify-body { flex: 1; min-width: 0; }
.notify-title { font-size: 14px; font-weight: 700; color: #e8ecf5; }
.notify-title .n-unread { display:inline-block; width:7px; height:7px; border-radius:50%; background:#ff5d5d; margin-right:6px; vertical-align:middle; }
.notify-content { font-size: 13px; color: #aeb7cc; margin-top: 5px; line-height: 1.7; white-space: pre-line; word-break: break-all; }
.notify-meta { font-size: 11.5px; color: #7f89a3; margin-top: 6px; }
.notify-meta a { color: #4f7cff; text-decoration: none; }
.notify-empty { text-align: center; color: #7f89a3; padding: 60px 0; font-size: 14px; }
.notify-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.notify-topbar .nt-title { font-size: 17px; font-weight: 700; color: #e8ecf5; display: flex; align-items: center; gap: 8px; }
.notify-topbar a { color: #4f7cff; text-decoration: none; font-size: 13px; }

/* 验证/重置页小卡片 */
.verify-card { max-width: 420px; margin: 0 auto; text-align: center; }
.verify-card .verify-icon { font-size: 40px; margin-bottom: 12px; }
.verify-card .verify-title { font-size: 18px; font-weight: 700; color: #e8ecf5; margin-bottom: 8px; }
.verify-card .verify-desc { font-size: 13px; color: #9aa4bd; line-height: 1.8; margin-bottom: 18px; white-space: pre-line; }
.verify-card .submit-btn { width: 100%; margin-top: 6px; }
.verify-card .login-back { margin-top: 16px; }

/* 阶段2：账号安全面板扩展 */
.badge-verified {
    display: inline-block; padding: 1px 9px; border-radius: 20px;
    font-size: 11px; font-weight: 600; line-height: 1.7;
    background: rgba(46, 204, 113, .14); color: #1c9d5a;
    border: 1px solid rgba(46, 204, 113, .4);
}
.security-btn {
    padding: 8px 16px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff); color: #fff;
    font-size: 13px; font-family: inherit; font-weight: 600;
    box-shadow: 0 4px 14px rgba(45, 140, 240, .35);
    transition: all .3s ease;
    white-space: nowrap;
}
.security-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.security-form { display: block !important; width: 100%; }
.security-inline-form {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-top: 12px; width: 100%;
}
.security-inline-form input {
    flex: 1 1 160px; min-width: 140px; max-width: 260px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 8px;
    color: #fff; font-size: 14px; font-family: inherit; outline: none;
    transition: all .3s ease;
}
.security-inline-form input::placeholder { color: rgba(255, 255, 255, 0.3); }
.security-inline-form input:focus {
    border-color: rgba(45, 140, 240, 0.8);
    box-shadow: 0 0 12px rgba(45, 140, 240, 0.2);
    background: rgba(0, 0, 0, 0.4);
}
.security-link { margin-top: 8px; }
.security-link a { color: #4f7cff; text-decoration: none; font-size: 12.5px; }
.security-link a:hover { text-decoration: underline; }

/* ============================================================
   阶段3（运营与传播）· 分享/战绩卡/PWA/移动端
   ============================================================ */
.detail-nav { justify-content: space-between; gap: 10px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff); color: #fff;
    font-size: 13px; font-weight: 600; font-family: inherit;
    box-shadow: 0 4px 14px rgba(45, 140, 240, .35);
    transition: all .3s ease;
}
.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.share-mask {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(5, 10, 25, .72);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    padding: 16px;
}
.share-mask.active { opacity: 1; visibility: visible; }
.share-modal {
    width: 360px; max-width: 92vw; max-height: 92vh; overflow-y: auto;
    background: #141c36; border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 24px; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.share-title {
    font-size: 16px; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px;
}
.share-qr img { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; }
.share-url {
    margin: 14px 0; padding: 8px 12px; border-radius: 8px;
    background: rgba(0,0,0,.35); color: #9fb4e8; font-size: 12px;
    word-break: break-all; text-align: left; line-height: 1.6;
}
.share-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.share-actions .reply-submit { margin-top: 0; padding: 10px 18px; font-size: 13.5px; }
.share-download { text-decoration: none; display: inline-block; }

.card-share-btn {
    display: block; width: 100%; margin-top: 14px; padding: 11px;
    border: 1px dashed rgba(45,140,240,.5); border-radius: 10px; cursor: pointer;
    background: rgba(45,140,240,.08); color: #6ea8ff;
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    transition: all .3s ease;
}
.card-share-btn:hover { background: rgba(45,140,240,.16); }
.card-modal canvas { width: 100%; max-width: 340px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.reply-guest-tip { font-size: 13px; color: rgba(255,255,255,.5); margin: 6px 0 12px; line-height: 1.7; }

/* 阶段3：移动端体验完善 */
@media (max-width: 600px) {
    .detail-nav { flex-wrap: wrap; }
    .share-modal { padding: 18px 14px; }
    .share-qr img { width: 168px; height: 168px; }
    .share-actions { flex-direction: column; align-items: stretch; }
    .share-actions .reply-submit { width: 100%; }
    .share-actions .reply-submit .icon { display: none; }
    .comment-card-header { flex-wrap: wrap; row-gap: 4px; }
    .comment-img-thumb { width: 64px; height: 64px; }
}

/* ============================================================
   阶段3 补充：人生战绩页 / 战绩卡二维码 / 分享容错 / 细节修正
   ============================================================ */
.life-wrap { max-width: 620px; }
.life-card {
    background: linear-gradient(160deg, rgba(45,140,240,.12), rgba(123,92,255,.08));
    border: 1px solid rgba(45,140,240,.25);
    border-radius: 18px; padding: 26px 26px 20px; margin-bottom: 14px;
    box-shadow: 0 10px 34px rgba(0,0,0,.28);
}
.life-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.life-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    color: #fff; font-size: 26px; font-weight: 700;
    border: 2px solid rgba(255,255,255,.35);
}
.life-avatar img { width: 100%; height: 100%; object-fit: cover; }
.life-id { flex: 1; min-width: 0; }
.life-name { font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.life-loc { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 4px; }
.life-card-head .card-tag { flex-shrink: 0; }

.life-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.life-stat {
    background: rgba(0,0,0,.28); border: 1px solid rgba(45,140,240,.2);
    border-radius: 12px; padding: 10px 6px; text-align: center;
}
.life-stat b { display: block; font-size: 20px; color: #7fd0ff; }
.life-stat span { font-size: 11.5px; color: rgba(255,255,255,.5); }

.life-attrs { margin-bottom: 16px; }
.life-avg { text-align: center; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; }
.life-avg b { color: #fff; }
.rar-common { color: #8a93a8; } .rar-rare { color: #4f7cff; } .rar-epic { color: #a29bfe; }
.rar-legendary { color: #f0b93e; } .rar-ssr { color: #ff5d5d; }

.life-share {
    display: flex; align-items: center; gap: 16px; margin-top: 20px;
    background: rgba(0,0,0,.25); border: 1px dashed rgba(45,140,240,.35);
    border-radius: 14px; padding: 14px;
}
.life-qr { width: 110px; height: 110px; background: #fff; padding: 6px; border-radius: 10px; flex-shrink: 0; }
.life-share-info { flex: 1; min-width: 0; }
.life-share-title { font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.life-share-url {
    margin: 8px 0 10px; padding: 7px 10px; border-radius: 8px;
    background: rgba(0,0,0,.35); color: #9fb4e8; font-size: 11.5px;
    word-break: break-all; line-height: 1.5;
}
.life-copy-btn { padding: 8px 16px; font-size: 12.5px; }
.life-foot { text-align: center; color: rgba(255,255,255,.4); font-size: 12.5px; padding: 4px 0 10px; }

/* 战绩卡弹窗：二维码行 */
.card-qr-row {
    display: flex; align-items: center; gap: 12px; margin-top: 14px;
    background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px;
}
.card-qr-img { width: 96px; height: 96px; background: #fff; padding: 5px; border-radius: 8px; flex-shrink: 0; }
.card-qr-info { flex: 1; min-width: 0; text-align: left; }
.card-qr-tip { font-size: 12.5px; color: rgba(255,255,255,.65); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.card-qr-info .share-actions { justify-content: flex-start; margin-bottom: 0; flex-wrap: wrap; }
.card-qr-info .share-actions .reply-submit { padding: 8px 12px; font-size: 12px; }

/* 分享弹窗按钮统一内联 flex（a/button 高度一致） */
.share-actions .reply-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* 二维码加载失败兜底 */
.share-qr-fail {
    width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3); border: 1px dashed rgba(255,255,255,.25); border-radius: 12px;
    color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.9; text-align: center;
}

@media (max-width: 600px) {
    .life-card { padding: 18px 14px; }
    .life-stats { grid-template-columns: repeat(2, 1fr); }
    .life-share { flex-direction: column; align-items: stretch; text-align: center; }
    .life-qr { margin: 0 auto; }
    .card-qr-row { flex-direction: column; }
    .card-qr-info { text-align: center; }
    .card-qr-info .share-actions { justify-content: center; }
}

/* ============================================================
   阶段4/5 新增样式：商城 / 挂件 / 活动 / 举报 / 大屏入口
   ============================================================ */

/* ---------- 商城挂件（头像边框特效） ---------- */
.player-avatar.has-badge { position: relative; }
.avatar-badge {
    position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; z-index: 2;
}
.avatar-badge-gold {
    border: 3px solid #f0b93e;
    box-shadow: 0 0 10px rgba(240,185,62,.85), inset 0 0 8px rgba(240,185,62,.5);
    animation: badgeGlow 2.2s ease-in-out infinite;
}
.avatar-badge-rainbow {
    border: 3px solid transparent;
    background: linear-gradient(90deg,#f43,#fb3,#0b8,#39f,#a3f,#f3c) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: badgeSpin 3s linear infinite;
}
.avatar-badge-ssr {
    border: 3px solid #fff;
    box-shadow: 0 0 14px 2px rgba(255,255,255,.9), 0 0 26px 6px rgba(160,120,255,.7);
    animation: badgeGlow 1.4s ease-in-out infinite;
}
@keyframes badgeGlow { 50% { box-shadow: 0 0 4px rgba(240,185,62,.5); } }
@keyframes badgeSpin { to { transform: rotate(360deg); } }

/* ---------- 玩梗商城 ---------- */
.mall-wrap { max-width: 980px; }
.mall-balance {
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 12px 16px; margin: 14px 0;
    font-size: 13.5px; color: #c6d2f2;
}
.mall-balance-item b { color: #f0b93e; font-size: 15px; }
.mall-balance-hint { margin-left: auto; color: #7d88ad; font-size: 12px; }
.mall-section-title {
    display: flex; align-items: center; gap: 8px; margin: 22px 0 10px;
    font-size: 16px; font-weight: 700; color: #e8eeff;
}
.mall-section-sub { font-size: 12px; color: #7d88ad; font-weight: 400; }
.mall-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.mall-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px;
    transition: transform .2s ease, border-color .2s ease;
}
.mall-card:hover { transform: translateY(-2px); border-color: rgba(122,162,255,.5); }
.mall-card-icon { font-size: 26px; color: #7aa2ff; }
.mall-card-name { font-size: 15px; font-weight: 700; color: #eef2ff; }
.mall-card-desc { font-size: 12px; color: #8b96bd; line-height: 1.6; min-height: 34px; }
.mall-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.mall-card-price { font-size: 12.5px; color: #f0b93e; display: inline-flex; align-items: center; gap: 4px; }
.mall-card-owned { font-size: 12px; color: #00d084; }
.mall-buy-btn {
    background: linear-gradient(135deg, #f0b93e, #e8903c); color: #221a00; border: none;
    border-radius: 8px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.mall-buy-btn:hover { filter: brightness(1.1); }
.mall-empty { grid-column: 1 / -1; color: #7d88ad; font-size: 13px; padding: 20px; text-align: center; }

/* 个人中心：我的商城道具 */
.mall-owned-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mall-owned-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.mall-owned-empty {
    background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15);
    border-radius: 12px; padding: 24px; text-align: center; color: #8b96bd; font-size: 13px;
}
.mall-owned-status { font-size: 12px; color: #00d084; }
.mall-wear-btn {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff); color: #fff; border: none;
    border-radius: 8px; padding: 6px 14px; font-size: 12px; cursor: pointer;
}
.mall-wear-off { background: linear-gradient(135deg, #5b6485, #3a4258); }
.mall-wear-btn:hover { filter: brightness(1.1); }

/* ---------- 活动横幅 ---------- */
.event-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(240,185,62,.16), rgba(122,92,255,.14));
    border: 1px solid rgba(240,185,62,.4); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
}
.event-banner-icon { font-size: 20px; color: #f0b93e; }
.event-banner-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.event-banner-item b { color: #f0b93e; font-size: 14px; margin-right: 8px; }
.event-banner-item span { color: #c6d2f2; font-size: 12.5px; }
.event-banner-item em { display: block; color: #8b96bd; font-size: 12px; font-style: normal; margin-top: 2px; }
.event-rank-btn {
    background: linear-gradient(135deg, #f0b93e, #e8903c); color: #221a00; border: none;
    border-radius: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.event-rank-btn:hover { filter: brightness(1.1); }

/* ---------- 举报弹窗 ---------- */
.report-btn { margin-left: 6px; }
.report-modal { max-width: 420px; }
.report-tip { font-size: 12px; color: #8b96bd; margin: 6px 0 10px; line-height: 1.7; }
.report-reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.report-reason {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dbe3ff;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.report-reason:hover { border-color: rgba(122,162,255,.5); }
.report-reason input { accent-color: #7aa2ff; }

/* ============================================================
   阶段4 美化补丁：修复 + 弹窗 / 分享弹窗 / 个人主页 / 属性条
   ============================================================ */

/* ---------- 修复：公开战绩页属性行（.la-row 缺失导致进度条错乱） ---------- */
.la-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 9px;
}

/* ---------- 属性进度条美化（两处共用） ---------- */
.la-bar {
    position: relative;
    background: rgba(0,0,0,.45);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.la-bar i {
    position: relative;
    background-image: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,0));
    background-size: 100% 100%;
}
.la-bar i::after {
    content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation: barShine 2.6s ease-in-out infinite;
}
@keyframes barShine {
    0% { left: -40%; } 60% { left: 130%; } 100% { left: 130%; }
}
.la-val {
    background: rgba(255,255,255,.08);
    border-radius: 6px; padding: 1px 7px; width: auto; min-width: 34px;
    text-align: center; font-size: 13px;
}

/* ---------- 通用弹窗美化（.modal-box） ---------- */
.modal-box {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(45,140,240,.14), transparent 55%),
        linear-gradient(160deg, rgba(24,46,92,.98), rgba(10,24,52,.99));
    border: 1px solid rgba(90,160,255,.35);
    box-shadow:
        0 24px 70px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 0 44px rgba(45,140,240,.14);
    backdrop-filter: blur(14px);
}
.modal-box::before {
    content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.modal-badge {
    background: linear-gradient(135deg, rgba(45,140,240,.85), rgba(123,92,255,.85));
    border: none; color: #fff;
    box-shadow: 0 6px 18px rgba(45,140,240,.45);
}
.modal-game .modal-title { letter-spacing: .5px; }

/* ---------- 分享弹窗美化 ---------- */
.share-modal {
    width: 380px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(45,140,240,.16), transparent 55%),
        linear-gradient(160deg, rgba(24,46,92,.97), rgba(10,24,52,.99));
    border: 1px solid rgba(90,160,255,.35);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 44px rgba(45,140,240,.14);
}
.share-modal::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.share-title { font-size: 17px; }
.share-title .icon { color: #7aa2ff; }
.share-qr {
    display: inline-block; padding: 10px; border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.6) inset;
    margin-bottom: 6px;
}
.share-qr img { width: 230px; height: 230px; background: #fff; border-radius: 10px; padding: 0; display: block; }
.share-scan-tip {
    font-size: 12px; color: rgba(255,255,255,.5); margin: 8px 0 2px; letter-spacing: 1px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.share-url {
    background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.08);
    color: #a9c0f5; font-size: 12.5px; border-radius: 10px; padding: 9px 12px;
}
.share-actions .reply-submit {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: none; color: #fff; border-radius: 10px;
    box-shadow: 0 6px 16px rgba(45,140,240,.35);
}
.share-actions .share-download {
    background: linear-gradient(135deg, #f0b93e, #e8903c); color: #221a00;
    box-shadow: 0 6px 16px rgba(240,185,62,.3);
}
.share-actions .reply-submit:hover { filter: brightness(1.12); }
@media (max-width: 600px) {
    .share-qr img { width: 190px; height: 190px; }
    .share-modal { width: 92vw; }
}

/* ---------- 公开战绩页（个人主页）美化 ---------- */
.life-card {
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(45,140,240,.16), transparent 55%),
        linear-gradient(160deg, rgba(20,40,84,.92), rgba(8,20,48,.96));
    border: 1px solid rgba(90,160,255,.3);
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(0,0,0,.4), 0 0 40px rgba(45,140,240,.1);
}
.life-card-head { margin-bottom: 16px; }
.life-avatar {
    width: 72px; height: 72px; font-size: 30px;
    border: 2px solid rgba(255,255,255,.5);
    box-shadow: 0 0 0 3px rgba(45,140,240,.35), 0 8px 24px rgba(0,0,0,.4);
}
.life-name { font-size: 22px; }
.life-loc { margin-top: 6px; font-size: 13px; }
.life-signature {
    margin-top: 8px; padding: 8px 12px; border-radius: 10px;
    background: rgba(0,0,0,.28); border-left: 3px solid rgba(45,140,240,.6);
    font-size: 12.5px; color: rgba(255,255,255,.7); font-style: italic; line-height: 1.6;
}
.life-stats { margin-bottom: 20px; }
.life-stat {
    background: rgba(0,0,0,.32); border: 1px solid rgba(90,160,255,.22);
    border-radius: 14px; padding: 12px 6px;
    transition: transform .2s ease, border-color .2s ease;
}
.life-stat:hover { transform: translateY(-2px); border-color: rgba(90,160,255,.5); }
.life-stat b { font-size: 22px; }
.life-stat span { font-size: 12px; letter-spacing: .5px; }
.life-info-row {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px;
}
.life-info-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: rgba(255,255,255,.72);
}
.life-info-item .icon { color: #7aa2ff; flex-shrink: 0; }
.life-info-item b { color: #fff; margin-left: auto; font-weight: 600; }
.life-share {
    background: rgba(0,0,0,.3); border: 1px solid rgba(90,160,255,.3);
    border-radius: 14px;
}
.life-qr { width: 120px; height: 120px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.life-copy-btn {
    background: linear-gradient(135deg, #2d8cf0, #7b5cff); border: none; color: #fff;
    border-radius: 10px; box-shadow: 0 6px 16px rgba(45,140,240,.35);
}
.life-copy-btn:hover { filter: brightness(1.12); }

/* ---------- 个人中心：身份卡（profile-head 升级） ---------- */
.profile-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
    padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(120deg, rgba(45,140,240,.14), rgba(123,92,255,.1));
    border: 1px solid rgba(90,160,255,.28);
}
.profile-id-avatar {
    position: relative; width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; overflow: visible;
    background: linear-gradient(135deg, #2d8cf0, #7b5cff);
    border: 3px solid rgba(255,255,255,.55);
    box-shadow: 0 0 0 4px rgba(45,140,240,.3), 0 10px 26px rgba(0,0,0,.45);
    font-size: 32px; font-weight: 800; color: #fff;
}
.profile-id-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-id-avatar .avatar-badge { inset: -5px; }
.profile-id-avatar span:not(.avatar-badge) { position: relative; z-index: 1; }
.profile-id-info { flex: 1; min-width: 0; }
.profile-id-name {
    font-size: 22px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.profile-id-loc {
    margin-top: 5px; font-size: 13px; color: rgba(255,255,255,.6);
    display: flex; align-items: center; gap: 6px;
}
.profile-id-signature {
    margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.68);
    font-style: italic; line-height: 1.6; word-break: break-all;
}
.profile-id-stats {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.profile-id-stat {
    background: rgba(0,0,0,.3); border: 1px solid rgba(90,160,255,.22);
    border-radius: 10px; padding: 6px 14px; text-align: center;
}
.profile-id-stat b { display: block; font-size: 17px; color: #7fd0ff; }
.profile-id-stat span { font-size: 11px; color: rgba(255,255,255,.5); }
@media (max-width: 600px) {
    .profile-head { flex-direction: column; text-align: center; }
    .profile-id-avatar { width: 68px; height: 68px; }
    .profile-id-stats { justify-content: center; }
}

/* 修正：分享弹窗需相对定位，顶部高光线才贴边 */
.share-modal { position: relative; }