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

body, html {
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f0f0f0;
    overflow: hidden;
    color: #333;
}

.header {
    display: flex;
    width: 100%;
    height: 12vh;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 45%, #ffffff 50%, #8e8eff 55%, #6b6bff 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.side {
    display: flex;
    align-items: center;
    width: 45%;
    padding: 0 3vw;
}

.affirmative-side {
    justify-content: flex-start;
}

.negative-side {
    justify-content: flex-end;
}

.side-label {
    font-size: 3.5vmin;
    margin: 0 2vw;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.topic {
    font-size: 4vmin;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.vs-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 5.5vmin;
    font-weight: 900;
    color: #ffcc00;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.teams-bar {
    display: flex;
    justify-content: space-between;
    padding: 2.5vh 5vw;
    font-size: 2vmin;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2vmin;
    margin: 2vh 4vw;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-info {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.affirmative-team-info {
    align-items: flex-start;
}

.negative-team-info {
    align-items: flex-end;
}

.team-name {
    font-size: 3.5vmin;
    color: #fff;
    margin-bottom: 1vh;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.team-timer {
    font-size: 10vmin;
    font-family: "Courier New", monospace;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    transition: color 0.3s, transform 0.2s;
    opacity: 0.5;
}

.team-timer.has-time {
    opacity: 1;
}

.team-timer.active {
    color: #f1c40f;
    transform: scale(1.05);
    text-shadow: 3px 3px 15px rgba(241, 196, 15, 0.5);
}

.team-timer.timer-warning {
    color: #f39c12;
}

.team-timer.timer-danger {
    color: #e74c3c;
    animation: blink 1s infinite;
}

.team-timer.timer-ended {
    color: #ff3333;
    opacity: 1;
    text-shadow: 3px 3px 15px rgba(255, 51, 51, 0.6);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 38vh;
    padding-top: 0;
}

.main-title {
    font-size: 5.5vmin;
    color: #ffffff;
    margin-bottom: 2vh;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
    padding: 0 2vw;
}

.stage-container {
    text-align: center;
    margin-top: 0;
    padding: 0 2vw;
}

.stage-name {
    font-size: 8.5vmin;
    color: #fff;
    margin-bottom: 1vh;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

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

.controls {
    position: fixed;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5vh 2vw;
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn {
    padding: 1.5vh 2vw;
    font-size: 2vmin;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.btn:active {
    transform: scale(0.95);
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 2.5vmin;
    padding: 1.5vh 2vw;
}

.btn-start {
    background-color: #2ecc71;
}

.btn-stop {
    background-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-reset {
    background-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-fullscreen {
    background-color: #34495e;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.4);
}

.settings-link {
    position: fixed;
    right: 3vw;
    bottom: 4vh;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.8vmin;
    background: rgba(0,0,0,0.2);
    padding: 1vh 1.5vw;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.settings-link:hover, .ctrl-link:hover {
    background: rgba(0,0,0,0.4);
    color: white;
    transform: translateY(-2px);
}

.ctrl-link {
    position: fixed;
    left: 3vw;
    bottom: 4vh;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.8vmin;
    background: rgba(0,0,0,0.2);
    padding: 1vh 1.5vw;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 动态背景 */
body {
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
}

.main-title {
    color: #ffffff;
}

.teams-bar {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: bold;
}
