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

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    color: #c62828;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 1.5em;
}

h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #1976d2;
}

.crime-scene, .identification {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.crime-columns {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.column, .event-column {
    min-width: 180px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.events-container {
    display: flex;
    gap: 15px;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    line-height: 1.3;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card.selected {
    background-color: #c62828;
    color: white;
    border-color: #c62828;
}

/* info卡片样式 */
.info-title {
    background-color: #e3f2fd;
    font-weight: bold;
    border-left: 4px solid #1976d2;
}

.info-content {
    font-size: 0.85em;
    background-color: #f5f5f5;
    border-left: 2px solid #9e9e9e;
}

.row {
    margin-bottom: 15px;
}

.row .cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.row .card {
    flex: 0 0 calc(25% - 10px);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

button:hover {
    background-color: #1a252f;
}

#shuffle-btn {
    background-color: #3498db;
}

#hint-btn {
    background-color: #e67e22;
}

#submit-btn {
    background-color: #27ae60;
}

#new-game-btn {
    background-color: #9b59b6;
    margin: 15px auto;
    display: block;
}

#ai-settings-btn {
    background-color: #3498db;
}

#ai-generate-btn {
    background-color: #9b59b6;
}

#delete-btn {
    background-color: #e74c3c;
}

.rounds {
    padding: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.result-area {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.story, .answer {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 游戏记录样式 */
.game-history {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.history-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.history-entry {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.history-round-result {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.history-result {
    padding: 2px 6px;
    border-radius: 3px;
}

.history-result.correct {
    background-color: #2ecc71;
    color: white;
}

.history-result.incorrect {
    background-color: #e74c3c;
    color: white;
}

.history-selection {
    padding: 5px 0;
    color: #333;
}

/* 隐藏卡片样式 */
.card.hidden-card {
    opacity: 0.3;
    background-color: #f8f8f8;
    color: #aaa;
    transform: scale(0.95);
    border-color: #ddd;
}

.card.hidden-card:hover {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: none;
}

/* 隐藏模式样式 */
.hide-mode .card {
    cursor: pointer;
}

.hide-mode .card:hover {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .row .card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .controls {
        flex-direction: column;
    }
}

.ai-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 80%;
    max-width: 500px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.setting-item input,
.setting-item textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.setting-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.setting-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#save-settings {
    background: #4CAF50;
    color: white;
}

#close-settings {
    background: #f44336;
    color: white;
}

.selected-by-ai {
    background-color: #c62828 !important;
    color: white !important;
    border-color: #c62828 !important;
}

/* 复制按钮样式 */
.copy-history-btn {
    margin: 5px 0;
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.copy-history-btn:hover {
    background-color: #2980b9;
}

.screenshot-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.screenshot-btn:hover {
    background-color: #2980b9;
} 