* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a1a 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 3s infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* 发光文字 */
.glowing-text {
    color: #ffd700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4);
    }
}

/* 金色文字 */
.gold-text {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* 绿色文字 */
.green-text {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* 紫色文字 */
.purple-text {
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* ===== 登录页面 ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-box {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 40px;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.game-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.game-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hint {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.game-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.game-button.primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff0000 100%);
    border: 2px solid #ffd700;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.game-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
}

.game-button.primary:active {
    transform: translateY(0);
}

.game-button.secondary {
    background: rgba(100, 100, 100, 0.5);
    border: 2px solid #888;
    color: #fff;
}

.game-button.secondary:hover {
    background: rgba(120, 120, 120, 0.6);
    border-color: #aaa;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.message.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

/* ===== 主页面 ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 10, 30, 0.95);
    border-bottom: 2px solid #ffd700;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.username {
    font-size: 24px;
    font-weight: bold;
}

.logout-btn {
    padding: 8px 20px;
    background: rgba(255, 0, 0, 0.6);
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.main-container {
    margin-top: 80px;
    padding: 20px;
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* 状态面板 */
.status-panel,
.allocation-panel {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.panel-title {
    font-size: 24px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #444;
}

.stat-item.highlight {
    background: rgba(50, 30, 0, 0.5);
    border-color: #ffd700;
}

.stat-item.next-level-info {
    background: rgba(0, 50, 50, 0.3);
    border-color: #00bfff;
}

.stat-item.next-level-info .stat-label {
    color: #00bfff;
}

.stat-item.next-level-info .stat-value {
    font-size: 14px;
    color: #ccc;
}

.stat-label {
    color: #aaa;
    font-size: 14px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    margin: 15px 0;
}

/* 签到区域 */
.checkin-area {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.checkin-title {
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: bold;
}

.checkin-button-container {
    margin: 60px 0;
}

.checkin-button {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b00 0%, #ff0000 100%);
    border: 5px solid #ffd700;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow:
        0 0 30px rgba(255, 107, 0, 0.6),
        0 0 60px rgba(255, 107, 0, 0.4),
        inset 0 0 30px rgba(255, 215, 0, 0.3);
}

.checkin-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 40px rgba(255, 107, 0, 0.8),
        0 0 80px rgba(255, 107, 0, 0.6),
        inset 0 0 40px rgba(255, 215, 0, 0.5);
}

.checkin-button:active {
    transform: scale(0.95);
}

.checkin-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666 0%, #444 100%);
}

.checkin-button.disabled:hover {
    transform: none;
}

.checkin-text {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: button-pulse 2s ease-in-out infinite;
}

@keyframes button-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.checkin-result {
    min-height: 60px;
    margin-top: 30px;
    font-size: 18px;
}

/* 经验奖励设置 */
.xp-reward-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(50, 0, 50, 0.3);
    border: 2px solid #ff00ff;
    border-radius: 10px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.xp-reward-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.small-input {
    width: 100px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    border-radius: 5px;
    color: #fff;
    text-align: center;
}

.small-input:focus {
    outline: none;
    border-color: #ff00ff;
}

.game-button.small {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    margin: 0;
}

.current-xp-reward {
    margin-top: 20px;
    padding: 15px;
    background: rgba(50, 0, 50, 0.3);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    color: #ff00ff;
    font-size: 16px;
}

/* 分配面板 */
.allocation-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
}

.allocation-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-input.small {
    width: 100%;
}

.game-textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
}

.game-textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.allocation-records {
    margin-top: 20px;
}

.record-list {
    max-height: 300px;
    overflow-y: auto;
}

.record-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #ffd700;
    border-radius: 5px;
    font-size: 13px;
}

.record-item .record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.record-item .record-note {
    color: #888;
    font-size: 12px;
}

/* 升级特效 */
.level-up-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.level-up-effect.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.level-up-content {
    text-align: center;
    animation: scaleIn 0.5s;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.level-up-title {
    font-size: 72px;
    color: #ffd700;
    font-weight: bold;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.6);
    margin-bottom: 30px;
    animation: levelUpGlow 1s ease-in-out infinite;
}

@keyframes levelUpGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 1),
            0 0 40px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 1),
            0 0 90px rgba(255, 215, 0, 0.8);
    }
}

.level-up-text {
    font-size: 36px;
    color: #fff;
}

/* 签到特效 */
.checkin-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
}

/* GM页面 */
.gm-container {
    margin-top: 80px;
    padding: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.gm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 30px;
    background: rgba(50, 50, 50, 0.5);
    border: 2px solid #666;
    border-radius: 8px 8px 0 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-button:hover {
    background: rgba(70, 70, 70, 0.6);
}

.tab-button.active {
    background: rgba(20, 10, 30, 0.9);
    border-color: #ffd700;
    color: #ffd700;
}

.tab-content {
    display: none;
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 0 15px 15px 15px;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.gm-table {
    width: 100%;
    border-collapse: collapse;
}

.gm-table th,
.gm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.gm-table th {
    background: rgba(0, 0, 0, 0.5);
    color: #ffd700;
    font-weight: bold;
}

.gm-table tr:hover {
    background: rgba(50, 30, 0, 0.3);
}

.edit-btn {
    padding: 6px 15px;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    border: 1px solid #0088ff;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-btn:hover {
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.application-card {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #666;
    border-radius: 10px;
}

.application-card.pending {
    border-color: #ffd700;
}

.application-card.approved {
    border-color: #00ff00;
}

.application-card.rejected {
    border-color: #ff0000;
}

.application-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.application-actions {
    display: flex;
    gap: 10px;
}

.approve-btn,
.reject-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.approve-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

.approve-btn:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.reject-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.reject-btn:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(20, 10, 30, 0.98);
    border: 2px solid #ffd700;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffd700;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.close-btn:hover {
    color: #ffd700;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #ffd700;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 响应式 */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .checkin-button {
        width: 250px;
        height: 250px;
    }

    .checkin-text {
        font-size: 28px;
    }
}

/* 橙色文字 */
.orange-text {
    color: #ff6b00;
    text-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-tab {
    padding: 8px 20px;
    background: rgba(50, 50, 50, 0.5);
    border: 2px solid #666;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-tab:hover {
    background: rgba(70, 70, 70, 0.6);
    border-color: #888;
}

.nav-tab.active {
    background: rgba(255, 107, 0, 0.5);
    border-color: #ffd700;
    color: #ffd700;
}

/* 标签页 */
.tab-page {
    display: none;
    margin-top: 80px;
}

.tab-page.active {
    display: block;
}

/* 修为闪光效果 */
.xiuwei-flash {
    animation: xiuwei-glow 0.5s ease-in-out 3;
}

@keyframes xiuwei-glow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 215, 0, 1),
            0 0 50px rgba(255, 215, 0, 1),
            0 0 70px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
}

/* 删除按钮 */
.delete-btn {
    background: rgba(255, 0, 0, 0.5);
    border: 1px solid #ff0000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.record-actions {
    display: flex;
    gap: 5px;
}

.edit-btn {
    background: rgba(255, 215, 0, 0.5);
    border: 1px solid #ffd700;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.record-time {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

/* 排行榜 */
.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.leaderboard-list {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(50, 30, 0, 0.4);
    border-color: #ffd700;
}

.leaderboard-item.rank-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
    border-color: #ffd700;
}

.leaderboard-item.rank-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(150, 150, 150, 0.2) 100%);
    border-color: #c0c0c0;
}

.leaderboard-item.rank-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(180, 100, 30, 0.2) 100%);
    border-color: #cd7f32;
}

.leaderboard-item .rank {
    font-size: 24px;
    font-weight: bold;
    width: 60px;
    text-align: center;
    color: #ffd700;
}

.leaderboard-item .user-name {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.leaderboard-item .user-stats {
    display: flex;
    gap: 20px;
}

.leaderboard-item .xiuwei-stat {
    color: #ffd700;
    font-weight: bold;
}

.leaderboard-item .dlevel-stat {
    color: #00ff00;
}

.leaderboard-item .streak-stat {
    color: #ff6b00;
}

/* GM徽章 */
.gm-badge {
    color: #ffd700;
    font-size: 14px;
    margin-left: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: glow-pulse 2s ease-in-out infinite;
}

/* 背包页面 */
.inventory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.inventory-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.inv-stat-card {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.inv-stat-label {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 5px;
}

.inv-stat-value {
    font-size: 24px;
    font-weight: bold;
}

.inventory-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.inventory-section {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.inv-list {
    max-height: 400px;
    overflow-y: auto;
}

.inv-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #ffd700;
    border-radius: 5px;
}

.inv-item.purple {
    border-left-color: #ff00ff;
}

.inv-item.green {
    border-left-color: #00ff00;
}

.inv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.inv-item-name {
    font-weight: bold;
    color: #fff;
}

.inv-item-amount {
    color: #ffd700;
    font-weight: bold;
}

.inv-item-actions {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.inv-item-note {
    color: #888;
    font-size: 12px;
}

.inv-item-time {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

.delete-item-btn {
    background: rgba(255, 0, 0, 0.5);
    border: 1px solid #ff0000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    margin-left: 10px;
}

.delete-item-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

.add-item-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 50, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 10px;
}

.add-item-form .game-input.small {
    flex: 1;
    min-width: 100px;
}

.no-data {
    color: #666;
    text-align: center;
    padding: 30px;
}

/* GM配置区域 */
.gm-config-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #666;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.gm-config-section.active {
    border-color: #00ff00;
}

.config-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.on {
    background: rgba(0, 255, 0, 0.5);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.on::after {
    left: 33px;
}

.streak-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.streak-reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.streak-reward-item input {
    width: 80px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* 词条标签样式 */
.affix-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    margin: 3px;
    background: rgba(50, 50, 80, 0.6);
    border: 1px solid #666;
    border-radius: 15px;
    font-size: 13px;
    color: #fff;
}

.affix-tag:hover {
    background: rgba(70, 70, 100, 0.8);
    border-color: #888;
}

/* 品质颜色类 */
.quality-1 { color: #888; }
.quality-2 { color: #00ff00; }
.quality-3 { color: #0088ff; }
.quality-4 { color: #ff00ff; }
.quality-5 { color: #ffd700; }

/* 打造系统样式 */
.craft-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.craft-main {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

.craft-materials-panel,
.craft-result-panel {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.craft-currency {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
}

.craft-materials-list {
    max-height: 500px;
    overflow-y: auto;
}

.material-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.material-item:hover {
    border-color: #ffd700;
    background: rgba(50, 30, 0, 0.4);
}

.material-item.selected {
    border-color: #00ff00;
    background: rgba(0, 50, 0, 0.4);
}

.material-item .name {
    font-weight: bold;
    margin-bottom: 5px;
}

.material-item .info {
    font-size: 12px;
    color: #888;
}

.craft-area {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.equip-type-select {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.equip-type-btn {
    padding: 10px 20px;
    background: rgba(50, 50, 50, 0.5);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.equip-type-btn:hover {
    border-color: #888;
}

.equip-type-btn.active {
    background: rgba(255, 107, 0, 0.5);
    border-color: #ffd700;
    color: #ffd700;
}

.craft-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.craft-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.craft-slot-title {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.craft-slot-content {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.craft-slot-content .placeholder {
    color: #666;
    font-style: italic;
}

.craft-slot-content .selected-item {
    padding: 8px 12px;
    background: rgba(0, 100, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.craft-slot-content .remove-btn {
    background: rgba(255, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.cost-config-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cost-config-option {
    padding: 8px 15px;
    background: rgba(50, 50, 50, 0.5);
    border: 2px solid #666;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cost-config-option:hover {
    border-color: #888;
}

.cost-config-option.selected {
    border-color: #ffd700;
    background: rgba(100, 80, 0, 0.5);
}

.craft-preview {
    text-align: center;
    margin-bottom: 20px;
}

.enhance-value {
    font-size: 36px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-button.large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.craft-result {
    min-height: 300px;
}

.craft-result-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.craft-result-item.quality-1 { border-color: #888; }
.craft-result-item.quality-2 { border-color: #00ff00; }
.craft-result-item.quality-3 { border-color: #0088ff; }
.craft-result-item.quality-4 { border-color: #ff00ff; }
.craft-result-item.quality-5 { border-color: #ffd700; }

.craft-result-item .equip-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.craft-result-item .equip-stats {
    margin-bottom: 10px;
}

.craft-result-item .equip-affixes {
    border-top: 1px solid #444;
    padding-top: 10px;
}

.craft-result-item .affix {
    color: #00bfff;
    margin-bottom: 3px;
}

/* 装备系统样式 */
.equipment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.equipment-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.equipped-panel {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.equipped-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equip-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.equip-slot:hover {
    border-color: #ffd700;
}

.equip-slot .slot-name {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.equip-slot .slot-content {
    color: #666;
}

.equip-slot .slot-content.equipped {
    color: #fff;
}

.equipment-backpack {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
}

.backpack-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 15px;
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid #666;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #888;
}

.filter-btn.active {
    background: rgba(255, 107, 0, 0.5);
    border-color: #ffd700;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.equipment-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.equipment-card.quality-1 { border-color: #888; }
.equipment-card.quality-2 { border-color: #00ff00; }
.equipment-card.quality-3 { border-color: #0088ff; }
.equipment-card.quality-4 { border-color: #ff00ff; }
.equipment-card.quality-5 { border-color: #ffd700; }

.equipment-card .equip-type {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.equipment-card .equip-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.equipment-card .equip-stats {
    font-size: 14px;
    margin-bottom: 8px;
}

.equipment-card .equip-affixes {
    font-size: 12px;
    border-top: 1px solid #444;
    padding-top: 8px;
}

.equipment-card .affix {
    color: #00bfff;
    margin-bottom: 2px;
}

.equipment-card .card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.equipment-card .card-actions button {
    flex: 1;
    padding: 5px 10px;
    font-size: 12px;
}

/* 背包格子系统 */
.backpack-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.backpack-tab {
    padding: 10px 20px;
    background: rgba(50, 50, 50, 0.5);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.backpack-tab:hover {
    border-color: #888;
    background: rgba(70, 70, 70, 0.6);
}

.backpack-tab.active {
    background: rgba(255, 107, 0, 0.5);
    border-color: #ffd700;
    color: #ffd700;
}

.backpack-grid-container {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    min-height: 400px;
}

.backpack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.backpack-slot {
    width: 100px;
    height: 120px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #444;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 8px;
}

.backpack-slot:hover {
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.backpack-slot.empty {
    opacity: 0.3;
    cursor: default;
}

.backpack-slot.empty:hover {
    border-color: #444;
    transform: none;
    box-shadow: none;
}

/* 道具品质边框 */
.backpack-slot.quality-0 { border-color: #888; }
.backpack-slot.quality-1 { border-color: #888; }
.backpack-slot.quality-2 { border-color: #00ff00; }
.backpack-slot.quality-3 { border-color: #0088ff; }
.backpack-slot.quality-4 { border-color: #ff00ff; }
.backpack-slot.quality-5 { border-color: #ffd700; }

/* 道具分类颜色 */
.backpack-slot.category-pill {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 50, 50, 0.1));
}

.backpack-slot.category-material {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.2), rgba(50, 150, 255, 0.1));
}

.backpack-slot.category-auxiliary {
    background: linear-gradient(135deg, rgba(100, 255, 100, 0.2), rgba(50, 200, 50, 0.1));
}

.backpack-slot.category-special {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 150, 0, 0.2));
    animation: special-glow 2s ease-in-out infinite;
}

@keyframes special-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.slot-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.slot-name {
    font-size: 12px;
    color: #fff;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-quantity {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}

.slot-effect-type {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
}

/* 月卡状态显示 */
.monthly-card-status {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 150, 0, 0.2));
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: monthly-card-pulse 2s ease-in-out infinite;
}

@keyframes monthly-card-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.monthly-card-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.monthly-card-icon {
    font-size: 28px;
}

.monthly-card-text {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.monthly-card-expiry {
    color: #aaa;
    font-size: 14px;
    margin-left: auto;
}

/* 记录区域 */
.records-section {
    margin-top: 20px;
}

/* 道具详情弹窗内容 */
.item-detail-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 15px;
}

.item-detail-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.item-detail-category {
    text-align: center;
    color: #888;
    margin-bottom: 15px;
}

.item-detail-desc {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
}

.item-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.item-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.item-stat-label {
    color: #888;
    font-size: 12px;
}

.item-stat-value {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.item-effect-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.item-effect-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 8px;
}

.item-effect-desc {
    color: #ccc;
    font-size: 14px;
}

/* 装备区域（整合到背包） */
.equipment-section {
    margin-top: 20px;
}

.equipment-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.equipped-panel-compact {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
}

.equipped-slots-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-slot-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.equip-slot-compact:hover {
    border-color: #ffd700;
    background: rgba(50, 30, 0, 0.4);
}

.equip-slot-compact.has-equip {
    border-color: #00ff00;
}

.slot-icon-small {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.slot-info {
    flex: 1;
}

.slot-label {
    font-size: 12px;
    color: #888;
}

.slot-equip-name {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.slot-equip-name.empty {
    color: #666;
    font-weight: normal;
}

.total-stats-panel {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
}

.total-stats-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.total-stat-item {
    padding: 5px 10px;
    background: rgba(0, 100, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-size: 12px;
    color: #00ff00;
}

.equipment-backpack-compact {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
}

.equip-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.equip-filter-btn {
    padding: 8px 15px;
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid #666;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.equip-filter-btn:hover {
    border-color: #888;
}

.equip-filter-btn.active {
    background: rgba(255, 107, 0, 0.5);
    border-color: #ffd700;
    color: #ffd700;
}

.equipment-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.equip-card-compact {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.equip-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.equip-card-compact.quality-1 { border-color: #888; }
.equip-card-compact.quality-2 { border-color: #00ff00; }
.equip-card-compact.quality-3 { border-color: #0088ff; }
.equip-card-compact.quality-4 { border-color: #ff00ff; }
.equip-card-compact.quality-5 { border-color: #ffd700; }

.equip-card-compact.equipped {
    background: rgba(0, 50, 0, 0.4);
}

.equip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.equip-card-name {
    font-weight: bold;
    font-size: 14px;
}

.equip-card-type {
    font-size: 11px;
    color: #888;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.equip-card-stats {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.equip-card-affixes {
    font-size: 11px;
    color: #00bfff;
    border-top: 1px solid #333;
    padding-top: 8px;
}

.equip-card-affixes .affix-line {
    margin-bottom: 2px;
}

.equip-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 255, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 3px;
    font-size: 10px;
    color: #00ff00;
    margin-top: 5px;
}

/* 装备详情弹窗样式 */
.equip-detail-header {
    text-align: center;
    margin-bottom: 15px;
}

.equip-detail-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.equip-detail-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.equip-detail-type {
    color: #888;
    font-size: 14px;
}

.equip-detail-stats {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.equip-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.equip-stat-row:last-child {
    border-bottom: none;
}

.equip-stat-label {
    color: #888;
}

.equip-stat-value {
    color: #00ff00;
    font-weight: bold;
}

.equip-detail-affixes {
    background: rgba(0, 0, 50, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #0088ff;
}

.equip-detail-affixes .affix-title {
    color: #0088ff;
    font-weight: bold;
    margin-bottom: 10px;
}

.equip-detail-affixes .affix-item {
    color: #00bfff;
    padding: 3px 0;
}

/* 熔炼系统预留 */
.smelt-section {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid #ff6600;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    opacity: 0.6;
}

.smelt-coming-soon {
    text-align: center;
    color: #888;
    padding: 40px;
}

.smelt-coming-soon .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.smelt-coming-soon .text {
    font-size: 18px;
    color: #ff6600;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .craft-main {
        grid-template-columns: 1fr;
    }

    .equipment-main {
        grid-template-columns: 1fr;
    }

    .backpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .backpack-slot {
        width: 80px;
        height: 100px;
    }

    .slot-icon {
        font-size: 24px;
    }

    .slot-name {
        font-size: 10px;
    }
}

/* ============ 补签日历样式 ============ */
.makeup-calendar-hint {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.makeup-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.calendar-header {
    text-align: center;
    color: #888;
    font-size: 12px;
    padding: 5px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.calendar-day .day-number {
    font-size: 18px;
    font-weight: bold;
}

.calendar-day .day-weekday {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* 可补签的日期 */
.calendar-day.available {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 100, 0, 0.1));
    border-color: #ff8c00;
    color: #ffd700;
}

.calendar-day.available:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 100, 0, 0.2));
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.calendar-day.available.selected {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 165, 0, 0.4));
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    transform: scale(1.08);
}

/* 已签到的日期 */
.calendar-day.checked {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2), rgba(0, 200, 80, 0.1));
    border-color: #00cc66;
    color: #00ff88;
    cursor: default;
}

.calendar-day.checked::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 12px;
    color: #00ff88;
}

/* 今天 */
.calendar-day.today {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(80, 120, 200, 0.1));
    border-color: #6699ff;
    color: #99bbff;
    cursor: default;
}

.calendar-day.today .day-weekday {
    color: #6699ff;
}

/* 不可选的日期 */
.calendar-day.disabled {
    background: rgba(50, 50, 50, 0.3);
    color: #555;
    cursor: not-allowed;
}

.calendar-day.disabled .day-weekday {
    color: #444;
}

/* 日期格子显示的修为 */
.calendar-day .day-xiuwei {
    font-size: 10px;
    color: #00ff88;
    margin-top: 2px;
    font-weight: bold;
}

/* 选中日期信息 */
.selected-date-info {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    color: #ffd700;
    font-size: 16px;
}

.selected-date-info span:first-child {
    color: #aaa;
}

/* ============ 页面可见性配置样式 ============ */
.visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.visibility-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.visibility-title {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.visibility-item {
    margin-bottom: 10px;
}

.visibility-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.visibility-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.visibility-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff88;
}

.visibility-label span {
    color: #ddd;
    font-size: 14px;
}

.visibility-label input[type="checkbox"]:checked + span {
    color: #00ff88;
}

@media (max-width: 600px) {
    .visibility-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ 弹幕系统样式 ============ */
.danmaku-layer {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    text-shadow:
        2px 2px 3px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.7);
    will-change: transform;
    right: 0;
    transform: translateX(100%);
}

.danmaku-item.animate {
    animation: danmaku-scroll linear forwards;
}

@keyframes danmaku-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 100vw));
    }
}

.danmaku-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    z-index: 20;
}

.danmaku-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.danmaku-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.danmaku-color-select {
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.danmaku-color-select:focus {
    outline: none;
    border-color: #ffd700;
}

/* ============ 排行榜五榜样式 ============ */

/* 排行榜容器调整 */
.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 170px; /* 为弹幕层留空间 */
    position: relative;
}

.leaderboard-container .panel-title {
    position: relative;
    z-index: 20;
    background: rgba(20, 10, 30, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 所有榜单容器 */
.all-rankings {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 单个榜单区块 */
.ranking-section {
    background: rgba(20, 10, 30, 0.9);
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* 榜单头部 */
.ranking-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid;
}

.ranking-title {
    font-size: 24px;
    font-weight: bold;
}

.ranking-desc {
    color: #aaa;
    font-size: 14px;
}

.ranking-count {
    margin-left: auto;
    font-weight: bold;
    font-size: 14px;
}

/* 仙榜 - 金色 */
.ranking-section.ranking-xian {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}
.ranking-section.ranking-xian .ranking-header {
    border-color: rgba(255, 215, 0, 0.5);
}
.ranking-section.ranking-xian .ranking-title {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.ranking-section.ranking-xian .ranking-count {
    color: #ffd700;
}

/* 天榜 - 紫色 */
.ranking-section.ranking-tian {
    border-color: #bb66ff;
    box-shadow: 0 0 25px rgba(180, 100, 255, 0.2);
}
.ranking-section.ranking-tian .ranking-header {
    border-color: rgba(180, 100, 255, 0.5);
}
.ranking-section.ranking-tian .ranking-title {
    color: #bb66ff;
    text-shadow: 0 0 15px rgba(180, 100, 255, 0.6);
}
.ranking-section.ranking-tian .ranking-count {
    color: #bb66ff;
}

/* 地榜 - 蓝色 */
.ranking-section.ranking-di {
    border-color: #6699ff;
    box-shadow: 0 0 25px rgba(100, 150, 255, 0.2);
}
.ranking-section.ranking-di .ranking-header {
    border-color: rgba(100, 150, 255, 0.5);
}
.ranking-section.ranking-di .ranking-title {
    color: #6699ff;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.6);
}
.ranking-section.ranking-di .ranking-count {
    color: #6699ff;
}

/* 人榜 - 绿色 */
.ranking-section.ranking-ren {
    border-color: #66ff99;
    box-shadow: 0 0 25px rgba(100, 255, 150, 0.2);
}
.ranking-section.ranking-ren .ranking-header {
    border-color: rgba(100, 255, 150, 0.5);
}
.ranking-section.ranking-ren .ranking-title {
    color: #66ff99;
    text-shadow: 0 0 15px rgba(100, 255, 150, 0.6);
}
.ranking-section.ranking-ren .ranking-count {
    color: #66ff99;
}

/* 畜榜 - 灰色 */
.ranking-section.ranking-chu {
    border-color: #999;
    box-shadow: 0 0 25px rgba(150, 150, 150, 0.2);
}
.ranking-section.ranking-chu .ranking-header {
    border-color: rgba(150, 150, 150, 0.5);
}
.ranking-section.ranking-chu .ranking-title {
    color: #999;
    text-shadow: 0 0 15px rgba(150, 150, 150, 0.6);
}
.ranking-section.ranking-chu .ranking-count {
    color: #999;
}

/* 空榜单提示 */
.ranking-empty {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}
