/* ==========================================================================
   产品规格库页 —— 专属样式（依赖 ui.css 设计变量）
   ========================================================================== */

/* ---- 面包屑 ---- */
.crumb {
    border-bottom: 1px solid var(--line-soft);
    background: var(--ink-800);
}
.crumb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-3);
    text-transform: uppercase;
}
.crumb-inner a:hover { color: var(--heat-400); }
.crumb-inner .sep { color: var(--text-3); opacity: .5; }
.crumb-inner .cur { color: var(--data); }

/* ---- 页头 ---- */
.spec-head { padding: 64px 0 40px; position: relative; overflow: hidden; }
.spec-head .sec-no { margin-bottom: 14px; }
.spec-head h1 {
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--text-1);
}
.spec-head h1 em { font-style: normal; color: var(--steel-400); }
.spec-head .spec-en {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--text-3);
    text-transform: uppercase;
}
.spec-head .spec-lead {
    margin-top: 20px;
    max-width: 720px;
    color: var(--text-2);
    font-size: 15px;
}
.spec-head .spec-lead strong { color: var(--text-1); }

/* 类别统计条 */
.cat-strip {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.cat-cell {
    background: var(--ink-800);
    padding: 16px 14px 14px;
    cursor: pointer;
    transition: background .2s;
    border: 0;
    text-align: left;
    font-family: var(--font-cn);
    color: inherit;
}
.cat-cell:hover { background: var(--ink-600); }
.cat-cell.on { background: var(--ink-600); box-shadow: inset 0 2px 0 var(--heat-500); }
.cat-cell .cc-n {
    display: block;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
}
.cat-cell .cc-n small { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.cat-cell.on .cc-n { color: var(--heat-400); }
.cat-cell .cc-name { display: block; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.cat-cell .cc-range {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

/* ---- 筛选工具条 ---- */
.spec-tools {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 19, 24, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
}
.tools-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    flex-wrap: wrap;
}
.spec-q-wrap {
    flex: 1 1 260px;
    min-width: 220px;
    position: relative;
}
.spec-q-wrap .q-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 14px;
}
#specQ {
    width: 100%;
    background: var(--ink-900);
    border: 1px solid var(--line);
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 11px 14px 11px 38px;
    outline: none;
    border-radius: 0;
    transition: border-color .2s;
}
#specQ:focus { border-color: var(--heat-500); }
#specQ::placeholder { color: var(--text-3); }
.spec-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ink-900) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235E6B7C'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--line);
    color: var(--text-1);
    font-family: var(--font-cn);
    font-size: 13px;
    padding: 11px 34px 11px 14px;
    outline: none;
    border-radius: 0;
    cursor: pointer;
}
.spec-select:focus { border-color: var(--heat-500); }
.spec-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    margin-left: auto;
    white-space: nowrap;
}
.spec-count b { color: var(--heat-400); font-size: 15px; }

/* ---- 理论重量提示条 ---- */
.spec-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(217, 83, 30, 0.07);
    border: 1px solid rgba(217, 83, 30, 0.35);
    border-left: 3px solid var(--heat-500);
    padding: 14px 18px;
    margin: 24px 0 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}
.spec-tip .tip-ico {
    flex: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--heat-500);
    color: var(--heat-400);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    margin-top: 3px;
}
.spec-tip b { color: var(--heat-400); }

/* ---- 规格表 ---- */
.spec-table-wrap { margin-top: 24px; border: 1px solid var(--line-soft); overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.spec-table thead th {
    background: var(--ink-700);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.spec-table thead th .th-en {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--text-3);
    margin-top: 1px;
}
.spec-table tbody td {
    padding: 11px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
}
.spec-table tbody tr { transition: background .15s; }
.spec-table tbody tr:hover { background: rgba(42, 107, 147, 0.10); }
.spec-table .c-no { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); width: 56px; }
.spec-table .c-cat { color: var(--text-1); }
.spec-table .c-spec {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--data);
    letter-spacing: 0.02em;
}
.spec-table .c-t { font-family: var(--font-mono); }
.spec-table .c-kg { font-family: var(--font-mono); font-weight: 700; color: var(--heat-400); }
.spec-table .c-kg small { color: var(--text-3); font-weight: 400; margin-left: 3px; }

/* 表尾说明 */
.spec-note {
    margin: 28px 0 72px;
    padding: 22px 24px;
    background: var(--ink-800);
    border: 1px solid var(--line-soft);
    border-top: 2px solid var(--steel-600);
}
.spec-note h3 {
    font-size: 14px;
    color: var(--text-1);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.spec-note ul { padding-left: 0; list-style: none; }
.spec-note li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 2;
}
.spec-note li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 2px;
    background: var(--heat-500);
}
.spec-note li b { color: var(--data); }

/* 无结果 */
.spec-empty {
    display: none;
    padding: 64px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
}
.spec-empty b { display: block; font-size: 18px; color: var(--text-2); margin-bottom: 8px; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
    .cat-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
    .crumb-inner { padding: 11px 0; font-size: 10px; }
    .spec-head { padding: 40px 0 28px; }
    .spec-head h1 { font-size: 30px; }
    .spec-head .spec-lead { font-size: 13.5px; margin-top: 14px; }
    .cat-strip { grid-template-columns: repeat(2, 1fr); }
    .cat-cell { padding: 13px 14px 11px; }

    .tools-grid { gap: 9px; padding: 11px 0; }
    .spec-q-wrap { flex: 1 1 100%; }
    .spec-select { flex: 1 1 40%; min-width: 0; }
    .tools-grid .btn { flex: none; padding: 10px 16px; }
    .spec-count { margin-left: 0; width: 100%; }

    .spec-table thead th { top: 0; position: static; }
    .spec-table thead th, .spec-table tbody td { padding: 10px 14px; }
    .spec-table .c-no, .spec-table th.c-col-no { display: none; }
    .spec-tip { padding: 12px 14px; font-size: 12.5px; }
    .spec-note { margin: 22px 0 56px; padding: 18px 16px; }
}
