/* 计数器样式 */
.counter-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.counter-container {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* 记分牌样式的显示器 */
.counter-display {
    background-color: #222;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

#counter-digits {
    display: flex;
    justify-content: center;
    perspective: 500px;
}

.digit-group {
    position: relative;
    margin: 0 2px;
    perspective: 300px;
}

.digit {
    width: 60px;
    height: 100px;
    background-color: #111;
    color: #f8f8f8;
    font-size: 4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.digit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
}



/* 控制按钮样式 */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.control-btn {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#incrementBtn {
    background-color: #28a745;
}

#incrementBtn:hover {
    background-color: #218838;
}

#decrementBtn {
    background-color: #dc3545;
}

#decrementBtn:hover {
    background-color: #c82333;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

/* 指导卡片样式 */
.instruction-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.instruction-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.instruction-card ul {
    padding-left: 20px;
}

.instruction-card li {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .digit {
        width: 40px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .digit {
        width: 30px;
        height: 50px;
        font-size: 2rem;
    }
    
    .controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
