
/* ========== 强化配置清单 - 每一行清晰展示 ========== */
.config-list {
    background: #f9fafc;
    border-radius: 24px;
    padding: 14px 16px;
    margin: 12px 0 8px;
}
.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f8;
}
.config-item:last-child {
    border-bottom: none;
}
.config-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3e50;
    width: 90px;
}
.config-type i {
    width: 24px;
    font-size: 16px;
    color: #6c5ce7;
}
.config-name {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.config-price { 
    font-weight: 600;
    color: #5b4bc4;
    font-size: 14px;
    white-space: nowrap;
}
/* 头部 */
.builds-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.title-area h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e2a3a, #2d3e50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.title-area p {
    font-size: 13px;
    color: #5b6e8c;
    margin-top: 6px;
}
.new-build-btn {
    background: #6c5ce7;
    border: none;
    border-radius: 60px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(108,92,231,0.2);
    transition: 0.2s;
}
.new-build-btn:active {
    transform: scale(0.96);
}
.new-build-btn i {
    font-size: 16px;
}
/* 统计栏 */
.stats-bar {
    background: white;
    border-radius: 28px;
    padding: 12px 20px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #eef2f8;
}
.stats-count {
    font-weight: 500;
    font-size: 14px;
    color: #5b6e8c;
}
.stats-count span {
    font-weight: 800;
    color: #6c5ce7;
    font-size: 18px;
}
.filter-tabs {
    display: flex;
    gap: 8px;
}
.filter-tab {
    padding: 6px 18px;
    border-radius: 40px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}
.filter-tab.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: white;
}



        /* 卡片列表 - 一行一个 */
        .builds-list {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        .build-card {
            background: white;
            border-radius: 32px;
            padding: 20px;
            border: 1px solid #eef2f8;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
        }

        /* 卡片头部 */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .build-name {
            font-size: 20px;
            font-weight: 700;
            color: #0f1825;
        }
        .build-time {
            font-size: 11px;
            color: #8ba0bc;
            margin-top: 6px;
        }

        /* 装机图片区（多图横向滚动） */
        .build-images {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            margin: 12px 0 16px;
            padding-bottom: 8px;
            scrollbar-width: thin;
        }
        .build-img-item {
            width: 100px;
            height: 100px;
            background: #eef2f8;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            flex-shrink: 0;
            color: #8ba0bc;
            overflow: hidden;
        }
        .build-img-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .add-img-placeholder {
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            cursor: pointer;
            font-size: 28px;
            color: #94a3b8;
            flex-direction: column;
        }
        .add-img-placeholder-text {
            font-size: 13px;
            margin-top: 4px;
        }
        .add-img-placeholder .layui-icon{
            font-size: 28px;
            color: #94a3b8;
            line-height: 1;
        }

        /* 评论区 */
        .comments-section {
            margin-top: 16px;
            border-top: 1px solid #eff3f8;
            padding-top: 14px;
        }
        .comments-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            color: #1e293b;
        }
        .comment-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .comment-item {
            display: flex;
            gap: 12px;
        }
        .comment-avatar {
            width: 36px;
            height: 36px;
            background: #f1f5f9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            flex-shrink: 0;
        }
        .comment-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
        .comment-body {
            flex: 1;
        }
        .comment-name {
            font-weight: 600;
            font-size: 13px;
            color: #0f1825;
        }
        .comment-time {
            font-size: 10px;
            color: #94a3b8;
            margin-left: 8px;
        }
        .comment-text {
            font-size: 13px;
            color: #334155;
            margin-top: 4px;
            line-height: 1.4;
        }
        .comment-actions {
            margin-top: 6px;
            display: flex;
            gap: 16px;
            font-size: 11px;
            color: #8192aa;
        }
        .comment-like {
            cursor: pointer;
        }

        .view-detail {
            font-size: 13px;
            color: #6c5ce7;
            cursor: pointer;
            font-weight: 500;
        }

        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 32px;
            color: #94a3b8;
        }

        /* 弹窗 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: 0.2s;
        }
        .modal-overlay.show {
            visibility: visible;
            opacity: 1;
        }
        .modal-container {
            background: white;
            width: 90%;
            max-width: 500px;
            border-radius: 32px;
            padding: 24px;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        }
        .modal-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
        }
        .modal-input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 28px;
            font-size: 15px;
            margin-bottom: 24px;
            outline: none;
        }
        .modal-input:focus {
            border-color: #6c5ce7;
            box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
        }
        .modal-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        .btn-cancel {
            background: none;
            border: 1px solid #cbd5e1;
            color: #5b6e8c;
        }
        .btn-confirm {
            background: #6c5ce7;
            border: none;
            color: white;
        }
        /* 总价行特殊样式 */
        .config-item.total-row {
            margin-top: 0px;
            padding-top: 6px;
            border-top: 1px solid #e2e8f0;
            border-bottom: none;
        }
        .config-item.total-row .config-price {
            font-size: 16px;
            font-weight: 700;
            color: #e4393c;
        }
        .config-item.total-row .config-name {
            visibility: hidden;  /* 保持占位但看不见文字 */
        }
        .config-item.total-row .config-type {
            font-weight: 800;
            color: #0f1825;
        }

        .card-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        .card-actions button {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            transition: 0.2s;
            padding: 6px 12px;
            border-radius: 40px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .card-actions .edit-btn {
            background: #f8fafc;
            color: #5b6e8c;
            border: 1px solid #e2e8f0;
        }
        .card-actions .edit-btn:hover {
            background: #eef2ff;
            color: #6c5ce7;
        }
        .card-actions .delete-btn {
            background: #f8fafc;
            color: #5b6e8c;
            border: 1px solid #e2e8f0;
        }
        .card-actions .delete-btn:hover {
            background: #fee2e2;
            color: #ef4444;
            border-color: #fecaca;
        }
        .card-actions .copy-btn {
            background: #f8fafc;
            color: #5b6e8c;
            border: 1px solid #e2e8f0;
        }
        .card-actions .copy-btn:hover {
            background: #e6f7e6;
            color: #10b981;
        }
        /* 发布按钮（醒目） */
        .card-actions .publish-btn {
            background: linear-gradient(145deg, #6c5ce7, #5b4bc4);
            color: white;
            border: none;
            box-shadow: 0 2px 6px rgba(108,92,231,0.2);
        }
        .card-actions .publish-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(108,92,231,0.3);
        }
        /* 已发布状态标签 */
        .card-actions .published-status {
            background: #f1f5f9;
            color: #5b6e8c;
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 13px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .card-actions .published-status i {
            color: #10b981;
        }


@media (max-width: 640px) {
    .xinyue_container {
        padding: 20px 12px;
        background: #f5f7fc;
    }
    .build-img-item { width: 80px; height: 80px; font-size: 28px; }
    .config-type { width: 70px; font-size: 12px; }
    .config-name { font-size: 12px; }
}

