/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f3e8 0%, #e8dcc0 100%);
    color: #333;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.app-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* 头部样式 - 固定高度 */
.header {
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 1.5vh 3vw;
    position: relative;
    height: 20vh;
    flex-shrink: 0;
}

.header h1 {
    font-size: 5vh;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0;
}

.header-logo {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 24vh;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 辩论赛主题样式 */
.debate-theme {
    text-align: center;
    margin-bottom: 2vh;
}

.theme-text {
    background: linear-gradient(135deg, #f0c674 0%, #e8b653 100%);
    color: #2c3e50;
    padding: 3vh 6vw;
    border-radius: 30px;
    font-size: 3.5vh;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #d4af37;
}

/* 队伍信息样式 - 按比例分配高度 */
.team-info {
    display: grid;
    grid-template-columns: 1fr 35vw 1fr;
    gap: 1.5vw;
    align-items: stretch;
    height: 48vh;
    flex-shrink: 0;
    margin: 0 1.5vw 1vh 1.5vw;
}

.team-section {
    text-align: center;
    padding: 4vh 3vw;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-section.positive {
    background: 
        linear-gradient(135deg, rgba(116, 185, 255, 0.85) 0%, rgba(9, 132, 227, 0.85) 100%),
        url('./images/debator-zheng.png');
    background-size: auto 120%, cover;
    background-position: left center, center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    max-height: 48vh;
}

.team-section.positive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.6) 0%, rgba(9, 132, 227, 0.6) 100%);
    z-index: 1;
}

.team-section.negative {
    background: 
        linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%),
        url('./images/debator-fan.png');
    background-size: auto 120%, cover;
    background-position: right center, center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    max-height: 48vh;
}

.team-section.negative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.6) 0%, rgba(192, 57, 43, 0.6) 100%);
    z-index: 1;
}

.team-section h2 {
    font-size: 2.5vh;
    margin-bottom: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* 队伍标题和名称的容器 */
.team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    margin-bottom: 2vh;
    position: relative;
    z-index: 2;
}

.team-name {
    font-size: 2.2vh;
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.6);
}

.team-stance {
    font-size: 4.5vh;
    font-weight: 600;
    opacity: 1;
    position: relative;
    z-index: 2;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* 团队信息中间的当前阶段样式 */
.team-info .current-stage-center {
    align-items: center;
    justify-content: center;
    text-align: center;
    max-height: 48vh;
}

.team-info .stage-name-center {
    font-size: 4.5vh;
    font-weight: 700;
    color: #2c3e50;
    background: #ffffff;
    margin-top: 2vh;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5vh 3vw;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 18vh;
}

/* 原独立当前阶段样式 - 隐藏不用 */
.current-stage {
    display: none;
}

/* 计时器容器样式 - 自适应剩余高度 */
.timer-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1vh 0;
    min-height: 0;
    padding: 0 1.5vw;
}

/* 双方计时样式 */
.dual-timer {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    width: 100%;
    height: 100%;
}

.timer-side {
    flex: 1;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #f39c12;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timer-side.positive {
    background: #ffffff;
    color: #2c3e50;
    border-top: 4px solid #74b9ff;
}

.timer-side.negative {
    background: #ffffff;
    color: #2c3e50;
    border-top: 4px solid #e74c3c;
}

.timer-label {
    font-size: 4.5vh;
    font-weight: 600;
    margin-bottom: 2.5vh;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}

.timer-display {
    font-size: 14vh;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', 'Consolas', monospace;
    line-height: 1;
    margin-bottom: 2vh;
    letter-spacing: -0.03em;
}

.timer-status {
    display: none;
}

/* 单方计时样式 */
.single-timer {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.single-timer-display {
    text-align: center;
    padding: 4vh 3vw;
    border-radius: 16px;
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 45vw;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #f39c12;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-timer-display .timer-display {
    font-size: 16vh;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2.5vh;
}

/* 控制按钮样式 */
.controls {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin: 0.5vh 0 0.5vh 0;
    flex-wrap: wrap;
    flex-shrink: 0;
    height: 8vh;
    align-items: center;
}

.control-btn {
    padding: 1.8vh 3vw;
    border: none;
    border-radius: 8px;
    font-size: 2.5vh;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 14vw;
    height: 6vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.control-btn.primary {
    background: #f39c12;
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.control-btn.primary:hover:not(:disabled) {
    background: #e67e22;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.control-btn.secondary {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.control-btn.secondary:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 阶段时间配置样式 - 底部菜单栏固定高度 */
.stage-time-config {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2vh 3vw;
    margin: 0 1.5vw 1vh 1.5vw;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(240, 198, 116, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3vw;
    height: 12vh;
    flex-shrink: 0;
}

.stage-time-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-time-right {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    align-items: flex-end;
    justify-content: center;
}

.stage-time-label {
    font-size: 2.2vh;
    font-weight: 600;
    margin-bottom: 1vh;
    color: #2c3e50;
}

.stage-time-inputs {
    display: flex;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

.time-input-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 2vh;
}

.time-input-group input {
    width: 8vw;
    padding: 1.2vh 1.5vw;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 2vh;
    text-align: center;
    background: #ffffff;
    transition: all 0.2s ease;
}

.time-input-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.15);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.setting-item label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 2vh;
}

.setting-item input[type="checkbox"] {
    width: 2.5vh;
    height: 2.5vh;
    margin-right: 1vw;
}

/* 活动状态样式 - 增强显著性 */
.timer-side.active {
    transform: scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid rgba(255, 255, 255, 0.9);
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
}

/* 正方活动状态的专属颜色 */
.timer-side.positive.active {
    border-top-color: #74b9ff;
    border-top-width: 6px;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
    animation: activeGlowBlue 2s ease-in-out infinite alternate;
}

@keyframes activeGlowBlue {
    0% {
        box-shadow: 
            0 0 0 2px rgba(116, 185, 255, 0.2),
            0 4px 12px rgba(0, 0, 0, 0.08);
    }
    100% {
        box-shadow: 
            0 0 0 4px rgba(116, 185, 255, 0.3),
            0 6px 20px rgba(0, 0, 0, 0.12);
    }
}

/* 反方活动状态的专属颜色 */
.timer-side.negative.active {
    border-top-color: #e74c3c;
    border-top-width: 6px;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    animation: activeGlowRed 2s ease-in-out infinite alternate;
}

@keyframes activeGlowRed {
    0% {
        box-shadow: 
            0 0 0 2px rgba(231, 76, 60, 0.2),
            0 4px 12px rgba(0, 0, 0, 0.08);
    }
    100% {
        box-shadow: 
            0 0 0 4px rgba(231, 76, 60, 0.3),
            0 6px 20px rgba(0, 0, 0, 0.12);
    }
}

/* 让非活动的计时器稍微暗一些，形成对比 */
.dual-timer .timer-side:not(.active):not(.completed) {
    opacity: 0.75;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

/* 活动计时器的文字增强 */
.timer-side.active .timer-display {
    font-weight: 700;
    color: #1a1a1a;
}

/* .timer-status is now hidden for projection mode */

.timer-side.warning {
    animation: pulse 1s infinite;
}

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

/* 时间不足警告样式 */
.timer-side.danger .timer-display {
    color: #e74c3c;
    animation: blink 1s infinite;
}

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

/* 已完成状态样式 */
.timer-side.completed {
    opacity: 0.6;
    background: #f8f9fa;
    border-left-color: #95a5a6;
}

.timer-side.completed .timer-display {
    color: #6b7280;
}

/* .timer-status is now hidden for projection mode */

/* 响应式设计 */
/* 移动端响应式样式已移除，专注于桌面/投影使用 */


/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .header {
        background: transparent;
    }
    
    .header h1 {
        color: #ecf0f1;
    }
    
    .timer-side, .single-timer-display, .team-info .current-stage-center, .stage-time-config {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .timer-display {
        color: #f9fafb !important;
    }
    
    .timer-label {
        color: #d1d5db !important;
    }
    
    /* .timer-status is now hidden for projection mode */
    
    .team-info .stage-name-center {
        color: #f9fafb !important;
    }
}

/* 设置界面样式 */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 0;
}

.settings-container {
    background: #ffffff;
    border-radius: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    box-shadow: none;
    animation: slideIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0;
    flex-shrink: 0;
}

.settings-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.settings-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.settings-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.settings-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-icon {
    font-size: 14px;
    margin-right: 10px;
    background: #e5e7eb;
    padding: 6px;
    border-radius: 4px;
    color: #6b7280;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.section-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 主题设置样式 */
.theme-setting {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 队伍设置样式 */
.team-settings {
    display: flex;
    gap: 20px;
}

.team-setting-group {
    flex: 1;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.team-setting-group.positive-team {
    border-top: 3px solid #3b82f6;
}

.team-setting-group.negative-team {
    border-top: 3px solid #ef4444;
}

.team-setting-group h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 阶段设置样式 */
.stages-list {
    margin-bottom: 16px;
}

.stage-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #f59e0b;
}

.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.stage-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 12px;
}

.stage-type-controls {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.type-radio {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #374151;
}

.stage-time-settings {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.time-setting {
    flex: 1;
}

.time-setting label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.time-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}







/* 紧凑布局样式 */
.stage-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.stage-name-input-compact {
    flex: 1;
    max-width: 160px;
    padding: 6px 10px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 0.9rem;
}

.stage-name-input-compact:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.stage-type-controls-compact {
    display: flex;
    gap: 8px;
    min-width: 120px;
}

.type-radio-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #34495e;
    white-space: nowrap;
}

.type-radio-compact input[type="radio"] {
    margin: 0;
}

.stage-time-settings-inline {
    display: flex;
    gap: 12px;
    flex: 1;
}

.time-setting-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.time-setting-compact label {
    font-size: 0.8rem;
    color: #34495e;
    font-weight: 500;
    white-space: nowrap;
}

.time-input-compact {
    width: 65px;
    padding: 4px 6px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.time-input-compact:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 3px rgba(243, 156, 18, 0.3);
}

.time-setting-compact span {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* 内联控制按钮样式 */
.stage-controls-inline {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.move-btn-compact, .delete-btn-compact, .add-btn-compact {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    min-width: 20px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.move-btn-compact:hover:not(:disabled) {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.delete-btn-compact {
    background: #e74c3c;
}

.delete-btn-compact:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
}

.add-btn-compact {
    background: #10b981;
}

.add-btn-compact:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.move-btn-compact:disabled, .delete-btn-compact:disabled, .add-btn-compact:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 提醒设置样式 */
.reminder-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-item {
    display: flex;
    align-items: center;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.reminder-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.reminder-item label {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

/* 导入导出样式 */
.import-export-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.settings-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.settings-action-btn.import-btn {
    background: #3b82f6;
    color: white;
}

.settings-action-btn.export-btn {
    background: #6b7280;
    color: white;
}

.settings-action-btn.primary-btn {
    background: #f59e0b;
    color: white;
}

.settings-action-btn.secondary-btn {
    background: #10b981;
    color: white;
}

.settings-action-btn:hover {
    opacity: 0.9;
}

.settings-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 16px;
    background: #f9fafb;
    border-radius: 0;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-modal {
        padding: 10px;
    }
    
    .settings-container {
        margin: 10px auto;
    }
    
    .settings-header, .settings-section, .settings-footer {
        padding: 15px 20px;
    }
    
    .theme-text {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .team-settings {
        flex-direction: column;
        gap: 20px;
    }
    
    .stage-time-settings {
        flex-direction: column;
        gap: 15px;
    }
    
    .import-export-controls {
        flex-direction: column;
    }
    
    .settings-footer {
        flex-direction: column;
    }
    
    /* 紧凑布局的响应式样式 */
    .stage-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .stage-name-input-compact {
        max-width: none;
        margin-bottom: 8px;
    }
    
    .stage-type-controls-compact {
        justify-content: center;
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .stage-time-settings-inline {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .time-setting-compact {
        min-width: 100px;
    }
    
    .stage-controls-inline {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }
}

/* 背景图片优化样式 */
.team-section.positive, .team-section.negative {
    background-blend-mode: overlay;
    transition: all 0.3s ease;
}

.team-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-section:hover::before {
    opacity: 0.8;
} 