/* 炼器系统样式 */
.crafting-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* 通用部分 */
.section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a4a;
}

.section-header h3 {
    margin: 0;
    color: #d4b48c;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-button {
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    box-shadow: 0 0 10px rgba(100, 100, 150, 0.3);
    color: #d4b48c;
}

.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(to bottom, #333340, #232330);
}

/* 左侧材料区域 */
.crafting-materials {
    flex: 0 0 300px;
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.material-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab {
    padding: 8px 12px;
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 5px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    background: rgba(45, 45, 55, 0.6);
    color: #ccc;
}

.tab.active {
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border-color: #5a5a7a;
    color: #d4b48c;
    box-shadow: 0 0 8px rgba(100, 100, 150, 0.3);
}

.material-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    background: rgba(25, 25, 30, 0.5);
    margin-bottom: 15px;
    max-height: 300px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #3a3a4a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.material-item:last-child {
    border-bottom: none;
}

.material-item:hover {
    background: rgba(40, 40, 50, 0.5);
}

.material-item.selected {
    background: linear-gradient(to right, #3a3a55, #2a2a45);
    box-shadow: 0 0 10px rgba(100, 100, 150, 0.3);
}

.material-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.material-icon.metal {
    background: linear-gradient(135deg, #505060, #303040);
    border: 1px solid #707080;
    color: #a0a0c0;
}

.material-icon.wood {
    background: linear-gradient(135deg, #405030, #203010);
    border: 1px solid #607050;
    color: #a0c080;
}

.material-icon.gem {
    background: linear-gradient(135deg, #503060, #301040);
    border: 1px solid #704080;
    color: #c080e0;
}

.material-icon.locked {
    background: #2a2a32;
    border: 1px solid #3a3a42;
    color: #6a6a72;
    opacity: 0.7;
}

.material-info {
    flex: 1;
}

.material-name {
    font-size: 15px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 4px;
}

.material-desc {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
    line-height: 1.3;
}

.material-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.quality {
    color: #88cc88;
}

.count {
    color: #88aade;
}

.material-details {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 15px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a3a4a;
}

.detail-header h4 {
    margin: 0;
    color: #d4b48c;
    font-size: 16px;
    font-weight: bold;
}

.detail-quality {
    font-size: 12px;
    color: #88cc88;
    padding: 3px 8px;
    background: rgba(50, 70, 50, 0.3);
    border-radius: 4px;
}

.detail-description {
    margin-bottom: 15px;
}

.detail-description p {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

.detail-attributes {
    margin-bottom: 15px;
}

.attribute-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.attribute-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    padding: 8px;
}

.attribute-name {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.attribute-value {
    font-size: 14px;
    color: #d4b48c;
    font-weight: bold;
}

.detail-usage {
    margin-bottom: 15px;
}

.usage-header {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

.usage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.usage-tag {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    color: #ccc;
}

.detail-actions {
    text-align: center;
}

/* 中间炼器区域 */
.crafting-workshop {
    flex: 1;
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.crafting-area {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.craft-preview {
    width: 200px;
    background: rgba(25, 25, 30, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-title {
    padding: 10px;
    text-align: center;
    background: rgba(35, 35, 45, 0.7);
    color: #d4b48c;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #3a3a4a;
}

.preview-image {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5a5a6a;
    padding: 20px;
}

.preview-image i {
    font-size: 48px;
    margin-bottom: 15px;
}

.preview-placeholder {
    font-size: 14px;
    text-align: center;
    color: #aaa;
}

.crafting-interface {
    flex: 1;
    background: rgba(25, 25, 30, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interface-title {
    font-size: 16px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
    text-align: center;
}

.recipe-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.recipe-label {
    font-size: 14px;
    color: #aaa;
    min-width: 80px;
}

.recipe-dropdown {
    flex: 1;
    padding: 8px;
    background: rgba(35, 35, 45, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
}

.material-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-row {
    display: flex;
    gap: 10px;
}

.material-slot {
    flex: 1;
    height: 100px;
    background: rgba(35, 35, 45, 0.5);
    border: 2px dashed #4a4a5a;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.material-slot:hover {
    background: rgba(45, 45, 55, 0.5);
    border-color: #5a5a6a;
}

.material-slot.empty {
    color: #5a5a6a;
}

.material-slot.filled {
    border-style: solid;
    border-color: #6a6a8a;
    background: rgba(40, 40, 50, 0.7);
}

.slot-icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: #6a6a7a;
}

.slot-name {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 3px;
}

.slot-type {
    font-size: 12px;
    color: #777;
}

.crafting-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(35, 35, 45, 0.5);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-label {
    font-size: 14px;
    color: #aaa;
    min-width: 80px;
}

.option-select {
    flex: 1;
    padding: 6px;
    background: rgba(40, 40, 50, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
}

.option-slider {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-slider input {
    flex: 1;
}

.option-slider span {
    font-size: 14px;
    color: #88aade;
    min-width: 40px;
}

.craft-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.craft-button {
    flex: 2;
    background: linear-gradient(to bottom, #3a4a60, #2a3a50);
    border: 1px solid #4a5a70;
    padding: 10px;
    color: #ccc;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.craft-button:hover {
    background: linear-gradient(to bottom, #4a5a70, #3a4a60);
    box-shadow: 0 0 15px rgba(100, 120, 180, 0.3);
    color: #d4b48c;
}

.craft-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(to bottom, #333340, #232330);
}

.clear-button {
    flex: 1;
    background: rgba(35, 35, 45, 0.7);
    border: 1px solid #4a4a5a;
    padding: 10px;
    color: #aaa;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-button:hover {
    background: rgba(45, 45, 55, 0.7);
    color: #ccc;
}

.crafting-requirements {
    background: rgba(35, 35, 45, 0.5);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 15px;
}

.requirements-title {
    font-size: 15px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3a3a4a;
}

.requirements-list {
    color: #aaa;
    font-size: 14px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.requirement i {
    color: #4a90e2;
}

/* 右侧结果区域 */
.crafting-results {
    flex: 0 0 270px;
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-placeholder {
    flex: 1;
    background: rgba(25, 25, 30, 0.5);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: #5a5a6a;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.placeholder-text {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.crafting-history {
    background: rgba(25, 25, 30, 0.5);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    overflow: hidden;
}

.history-header {
    padding: 12px 15px;
    background: rgba(35, 35, 45, 0.7);
    border-bottom: 1px solid #3a3a4a;
}

.history-header h4 {
    margin: 0;
    color: #d4b48c;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a35;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: rgba(35, 35, 45, 0.5);
}

.item-icon {
    width: 36px;
    height: 36px;
    background: rgba(40, 40, 50, 0.7);
    border: 1px solid #4a4a5a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #88aade;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 3px;
}

.item-quality {
    font-size: 12px;
    color: #88cc88;
    margin-bottom: 3px;
}

.item-time {
    font-size: 11px;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .crafting-container {
        flex-direction: column;
    }
    
    .crafting-materials,
    .crafting-results {
        flex: none;
        width: 100%;
    }
    
    .crafting-area {
        flex-direction: column;
    }
    
    .craft-preview {
        width: 100%;
        height: 180px;
    }
    
    .preview-image {
        height: 140px;
    }
} 