/* 企成商城 2026 改版样式 */
:root {
    --brand: #d20f0f;
    --brand-dark: #a80b0b;
    --ink: #1b1f24;
    --ink-2: #4a5158;
    --ink-3: #8a929a;
    --line: #e7e9ec;
    --bg: #f5f6f8;
    --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.sh-page {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
button, input { font: inherit; }

.sh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sh-main { padding-bottom: 48px; min-height: 50vh; }

/* ---------- 头部 ---------- */
.sh-head {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 10px rgba(20, 25, 30, .04);
}

.sh-head-in { display: flex; align-items: center; gap: 22px; height: 68px; }

.sh-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sh-logo img { height: 40px; width: auto; }
.sh-logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.sh-logo-txt b { font-size: 19px; letter-spacing: .5px; }
.sh-logo-txt small { font-size: 11px; color: var(--ink-3); letter-spacing: 1.5px; }

.sh-search { display: flex; flex: 1 1 auto; max-width: 520px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.sh-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 9px 18px; outline: none; color: var(--ink); }
.sh-search input::placeholder { color: var(--ink-3); }
.sh-search button { flex: 0 0 auto; border: 0; background: var(--brand); color: #fff; padding: 0 22px; cursor: pointer; letter-spacing: 1px; }
.sh-search button:hover { background: var(--brand-dark); }

.sh-search-big { max-width: 620px; margin: 6px 0 28px; }

.sh-tel { flex: 0 0 auto; text-align: right; line-height: 1.2; }
.sh-tel span { display: block; font-size: 11px; color: var(--ink-3); }
.sh-tel b { font-size: 17px; color: var(--brand); letter-spacing: .3px; }

.sh-nav { border-top: 1px solid #f2f3f5; }
.sh-nav-in { display: flex; align-items: center; gap: 26px; height: 42px; font-size: 14px; }
.sh-nav-in a { color: var(--ink-2); }
.sh-nav-in a:hover, .sh-nav-in a.on { color: var(--brand); font-weight: 600; }
.sh-nav-note { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* ---------- 分类条 ---------- */
.sh-catbar { background: #fff; border-bottom: 1px solid var(--line); }
.sh-catbar-in { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.sh-catbar-in::-webkit-scrollbar { display: none; }
.sh-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; background: #fff; }
.sh-chip i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.sh-chip:hover { border-color: #c9ccd1; color: var(--ink); }
.sh-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sh-chip.on i { color: rgba(255, 255, 255, .8); }

.sh-subbar { background: #fff; border-bottom: 1px solid var(--line); }
.sh-subbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
.sh-subbar-in span { color: var(--ink-3); }
.sh-subbar-in a { color: var(--ink-2); }
.sh-subbar-in a.on, .sh-subbar-in a:hover { color: var(--brand); font-weight: 600; }

/* ---------- 首页 ---------- */
.sh-hero { background: linear-gradient(135deg, #fff5f5 0%, #f7f8fa 60%, #eef3f8 100%); border-bottom: 1px solid var(--line); }
.sh-hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.sh-hero h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.35; letter-spacing: .5px; }
.sh-hero h1 em { font-style: normal; color: var(--brand); }
.sh-hero p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; max-width: 560px; }
.sh-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sh-hero-tags span { font-size: 12px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.sh-hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.sh-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.sh-stat b { display: block; font-size: 26px; color: var(--brand); line-height: 1.2; }
.sh-stat span { font-size: 12px; color: var(--ink-3); }

.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.sh-btn:hover { border-color: #c9ccd1; }
.sh-btn-main { background: var(--brand); border-color: var(--brand); color: #fff; }
.sh-btn-main:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.sh-section { padding-top: 40px; }
.sh-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sh-section-head h2 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.sh-section-head h2 small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.sh-section-head a { font-size: 13px; color: var(--ink-3); }
.sh-section-head a:hover { color: var(--brand); }

.sh-catgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sh-cattile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .18s; }
.sh-cattile:hover { border-color: #f0c7c7; box-shadow: 0 8px 20px rgba(210, 15, 15, .07); transform: translateY(-2px); }
.sh-cattile b { font-size: 15px; font-weight: 600; }
.sh-cattile span { font-size: 12px; color: var(--ink-3); }

/* ---------- 商品栅格 ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sh-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .2s; }
.sh-card:hover { box-shadow: 0 10px 26px rgba(20, 25, 30, .09); transform: translateY(-2px); }
.sh-card-pic { aspect-ratio: 1 / 1; background: #f2f3f5; overflow: hidden; }
.sh-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sh-card:hover .sh-card-pic img { transform: scale(1.04); }
.sh-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9bec5; font-size: 15px; letter-spacing: 2px; }
.sh-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1 1 auto; }
.sh-card-name { margin: 0; font-size: 14px; line-height: 1.5; height: 3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); }
.sh-card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-price { color: var(--brand); font-weight: 700; font-size: 17px; }
.sh-price.is-mianyi { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sh-card-go { font-size: 12px; color: var(--ink-3); }
.sh-card:hover .sh-card-go { color: var(--brand); }

/* ---------- 面包屑 / 标题 ---------- */
.sh-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 18px 0 0; font-size: 13px; color: var(--ink-3); }
.sh-crumb a { color: var(--ink-2); }
.sh-crumb a:hover { color: var(--brand); }
.sh-crumb a + a::before, .sh-crumb span::before { content: "›"; margin-right: 6px; color: #c2c6cc; }

.sh-pagehead { padding: 20px 0 6px; }
.sh-pagehead h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: .5px; }
.sh-pagehead p { margin: 0; color: var(--ink-3); font-size: 13px; }

/* ---------- 列表页 ---------- */
.sh-listbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sh-listbar .sh-count { font-size: 13px; color: var(--ink-3); }
.sh-listbar .sh-count b { color: var(--brand); }

.sh-empty { padding: 64px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg); }
.sh-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.sh-empty a { color: var(--brand); }

.sh-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.sh-pager a, .sh-pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.sh-pager a:hover { border-color: var(--brand); color: var(--brand); }
.sh-pager-cur { background: var(--brand); border-color: var(--brand) !important; color: #fff !important; }
.sh-pager-gap { border: 0 !important; color: var(--ink-3); }
.sh-pager-btn { font-size: 13px !important; }

/* ---------- 详情页 ---------- */
.sh-detail-top { display: grid; grid-template-columns: 440px 1fr; gap: 40px; padding-top: 22px; }
.sh-gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); aspect-ratio: 1 / 1; }
.sh-gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sh-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.sh-thumbs button { padding: 0; width: 66px; height: 66px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.sh-thumbs button.on { border-color: var(--brand); }
.sh-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.sh-info h1 { margin: 0 0 14px; font-size: 25px; line-height: 1.4; }
.sh-info-cat { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.sh-info-cat a { color: var(--ink-2); }
.sh-info-cat a:hover { color: var(--brand); }
.sh-pricebox { background: linear-gradient(135deg, #fff6f6, #fbfbfc); border: 1px solid #f3dede; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.sh-pricebox .sh-price { font-size: 30px; line-height: 1.1; }
.sh-pricebox .sh-price.is-mianyi { font-size: 24px; color: var(--ink); }
.sh-pricebox p { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.sh-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.sh-meta span { color: var(--ink-3); }
.sh-info-act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.sh-notice { font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 12px 16px; line-height: 1.8; }
.sh-notice b { color: var(--brand); }

.sh-body-wrap { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.sh-body-wrap h2, .sh-related h2 { font-size: 20px; margin: 0 0 16px; }
.sh-body { font-size: 15px; line-height: 1.9; color: #33383d; overflow-wrap: break-word; }
.sh-body p { margin: 0 0 12px; }
.sh-body img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 8px; }
.sh-body table { max-width: 100%; border-collapse: collapse; }
.sh-body td, .sh-body th { border: 1px solid var(--line); padding: 6px 10px; }
.sh-body ul, .sh-body ol { padding-left: 22px; }
.sh-body a { color: var(--brand); }

.sh-related { margin-top: 48px; }

/* ---------- 咨询条 ---------- */
.sh-consult { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: var(--radius); background: #1b1f24; color: #fff; }
.sh-consult-t { margin: 0 0 4px; font-size: 19px; }
.sh-consult-s { margin: 0; font-size: 13px; color: #a9b1ba; }
.sh-consult-act { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-consult .sh-btn { border-color: rgba(255, 255, 255, .28); background: transparent; color: #fff; }
.sh-consult .sh-btn:hover { border-color: #fff; }
.sh-consult .sh-btn-main { background: var(--brand); border-color: var(--brand); }
.sh-consult .sh-btn-main:hover { background: var(--brand-dark); }

/* ---------- 页脚 ---------- */
.sh-foot { margin-top: 56px; background: #171a1e; color: #9aa2ab; font-size: 13px; }
.sh-foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.sh-foot-col p { margin: 0 0 8px; }
.sh-foot-title { color: #fff; font-size: 15px; margin-bottom: 12px !important; }
.sh-foot-col a { color: #c3cad2; }
.sh-foot-col a:hover { color: #fff; }
.sh-foot-copy { margin: 0; padding: 16px; border-top: 1px solid #24282d; text-align: center; font-size: 12px; color: #7d858e; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .sh-catgrid { grid-template-columns: repeat(4, 1fr); }
    .sh-detail-top { grid-template-columns: 1fr; gap: 24px; }
    .sh-gallery-main { max-width: 520px; }
}

@media (max-width: 900px) {
    .sh-hero-in { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
    .sh-hero h1 { font-size: 26px; }
    .sh-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .sh-foot-in { grid-template-columns: 1fr 1fr; }
    .sh-gallery-main { aspect-ratio: 4 / 3; }
    .sh-detail-top { gap: 20px; }
}

@media (max-width: 720px) {
    .sh-head-in { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .sh-search { order: 3; flex-basis: 100%; max-width: none; }
    .sh-tel { margin-left: auto; }
    .sh-nav-in { gap: 16px; overflow-x: auto; }
    .sh-nav-note { display: none; }
    .sh-catgrid { grid-template-columns: repeat(3, 1fr); }
    .sh-cattile { padding: 12px; }
    .sh-cattile b { font-size: 14px; }
    .sh-hero-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sh-card-body { padding: 10px; }
    .sh-card-name { font-size: 13px; }
    .sh-price { font-size: 15px; }
    .sh-catgrid { grid-template-columns: repeat(2, 1fr); }
    .sh-hero h1 { font-size: 22px; }
    .sh-info h1 { font-size: 20px; }
    .sh-consult { padding: 20px; }
    .sh-foot-in { grid-template-columns: 1fr; gap: 22px; }
    .sh-listbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
