:root {
            --red-light: #df2027;
            --red-dark: #960e14;
            --bg-dark: #010101;
            --card-bg: #1a1a1a;
            --card-light: #252525;
            --text-light: #ffffff;
            --text-gray: #b3b3b3;
            --win-green: #4CAF50;
            --lose-red: #F44336;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
        }

        body {
            background:
                radial-gradient(circle at 10% 20%, rgba(223, 32, 39, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(150, 14, 20, 0.1) 0%, transparent 20%),
                var(--bg-dark);
            color: var(--text-light);
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* 羽毛球场网格背景 */
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -1;
            opacity: 0.3;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        /* 头部导航 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            margin-bottom: 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-icon {
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-icon i {
            font-size: 28px;
            color: white;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-light);
            text-transform: uppercase;
        }

        .nav-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .tab {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            border: 1px solid transparent;
        }

        .tab:hover, .tab.active {
            background: var(--red-light);
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(223, 32, 39, 0.3);
        }

        /* 内容容器 */
        .content-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 50px;
        }

        /* 通用卡片样式 */
        .card {
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            width: 100%;
        }

        .card-header {
            background: linear-gradient(to right, var(--red-dark), var(--red-light));
            color: var(--text-light);
            padding: 16px 25px;
            font-size: 20px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .card-body {
            padding: 25px;
            width: 100%;
            overflow-x: auto;
        }

        /* 运动员照片 */
        .player-photo {
            width: 160px;
            height: 220px;
            border-radius: 10px;
            background: linear-gradient(45deg, #252525, #333333);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            border: 2px solid var(--red-light);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }

        .player-photo i {
            font-size: 60px;
            color: rgba(255, 255, 255, 0.1);
        }

        /* 双打搭档信息 */
        .doubles-container {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 40px;
            align-items: center;
            padding: 20px 0;
        }

        .partner-section {
            text-align: center;
        }

        .partners {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 25px 0;
        }

        .partner-info {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .player-name {
            font-size: 22px;
            font-weight: 700;
            margin: 15px 0 5px;
        }

        .partner-stats {
            background: var(--card-light);
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
        }

        .partner-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .vs-section {
            font-size: 32px;
            font-weight: 800;
            color: var(--text-light);
            background: var(--red-light);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 双打比赛直播 */
        .match-teams {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 40px;
            padding: 30px 0;
        }

        .team {
            text-align: center;
        }

        .team-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-light);
        }

        .team-players {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 20px 0;
        }

        .player-small {
            width: 140px;
            height: 190px;
        }

        .player-name-small {
            font-size: 18px;
            font-weight: 600;
            margin-top: 10px;
        }

        .live-score {
            font-size: 72px;
            font-weight: 800;
            color: var(--text-light);
            text-align: center;
            margin: 30px 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .prediction-section {
            background: var(--card-light);
            border-radius: 12px;
            padding: 25px;
            margin-top: 20px;
            border-left: 4px solid var(--red-light);
        }

        .prediction-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .prediction-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-light);
        }

        .prediction-value {
            background: var(--red-light);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: 600;
        }

        .vote-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 25px;
        }

        .vote-option {
            text-align: center;
            background: var(--card-bg);
            padding: 20px;
            border-radius: 12px;
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .vote-option:hover {
            transform: translateY(-5px);
            border-color: var(--red-light);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }

        .vote-percentage {
            height: 25px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            margin-top: 15px;
            overflow: hidden;
            position: relative;
        }

        .vote-fill {
            height: 100%;
            background: var(--red-light);
            border-radius: 12px;
            transition: width 1s ease;
        }

        /* 表格样式 */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-width: 800px;
        }

        .data-table th {
            background: linear-gradient(to right, var(--red-dark), var(--red-light));
            color: var(--text-light);
            padding: 16px;
            text-align: left;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 14px;
        }

        .data-table td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .data-table tr:nth-child(even) {
            background: rgba(30, 30, 30, 0.5);
        }

        .data-table tr:hover {
            background: rgba(223, 32, 39, 0.1);
        }

        .win {
            color: var(--win-green);
            font-weight: 600;
        }

        .lose {
            color: var(--lose-red);
            font-weight: 600;
        }

        /* 积分排名样式 */
        .ranking-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            min-width: 900px;
        }

        .ranking-table th {
            background: linear-gradient(to right, var(--red-dark), var(--red-light));
            color: var(--text-light);
            padding: 16px;
            text-align: left;
            font-weight: 600;
        }

        .ranking-table td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .ranking-table tr:nth-child(1) {
            background: rgba(255, 215, 0, 0.1);
        }

        .ranking-table tr:nth-child(2) {
            background: rgba(192, 192, 192, 0.1);
        }

        .ranking-table tr:nth-child(3) {
            background: rgba(205, 127, 50, 0.1);
        }

        .ranking-table tr:hover {
            background: rgba(223, 32, 39, 0.1);
        }

        /* 动画效果 */
        @keyframes float {
            0% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
            100% { transform: translateY(0) rotate(0deg); }
        }

        .shuttlecock {
            position: absolute;
            width: 40px;
            height: 40px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="25" fill="white" opacity="0.7"/><path d="M50,55 L30,95 L70,95 Z" fill="%23df2027" opacity="0.7"/></svg>');
            background-size: contain;
            z-index: -1;
            opacity: 0.4;
            animation: float 8s infinite ease-in-out;
        }

        .shuttlecock-1 { top: 10%; left: 5%; animation-delay: 0s; }
        .shuttlecock-2 { top: 25%; right: 7%; animation-delay: 2s; }
        .shuttlecock-3 { bottom: 15%; left: 10%; animation-delay: 4s; }

        /* 页脚 */
        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: var(--text-gray);
            font-size: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* 新增：瀑布流布局 */
        .tournament-masonry {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }

        .tournament-card {
            background: var(--card-light);
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tournament-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .tournament-cover {
            width: 100%;
            height: 180px;
            background: linear-gradient(45deg, var(--red-dark), var(--red-light));
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .tournament-cover i {
            font-size: 60px;
            color: rgba(255, 255, 255, 0.7);
        }

        .tournament-info {
            padding: 20px;
        }

        .tournament-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text-light);
        }

        .tournament-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 15px;
        }

        .tournament-meta-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-gray);
            font-size: 14px;
        }

        .tournament-meta-item i {
            width: 16px;
            text-align: center;
        }

        .tournament-requirements {
            background: rgba(255, 255, 255, 0.05);
            padding: 12px;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 14px;
            color: var(--text-gray);
        }

        .tournament-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--red-light);
            color: white;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-light);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        /* 新增：模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: 16px;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-header {
            background: linear-gradient(to right, var(--red-dark), var(--red-light));
            color: var(--text-light);
            padding: 20px;
            font-size: 20px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-body {
            padding: 25px;
        }

        .qr-code-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        .qr-code {
            width: 200px;
            height: 200px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: black;
            font-weight: 700;
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--text-gray);
        }

        .loading i {
            font-size: 24px;
            margin-right: 10px;
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .doubles-container, .match-teams {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .vs-section {
                margin: 0 auto;
            }
        }

        @media (max-width: 992px) {
            .header {
                flex-direction: column;
                gap: 20px;
            }

            .nav-tabs {
                justify-content: center;
            }

            .team-players {
                flex-wrap: wrap;
            }

            .partner-stats-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .player-photo {
                width: 140px;
                height: 190px;
            }

            .player-small {
                width: 120px;
                height: 170px;
            }

            .live-score {
                font-size: 56px;
            }

            .vote-container {
                grid-template-columns: 1fr;
            }

            .tab {
                padding: 8px 15px;
                font-size: 14px;
            }

            .tournament-masonry {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .player-photo {
                width: 120px;
                height: 170px;
            }

            .player-small {
                width: 100px;
                height: 150px;
            }

            .partners {
                flex-direction: column;
            }

            .partner-stats-grid {
                grid-template-columns: 1fr;
            }

            .live-score {
                font-size: 42px;
            }

            .tournament-actions {
                flex-direction: column;
                gap: 10px;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* 页面切换 */
        .page {
            display: none;
        }

        .page.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }