/* 像素五子棋样式 */
.gobang-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.board {
    display: grid;
    grid-template-columns: repeat(15, 30px);
    grid-gap: 0;
    margin: 20px auto;
    background: #dcb35c;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #5d4037;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background: #dcb35c;
}

.cell::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: #5d4037;
    top: 50%;
    left: 0;
}

.cell::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: #5d4037;
    left: 50%;
    top: 0;
}

.chess {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.black {
    background: linear-gradient(to bottom, #333, #000);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.white {
    background: linear-gradient(to bottom, #fff, #ddd);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-status {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    min-height: 25px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #1e3c72;
    color: white;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

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

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-weight: bold;
    color: #1e3c72;
}

.winning-stone {
    animation: pulse 1s infinite;
}

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

/* 隐藏按钮和工作模式 */
.hidden-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    display: none;
}

.work-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.work-screen {
    background: #f0f0f0;
    width: 90%;
    height: 80%;
    border: 1px solid #ccc;
    padding: 20px;
    font-family: 'Courier New', monospace;
    overflow: auto;
}

.work-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.work-content {
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .board {
        transform: scale(0.8);
        margin: 10px auto;
    }
    
    .gobang-container {
        margin: 10px;
        padding: 15px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
}