.build-container { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; margin-bottom: 80px; }
.build-container { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; }

/* 移动端适配样式 */
@media (max-width: 768px) {
    .build-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .parts-selector, .build-summary {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .part-category {
        padding: 10px;
    }
    
    .part-category h3 {
        font-size: 1rem;
    }
    
    .part-select-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .part-selected {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
        justify-content: flex-start;
    }
        .build-description-container {
            margin-bottom: 15px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .build-description {
            font-size: 18px;
            color: #666;
            line-height: 1.4;
        }
    .select-btn {
        padding: 5px 10px;
        font-size: 0.9rem;
        margin: 2px;
    }
    
    .selected-part-image {
        max-width: 40px;
    }
}

@media (max-width: 480px) {
    .build-container {
        padding: 5px;
        gap: 10px;
    }
    
    .part-category {
        margin-bottom: 10px;
    }
    
    .part-category h3 {
        font-size: 0.9rem;
    }
    
    .select-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .selected-part-image {
        max-width: 30px;
    }
}
电脑DIY装机配置电脑DIY装机配置.build-container { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; margin-bottom: 80px; }
.build-container { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; }
.header-divider {
    height: 1px;
    background: linear-gradient(to right, #4285f4, #34a853);
    margin: 10px 0 20px 0;
    width: 100%;
}
/* 功率数值和价格显示为红色 */
#cpu-power, #motherboard-power, #memory-power, #gpu-power, #storage-power, #cooler-power, #total-power, 
#recommended-psu, #total-price, #parts-count {
    color: #ea4335;
    font-weight: bold;
}

/* 确保内存、显卡、硬盘的功率数值显示为红色 */
#memory-power-items span, #gpu-power-items span, #storage-power-items span {
    color: #ea4335;
    font-weight: bold;
}

/* 配件列表中的价格显示为红色 */
.part-selected {
    color: #666;
}

.part-selected span:contains('¥') {
    color: #ea4335;
    font-weight: bold;
}

/* 使用JavaScript添加红色价格样式，因为CSS不支持:contains选择器 */

/* 预估功率标题样式 */

.parts-selector { flex: 1.5; min-width: 300px; }
.build-summary { flex: 1; min-width: 280px; max-width: 350px; }
.part-category { margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; }
.part-category h3 { margin-top: 0; display: flex; align-items: center; }
.part-category h3 i { margin-right: 8px; color: #4285f4; }
.part-select-container { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px; border: 1px dashed #ccc; border-radius: 4px; }
.part-selected { color: #666; }
.select-btn { background-color: #4285f4; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; text-decoration: none;}
.compatibility-check { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.score-display { text-align: center; padding: 15px; background: linear-gradient(135deg, #4285f4 0%, #34a853 100%); color: white; border-radius: 8px; margin-bottom: 20px; }
.score-value { font-size: 3em; font-weight: bold; margin: 10px 0; }
.power-estimate { background-color: #f8f9fa; padding: 15px; border-radius: 8px; }
.part-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.compatibility-ok { color: #34a853; }
.compatibility-warning { color: #fbbc05; }
.compatibility-error { color: #ea4335; }
.total-power { font-size: 1.5em; font-weight: bold; margin-top: 10px; }
.score-breakdown { margin-top: 20px; font-size: 14px; }
.score-item { display: flex; align-items: center; margin-bottom: 10px; }
.score-label { width: 100px; text-align: right; margin-right: 10px; font-size: 14px; }
.score-bar-container { flex-grow: 1; height: 20px; background-color: #e0e0e0; border-radius: 10px; overflow: hidden; }
.score-bar { height: 100%; background-color: #4285f4; transition: width 0.3s ease; }
.score-value { width: 100px; text-align: center; margin-left: 10px; font-weight: bold; font-size: 18px; }
/* 弹窗样式 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { background-color: white; margin: 10% auto; padding: 20px; width: 90%; max-width: 600px; border-radius: 8px; position: relative; max-height: 80vh; overflow-y: auto; }
.close-btn { position: absolute; right: 20px; top: 10px; font-size: 24px; cursor: pointer; }
.part-item-in-modal { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; }
.part-item-in-modal:hover { background-color: #f5f5f5; }
.part-image, .selected-part-image { max-width: 50px; height: auto; margin-right: 10px; vertical-align: middle; }

/* 搜索控件样式 */
.modal-search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.modal-search-controls input[type="text"],
.modal-search-controls input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 2;
}

.price-range input {
    width: 100px;
}

/* 分页控件样式 */
.modal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.page-btn {
    padding: 6px 12px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#current-page {
    padding: 0 10px;
    color: #666;
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 0;
    z-index: 2000;
    max-width: 300px;
    width: 50%;

    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.custom-alert-icon {
    margin-right: 10px;
    font-size: 24px;
}

.custom-alert-icon.success {
    color: #34a853;
}

.custom-alert-icon.error {
    color: #ea4335;
}

.custom-alert-icon.warning {
    color: #fbbc05;
}

.custom-alert-icon.info {
    color: #4285f4;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.custom-alert-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.custom-alert-message {
    margin: 0;
    line-height: 1.5;
}

.custom-alert-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* 底部悬浮栏样式 */
.bottom-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.summary-stats {
    font-size: 16px;
    margin-right: 20px;
}

.bottom-bar-buttons {
    display: flex;
    gap: 10px;
}

.new-build-btn {
    background-color: #fbbc05;
}

.share-btn {
    background-color: #4285f4;
}

.confirm-btn {
    background-color: #34a853;
}

@media (max-width: 768px) {
    .bottom-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-stats {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
        font-size: 14px;
    }
    
    .bottom-bar-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .bottom-floating-bar {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .summary-stats {
        font-size: 12px;
    }
    
    .bottom-bar-buttons .select-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}


/* 配件详情样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .page-title {
            font-size: 28px;
            margin: 0;
            color: #333;
        }
        .build-detail-container {
            margin-top: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
        }
        .build-image-container {
            flex: 1;
            min-width: 300px;
        }
        .build-image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .build-info-container {
            flex: 2;
            min-width: 300px;
        }
        .build-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        .build-title {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
            color: #333;
        }
        .build-price {
            font-size: 24px;
            font-weight: bold;
            color: #ea4335;
        }
        .build-actions {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .action-btn {
            padding: 10px 20px;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #4285f4;
            border: none; /* 添加这一行移除边框 */
        }
        .action-btn i {
            margin-right: 8px;
        }
        .parts-list {
            margin-top: 20px;
        }
        .parts-list h2 {
            font-size: 20px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            color: #333;
        }
        .navigation-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .detail-params {
            margin-top: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .param-item {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            width: calc(50% - 5px);
            box-sizing: border-box;
        }
        .param-label {
            width: 120px;
            color: #666;
        }
        .param-value {
            flex: 1;
            color: #333;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* 在小屏幕上参数显示为单列 */
        @media (max-width: 768px) {
            .param-item {
                width: 100%;
            }
            .param-label {
                width: 100px;
                min-width: 100px;
                font-size: 14px;
            }
            .param-value {
                font-size: 14px;
            }
            .build-header {
                flex-direction: column;
            }
            .build-price {
                margin-top: 10px;
            }
            .build-actions {
                width: 100%;
            }
            .action-btn {
                width: 100%;
                justify-content: center;
            }
            .build-detail-container {
                flex-direction: column;
            }
        }
        
        /* 轮播图样式 */
        .slider-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .slider {
            display: flex;
            transition: transform 0.5s ease;
        }
        .slide {
            min-width: 100%;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
        }
        
        /* 移动端轮播图适配 */
        @media (max-width: 768px) {
            .slide {
                height: 250px;
            }
            .slider-btn {
                width: 30px;
                height: 30px;
                font-size: 16px;
            }
        }
        .slide img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .slider-nav {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255,255,255,0.5);
            cursor: pointer;
        }
        .slider-dot.active {
            background-color: white;
        }
        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0,0,0,0.3);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .slider-btn:hover {
            background-color: rgba(0,0,0,0.5);
        }
        .slider-btn.prev {
            left: 10px;
        }
        .slider-btn.next {
            right: 10px;
        }
        
        /* 推荐功能样式 */
        .recommend-container {
            margin-top: 20px;
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .recommend-text {
            font-size: 16px;
            text-align: center;
            margin-bottom: 15px;
        }
        .recommend-buttons {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        
        /* 移动端推荐按钮适配 */
        @media (max-width: 768px) {
            .recommend-buttons {
                flex-direction: column;
                gap: 15px;
            }
            .recommend-btn {
                padding: 12px 5px;
            }
        }
        .recommend-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        .recommend-yes {
            background-color: #4CAF50;
            color: white;
        }
        .recommend-no {
            background-color: #f44336;
            color: white;
        }
        .recommend-btn:hover {
            opacity: 0.9;
        }
        .recommend-count {
            font-weight: bold;
            margin: 0 5px;
        }
        #recommend-percent {
            font-weight: bold;
            color: #4CAF50;
        }