@charset "utf-8";
/* 产品规格库页面样式 —— 2026-11-03 */

.spec-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 说明区 ---------- */
.spec-intro {
    background: #f7f9fc;
    border: 1px solid #e3e9f2;
    border-left: 4px solid #194174;
    padding: 18px 22px;
    margin: 20px 0 22px;
    line-height: 1.9;
    color: #444;
    font-size: 14px;
}

.spec-intro p {
    margin: 0 0 8px;
}

.spec-intro p:last-child {
    margin-bottom: 0;
}

.spec-intro b {
    color: #cb0b1a;
    font-weight: bold;
}

.spec-intro .spec-cats {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
}

.spec-intro .spec-cats li {
    float: left;
    width: 33.33%;
    color: #555;
    font-size: 13px;
    line-height: 2;
}

.spec-intro .spec-cats li span {
    color: #194174;
    font-weight: bold;
}

/* ---------- 筛选工具条 ---------- */
.spec-tools {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(25, 65, 116, .08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.spec-tools input[type="text"] {
    flex: 1 1 260px;
    min-width: 200px;
    height: 38px;
    line-height: 38px;
    border: 1px solid #ccd4e0;
    border-radius: 3px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.spec-tools input[type="text"]:focus {
    border-color: #194174;
    box-shadow: 0 0 0 2px rgba(25, 65, 116, .12);
}

.spec-tools select {
    height: 38px;
    line-height: 38px;
    border: 1px solid #ccd4e0;
    border-radius: 3px;
    padding: 0 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.spec-tools button {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #194174;
    background: #194174;
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
}

.spec-tools button:hover {
    background: #143357;
}

.spec-tools button.ghost {
    background: #fff;
    color: #194174;
}

.spec-tools button.ghost:hover {
    background: #eef2f8;
}

.spec-count {
    font-size: 13px;
    color: #666;
    margin-left: auto;
    white-space: nowrap;
}

.spec-count b {
    color: #cb0b1a;
}

/* ---------- 表格 ---------- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e0e6ef;
}

.spec-table thead th {
    background: #194174;
    color: #fff;
    font-weight: normal;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
}

.spec-table tbody td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid #eef1f6;
    color: #444;
}

.spec-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.spec-table tbody tr:hover {
    background: #eef4fb;
}

.spec-table .c-no {
    color: #aaa;
    font-size: 12px;
    width: 56px;
}

.spec-table .c-cat {
    width: 90px;
    color: #194174;
}

.spec-table .c-mat {
    width: 80px;
}

.spec-table .c-spec b {
    color: #222;
    font-size: 15px;
    letter-spacing: .3px;
}

.spec-table .c-t {
    width: 110px;
    color: #555;
}

.spec-table .c-kg {
    width: 130px;
    color: #cb0b1a;
    font-family: Consolas, Menlo, monospace;
}

.spec-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
    display: none;
}

/* ---------- 底部说明 ---------- */
.spec-note {
    margin: 24px 0 40px;
    padding: 18px 22px;
    background: #fffaf6;
    border: 1px dashed #e8c9a8;
    color: #6b5a48;
    font-size: 13px;
    line-height: 2;
}

.spec-note b {
    color: #cb0b1a;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .spec-intro {
        padding: 14px 16px;
        font-size: 13px;
    }

    .spec-intro .spec-cats li {
        width: 50%;
    }

    .spec-tools {
        padding: 10px;
        gap: 8px;
    }

    .spec-tools input[type="text"] {
        flex: 1 1 100%;
    }

    .spec-tools select {
        flex: 1 1 30%;
    }

    .spec-count {
        flex: 1 1 100%;
        margin-left: 0;
        text-align: right;
    }

    .spec-table {
        font-size: 13px;
    }

    .spec-table thead th {
        position: static;
        padding: 10px 6px;
        font-size: 13px;
    }

    .spec-table tbody td {
        padding: 8px 6px;
    }

    .spec-table .c-no,
    .spec-table .c-kg {
        display: none;
    }

    .spec-table .c-spec b {
        font-size: 14px;
    }
}

/* ---------- 理论重量提示条 ---------- */
.spec-tip {
    background: #fff8e6;
    border: 1px solid #f0dcb0;
    border-left: 4px solid #e6a23c;
    border-radius: 3px;
    color: #7d6234;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.85;
}

.spec-tip b {
    color: #c0392b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .spec-tip {
        padding: 9px 12px;
        font-size: 12px;
        line-height: 1.7;
    }
}
