/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dashboard 页面样式 */
.dashboard-container {
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.dashboard-header h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.dashboard-header p {
    font-size: 1.1em;
    opacity: 0.8;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* 确保section-header h2样式优先级最高 */
.section-header h2,
.match-info-section .section-header h2,
.players-section .section-header h2,
.qr-section .section-header h2 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.section-header i {
    margin-right: 0;
    font-size: 1.3em;
    color: #00ff88;
}

.section-header .copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #00f7ff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header .copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 247, 255, 0.2);
}

.section-header .copy-btn i {
    font-size: 0.8em;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logout-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    z-index: 1000;
}

.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.query-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

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

.query-btn i {
    font-size: 12px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.toggle-btn i {
    font-size: 12px;
}

.info-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 15px;
}

.info-placeholder i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.info-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* 已移除重复的loading-spinner定义 */

.filters-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 0.9em !important;
    transition: all 0.3s ease !important;
}

.filters-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.filters-btn i {
    margin-right: 5px;
    color: #00ff88;
}

.matches-table-container {
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.table-header {
    background: rgba(255, 255, 255, 0.1);
}

.header-cell {
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-body {
    color: white;
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.table-cell {
    padding: 12px 10px;
}

.waiting-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 15px;
}

.waiting-message i {
    font-size: 1.5em;
    margin-bottom: 8px;
    opacity: 0.5;
}

.waiting-message span {
    font-size: 14px;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-detail-item:last-child {
    border-bottom: none;
}

.user-detail-item i {
    color: #00ff88;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.user-detail-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.4;
}

.user-detail-item strong {
    color: white;
    font-weight: 600;
}

/* 统计卡片样式 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.stat-info h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.stat-info p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* 角色统计样式 */
.role-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.role-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.role-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.role-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.role-info h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.role-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

/* 通知样式 */
.error-notification,
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-notification {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.success-notification {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #1a1a1a;
}

/* 加载遮罩 - 已移除重复定义 */

/* 错误消息样式 */
.error-message {
    text-align: center;
    color: #ff6b6b;
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.error-message i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.error-message p {
    margin: 0;
    font-size: 14px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 切换详细信息按钮样式 */
.toggle-details-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-details-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.toggle-details-btn i {
    font-size: 16px;
}

/* 简化卡片样式 */
.player-card.simple {
    display: flex;
    flex-direction: row; /* 更改为横向布局 */
    align-items: center; /* 垂直居中对齐 */
    gap: 12px; /* 调整间距 */
    padding: 8px 12px; /* 调整内边距以适应新高度 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 200px; /* 恢复原来的宽度 */
    height: 50px; /* 更改为 50px 高度 */
    box-sizing: border-box;
    /* 移除 justify-content: center; */
}

.player-card.simple:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.player-card.simple .player-avatar {
    width: 36px; /* 调整头像大小以适应新高度 */
    height: 36px; /* 调整头像大小以适应新高度 */
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.player-card.simple .player-info {
    flex: 1;
    text-align: left; /* 文本左对齐 */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-card.simple .player-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0px; /* 调整 */
    font-size: 14px; /* 调整字体大小 */
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 添加省略号 */
}

.player-card.simple .player-role-faction {
    font-size: 11px; /* 调整字体大小 */
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 添加省略号 */
}

/* 详细卡片样式 */
.player-card.detailed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 200px;
    height: 260px;
    box-sizing: border-box;
}

.player-card.detailed:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.player-card.detailed .player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.player-card.detailed .player-info {
    text-align: left;
    margin-bottom: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-card.detailed .player-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    font-size: 14px;
}

.player-card.detailed .player-role-faction {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.player-card.detailed .player-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.player-card.detailed .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-card.detailed .stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.player-card.detailed .stat-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .players-grid.simple-mode {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .players-grid.detailed-mode {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .player-card.simple {
        width: 200px;
        height: 50px;
        padding: 8px 12px;
    }
    
    .player-card.simple .player-avatar {
        width: 36px;
        height: 36px;
    }
    
    .player-card.simple .player-name {
        font-size: 14px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .player-card.simple .player-role-faction {
        font-size: 11px;
    }
    
    .player-card.detailed {
        width: 100%; /* 移动端自适应宽度 */
        height: 260px;
    }
    
    .player-card.detailed .player-avatar {
        width: 32px;
        height: 32px;
    }
}

/* 登录提示弹窗样式 */
.login-required-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.dialog-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.dialog-icon {
    margin-bottom: 20px;
}

.dialog-icon i {
    font-size: 48px;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.dialog-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.dialog-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.5;
}

.dialog-countdown {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dialog-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.dialog-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dialog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 表格中的错误消息 */
.table-row .error-message {
    text-align: center;
    color: #ff6b6b;
    padding: 20px;
}

.table-row .error-message i {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #ff6b6b;
}

.table-row .error-message span {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 2em;
    }
    
    .dashboard-container {
        padding: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .section-header .section-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .section-header .copy-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .role-stats-cards {
        grid-template-columns: 1fr;
    }
    
    /* 平板端表格适配 */
    .matches-table {
        font-size: 14px;
    }
    
    .table-header {
        font-size: 12px;
    }
    
    .table-cell {
        padding: 8px 6px;
    }
    
    /* 平板端保持滚动功能 */
    .table-body {
        max-height: 350px !important;
        overflow-y: auto !important;
    }
    
    .player-icon {
        width: 35px;
        height: 35px;
    }
    
    .role-name {
        font-size: 13px;
    }
    
    .map-name {
        font-size: 11px;
    }
    
    .result-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .date-text,
    .players-count,
    .turns-survived {
        font-size: 12px;
    }
    
    .arrow-icon {
        font-size: 12px;
    }
    
    /* 统计卡片适配 */
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-info h4 {
        font-size: 15px;
    }
    
    .stat-info p {
        font-size: 20px;
    }
    
    /* 用户信息适配 */
    .user-detail-item {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.5em;
    }
    
    .section-header h2,
    .match-info-section .section-header h2,
    .players-section .section-header h2,
    .qr-section .section-header h2 {
        font-size: 1.2rem !important;
    }
    
    .section-header .copy-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    /* 移动端表格适配 */
    .matches-table-container {
        margin: 10px 0;
        width: 100%;
    }
    
    .matches-table {
        font-size: 8px;
        width: 100%;
    }
    
    .table-header {
        display: grid;
        grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.2fr;
        gap: 0px;
        padding: 4px 0px;
        font-size: 8px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 2px;
    }
    
    .table-body {
        max-height: 200px !important; /* 进一步减少移动端高度 */
        overflow-y: auto !important; /* 保持滚动功能 */
        overflow-x: hidden !important; /* 隐藏水平滚动条 */
    }
    
    .table-row {
        display: grid;
        grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.2fr;
        gap: 5px;
        padding: 10px 5px;
        margin-bottom: 1px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 8px;
    }
    
    .table-cell {
        display: flex;
        align-items: center;
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    /* 移除移动端的data-label显示，因为表格已经有表头了 */
    .table-cell::before {
        display: none;
    }
    
    /* 玩家信息卡片样式 */
    .player-info {
        flex-direction: row;
        align-items: center;
        gap: 0px;
    }
    
    .player-icon {
        width: 20px;
        height: 20px;
        font-size: 8px;
        flex-shrink: 0;
    }
    
    .player-details {
        flex-direction: column;
        gap: 0px;
        min-width: 0;
        overflow: hidden;
        margin: 0px;
        padding: 0px;
    }
    
    .role-name {
        font-size: 8px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0px;
        padding: 0px;
        line-height: 1;
    }
    
    .map-name {
        font-size: 6px;
        opacity: 0.8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0px;
        padding: 0px;
        line-height: 1;
    }
    
    /* 结果徽章 */
    .result-badge {
        padding: 0px 2px;
        font-size: 7px;
        border-radius: 2px;
        white-space: nowrap;
        margin: 0px;
    }
    
    /* 日期和数字 */
    .date-text,
    .players-count,
    .turns-survived {
        font-size: 7px;
        white-space: nowrap;
        margin: 0px;
        padding: 0px;
    }
    
    /* 箭头图标 */
    .arrow-icon {
        font-size: 8px;
        margin-left: 0px;
    }
    
    /* 用户信息卡片 */
    .user-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .user-avatar {
        align-self: center;
    }
    
    .user-details {
        gap: 8px;
    }
    
    .user-detail-item {
        font-size: 14px;
    }
    
    /* 统计卡片 */
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-info h4 {
        font-size: 14px;
    }
    
    .stat-info p {
        font-size: 18px;
    }
    
    /* 角色统计卡片 */
    .role-stat-card {
        padding: 12px;
    }
    
    .role-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
    
    .role-stat-name {
        font-size: 14px;
    }
    
    .role-stat-games,
    .role-stat-winrate {
        font-size: 12px;
    }
    
    /* 按钮适配 */
    .query-btn,
    .toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    /* 移动端保持滚动功能，但隐藏滚动条 */
    .table-body::-webkit-scrollbar {
        display: none;
    }
    
    .table-body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* 移动端表格容器设置 */
    .matches-table-container,
    .matches-table {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 移动端表格内容横向显示 */
    .table-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
        margin: 0px;
        padding: 0px;
    }
    
    /* 确保角色图标正确显示 */
    .role-icon-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        min-width: 16px;
        min-height: 16px;
    }
    
    /* 触摸优化 */
    .table-row {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .query-btn,
    .toggle-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px; /* 确保触摸目标足够大 */
    }
    
    /* 移动端字体优化 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 移动端间距优化 */
    .dashboard-section {
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    /* 移动端阴影优化 */
    .stat-card,
    .role-stat-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* 移动端边框优化 */
    .table-row {
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* 玩家网格移动端样式 */
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .player-card.simple {
        width: 200px;
        height: 50px;
        padding: 8px 12px;
        gap: 12px;
    }
    
    .player-card.simple .player-avatar {
        width: 36px;
        height: 36px;
    }
    
    .player-card.simple .player-name {
        font-size: 14px;
    }
    
    .player-card.simple .player-role-faction {
        font-size: 11px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 容器 */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 兑换导航项特殊样式 */
#redeemLink {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

#redeemLink:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}



.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #00ff88;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* 主要内容区域 */
.main-content {
    flex: 1;
}

/* 英雄区域 */
.hero-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    animation: rainbow 3s linear infinite, wave 2s ease-in-out infinite;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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



.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.game-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.game-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.game-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 登录区域 */
.login-section {
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 新增：登录区块下方说明卡片样式 */
.notice-card {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.notice-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.notice-card p {
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 480px) {
    .notice-card {
        max-width: none;
        margin: 16px 12px 0 12px;
        padding: 16px;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.quick-login-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-login-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.quick-login-toggle.active {
    background: rgba(0, 204, 106, 0.3);
    border-color: rgba(0, 204, 106, 0.5);
    color: #00cc6a;
}

.login-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* 快捷登录样式 */
.quick-login-section {
    margin: 20px 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
}

.quick-login-section .btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-login-section .btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

/* 用户资料区域 */
.profile-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5px !important;
}

.section-header h2 {
    color: white;
    font-size: 1.5rem !important;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.profile-container {
    display: grid;
    gap: 30px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.profile-info {
    flex: 1;
}

/* 游戏战绩区域 */
.stats-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-overview {
    margin-bottom: 40px;
}

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

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stats-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.stats-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 8px;
}

.stats-card .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matches-section {
    margin-top: 40px;
}

.matches-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

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

.matches-header {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
}

.matches-header th {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.matches-body tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.matches-body tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.matches-body td {
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-name {
    font-weight: 600;
    color: white;
}

.role-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.result-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-badge.win {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-badge.lose {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 关于我们 */
.about-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.about-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ff88;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00ff88;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-bottom a:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    color: #ffffff;
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    color: #00ff88;
    font-size: 1.2rem;
}

.notification-message {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    

    
    .game-preview {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .matches-table {
        font-size: 0.9rem;
    }
    
    .matches-header th,
    .matches-body td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 新增样式 - 游戏战绩卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 新增样式 - 比赛表格 */
.matches-table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.matches-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(138, 43, 226, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matches-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00ff88;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matches-title i {
    font-size: 1.2rem;
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.matches-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(138, 43, 226, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-body {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 6px; /* 为滚动条留出空间 */
}

/* 自定义滚动条样式 - Webkit浏览器 (Chrome, Safari, Edge) */
.table-body::-webkit-scrollbar {
    width: 6px;
}

.table-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    margin: 2px 0;
}

.table-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(138, 43, 226, 0.3) 100%);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.7) 0%, rgba(138, 43, 226, 0.5) 100%);
    box-shadow: 0 1px 4px rgba(138, 43, 226, 0.2);
}

.table-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.6) 100%);
}

/* Firefox滚动条样式 */
.table-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.5) rgba(255, 255, 255, 0.03);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
    gap: 5px;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-cell {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.header-cell {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-name {
    font-weight: 500;
    color: #00ff88;
    font-size: 0.9rem;
    line-height: 1.2;
}

.map-name {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.2;
}

.result-text {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.result-text.win {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.result-text.lose {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.date-text {
    color: rgba(255, 255, 255, 0.8);
}

.players-count {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.turns-survived {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow-icon {
    color: #00ff88;
    font-size: 1.2rem;
    opacity: 0.8;
    display: inline-block;
    text-align: center;
    width: 100%;
    transition: color 0.3s ease;
}



.role-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-stat-card:hover::before {
    opacity: 1;
}

.role-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(138, 43, 226, 0.3);
}

.role-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8a2be2 0%, #6a0dad 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.role-stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.role-stat-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8a2be2;
    margin-bottom: 8px;
}

.role-stat-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-stat-games,
.role-stat-winrate {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.role-stat-winrate {
    color: #00ff88;
    font-weight: 500;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
} 

/* 通知样式 */
.error-notification,
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.error-notification {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.success-notification {
    background: linear-gradient(135deg, #00cc6a 0%, #00ff88 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 优化加载状态 - 已移除重复定义 */

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-detail-item:last-child {
    border-bottom: none;
}

.user-detail-item i {
    color: #00ff88;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.user-detail-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.4;
}

.user-detail-item strong {
    color: white;
    font-weight: 600;
}

/* 自定义确认弹窗样式 */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-dialog {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1);
}

.custom-dialog-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-dialog-header i {
    color: #ff6b6b;
    font-size: 20px;
}

.custom-dialog-header span {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.custom-dialog-body {
    padding: 25px;
    text-align: center;
}

.custom-dialog-body p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.custom-dialog-footer {
    padding: 20px 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-dialog-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.custom-dialog-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-dialog-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-dialog-btn-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-dialog-btn-confirm:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.custom-dialog-btn i {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .custom-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .custom-dialog-header {
        padding: 15px 20px;
    }
    
    .custom-dialog-body {
        padding: 20px;
    }
    
    .custom-dialog-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .custom-dialog-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 缓存指示器样式 */
.cache-indicator {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(138, 43, 226, 0.2);
    color: rgba(138, 43, 226, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cache-indicator i {
    font-size: 10px;
}

.dialog-author {
    position: absolute;
    bottom: -30px;
    right: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* 对局详情页面样式 */
.match-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.match-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.match-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.match-detail-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.match-info-section,
.players-section,
.qr-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 80px;
}

.info-value {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-btn {
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 10px;
}

.players-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

/* 简化模式下的网格布局 */
.players-grid.simple-mode {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 详细模式下的网格布局 */
.players-grid.detailed-mode {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.player-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 200px;
    height: 260px;
    box-sizing: border-box;
}

.player-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.player-card .player-avatar {
    flex-shrink: 0;
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}



.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.role-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    font-size: 14px;
}

.player-role-faction {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}



.qr-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.qr-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.4);
}

.qr-placeholder p {
    margin: 0;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .match-detail-container {
        padding: 16px;
    }
    
    .match-detail-header h1 {
        font-size: 2rem;
    }
    
    .match-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        width: 100%;
        justify-content: space-between;
    }
    
    
    
    .player-card {
        width: 200px;
        height: 260px;
        padding: 12px;
    }
    
    .player-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* 回合板块样式 */
    .rounds-section {
        margin-top: 30px;
    }
    
    .rounds-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .round-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        transition: all 0.3s ease;
    }
    
    .round-card:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    
    .round-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .round-header h3 {
        margin: 0;
        color: white;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .round-time {
        display: flex;
        gap: 15px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .round-timeline {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-event {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .event-actor,
    .event-target {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    
    .event-actor {
        justify-content: flex-start;
    }
    
    .event-target {
        justify-content: flex-end;
    }
    
    .event-action {
        flex: 0 0 auto;
        margin: 0 15px;
    }
    
    .action-btn {
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .action-kill {
        background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
        color: white;
    }
    
    .action-investigate {
        background: linear-gradient(135deg, #ffa502 0%, #ff9500 100%);
        color: white;
    }
    
    .action-other {
        background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
        color: white;
    }
    
    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .no-events {
        text-align: center;
        padding: 20px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .no-events i {
        font-size: 2rem;
        margin-bottom: 10px;
        display: block;
    }
    
    .no-events p {
        margin: 0;
        font-size: 0.9rem;
    }
}

/* 回合区块样式 */
.rounds-section {
    margin-top: 30px;
}

/* 胜利玩家区块样式 */
.winners-section {
    margin-top: 30px;
}

.winners-container {
    position: relative;
}

.winners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.winner-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.winner-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.winner-card .player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8a2be2 0%, #6a0dad 100%);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.winner-card .player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.winner-card .player-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.winner-card .player-role {
    font-size: 0.85rem;
    color: #00f7ff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .winners-section {
        margin-top: 20px;
    }
    
    .winners-grid {
        gap: 10px;
    }
    
    .winner-card {
        min-width: 180px;
        max-width: 200px;
        padding: 12px;
    }
    
    .winner-card .player-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .winner-card .player-name {
        font-size: 0.9rem;
    }
    
    .winner-card .player-role {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .winners-grid {
        justify-content: center;
    }
    
    .winner-card {
        min-width: 160px;
        max-width: 180px;
        padding: 10px;
    }
    
    .winner-card .player-avatar {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    .winner-card .player-name {
        font-size: 0.85rem;
    }
    
    .winner-card .player-role {
        font-size: 0.75rem;
    }
}

/* 阵营胜利文本样式 */
.faction-victory-text {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .faction-victory-text {
        font-size: 0.9rem;
        margin-left: 8px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .faction-victory-text {
        font-size: 0.8rem;
        margin-left: 6px;
        padding: 2px 8px;
    }
}

.rounds-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.round-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    overflow: hidden;
}

.round-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.round-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.round-time {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.round-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    min-width: 100%;
}

/* 时间线表格样式 - 美化版本 */
.timeline-table {
    font-size: 13px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-table tbody {
    width: 100%;
}

.timeline-table thead {
    width: 100%;
}

/* 美化事件列样式 */
    .timeline-table td:nth-child(2) {
        font-weight: 600;
        color: #00f7ff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        text-align: center;
        vertical-align: middle;
        padding: 8px 12px;
        height: auto;
        min-height: 40px;
    }

/* 确保事件按钮在单元格中居中显示 */
.timeline-table td:nth-child(2) .action-btn {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 美化时间列样式 */
.timeline-table td:nth-child(4),
.timeline-table td:nth-child(5) {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00f7ff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 6px 8px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    margin: 2px;
    text-align: center;
    vertical-align: middle;
}

/* 确保所有表格单元格内容居中 */
.timeline-table td {
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

/* 确保表格行正确显示 */
.timeline-table tr {
    display: table-row;
    width: 100%;
}

/* 时间线事件标题样式 */
.round-timeline h4 {
    color: #00f7ff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 15px;
}

.round-timeline h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 美化的avatar-name样式 */
.avatar-name {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

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

.avatar-name:hover::before {
    left: 100%;
}

.avatar-name:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-name .nickname {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 2px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.player-avatar:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.player-avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.timeline-table th,
.timeline-table td {
    padding: 12px 8px;
    text-align: center;
    border: none;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}



.timeline-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}



.timeline-table tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-table tr:last-child {
    border-bottom: none;
}

.timeline-table tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.timeline-table tr:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}







/* 回合区块中的role-icon大小限制 */
.rounds-section .role-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rounds-section .role-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 回合区块中的玩家信息布局 */
.rounds-section .player-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    min-height: 100%;
}

.rounds-section .player-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.rounds-section .player-name {
    font-size: 13px;
    color: #e0e0e0;
    margin: 0;
    text-align: left;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rounds-section .player-role {
    font-size: 11px;
    color: #b0b0b0;
    margin: 0;
    text-align: left;
    font-weight: 400;
}

.rounds-section .player-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    margin: 0 auto;
}

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

.action-btn:hover::before {
    left: 100%;
}

.action-kill { 
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%) !important;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
}

.action-investigate { 
    background: linear-gradient(135deg, #ffa502 0%, #ff9500 100%) !important;
    border: 1px solid rgba(255, 165, 2, 0.3) !important;
}

.action-other { 
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%) !important;
    border: 1px solid rgba(46, 213, 115, 0.3) !important;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.no-events {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-events i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.no-events p {
    margin: 0;
    font-size: 0.9rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .rounds-section {
        margin-top: 20px;
    }
    
    .round-card {
        padding: 16px;
    }
    
    .round-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .round-time {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    /* 移动端表格自适应 */
    .timeline-table {
        width: 100%;
        font-size: 12px;
        margin-top: 10px;
        table-layout: fixed;
        display: table;
        border-radius: 8px;
    }
    
    .round-timeline {
        width: 100%;
    }
    
    /* 确保表格在移动端正确显示 */
    .timeline-table {
        width: 100%;
        table-layout: fixed;
    }
    
    .timeline-table th,
    .timeline-table td {
        padding: 8px 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        max-width: 0;
        display: table-cell;
    }
    
    /* 移动端表格列宽度分配 */
    .timeline-table th:nth-child(1),
    .timeline-table td:nth-child(1) {
        width: 25%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(2),
    .timeline-table td:nth-child(2) {
        width: 20%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(3),
    .timeline-table td:nth-child(3) {
        width: 25%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(4),
    .timeline-table td:nth-child(4) {
        width: 30%;
        display: table-cell;
    }
    
    /* 移动端avatar-name调整 */
    .avatar-name {
        padding: 3px;
        min-width: 60px;
        width: 100%;
        box-sizing: border-box;
        gap: 2px;
    }
    
    .player-avatar {
        width: 24px;
        height: 24px;
    }
    
    .avatar-name .nickname {
        font-size: 10px;
    }
    
    /* 移动端表格行自适应 */
    .timeline-table tr {
        width: 100%;
        display: table-row;
    }
    
    .timeline-table tbody {
        width: 100%;
        display: table-row-group;
    }
    
    .timeline-table thead {
        width: 100%;
        display: table-header-group;
    }
    
    .timeline-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    

    
    /* 移动端玩家信息自适应 */
    .rounds-section .player-info {
        width: 100%;
        min-width: 0;
        padding: 4px 6px;
        gap: 6px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .rounds-section .player-text {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    
    .rounds-section .player-name {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin: 0;
    }
    
    .rounds-section .player-role {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin: 0;
    }
    
    /* 移动端role-icon调整 */
    .rounds-section .role-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* 移动端按钮调整 */
    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
        white-space: nowrap;
        min-width: 60px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        text-align: center;
        margin: 0 auto;
    }
    
    /* 确保事件按钮在移动端正确显示 */
    .timeline-table td:nth-child(2) .action-btn {
        width: 100%;
        max-width: 80px;
        min-width: 60px;
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 6px;
        box-sizing: border-box;
    }
    
    /* 移动端时间列调整 */
    .event-time {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* 小屏幕移动端响应式 */
@media (max-width: 480px) {
    .timeline-table {
        font-size: 11px;
        table-layout: fixed;
        width: 100%;
        display: table;
        border-radius: 6px;
    }
    
    .round-timeline {
        width: 100%;
    }
    
    /* 确保表格在小屏幕正确显示 */
    .timeline-table {
        width: 100%;
        table-layout: fixed;
    }
    
    .timeline-table th,
    .timeline-table td {
        padding: 6px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: table-cell;
    }
    
    /* 小屏幕表格列宽度分配 */
    .timeline-table th:nth-child(1),
    .timeline-table td:nth-child(1) {
        width: 25%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(2),
    .timeline-table td:nth-child(2) {
        width: 20%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(3),
    .timeline-table td:nth-child(3) {
        width: 25%;
        display: table-cell;
    }
    
    .timeline-table th:nth-child(4),
    .timeline-table td:nth-child(4) {
        width: 30%;
        display: table-cell;
    }
    
    /* 小屏幕avatar-name调整 */
    .avatar-name {
        padding: 2px;
        min-width: 50px;
        width: 100%;
        box-sizing: border-box;
        gap: 1px;
    }
    
    .player-avatar {
        width: 20px;
        height: 20px;
    }
    
    .avatar-name .nickname {
        font-size: 9px;
    }
    

    
    .rounds-section .player-info {
        padding: 3px 4px;
        gap: 4px;
    }
    
    .rounds-section .player-name {
        font-size: 10px;
    }
    
    .rounds-section .player-role {
        font-size: 9px;
    }
    
    .rounds-section .role-icon {
        width: 18px;
        height: 18px;
    }
    
    .action-btn {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 60px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        text-align: center;
        margin: 0 auto;
    }
    
    /* 确保事件按钮在移动端正确显示 */
    .timeline-table td:nth-child(2) .action-btn {
        width: 100%;
        max-width: 80px;
        min-width: 60px;
        font-size: 9px;
        padding: 2px 4px;
        border-radius: 6px;
        box-sizing: border-box;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-all;
        height: auto;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* 移动端表格单元格高度调整 */
    .timeline-table td:nth-child(2) {
        height: auto;
        min-height: 35px;
        vertical-align: middle;
    }
    
    .event-time {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    /* 480px以下屏幕的额外优化 */
    @media (max-width: 480px) {
        .timeline-table td:nth-child(2) .action-btn {
            width: 100%;
            max-width: 70px;
            min-width: 50px;
            font-size: 8px;
            padding: 2px 4px;
            border-radius: 4px;
            box-sizing: border-box;
            line-height: 1.1;
            white-space: normal;
            word-wrap: break-word;
            word-break: break-all;
            height: auto;
            min-height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            overflow: visible;
        }
        
        /* 小屏幕表格单元格高度调整 */
        .timeline-table td:nth-child(2) {
            height: auto;
            min-height: 30px;
            vertical-align: middle;
        }
        
        .action-btn {
            padding: 2px 4px;
            font-size: 8px;
            min-width: 50px;
            max-width: 70px;
        }
    }
}

/* 回合信息中的用户信息样式 */
.avatar-name .player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.avatar-name .nickname {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.2;
}

.avatar-name .role-name {
    font-size: 10px;
    color: #00f7ff;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.2;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .avatar-name .nickname {
        font-size: 11px;
    }
    
    .avatar-name .role-name {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .avatar-name .nickname {
        font-size: 10px;
    }
    
    .avatar-name .role-name {
        font-size: 8px;
    }
}

/* 会议区块样式 */
.meeting-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.meeting-section h4 {
    color: #00f7ff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.meeting-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meeting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.meeting-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.meeting-initiator {
    flex: 1;
}

/* 投票区块样式 */
.voting-section {
    margin-top: 15px;
}

.voting-section h4 {
    color: #00f7ff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.vote-result {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-count {
    color: #ffd93d;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(255, 217, 61, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 217, 61, 0.3);
}

.vote-voters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voter-item {
    flex: 0 0 auto;
}

.skip-votes {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skip-votes h5 {
    color: #ffd93d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: none;
}

.skip-voters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.no-votes {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .meeting-section {
        padding: 12px;
        margin-top: 15px;
    }
    
    .meeting-info {
        gap: 10px;
    }
    
    .meeting-item {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .meeting-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .meeting-value {
        font-size: 13px;
    }
    
    .vote-target {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vote-voters,
    .skip-voters {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .meeting-section {
        padding: 10px;
    }
    
    .meeting-item {
        padding: 5px 8px;
    }
    
    .meeting-label {
        font-size: 12px;
    }
    
    .meeting-value {
        font-size: 12px;
    }
    
    .vote-voters,
    .skip-voters {
        gap: 6px;
    }
}

.vote-target .nickname {
    color: #ffd93d;
    font-weight: 600;
    text-shadow: none;
}

.vote-target .role-name {
    color: #00f7ff;
    font-weight: 400;
    opacity: 0.8;
    text-shadow: none;
}

/* 会议结果区块样式 */
.meeting-result-section {
    margin-top: 15px;
}

.meeting-result-section h4 {
    color: #00f7ff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: none;
}

.meeting-result {
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}





.result-text {
    flex: 0 0 auto;
}



.result-value {
    color: #ffd93d;
    font-size: 16px;
    font-weight: 600;
}

.voted-out-player {
    flex: 0 0 auto;
    margin-right: auto;
}

.no-meeting-result {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .meeting-result-section {
        margin-top: 12px;
    }
    
    .meeting-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .meeting-result-section {
        margin-top: 10px;
    }
    
    .meeting-result {
        gap: 10px;
    }
    
    .result-value {
        font-size: 13px;
    }
} 

/* 统一的加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    user-select: none;
}

.loading-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    user-select: none;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    user-select: none;
}

.loading-spinner i {
    font-size: 48px;
    color: white;
    animation: spin 1s linear infinite;
    user-select: none;
}

.loading-content p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    user-select: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分享页面特定样式 */
.share-page .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 错误页面样式 */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-message i {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.error-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.error-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
}

.error-note i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* 分享弹窗样式 */
.share-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-dialog-overlay.show {
    opacity: 1;
}

.share-dialog {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.share-dialog-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.share-dialog-content {
    padding: 1.5rem;
}

.share-dialog-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cancel-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.confirm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .share-dialog {
        width: 95%;
        margin: 10px;
    }
    
    .share-dialog-header {
        padding: 15px;
    }
    
    .share-dialog-content {
        padding: 15px;
    }
    
    .share-dialog-actions {
        padding: 15px;
        flex-direction: column;
    }
    
    .cancel-btn,
    .confirm-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.share-page .header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.share-page .header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 加载和错误状态样式 - 已移除重复定义 */

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-container i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-container h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-container p {
    color: #666;
    margin-bottom: 2rem;
}

/* 空数据样式 */
.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* 玩家单元格样式 */
.player-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 4px 0;
}

.player-cell .role-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.player-cell .player-name {
    font-weight: 600;
    color: #333;
}

.player-cell .role-name {
    color: #666;
    font-size: 0.9em;
}

/* 空玩家样式 */
.empty-player {
    color: #999;
    font-style: italic;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* 事件按钮样式 */
.event-btn {
    display: inline-block;
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 被投票出局玩家样式 */
.voted-out-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voted-out-text {
    color: #856404;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-page .header h1 {
        font-size: 2rem;
    }
    
    .share-page .header p {
        font-size: 1rem;
    }
    
    .loading-container,
    .error-container {
        padding: 2rem 1rem;
    }
}

/* 页面内容样式 */
.page-content {
    width: 100%;
    height: 100%;
} 

/* 管理员页面样式 */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

.admin-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 管理员登录样式 */
.admin-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    margin: 0 0 1.5rem 0;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-card h2 i {
    color: #667eea;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admin-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

/* 管理员面板样式 */
.admin-panel {
    display: grid;
    gap: 2rem;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-section .section-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section .section-header h2 i {
    color: #667eea;
}

.refresh-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: #f8f9fa;
    transform: rotate(180deg);
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* 状态网格 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.status-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.status-info p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

/* 列表容器 */
.sessions-container,
.share-cache-container,
.users-container,
.logs-container {
    position: relative;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.loading-indicator p {
    margin: 0;
    font-size: 1rem;
}

/* 会话列表 */
.sessions-list,
.share-cache-list,
.users-list,
.logs-list {
    display: grid;
    gap: 1rem;
}

.session-item,
.cache-item,
.user-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-header,
.cache-header,
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.session-header h4,
.cache-header h4,
.user-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.session-status,
.cache-status,
.user-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.session-status.active,
.cache-status.active,
.user-status.active {
    background: #d4edda;
    color: #155724;
}

.session-status.logged-out {
    background: #fff3cd;
    color: #856404;
}

.session-status.expired,
.session-status.inactive,
.cache-status.expired,
.user-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.session-status.unknown {
    background: #e2e3e5;
    color: #383d41;
}

.session-details,
.cache-details,
.user-details {
    font-size: 0.9rem;
    color: #6c757d;
}

.session-details p,
.cache-details p,
.user-details p {
    margin: 0.25rem 0;
}

.session-actions,
.cache-actions,
.user-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 日志列表 */
.log-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

/* 访问统计日志特殊样式 */
.log-item.access-stats {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.log-item.access-stats .log-message {
    color: #3498db;
    font-weight: 500;
}

.log-item.access-stats .log-details {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.log-level {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.log-level.error {
    background: #f8d7da;
    color: #721c24;
}

.log-level.warning {
    background: #fff3cd;
    color: #856404;
}

.log-level.info {
    background: #d1ecf1;
    color: #0c5460;
}

.log-level.debug {
    background: #e2e3e5;
    color: #383d41;
}

.log-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.log-message {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.5rem;
}

.log-details {
    font-size: 0.8rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-data p {
    margin: 0;
    font-size: 1rem;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    .admin-header {
        padding: 1.5rem;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .session-item,
    .cache-item,
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .session-actions,
    .cache-actions,
    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .refresh-btn,
    .clear-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 会员系统样式 */
.member-mode-container {
    padding: 1rem;
}

.member-mode-status h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-toggle span {
    font-weight: 500;
    color: #333;
}

.toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.member-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.member-stats .stat-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.member-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* 兑换码管理样式 */
.codes-container,
.members-container {
    max-height: 400px;
    overflow-y: auto;
}

.code-item,
.member-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.code-info,
.member-info {
    flex: 1;
}

.code-header,
.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.code-header h4,
.member-header h4 {
    margin: 0;
    color: white;
    font-size: 1rem;
}

.code-status,
.member-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.code-status.unused,
.member-status.active {
    background: #d4edda;
    color: #155724;
}

.code-status.used,
.member-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.code-details,
.member-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.code-details p,
.member-details p {
    margin: 0.25rem 0;
}

.code-actions,
.member-actions {
    margin-left: 1rem;
}

.create-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .code-item,
    .member-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .code-actions,
    .member-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .member-stats {
        grid-template-columns: 1fr;
    }
}

/* 兑换页面样式 */
.redeem-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    position: relative;
}

.redeem-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.redeem-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.redeem-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.redeem-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.redeem-form h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.redeem-form .form-group {
    margin-bottom: 20px;
}

.redeem-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
}

.redeem-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.redeem-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.redeem-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.redeem-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.redeem-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.redeem-info h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redeem-info ul {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
}

.redeem-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.redeem-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.status-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.status-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.status-content p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #00ff88;
}

.notification.error {
    border-left: 4px solid #ff4757;
}

.notification.info {
    border-left: 4px solid #667eea;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #00ff88;
}

.notification.error i {
    color: #ff4757;
}

.notification.info i {
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .redeem-container {
        padding: 15px;
    }
    
    .redeem-header h1 {
        font-size: 2rem;
    }
    
    .redeem-card {
        padding: 30px 20px;
    }
    
    .redeem-form h2 {
        font-size: 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

