﻿/* 鍏ㄥ眬鏍峰紡 */
* {
    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-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 15px;
    }
    
    .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: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 12px;
        margin-bottom: 0;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .stat-info h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .stat-info p {
        font-size: 16px;
        margin: 0;
    }

    /* 绉诲姩绔〃鏍奸€傞厤 */
    .matches-table-container {
        margin: 10px 0;
        width: 100%;
    }

    .matches-table {
        font-size: 10px;
        width: 100%;
    }

    .table-header {
        display: grid;
        grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.2fr;
        gap: 2px;
        padding: 6px 2px;
        font-size: 10px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 4px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .table-body {
        max-height: 50vh !important;
        /* 浣跨敤瑙嗗彛楂樺害锛岄€傚簲涓嶅悓灞忓箷 */
        overflow-y: auto !important;
        /* 淇濇寔婊氬姩鍔熻兘 */
        overflow-x: hidden !important;
        /* 闅愯棌姘村钩婊氬姩鏉?*/
        min-height: 350px !important;
        /* 璁剧疆鏈€灏忛珮搴︾‘淇濇樉绀鸿冻澶熷唴瀹?*/
        flex-grow: 1;
        /* 璁╄〃鏍间富浣撳崰鐢ㄥ墿浣欑┖闂?*/
    }

    .table-row {
        display: grid;
        grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.2fr;
        gap: 2px;
        padding: 8px 4px;
        margin-bottom: 2px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 10px;
        transition: background-color 0.2s ease;
    }
    
    .table-row:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .table-cell {
        display: flex;
        align-items: center;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        padding: 2px;
    }

    /* 绉婚櫎绉诲姩绔殑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: 15px;
    }
    
    /* 绉诲姩绔灞€琛ㄦ牸鍖哄煙鐗规畩浼樺寲 */
    .dashboard-section:last-child {
        margin-bottom: 10px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .dashboard-section:last-child .matches-table-container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .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;
}

/* 缇庡寲鐨刟vatar-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: 700;
    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-special-task {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    border: 1px solid rgba(142, 68, 173, 0.3) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.2);
    font-weight: 600;
}

.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;
    }

    /* 绉诲姩绔痑vatar-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;
    }

    /* 绉诲姩绔痳ole-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;
    }

    /* 灏忓睆骞昦vatar-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: 700;
    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);
    }
}


/* 鐢ㄦ埛鍗忚鍜岄殣绉佹斂绛栨牱寮?*/
.terms-privacy {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #ffffff;
}

.terms-text a {
    color: #4dffb8;
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
    color: #00ff9d;
}

/* 寮圭獥鏍峰紡 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Safari鍏煎鎬т慨澶?*/
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 纭繚寮圭獥鍐呭灞呬腑 */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Safari鍏煎鎬т慨澶?*/
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* 纭繚鍦╢lex瀹瑰櫒涓纭樉绀?*/
    flex-shrink: 0;
}

.modal-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

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

.modal h2 {
    margin: 0;
    color: #333;
    padding-right: 40px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body ul {
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-body ul {
    padding-left: 20px;
}

/* 寮圭獥鍝嶅簲
寮忚璁?*/
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 2.5% auto;
    }

    .modal-header {
        padding: 15px;
    }

    .modal h2 {
        font-size: 1.3rem;
        padding-right: 35px;
    }

    .close-modal {
        font-size: 24px;
        top: 12px;
        right: 15px;
    }

    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 1% auto;
        border-radius: 4px;
    }

    .modal-header {
        padding: 12px;
        border-radius: 4px 4px 0 0;
    }

    .modal h2 {
        font-size: 1.2rem;
        padding-right: 30px;
    }

    .close-modal {
        font-size: 22px;
        top: 10px;
        right: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-body h3 {
        font-size: 1.1rem;
        margin-top: 15px;
    }

    .modal-body p,
    .modal-body ul {
        font-size: 0.9rem;
    }
}/* 寮圭獥鍔?杞界姸鎬佹牱寮?*/
.modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.modal-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

.modal-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

.modal-error i {
    font-size: 24px;
    margin-bottom: 12px;
}

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

/* 缃戠珯杩愯澶╂暟鏍峰紡 */
.running-days-highlight {
    color: #00ff88;
    font-weight: 800;
    font-size: 1.4em;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #4dffb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    animation: daysPulse 3s ease-in-out infinite;
    position: relative;
    padding: 0 4px;
    border-radius: 4px;
}

/* 涓轰笉鏀寔background-clip鐨勬祻瑙堝櫒鎻愪緵澶囩敤鏍峰紡 */
@supports not (-webkit-background-clip: text) {
    .running-days-highlight {
        color: #00ff88;
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

@keyframes daysPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
    }
}/* 
澶╂暟鏍峰紡鍝嶅簲寮忎紭鍖?*/
@media (max-width: 768px) {
    .running-days-highlight {
        font-size: 1.3em;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .running-days-highlight {
        font-size: 1.2em;
        font-weight: 700;
        animation-duration: 2.5s;
    }
}/*
 瀵瑰眬璇︽儏椤甸潰鎸夐挳缁勬牱寮?*/
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.generate-image-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    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;
    font-weight: 500;
}

.generate-image-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

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

.generate-image-btn i {
    font-size: 0.8em;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .copy-btn,
    .generate-image-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    
    .copy-btn,
    .generate-image-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}/*
 鍥剧墖姘村嵃鏍峰紡 */
.image-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.watermark-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.watermark-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

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

.watermark-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.watermark-url {
    color: #00ff88;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 纭繚姘村嵃鍦ㄦ埅鍥炬椂鍙 */
.match-detail-container {
    position: relative;
}

/* 绉诲姩绔按鍗颁紭鍖?*/
@media (max-width: 768px) {
    .image-watermark {
        top: 15px;
        right: 15px;
        padding: 10px 12px;
    }
    
    .watermark-logo {
        width: 28px;
        height: 28px;
    }
    
    .watermark-title {
        font-size: 12px;
    }
    
    .watermark-url {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .image-watermark {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
    }
    
    .watermark-content {
        gap: 8px;
    }
    
    .watermark-logo {
        width: 24px;
        height: 24px;
    }
    
    .watermark-title {
        font-size: 11px;
    }
    
    .watermark-url {
        font-size: 9px;
    }
}/* 鎸夐挳绂佺敤
鐘舵€?*/
.generate-image-btn:disabled {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.generate-image-btn:disabled:hover {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    transform: none;
    box-shadow: none;
}

.copy-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.copy-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}/* 鍥剧墖鎿嶄綔寮?绐楁牱寮?*/
.image-action-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-action-dialog {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.image-action-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;
    justify-content: space-between;
}

.image-action-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-action-header .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-action-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.image-action-body {
    padding: 25px;
}

.image-preview {
    text-align: center;
    margin-bottom: 25px;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

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

.download-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-color: rgba(0, 255, 136, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #00e67a 0%, #00b35c 100%);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-color: rgba(79, 195, 247, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

.share-dropdown {
    position: relative;
}

.share-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: rgba(255, 152, 0, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.share-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    width: 100%;
    background: none;
    border: none;
    color: #333;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    margin: 4px;
}

.share-option:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.share-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.share-option:first-child i {
    color: #07c160; /* 寰俊缁?*/
}

.share-option:last-child i {
    color: #12b7f5; /* QQ钃?*/
}

/* 鍒嗕韩鎻愮ず寮圭獥鏍峰紡 */
.share-tip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.share-tip-dialog {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.share-tip-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-tip-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-tip-header .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-tip-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.share-tip-body {
    padding: 25px;
    text-align: center;
}

.share-tip-body p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.tip-actions {
    display: flex;
    justify-content: center;
}

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

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

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .image-action-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .share-menu {
        position: static;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .share-menu.show {
        display: block;
    }
}

@media (max-width: 480px) {
    .image-action-header {
        padding: 15px 20px;
    }
    
    .image-action-body {
        padding: 20px;
    }
    
    .preview-image {
        max-height: 200px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@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);
    }
}/* 鍒嗕韩鎻愮ず娑堟伅鏍峰紡
 */
.tip-message {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.tip-message br {
    margin: 5px 0;
}
/* Sa
fari iOS 鐗瑰畾淇 */
@supports (-webkit-touch-callout: none) {
    .modal {
        /* Safari iOS 寮圭獥淇 */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .modal-content {
        /* 纭繚鍦⊿afari涓纭樉绀?*/
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    .modal-body {
        /* Safari婊氬姩浼樺寲 */
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* Safari 娴忚鍣ㄧ壒瀹氫慨澶?*/
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .modal {
        /* Safari 寮圭獥灞傜骇淇 */
        z-index: 9999;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    _::-webkit-full-page-media, _:future, :root .modal-content {
        /* Safari 鍐呭鏄剧ず淇 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        isolation: isolate;
    }
}/* Safari
鐗瑰畾鐨勫脊绐楃被 */
.safari-modal {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.safari-modal .modal-content {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}/* 鐗规畩浠诲姟
浜嬩欢琛屾牱寮?*/
.special-task-event {
    background: rgba(142, 68, 173, 0.1) !important;
    border-left: 3px solid #8e44ad !important;
}

.special-task-event:hover {
    background: rgba(142, 68, 173, 0.15) !important;
}

.special-task-event .action-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}
