/* ===========================
   StarStar 电子元器件 - 主样式
   =========================== */

/* 变量 */
:root {
    --primary: #003580;
    --primary-light: #0057a8;
    --primary-hover: #002660;
    --accent: #e8401a;
    --green: #28a745;
    --red: #dc3545;
    --text: #222;
    --text-muted: #666;
    --border: #e0e0e0;
    --bg: #f4f6f9;
    --bg-white: #fff;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }

/* 容器 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 32px); }
.float-right { float: right; }

/* ===== 顶部公告栏 ===== */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
    line-height: 1.4;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

/* ===== 主导航 ===== */
.main-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--primary);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo（弹性缩放，自适应屏幕） */
.logo { display: flex; align-items: center; gap: clamp(6px, 1.5vw, 16px); flex-shrink: 0; }
.logo-star { font-size: clamp(28px, 5vw, 56px); color: var(--accent); }
.logo-text { font-size: clamp(22px, 4vw, 44px); font-weight: 800; color: var(--primary); letter-spacing: -2px; }
.logo-sub { font-size: clamp(12px, 2vw, 24px); color: var(--text-muted); border-left: 2px solid var(--border); padding-left: clamp(6px, 1vw, 16px); }

/* 搜索栏（弹性缩放，自适应屏幕） */
.search-box { flex: 1; max-width: 1200px; position: relative; }
.search-box form { display: flex; border: 2px solid var(--primary); border-radius: var(--radius); overflow: visible; }
.search-type-select {
    border: none; border-right: 2px solid var(--border); padding: 0 clamp(8px, 2vw, 20px);
    background: #f0f4fb; color: var(--primary); font-size: clamp(13px, 2vw, 26px); cursor: pointer;
    outline: none; min-width: clamp(100px, 15vw, 220px); height: clamp(36px, 5vw, 60px);
}
.search-box input {
    flex: 1; border: none; padding: clamp(8px, 2vw, 20px) clamp(10px, 2vw, 28px); font-size: clamp(14px, 2.5vw, 28px); outline: none; height: clamp(36px, 5vw, 60px);
}
.search-btn {
    background: var(--primary); color: #fff; border: none; padding: clamp(8px, 2vw, 20px) clamp(12px, 3vw, 40px);
    cursor: pointer; font-size: clamp(14px, 2.5vw, 28px); display: flex; align-items: center; gap: clamp(4px, 1vw, 12px);
    transition: background .2s; height: clamp(36px, 5vw, 60px);
}
.search-btn:hover { background: var(--primary-hover); }
.search-btn.large { padding: 12px 28px; font-size: 16px; }

/* 搜索建议 */
.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover); z-index: 200; max-height: 300px; overflow-y: auto;
}
.suggestion-item { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }
.suggestion-item:hover { background: #f0f4fb; }
.suggestion-model { font-weight: 600; color: var(--primary); }
.suggestion-name { color: var(--text-muted); font-size: 13px; }

/* 头部右侧 */
.header-right { display: flex; gap: 12px; flex-shrink: 0; }
.header-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); padding: 4px 8px; border-radius: var(--radius); transition: all .2s; }
.header-icon:hover { color: var(--primary); background: #f0f4fb; }

/* ===== 分类导航 ===== */
.category-nav { background: var(--primary); padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-menu { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cat-menu::-webkit-scrollbar { display: none; }
.cat-menu > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 18px); color: #fff; font-size: clamp(12px, 1.5vw, 14px); white-space: nowrap;
    transition: background .2s; border-right: 1px solid rgba(255,255,255,.1);
}
.cat-menu > li > a:hover, .cat-menu > li.active > a { background: var(--accent); }
.cat-menu > li.all-categories > a { background: rgba(0,0,0,.15); font-weight: 600; }

/* ===== 主内容 ===== */
.main-content { }

/* ===== Banner ===== */
.banner-section {
    position: relative; border-radius: 10px; overflow: hidden;
    height: 320px; margin-bottom: 24px;
}
.banner-slider { width: 100%; height: 100%; position: relative; }
.banner-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    padding: 40px; opacity: 0; transition: opacity .6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-content { z-index: 2; }
.banner-content h1 { font-size: 32px; color: #fff; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.banner-content p { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 20px; }
.btn-banner {
    display: inline-block; background: #fff; color: var(--primary);
    padding: 10px 28px; border-radius: 4px; font-weight: 700; font-size: 15px;
    transition: all .2s; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.banner-decor { position: absolute; right: 60px; font-size: 120px; opacity: .15; }
.banner-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.dot.active { background: #fff; width: 24px; border-radius: 5px; }
.banner-prev, .banner-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.35); color: #fff; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%; font-size: 16px; z-index: 3; transition: background .2s;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,.6); }

/* ===== 特性栏 ===== */
.features-bar {
    display: flex; gap: 0; background: #fff; border-radius: 8px;
    box-shadow: var(--shadow); margin-bottom: 28px; overflow: hidden;
}
.feature-item {
    flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 20px;
    border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feat-icon { font-size: 26px; }
.feature-item strong { display: block; font-size: 14px; color: var(--text); }
.feature-item small { color: var(--text-muted); font-size: 12px; }

/* ===== 通用Section ===== */
.section { margin-bottom: 32px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--text); border-left: 4px solid var(--primary); padding-left: 10px; }
.view-all { color: var(--primary); font-size: 14px; transition: color .2s; }
.view-all:hover { color: var(--accent); }

/* ===== 分类网格 ===== */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.cat-card {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 20px 12px; text-align: center; display: block;
    transition: all .2s; cursor: pointer;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-card-icon { font-size: 36px; margin-bottom: 8px; }
.cat-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.cat-card-en { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cat-sub-count { font-size: 11px; color: var(--primary); margin-top: 6px; }

/* ===== 产品卡片网格 ===== */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.product-card {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; display: block; transition: all .2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
.product-card-img { height: 140px; background: #f8f8f8; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.product-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.no-img { font-size: 48px; color: #ccc; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-card-info { padding: 12px; }
.product-model { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.product-name { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.product-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.product-stock { font-size: 12px; margin-top: 4px; }

/* ===== 标签 ===== */
.tag { display: inline-block; background: #f0f4fb; color: var(--primary); border: 1px solid #c8d8f0; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tag-blue { background: #e8f4ff; color: #0066cc; border-color: #b8d8ff; }
.tag-green { background: #e8f7ef; color: #28a745; border-color: #b8e6ca; }
.tag.small { font-size: 11px; padding: 1px 6px; }
.in-stock { color: var(--green); }
.out-stock { color: var(--red); }

/* ===== 品牌介绍 ===== */
.brand-section { background: #f8f9fb; border-radius: 10px; padding: 28px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.brand-card { background: #fff; border-radius: 8px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.brand-icon { font-size: 40px; margin-bottom: 12px; }
.brand-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.brand-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== 页面布局（侧边栏+主内容） ===== */
.page-layout { display: flex; gap: 20px; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.sidebar-title { background: var(--primary); color: #fff; padding: 12px 16px; font-size: 15px; font-weight: 700; }
.cat-tree { padding: 8px 0; }
.tree-item { }
.tree-link { display: flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: 14px; color: var(--text); transition: all .2s; border-left: 3px solid transparent; }
.tree-link:hover, .tree-link.active { background: #f0f4fb; color: var(--primary); border-left-color: var(--primary); }
.tree-children { overflow: hidden; }
.tree-children:not(.open) { display: none; }
.tree-children.open { display: block; }
.tree-sub-item { }
.tree-sub-link { display: block; padding: 7px 16px 7px 28px; font-size: 13px; color: var(--text-muted); transition: all .2s; border-left: 3px solid transparent; }
.tree-sub-link:hover, .tree-sub-link.active { color: var(--primary); background: #f7faff; border-left-color: var(--primary-light); }
.tree-level3 { }
.tree-level3:not(.open) { display: none; }
.tree-level3.open { display: block; }
.tree-leaf { display: block; padding: 6px 16px 6px 44px; font-size: 12px; color: var(--text-muted); transition: all .2s; }
.tree-leaf:hover, .tree-leaf.active { color: var(--primary); }

.page-main { flex: 1; min-width: 0; }

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 分类页头部 ===== */
.cat-header { margin-bottom: 16px; }
.cat-header h1 { font-size: 22px; font-weight: 700; }

/* 子分类 */
.sub-cats { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sub-cats-title { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.sub-cats-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-cat-item {
    background: #f0f4fb; color: var(--primary); border: 1px solid #c8d8f0;
    padding: 6px 14px; border-radius: 4px; font-size: 13px; text-align: center; transition: all .2s;
}
.sub-cat-item:hover { background: var(--primary); color: #fff; }
.sub-cat-item small { display: block; color: inherit; opacity: .75; font-size: 11px; }

/* ===== 筛选栏 ===== */
.filter-bar { display: flex; align-items: center; gap: 8px; background: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; box-shadow: var(--shadow); }
.filter-label { font-size: 13px; color: var(--text-muted); }
.filter-btn { background: #f0f0f0; border: 1px solid var(--border); padding: 5px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.total-count { margin-left: auto; font-size: 13px; color: var(--text-muted); }

/* ===== 产品列表（条形） ===== */
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-list-item {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 14px; display: flex; gap: 16px; align-items: center; transition: all .2s;
}
.product-list-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.pli-img { width: 120px; height: 120px; background: #f8f8f8; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.pli-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pli-img .no-img { font-size: 48px; }
.pli-info { flex: 1; min-width: 0; }
.pli-model { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pli-name { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.pli-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pli-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.pli-right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pli-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.pli-unit { font-size: 12px; color: var(--text-muted); }
.pli-stock { font-size: 13px; }
.pli-moq { font-size: 12px; color: var(--text-muted); }
.btn-detail { background: var(--primary); color: #fff; border: none; padding: 7px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; transition: background .2s; }
.btn-detail:hover { background: var(--primary-hover); }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; padding: 16px 0; }
.pagination button { background: #fff; border: 1px solid var(--border); padding: 7px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; transition: all .2s; }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ===== 产品详情页 ===== */
.product-detail-main { display: flex; gap: 28px; background: #fff; border-radius: 10px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.detail-img-box { width: 320px; flex-shrink: 0; position: relative; }
.detail-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.detail-no-img { width: 100%; height: 280px; background: #f8f8f8; border-radius: 8px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #bbb; font-size: 14px; }
.detail-brand-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 4px; margin-top: 10px; }
.detail-info { flex: 1; }
.detail-model { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.detail-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.detail-name-en { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-price-box { background: #fafbff; border-radius: 8px; padding: 16px; margin-bottom: 16px; border: 1px solid #e0e8f8; }
.detail-price { font-size: 14px; color: var(--text-muted); }
.price-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.price-unit { font-size: 14px; color: var(--text-muted); }
.price-face { font-size: 22px; font-weight: 700; color: var(--text-muted); }
.detail-stock { font-size: 14px; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.stock-dot.out { background: var(--red); }
.detail-moq { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.detail-quick-specs { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.spec-row { display: flex; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-k { background: #f5f7fa; padding: 8px 14px; width: 120px; font-size: 13px; color: var(--text-muted); font-weight: 500; flex-shrink: 0; border-right: 1px solid var(--border); }
.spec-v { padding: 8px 14px; font-size: 14px; color: var(--text); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-inquiry { background: var(--accent); color: #fff; border: none; padding: 11px 24px; border-radius: 5px; font-size: 15px; cursor: pointer; font-weight: 600; transition: all .2s; }
.btn-inquiry:hover { background: #c73515; transform: translateY(-1px); }
.btn-datasheet { background: var(--green); color: #fff; border: none; padding: 11px 24px; border-radius: 5px; font-size: 15px; cursor: pointer; font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; }
.btn-datasheet:hover { background: #218838; }
.btn-copy { background: #fff; color: var(--primary); border: 2px solid var(--primary); padding: 9px 20px; border-radius: 5px; font-size: 15px; cursor: pointer; transition: all .2s; }
.btn-copy:hover { background: var(--primary); color: #fff; }

.detail-section { background: #fff; border-radius: 10px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.detail-section .section-title { font-size: 16px; margin-bottom: 14px; }
.specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs-key { background: #f5f7fa; color: var(--text-muted); font-weight: 500; width: 180px; border-right: 1px solid var(--border); }
.detail-desc { font-size: 14px; color: var(--text); line-height: 1.7; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.related-card { background: #f8f9fb; border: 1px solid var(--border); border-radius: 6px; padding: 14px; text-align: center; transition: all .2s; display: block; }
.related-card:hover { border-color: var(--primary); background: #f0f4fb; }
.related-no-img { font-size: 32px; margin-bottom: 8px; }
.related-model { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.related-name { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.related-price { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 6px; }

/* ===== 搜索页 ===== */
.search-page-header { background: var(--primary); padding: 28px 0; margin-bottom: 20px; border-radius: 10px; }
.search-page-form { display: flex; max-width: 700px; margin: 0 auto; padding: 0 20px; border-radius: 6px; overflow: hidden; }
.search-page-input { flex: 1; padding: 13px 16px; font-size: 16px; border: none; outline: none; border-radius: 6px 0 0 6px; }
.search-result-header { background: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; font-size: 14px; color: var(--text-muted); box-shadow: var(--shadow); }
.search-result-header strong { color: var(--accent); font-size: 18px; }
.search-result-header em { color: var(--primary); font-style: normal; font-weight: 700; }
mark { background: #fff3a0; padding: 0 2px; border-radius: 2px; }

/* ===== 通用 ===== */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 5px; font-size: 15px; transition: background .2s; }
.btn-primary:hover { background: var(--primary-hover); }
.loading-placeholder { text-align: center; padding: 40px; color: var(--text-muted); }
.loading-placeholder.small { padding: 20px; }
.spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state h2 { font-size: 22px; margin: 16px 0 8px; color: var(--text); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ===== 首页分类区域 - 左右联动布局 ===== */
.cat-section { margin-bottom: 0; }

/* 分类左右布局容器 */
.cat-layout {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 460px;
    overflow: hidden;
}

/* 左侧一级分类 */
.cat-left {
    width: 200px;
    flex-shrink: 0;
    background: #f5f7fa;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.cat-left-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eaecf0;
    transition: all .15s;
    position: relative;
    font-size: 13px;
    color: var(--text);
}
.cat-left-item:hover,
.cat-left-item.active {
    background: var(--primary);
    color: #fff;
}
.cat-left-item:hover .cat-left-arrow,
.cat-left-item.active .cat-left-arrow {
    color: #fff;
}
.cat-left-icon { font-size: 16px; flex-shrink: 0; }
.cat-left-name { flex: 1; font-weight: 500; line-height: 1.3; }
.cat-left-arrow { font-size: 16px; color: #bbb; margin-left: auto; flex-shrink: 0; }

/* 右侧子分类展开区 */
.cat-right {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.cat-right-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
}

.cat-right-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.cat-right-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.cat-view-all-btn {
    font-size: 13px;
    color: var(--accent);
    background: #fff3f0;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #f8c8bb;
    transition: all .2s;
    white-space: nowrap;
}
.cat-view-all-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 右侧子分类网格 */
.cat-right-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px 24px;
}

.cat-sub-block {}

.cat-sub-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e8f8;
    width: 100%;
}
.cat-sub-title:hover { color: var(--accent); }

.cat-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-sub-list li {
    margin-bottom: 4px;
}
.cat-sub-list a {
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 0;
    display: block;
    transition: color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-sub-list a:hover {
    color: var(--accent);
}

.cat-right-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

/* ===== 产品详情页增强 ===== */
.detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.detail-model {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.detail-status { font-size: 13px; }

.status-active { color: #22c55e; font-weight: 600; }
.status-obsolete { color: #ef4444; font-weight: 600; }
.status-warning { color: #f59e0b; font-weight: 600; }

.detail-desc-short {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
    max-width: 560px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: #f8f9fb;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.meta-label { color: var(--text-muted); font-weight: 600; }
.meta-value { color: var(--text); font-family: monospace; flex: 1; }

.btn-copy-sm {
    font-size: 11px;
    padding: 2px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all .2s;
}
.btn-copy-sm:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 快速参数 */
.detail-quick-specs {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.detail-quick-specs .spec-row {
    display: flex;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.detail-quick-specs .spec-k {
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
}

.detail-quick-specs .spec-v {
    color: var(--text);
    font-weight: 500;
}

/* 价格区 */
.detail-price-box { margin-bottom: 14px; }

.detail-price-primary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.price-label { font-size: 13px; color: var(--text-muted); }
.price-main { font-size: 28px; font-weight: 800; color: var(--accent); }
.price-unit { font-size: 13px; color: var(--text-muted); }
.price-qty { font-size: 12px; color: var(--text-muted); }
.inquiry-price { font-size: 20px; color: var(--text-muted); font-style: italic; }

/* 价格梯度表格 */
.price-tiers { margin-top: 8px; }

.price-tiers-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tiers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.tiers-table th {
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    text-align: left;
    font-weight: 600;
}

.tiers-table td {
    padding: 5px 12px;
    border-bottom: 1px solid var(--border);
    font-family: monospace;
}

.tiers-table tr:last-child td { border-bottom: none; }
.tiers-table .tier-first { background: #fff9f0; }
.tiers-table tr:nth-child(even) td { background: #f8f9fb; }

/* 环保分类 */
.env-k { color: var(--text-muted); font-size: 12px; }
.env-v { font-size: 12px; font-weight: 600; }
.env-green { color: #16a34a; }
.env-grey { color: #9ca3af; }
.env-normal { color: var(--text); }

.env-table td:first-child { min-width: 200px; }

/* 相关产品增强 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    background: #fff;
    display: block;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37,99,235,.1);
    transform: translateY(-1px);
}

.related-model {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    font-family: monospace;
    margin: 6px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.related-mfr {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.related-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.related-no-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f7fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 4px;
}

.detail-param-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.source-link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.source-link-a {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

.source-link-a:hover { text-decoration: underline; }

/* 详情页布局 */
.product-detail-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.detail-img-box {
    position: relative;
}

.detail-img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
}

.detail-no-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f7fa;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #d1d5db;
}

.detail-no-img p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: monospace;
}

.detail-brand-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.detail-info { flex: 1; }

.detail-name {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 4px;
    font-weight: 400;
}

.detail-name-en {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

/* 价格区 */
.detail-price-box {
    background: #fff9f5;
    border: 1px solid #fde8d8;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.detail-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 6px;
}

.in-stock { color: #16a34a; }
.out-stock { color: #ef4444; }

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}
.stock-dot.out { background: #ef4444; }

.detail-moq {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 操作按钮 */
.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-inquiry {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-inquiry:hover { background: #1d4ed8; box-shadow: 0 2px 8px rgba(37,99,235,.3); }

.btn-datasheet {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    background: #fff;
}
.btn-datasheet:hover { background: var(--primary); color: #fff; }

.btn-copy {
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

.btn-zalo {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1.5px solid #0068FF;
    background: linear-gradient(135deg, #0068FF, #0044CC);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-zalo:hover { background: linear-gradient(135deg, #0077FF, #0055DD); box-shadow: 0 2px 8px rgba(0,104,255,.35); }

/* 详情区通用 */
.detail-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* 参数表 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: #f8f9fb; }
.specs-table td:first-child { background: #f0f4ff; font-weight: 600; white-space: nowrap; min-width: 150px; }

.specs-key { color: var(--text-muted); font-weight: 500; }
.specs-val { color: var(--text); }

/* 描述 */
.detail-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    background: #f8f9fb;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* 面包屑 */
.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 10px 0;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 - 产品详情页平板适配 */
@media (max-width: 768px) {
    .product-detail-main {
        grid-template-columns: 1fr;
    }
    .detail-quick-specs {
        grid-template-columns: 1fr;
    }
    .specs-table td:first-child { min-width: 120px; }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* ===== Toast ===== */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(0,0,0,.8); color: #fff; padding: 12px 24px; border-radius: 6px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 9999; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 页脚 ===== */
.footer { background: #1a2b4a; color: rgba(255,255,255,.8); padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; padding-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.5); }

/* 响应式：中等屏幕（≤900px） */
@media (max-width: 900px) {
    .page-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .product-detail-main { flex-direction: column; grid-template-columns: 1fr; }
    .detail-img-box { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cat-left { width: 160px; }
}

/* 响应式：平板（≤768px） */
@media (max-width: 768px) {
    /* 容器：缩小侧边距 */
    .container { padding: 0 clamp(12px, 4vw, 32px); }

    /* 主导航：Logo 缩小，搜索栏换行 */
    .main-header { padding: clamp(10px, 2vw, 18px) 0; }
    .header-inner { flex-wrap: wrap; gap: clamp(8px, 2vw, 20px); }
    .logo-sub { display: none; }
    .search-box { order: 3; flex-basis: 100%; max-width: 100%; }
    .search-type-select { min-width: clamp(80px, 20vw, 160px); font-size: clamp(12px, 2vw, 16px); }

    /* 分类导航：隐藏 mega menu，仅显示滚动列表 */
    .cat-menu > li.has-sub .mega-menu { display: none !important; }

    /* 横幅自适应高度与内边距 */
    .hero-banner {
        min-height: clamp(360px, 55vh, 480px);
        padding: clamp(28px, 5vw, 48px) 16px clamp(48px, 8vw, 80px);
    }

    /* 卖点卡片：小屏改为单列堆叠 */
    .ff-row { flex-direction: column; align-items: stretch; }
    .fc-center-bottom { max-width: 100%; flex: 1 1 100%; }

    /* 搜索行：小屏改为上下堆叠 */
    .hero-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cat-btn {
        justify-content: center;
    }

    /* 右侧悬浮按钮：小屏改为底部横排 */
    .side-cat-btn {
        writing-mode: horizontal-tb;
        padding: 10px 16px;
        border-radius: 10px 0 0 10px;
        top: auto;
        bottom: 20px;
        right: 0;
        transform: none;
        flex-direction: row;
    }
    .side-cat-btn:hover { padding: 12px 18px; }

    /* 页脚：两列布局 */
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* 分类左右布局适配 */
    .cat-layout { flex-direction: column; }
    .cat-left { width: 100%; max-height: 300px; }
    .cat-right-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    /* 分类页顶部 */
    .cat-page-title { font-size: clamp(24px, 5vw, 36px); }
}

/* 响应式：大手机/小平板（≤600px） */
@media (max-width: 600px) {
    .header-inner { flex-wrap: wrap; }
    .search-box { order: 3; flex-basis: 100%; max-width: 100%; }
    .search-type-select { display: none; }
    .features-bar { flex-direction: column; }
    .product-list-item { flex-wrap: wrap; }
    .pli-right { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }

    /* 产品详情页 */
    .product-detail-main { grid-template-columns: 1fr; padding: 16px; }
    .detail-actions { flex-direction: column; }
    .detail-actions button { width: 100%; }
}

/* 响应式：手机（≤480px） */
@media (max-width: 480px) {
    /* 容器：超小屏进一步缩小侧边距 */
    .container { padding: 0 clamp(8px, 3vw, 16px); }

    /* 主导航紧凑模式 */
    .main-header { padding: 8px 0; }
    .logo-star { font-size: 28px; }
    .logo-text { font-size: 22px; letter-spacing: -1px; }
    .logo-sub { display: none; }
    .search-box form { border-width: 1px; }
    /* 搜索按钮紧凑 */
    .search-btn { padding: 8px 12px; font-size: 14px; gap: 4px; }
    .search-btn svg { width: 14px; height: 14px; }

    /* 横幅紧凑 */
    .hero-banner {
        min-height: clamp(320px, 60vh, 460px);
        padding: 24px 12px 48px;
    }
    .hero-logo {
        gap: 4px;
    }
    .hero-search-row {
        gap: 6px;
    }
    .hero-cat-btn span {
        display: none;  /* 超小屏只显示图标 */
    }
    .hero-cat-btn {
        padding: 10px 14px;
        min-width: 44px;
        justify-content: center;
    }
    /* 卖点卡片：手机端单列 */
    .ff-row { flex-direction: column; align-items: stretch; }
    .fc-center-bottom { max-width: 100%; }

    /* 页脚：单列布局 */
    .footer-grid { grid-template-columns: 1fr; }
    .footer { padding: 24px 0 0; }

    /* 功能栏：竖排 */
    .features-bar { flex-direction: column; }
    .product-list-item { flex-wrap: wrap; }
    .pli-right { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* ========== 大屏幕优化（>1400px）========== */
@media (min-width: 1400px) {
    .container { max-width: 1400px; padding: 0 40px; }
    .hero-banner { min-height: 600px; padding: 64px clamp(12px, 3vw, 32px) 56px; }
}

/* ========== 英雄横幅（首页主视觉 · 容器内居中，两边留白） ========== */
.hero-banner {
    position: relative;
    background: #061225;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 50vh, 520px);
    padding: clamp(32px, 5vw, 48px) clamp(12px, 3vw, 32px) clamp(32px, 5vw, 56px);
    box-sizing: border-box;
}

/* 内部各区块统一限宽并居中 */
.hero-top-text,
.hero-brand,
.hero-search-box {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* 背景装饰 */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 电路纹理背景 */
.hero-circuit {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 87, 168, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 87, 168, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 装饰圆 */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 87, 168, 0.3);
}
.hero-circle.c1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.hero-circle.c2 { width: 200px; height: 200px; bottom: 20px; left: -40px; border-color: rgba(0, 200, 255, 0.15); }
.hero-circle.c3 { width: 140px; height: 140px; top: 50%; left: 5%; border-color: rgba(0, 180, 255, 0.12); }

/* 顶部主标题 */
.hero-top-text {
    position: relative;
    text-align: center;
    margin-bottom: clamp(16px, 4vw, 32px);
    padding: 0 16px;
}
.hero-main-title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 900;
    color: #fff;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    text-shadow: 0 2px 20px rgba(0, 87, 168, 0.8);
    margin-bottom: clamp(4px, 1vw, 8px);
    line-height: 1.2;
    word-break: break-word;
}
.hero-sub-title {
    font-size: clamp(12px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: clamp(0.3px, 0.3vw, 0.5px);
}

/* 品牌区 */
.hero-brand {
    position: relative;
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 36px);
    z-index: 2;
    width: 100%;
}
.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    margin-bottom: clamp(4px, 1vw, 6px);
    flex-wrap: wrap;
    justify-content: center;
}
.logo-star-lg { font-size: clamp(28px, 5vw, 48px); color: #e8401a; }
.logo-text-lg {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 900;
    color: #fff;
    letter-spacing: clamp(2px, 0.8vw, 4px);
    text-shadow: 0 0 30px rgba(0, 150, 255, 0.4);
    word-break: break-word;
}
/* STASTAR 艺术字右侧小字 Electronics */
.logo-electronics {
    font-size: clamp(11px, 1.5vw, 16px);
    color: rgba(255,255,255,0.55);
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-transform: uppercase;
    align-self: flex-end;
    margin-left: clamp(4px, 0.8vw, 10px);
    margin-bottom: clamp(4px, 0.8vw, 8px);
    font-weight: 400;
}

/* 搜索框模块 */
.hero-search-box {
    width: 100%;
    max-width: clamp(300px, 90vw, 680px);
    margin: 0 auto;
}
.hero-search-row {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    justify-content: center;
}
.hero-search-inner {
    display: flex;
    flex: 1;
    min-width: 0;
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 50px;
    overflow: hidden;
    background: rgba(0, 30, 70, 0.9);
    box-shadow: 0 0 30px rgba(0, 100, 200, 0.3);
    transition: border-color .3s, box-shadow .3s;
}
.hero-search-inner:focus-within {
    border-color: rgba(0, 150, 255, 0.9);
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.5);
}
.hero-search-inner input {
    flex: 1;
    min-width: 60px;
    background: transparent;
    border: none;
    padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 24px);
    font-size: clamp(13px, 1.8vw, 16px);
    color: #fff;
    outline: none;
    font-family: inherit;
}
.hero-search-inner input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search-btn {
    background: #0057a8;
    border: none;
    padding: clamp(10px, 1.5vw, 14px) clamp(18px, 2.5vw, 28px);
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background .2s;
    flex-shrink: 0;
}
.hero-search-btn:hover { background: #0073c6; }

/* 分类查找按钮 */
.hero-cat-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 6px);
    padding: clamp(8px, 1.2vw, 12px) clamp(12px, 2vw, 18px);
    background: rgba(0, 30, 70, 0.9);
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 50px;
    color: #fff;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
    flex-shrink: 0;
    text-decoration: none;
}
.hero-cat-btn:hover {
    background: rgba(0, 87, 168, 0.8);
    border-color: rgba(0, 150, 255, 0.9);
    transform: translateY(-2px);
}

/* ========== 独立分类页顶部 ========== */
.cat-page-hero {
    background: linear-gradient(135deg, #003580 0%, #0057a8 50%, #0073c6 100%);
    padding: 48px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cat-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 150, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.cat-page-hero-inner { position: relative; z-index: 1; }
.cat-page-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.cat-page-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
}

/* ========== 分类页主体布局 ========== */
/* 复用 .cat-layout 左右结构，覆盖 min-height */
#catLayout {
    min-height: 520px;
}

/* 卖点卡片区：对称矩阵布局 */
.hero-features {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(16px, 3vw, 28px);
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 14px);
}

/* 行容器 */
.ff-row {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 14px);
}
.ff-center {
    justify-content: center;
}

/* 卡片样式 */
.feature-card {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    background: rgba(6, 18, 37, 0.75);
    border: 1px solid rgba(0, 120, 200, 0.35);
    border-radius: 12px;
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform .2s, border-color .2s;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 160, 255, 0.6);
}

/* 正下方卡片宽度收窄 */
.fc-center-bottom {
    flex: 0 1 auto;
    max-width: 90%;
}

/* 圆形标签 */
.fc-badge {
    width: clamp(32px, 4vw, 44px);
    height: clamp(32px, 4vw, 44px);
    border-radius: 50%;
    background: rgba(0, 87, 168, 0.8);
    border: 2px solid rgba(0, 150, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.4);
}

.fc-text { text-align: left; overflow: hidden; }
.fc-cn { font-size: clamp(12px, 1.8vw, 16px); font-weight: 700; color: #fff; margin-bottom: clamp(1px, 0.5vw, 3px); line-height: 1.3; }
.fc-vn { font-size: clamp(9px, 1.2vw, 13px); color: rgba(255,255,255,0.55); line-height: 1.3; }

/* ========== 右侧悬浮分类按钮 ========== */
.side-cat-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #003580;
    color: #fff;
    padding: 14px 12px;
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    writing-mode: vertical-rl;
    letter-spacing: 1px;
    z-index: 999;
    box-shadow: -3px 0 12px rgba(0,0,0,0.25);
    transition: background .2s, padding .2s;
}
.side-cat-btn:hover {
    background: #0057a8;
    padding: 16px 14px;
}
.side-cat-btn svg { flex-shrink: 0; }
