/* ============================================================
   STYLE 9 - 绿色系工业风（由风格 8 派生）
   配色：浅绿头部/页脚 #166534 · 琥珀金按钮 #D97706
   特点：表格化产品列表 · 简化筛选 · 完全匹配 · 纯中文
   类名沿用 s2- 前缀（独立页面，不影响其他风格）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #fff;
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}

.s2-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部工具条样式已抽离到 /static/common/utility.css（公共组件） */

/* 主头栏/促销条样式已抽离到 /static/common/header.css（公共组件） */

/* ---------- 面包屑 ---------- */
.s2-breadcrumb { padding: 14px 0; font-size: 13px; color: #666; }
.s2-breadcrumb a { color: #2E8B57; text-decoration: none; }
.s2-breadcrumb a:hover { text-decoration: underline; }

/* ---------- 内容布局 ---------- */
.s2-content { padding-bottom: 48px; }
.s2-layout { display: flex; gap: 24px; align-items: flex-start; }

/* ---------- 左侧筛选栏 ---------- */
.s2-filter {
    width: 224px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #E3E6EA;
    border-radius: 10px;
    padding: 18px 16px;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.s2-filter-heading { font-size: 16px; font-weight: 800; color: #14532D; margin-bottom: 14px; }
.s2-filter-group { padding: 12px 0; border-top: 1px solid #EEF1EF; }
.s2-filter-group:first-of-type { border-top: none; }
.s2-filter-title { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #6B7280; margin-bottom: 8px; }
.s2-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    padding: 3px 0;
    cursor: pointer;
}
.s2-filter-item:hover { color: #B45309; }
.s2-filter-item input { accent-color: #D97706; cursor: pointer; }
.s2-checkrow { padding: 4px 0; }
.s2-text-input {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 13px;
    outline: none;
    color: #333;
}
.s2-text-input:focus { border-color: #D97706; box-shadow: 0 0 0 2px rgba(217,119,6,.15); }

/* ---------- 工具栏 ---------- */
.s2-results { flex: 1; min-width: 0; }
.s2-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E3E6EA;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.s2-found { font-size: 14px; color: #1F2937; font-weight: 700; margin-right: auto; }
.s2-tool-group { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6B7280; }
.s2-tool-group select {
    background: #fff;
    border: 1px solid #D1D5DB;
    color: #333;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    outline: none;
}

/* ---------- 表格化产品列表 ---------- */
.s2-table {
    border: 1px solid #E3E6EA;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.s2-tr {
    display: grid;
    grid-template-columns: 92px 1fr 70px 62px 62px 104px 68px 118px;
    align-items: center;
    column-gap: 6px;
}
.s2-tr-head {
    background: #F0F6F2;
    border-bottom: 1px solid #DCE8E1;
}
.s2-tr-head .s2-td {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #14532D;
}
.s2-td {
    padding: 12px 8px;
    font-size: 13px;
    border-bottom: 1px solid #F0F2F1;
    min-width: 0;
}
.s2-item:last-child .s2-td { border-bottom: none; }
.s2-item.hidden-row { display: none; }
.s2-item:hover { background: #F7FBF8; }
.s2-item:hover .s2-td { border-bottom-color: #EDF4EF; }
.s2-td-brand { padding-left: 18px; }

.s2-brand-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 1px;
}
.s2-item-title { font-size: 15px; font-weight: 700; color: #14532D; text-decoration: none; }
.s2-item-title:hover { color: #D97706; text-decoration: underline; }
.s2-item-desc { font-size: 12px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.s2-stock { color: #16A34A; font-weight: 700; font-size: 14px; }
.s2-stock-out { color: #B91C1C; font-weight: 700; font-size: 13px; }
.s2-future { color: #2E8B57; font-weight: 700; font-size: 14px; }
.s2-future-none { color: #C4C9C6; font-weight: 400; }

.s2-price-now { color: #C9820A; font-weight: 800; font-size: 15px; white-space: nowrap; }
.s2-price-old { color: #999; text-decoration: line-through; font-size: 12px; margin-left: 4px; }

.s2-qty {
    width: 52px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 6px 4px;
    text-align: center;
    font-size: 13px;
    color: #333;
    outline: none;
}
.s2-qty:focus { border-color: #D97706; }

.s2-cart-btn {
    background: #D97706;
    color: #fff;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(217,119,6,.3);
    transition: background .15s;
}
.s2-cart-btn:hover { background: #B45309; }
.s2-check-btn {
    background: #fff;
    color: #2E8B57;
    border: 1px solid #2E8B57;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.s2-check-btn:hover { background: #F0F9F4; border-color: #16A34A; color: #15803D; }

.s2-empty {
    text-align: center;
    padding: 48px 0;
    color: #888;
    font-size: 15px;
}

/* ---------- 分页 ---------- */
.s2-pagination { display: flex; justify-content: center; margin-top: 20px; }
.s2-pager {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}
.s2-pg {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #E2E5E9;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    background: #fff;
    user-select: none;
}
.s2-pg:hover { border-color: #D97706; color: #B45309; }
.s2-pg.active { color: #fff; background: #D97706; border-color: #D97706; font-weight: 800; }
.s2-pg-more { color: #999; padding: 0 4px; border: none; cursor: default; }

/* ---------- 页脚（浅绿） ---------- */
/* 页脚已抽离到 /static/common/footer.css（.util-footer 系列），删除原 s2-footer/s2-benefits 等样式 */

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .s2-layout { flex-direction: column; }
    .s2-filter { width: 100%; position: static; }
    .s2-table { overflow-x: auto; }
    .s2-tr { min-width: 880px; }
}
