/* 炼丹页面特定样式 */
.alchemy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.alchemy-section {
    background: #1a1b26;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a35;
}

.alchemy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a35;
}

.alchemy-title {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.alchemy-title i {
    margin-right: 10px;
    color: #e74c3c;
}

.cauldron-selection {
    display: flex;
    align-items: center;
}

.cauldron-selection select {
    padding: 8px 12px;
    border: 1px solid #2a2a35;
    border-radius: 4px;
    background: #22222d;
    margin-left: 10px;
    color: #e0e0e0;
}

.recipe-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #222;
}

.recipe-list::-webkit-scrollbar {
    width: 6px;
}

.recipe-list::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.recipe-list::-webkit-scrollbar-track {
    background-color: #222;
}

.recipe-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a35;
    cursor: pointer;
    transition: background 0.3s;
}

.recipe-item:hover {
    background: #22222d;
}

.recipe-item.selected {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    padding-left: 11px;
}

.recipe-icon {
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #e74c3c;
    font-size: 18px;
}

.recipe-info {
    flex-grow: 1;
}

.recipe-name {
    font-weight: bold;
    margin-bottom: 3px;
    color: #e0e0e0;
}

.recipe-desc {
    font-size: 12px;
    color: #aaa;
}

.recipe-level {
    padding: 3px 8px;
    background: #3498db;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.recipe-details {
    margin-top: 20px;
    background: #22222d;
    border-radius: 6px;
    padding: 15px;
}

.recipe-materials {
    margin-bottom: 15px;
}

.recipe-materials h4 {
    margin-bottom: 10px;
    font-size: 15px;
    color: #e0e0e0;
}

.material-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #2a2a35;
}

.material-item:last-child {
    border-bottom: none;
}

.material-name {
    display: flex;
    align-items: center;
}

.material-icon {
    width: 24px;
    height: 24px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.material-status {
    color: #aaa;
}

.material-status.sufficient {
    color: #2ecc71;
}

.material-status.insufficient {
    color: #e74c3c;
}

.recipe-effects {
    margin-bottom: 15px;
}

.recipe-effects h4 {
    margin-bottom: 10px;
    font-size: 15px;
    color: #e0e0e0;
}

.effect-item {
    padding: 5px 0;
    font-size: 14px;
    color: #aaa;
}

.recipe-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.alchemy-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.alchemy-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a52a2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.alchemy-btn i {
    margin-right: 8px;
}

.alchemy-btn.disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cauldron-section {
    position: relative;
    height: 100%;
}

.cauldron-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
}

.cauldron-image {
    width: 180px;
    height: 180px;
    background: #333;
    border-radius: 50% 50% 10% 10%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

.cauldron-image::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(to bottom, #f39c12, #e74c3c);
    border-radius: 50%;
    animation: bubble 3s infinite alternate;
}

@keyframes bubble {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.cauldron-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 50% 0 0;
}

.cauldron-flames {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.flame {
    width: 20px;
    height: 60px;
    background: linear-gradient(to top, #f1c40f, #e74c3c, transparent);
    border-radius: 20px;
    margin: 0 5px;
    animation: flicker 0.5s infinite alternate;
}

.flame:nth-child(2) {
    height: 70px;
    animation-delay: 0.2s;
}

.flame:nth-child(3) {
    height: 65px;
    animation-delay: 0.4s;
}

@keyframes flicker {
    0% {
        height: 60px;
        opacity: 0.8;
    }
    100% {
        height: 70px;
        opacity: 1;
    }
}

.alchemy-progress {
    width: 80%;
    padding: 15px;
    background: #22222d;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a35;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-label {
    color: #e0e0e0;
    font-weight: bold;
}

.progress-percentage {
    color: #e74c3c;
    font-weight: bold;
}

.progress-bar-container {
    height: 8px;
    background: #333340;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #f1c40f, #e74c3c);
    width: 65%;
    border-radius: 4px;
    animation: progress 10s linear infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.progress-status {
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.inventory-section {
    margin-top: 25px;
    grid-column: span 2;
}

.inventory-tabs {
    display: flex;
    border-bottom: 1px solid #2a2a35;
    margin-bottom: 20px;
}

.inventory-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #aaa;
    position: relative;
    transition: color 0.3s;
}

.inventory-tab:hover {
    color: #e0e0e0;
}

.inventory-tab.active {
    color: #e74c3c;
}

.inventory-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e74c3c;
}

.inventory-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: #22222d;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #2a2a35;
}

.inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.item-icon {
    width: 50px;
    height: 50px;
    background: #2a2a35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.herbs .item-icon {
    color: #2ecc71;
}

.pills .item-icon {
    color: #e74c3c;
}

.item-name {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.item-quantity {
    font-size: 12px;
    color: #aaa;
}

.item-quality {
    margin-top: 5px;
    font-size: 11px;
    padding: 2px 5px;
    background: #3498db;
    color: #fff;
    border-radius: 10px;
}

.quality-high {
    background: linear-gradient(to right, #9b59b6, #8e44ad);
}

.quality-medium {
    background: linear-gradient(to right, #3498db, #2980b9);
}

.quality-low {
    background: linear-gradient(to right, #7f8c8d, #596566);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .alchemy-container {
        grid-template-columns: 1fr;
    }
    
    .inventory-section {
        grid-column: 1;
    }
    
    .alchemy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cauldron-selection {
        margin-top: 10px;
    }
    
    .inventory-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
} 