/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 游戏容器样式 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 卡片样式 */
.game-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-container:hover {
    transform: translateY(-5px);
}

/* 标题区域 */
.game-header {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.game-title {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.game-subtitle {
    opacity: 0.9;
    font-weight: 300;
}

/* 游戏主内容 */
.game-main {
    padding: 25px;
}

/* 分数显示 */
.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

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

.score-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
}

.player-score {
    color: #667eea;
}

.computer-score {
    color: #764ba2;
}

/* 结果显示 */
.result-display {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 选择区域 */
.choices {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.choice {
    text-align: center;
}

.choice-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.player-icon-container {
    background-color: #e0f2fe;
    border: 4px solid #93c5fd;
}

.computer-icon-container {
    background-color: #f3e8ff;
    border: 4px solid #d8b4fe;
}

.choice-icon {
    font-size: 2.5rem;
    color: #666;
}

.choice-name {
    color: #666;
    font-weight: 500;
}

/* 玩家选择按钮 */
.choice-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.choice-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.choice-btn-inner {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 15px 10px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-btn:hover .choice-btn-inner {
    transform: scale(1.05);
}

.choice-btn:active .choice-btn-inner {
    transform: scale(0.95);
}

.rock-btn .choice-btn-inner {
    background-color: #e0e7ff;
    color: #4338ca;
}

.paper-btn .choice-btn-inner {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.scissors-btn .choice-btn-inner {
    background-color: #fee2e2;
    color: #b91c1c;
}

.btn-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

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

.win-animation {
    animation: pulse 0.5s ease-in-out;
    border-color: #10b981;
    background-color: #dcfce7;
}

.lose-animation {
    animation: pulse 0.5s ease-in-out;
    border-color: #ef4444;
    background-color: #fee2e2;
}

.tie-animation {
    animation: pulse 0.5s ease-in-out;
    border-color: #6b7280;
    background-color: #f3f4f6;
}

/* 页脚 */
.game-footer {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 400px) {
    .choice-icon-container {
        width: 80px;
        height: 80px;
    }
    .choice-icon {
        font-size: 2rem;
    }
    .btn-icon {
        font-size: 1.5rem;
    }
}

/* 选择高亮效果 */
.selected-choice {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 电脑思考动画 */
@keyframes thinking {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.thinking-animation {
    animation: thinking 0.5s infinite;
}