/*
 * 真假炼丹炉游戏样式
 * @Author        : Qinver
 * @Url           : zibll.com
 * @Date          : 2026-03-28
 */

/* 游戏容器 */
.alchemy-game {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 用户信息栏 */
.user-info-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.user-info-bar h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.user-info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
}

.user-info-item .label {
    font-size: 14px;
    opacity: 0.9;
}

.user-info-item .value {
    font-size: 18px;
    font-weight: bold;
}

.claim-daily-btn {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.claim-daily-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.claim-daily-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 游戏状态栏 */
.game-status-bar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.countdown-display {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.status-text {
    font-size: 16px;
    color: #666;
}

/* 炼丹炉容器 */
.furnace-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .furnace-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 炼丹炉卡片 */
.furnace-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.furnace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.furnace-card.selected {
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.furnace-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 炼丹炉图片 */
.furnace-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: url('/picture/liandanlu.png') center center no-repeat;
    background-size: contain;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

.furnace-card.selected .furnace-image {
    animation: breathe 1s ease-in-out infinite, glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
    }
}

.furnace-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.furnace-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.furnace-stats p {
    margin: 5px 0;
}

/* 投入区域 */
.invest-section {
    margin-top: 20px;
}

.invest-input {
    width: 100%;
    max-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.invest-input:focus {
    outline: none;
    border-color: #667eea;
}

.invest-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.invest-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 游戏规则 */
.game-rules {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.game-rules h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.game-rules ol {
    padding-left: 20px;
    line-height: 1.8;
    color: #666;
}

.game-rules li {
    margin-bottom: 10px;
}

/* 历史记录 */
.history-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.history-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.history-table .win {
    color: #28a745;
    font-weight: bold;
}

.history-table .lose {
    color: #dc3545;
    font-weight: bold;
}

/* 提示消息 */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .user-info-items {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-info-item {
        justify-content: space-between;
    }
    
    .countdown-display {
        font-size: 24px;
    }
    
    .furnace-image {
        width: 150px;
        height: 150px;
    }
    
    .furnace-name {
        font-size: 20px;
    }
}
