/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

h1 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

/* 規則按鈕樣式 */
.rules-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-button:hover {
    background: #2980b9;
}

/* 区块样式 */
.section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* 表单样式 */
.setup-form, .bidding-form, .trick-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.round-info {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.round-info p {
    margin: 5px 0;
    font-weight: bold;
}

label {
    font-weight: bold;
    color: #2c3e50;
}

select, input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* 分数显示区域 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.player-score {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.player-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.9em;
}

.score-value {
    font-size: 20px;
    color: #3498db;
}

/* 输入区域样式 */
.round-input {
    flex: 1 1 200px;
    min-width: 150px;
    margin-bottom: 10px;
}

.round-input label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.round-input input {
    width: 100%;
}

/* 历史记录样式 */
#history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.history-item:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .section {
        padding: 15px;
    }

    .setup-form, .bidding-form, .trick-form {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }

    .round-input {
        margin-bottom: 15px;
        min-width: 100%;
    }

    .score-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
} 