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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: rgb(0, 120, 215);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 页面头部样式 */
.page-header {
    background: rgb(0, 120, 215);
    border-bottom: 2px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px 20px;
    min-height: 80px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title-container {
    flex: 1;
    text-align: center;
}

.time-container {
    flex-shrink: 0;
    text-align: right;
    color: #fff;
}

.current-time {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    margin-bottom: 3px;
}

.current-date {
    font-size: 14px;
    font-weight: 400;
    color: #ccc;
    font-family: 'Roboto', sans-serif;
}


/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.info {
    background-color: #2196f3;
}

.notification.error {
    background-color: #f44336;
}

.notification.success {
    background-color: #4caf50;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: #ff6b6b;
    margin: 5px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.poker-timer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr auto auto;
    min-height: calc(100vh - 180px);
    padding: 10px;
    gap: 8px;
    margin-bottom: 20px;
}

/* 左侧面板 */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* 信息卡片 */
.info-card {
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.info-label {
    font-size: 18px;
    color: #000000;
    margin-bottom: 5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.info-label-en {
    font-size: 16px;
    color: #666666;
    margin-bottom: 8px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.info-value {
    font-size: 42px;
    font-weight: 700;
    color: #00aa55;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    font-family: 'Roboto Mono', 'Inter', monospace;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* 中央面板 */
.center-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* 计时器显示 */
.timer-display {
    text-align: center;
    background: #ffffff;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.timer-time {
    font-size: 88px;
    font-weight: 700;
    color: #00aa55;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    font-family: 'Roboto Mono', 'Inter', monospace;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.timer-status {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

/* 盲注信息 */
.blind-info {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.blind-card {
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blind-label {
    font-size: 18px;
    color: #000000;
    margin-bottom: 6px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.blind-value {
    font-size: 32px;
    font-weight: 700;
    color: #cc9900;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-family: 'Roboto Mono', 'Inter', monospace;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}


.controls {
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

#startBtn {
    background: linear-gradient(145deg, #00ff88, #00cc6a);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

#startBtn:hover:not(:disabled) {
    background: linear-gradient(145deg, #00cc6a, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

#pauseBtn {
    background: linear-gradient(145deg, #ff6b6b, #ff5252);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#pauseBtn:hover:not(:disabled) {
    background: linear-gradient(145deg, #ff5252, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#resetBtn {
    background: linear-gradient(145deg, #ff9800, #ff8f00);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

#resetBtn:hover:not(:disabled) {
    background: linear-gradient(145deg, #ff8f00, #ff6f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

#nextBtn {
    background: linear-gradient(145deg, #2196f3, #1976d2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

#nextBtn:hover:not(:disabled) {
    background: linear-gradient(145deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}




/* 响应式设计 */
@media (max-width: 1200px) {
    .header-content {
        padding: 0 15px;
        gap: 15px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .page-subtitle {
        font-size: 10px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .poker-timer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
    }
    
    .left-panel, .right-panel {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .blind-info {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-time {
        font-size: 88px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .title-container {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .page-subtitle {
        font-size: 8px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .time-container {
        text-align: right;
    }
    
    .current-time {
        font-size: 18px;
    }
    
    .current-date {
        font-size: 10px;
    }
    
    .poker-timer {
        padding: 10px;
        gap: 15px;
    }
    
    .timer-time {
        font-size: 78px;
    }
    
    .info-value {
        font-size: 42px;
    }
    
    .blind-value {
        font-size: 34px;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    button {
        width: 100%;
    }
    
}

@media (max-width: 480px) {
    .timer-time {
        font-size: 58px;
    }
    
    .info-value {
        font-size: 38px;
    }
    
    .blind-value {
        font-size: 32px;
    }
    
    .timer-display {
        padding: 20px;
        min-width: 250px;
    }
    
    .blind-card {
        min-width: 150px;
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-time.running {
    animation: pulse 2s infinite;
}

/* 状态指示器 */
.status-running {
    color: #00ff88 !important;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6) !important;
}

.status-paused {
    color: #ff6b6b !important;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.6) !important;
}

.status-break {
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
}

/* 休息时间弹框样式 */
.break-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.break-modal-content {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border: 2px solid #444;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: breakModalAppear 0.5s ease-out;
}

@keyframes breakModalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.break-header {
    margin-bottom: 30px;
}

.break-header h2 {
    color: #cc9900;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.break-icon {
    font-size: 3em;
    margin: 10px 0;
    animation: breakIconPulse 2s infinite;
}

@keyframes breakIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.break-timer {
    margin: 30px 0;
}

.break-time-display {
    font-size: 4em;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 20px;
    font-family: 'Roboto Mono', 'Inter', monospace;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.break-progress {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.break-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd700);
    width: 0%;
    transition: width 1s ease;
    border-radius: 4px;
}

.break-message {
    margin: 30px 0;
    color: #ccc;
}

.break-message p {
    margin: 10px 0;
    font-size: 1.2em;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.break-next-level {
    color: #4caf50 !important;
    font-weight: bold;
}

.break-actions {
    margin-top: 30px;
}

.break-actions .btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.break-actions .btn:hover {
    background: linear-gradient(145deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* 计时器控制按钮样式 */
.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.timer-controls .btn {
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timer-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.timer-controls .btn-primary {
    background: linear-gradient(145deg, #4caf50, #45a049);
    color: white;
}

.timer-controls .btn-primary:hover {
    background: linear-gradient(145deg, #45a049, #3d8b40);
}

.timer-controls .btn-secondary {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: white;
}

.timer-controls .btn-secondary:hover {
    background: linear-gradient(145deg, #f57c00, #ef6c00);
}

.timer-controls .btn-warning {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    color: white;
}

.timer-controls .btn-warning:hover {
    background: linear-gradient(145deg, #d32f2f, #c62828);
}

.timer-controls .btn-info {
    background: linear-gradient(145deg, #2196f3, #1976d2);
    color: white;
}

.timer-controls .btn-info:hover {
    background: linear-gradient(145deg, #1976d2, #1565c0);
}

/* 编辑控件样式 */
.edit-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.edit-controls input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-family: 'Roboto Mono', 'Inter', monospace;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.edit-controls input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.edit-btn, .save-btn, .cancel-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #555;
    color: #fff;
}

.edit-btn:hover {
    background: #666;
    transform: scale(1.1);
}

.save-btn {
    background: #4caf50;
    color: #fff;
}

.save-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

.cancel-btn {
    background: #f44336;
    color: #fff;
}

.cancel-btn:hover {
    background: #da190b;
    transform: scale(1.1);
}


/* 右下角控制区域 */
.bottom-control-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.control-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-family: 'Inter', sans-serif;
}

.control-icon-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.control-icon-btn .icon {
    font-size: 12px;
}

/* 配置盲注结构按钮 */
.config-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.config-btn:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* 人数控制按钮 */
.player-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.player-btn:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

/* 控制面板按钮 */
.panel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.panel-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 可折叠控制面板 */
.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #3498db;
    border-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.control-panel.collapsed {
    height: 0;
    padding: 0;
    border: none;
    border-radius: 20px;
}

.control-panel.expanded {
    height: auto;
    padding: 20px;
}

.control-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
}

.control-panel-header h3 {
    color: #ecf0f1;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.close-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

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

.control-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:not(:disabled):active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
    line-height: 1;
}

.btn-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.start-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.pause-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.pause-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.reset-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.reset-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.next-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.control-info {
    text-align: center;
}

.shortcut-hint {
    color: #bdc3c7;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.shortcut-hint span {
    background: rgba(52, 73, 94, 0.8);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid #34495e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bottom-controls {
        padding: 10px 15px;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        padding: 10px 15px;
        min-width: 70px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .btn-text {
        font-size: 11px;
    }
    
    .shortcut-hint {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .control-buttons {
        gap: 8px;
    }
    
    .control-btn {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .btn-text {
        font-size: 10px;
    }
}