* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color: #f0f0f0;
            color: #333;
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px;
        }
        
        .tabs {
            display: flex;
            background-color: #1e3a8a;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
        }
        
        .tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
            font-weight: bold;
        }
        
        .tab.active {
            background-color: #2563eb;
        }
        
        .tab-content {
            display: none;
            background-color: white;
            border-radius: 0 0 8px 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* 创建比赛表单样式 */
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        input, select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        button {
            background-color: #2563eb;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        button:hover {
            background-color: #1e40af;
        }
        
        /* 计分牌样式 */
        .scoreboard {
            display: flex;
            flex-direction: column;
            margin-top: 10px;
        }
        
        .game-info {
            text-align: center;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .game-info h2 {
            font-size: 24px;
            margin-bottom: 5px;
            margin-right: 10px;
        }
        
        .game-info .game-time {
            font-size: 18px;
            color: #666;
        }
        
        .teams {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        
        .team {
            flex: 1;
            text-align: center;
            padding: 0 10px;
        }
        
        .team-name {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .score-display {
            font-size: 60px;
            font-weight: bold;
            background-color: #000;
            color: #ff0;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            text-align: center;
        }
        
        .score-controls {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .score-btn {
            width: 45px;
            height: 45px;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .add-1 { background-color: #22c55e; }
        .add-2 { background-color: #3b82f6; }
        .add-3 { background-color: #8b5cf6; }
        .subtract { background-color: #ef4444; }
        
        /* 历史记录表格样式 */
        .history-list {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        
        .history-list th, .history-list td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
        }
        
        .history-list th {
            background-color: #f2f2f2;
        }
        
        .history-list tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        /* 全屏模式 */
        .fullscreen-btn {
            background-color: #2563eb;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            margin-left: 10px;
        }
        
        .fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            z-index: 999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 20px;
        }
        
        .fullscreen .game-info {
            color: white;
            font-size: 32px;
            position: absolute;
            top: 20px;
            left: 0;
            width: 100%;
            text-align: center;
        }
        
        .fullscreen .game-info h2 {
            color: white;
            font-size: 24px;
            margin: 0 auto;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 80%;
        }
        
        .fullscreen .team-name {
            color: white;
            font-size: 28px;
        }
        
        .fullscreen .score-display {
            font-size: 120px;
            margin: 20px 0;
            position: relative;
        }
        
        /* 添加这个新样式用于分数之间的冒号 */
        .score-separator {
            font-size: 120px;
            color: #ff0;
            margin: 0 20px;
            align-self: center;
            display: none; /* 默认隐藏 */
            }
            
        .fullscreen-score-controls {
            position: absolute;
            display: flex;
            width: 100%;
            justify-content: space-between;
            left: 0;
            padding: 0 10px;
        }
        
        .fullscreen-score-btn {
            width: 40px;
            height: 40px;
            font-size: 24px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.3);
            color: rgba(80, 80, 80, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
        }
        
        .fullscreen .exit-fullscreen {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1010;
            background-color: rgba(0, 0, 0, 0.3);
            color: gray;
        }
        
        /* 比分历史记录 */
        .score-history {
            margin-top: 20px;
            max-height: 150px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 10px;
        }
        
        .score-history-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #eee;
        }
        
        .score-history-item:last-child {
            border-bottom: none;
        }
        
        /* 详情弹窗 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            width: 90%;
            max-width: 600px;
            padding: 20px;
            border-radius: 8px;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .close {
            float: right;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* 媒体查询 - 横屏优化 */
        @media (orientation: landscape) {
            .teams {
                flex-direction: row;
            }
            
            .team {
                padding: 0 20px;
            }
            
            .score-display {
                font-size: 80px;
            }
            .fullscreen-score-controls {
            max-height: 100px; /* 限制高度 */
        }
            .fullscreen .score-display {
                font-size: 150px;
            }
            
            .fullscreen .score-separator {
                display: block;
            }
            
            .fullscreen .teams {
                margin-top: 60px;
                flex-direction: row;
                align-items: center;
                justify-content: center;
            }
            
            .fullscreen .exit-fullscreen {
                position: fixed; /* 使用fixed定位确保总是可见 */
                top: 20px;
                right: 20px;
                z-index: 1010; /* 确保在最上层 */
                padding: 10px 15px;
                font-size: 16px;
            }
        }
        
        /* 媒体查询 - 非横屏优化 */
        @media (orientation: portrait) {
            .teams {
                flex-direction: column;
            }
            
            .team {
                width: 100%;
                padding: 10px 0;
            }
            
            .team-name {
                font-size: 18px;
            }
            
            .score-display {
                font-size: 48px;
            }
            
            .fullscreen .score-display {
                font-size: 80px;
            }
            
            .fullscreen .teams {
                margin-top: 60px;
            }
        }