/* ============================================================
   Modern Split — 工业品出口站（亮色现代版）
   由 fastener-industrial 克隆而来(经 modern-export)，故早期文件顶部是深色主题:
   文件末尾那段亮色覆写才是本主题真正的配色来源。v3.33.11 删掉了开头这段已被
   完全覆盖的暗色 :root,避免读代码时把主题底色判成深色。
   配色变量可被 theme.json palette 覆盖（layout 注入 :root）。
   ============================================================ */

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

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶栏（深色横条：左品牌右导航，区别于 pest-pro 白底圆角） ---------- */
.topbar {
    background: #0a1118;
    border-bottom: 2px solid var(--brand);
    position: sticky; top: 0; z-index: 100;
}
/* v3.33.7 窄屏顶栏溢出修复(自 modern-export 移植):390px 下品牌字标 + 语言条 +
   RFQ + 汉堡挤在同一行,品牌作为 flex 项默认 min-width:auto 拒绝收缩,整行右边界会
   顶到视口外。这里让顶栏本身可换行、品牌可收缩省略,并把右侧操作区提为类名
   (原来只有内联样式,媒体查询够不着)。桌面宽度下内容一排放得下,版式与原来一致。 */
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 66px; flex-wrap: wrap; column-gap: 0.8rem; row-gap: 0.35rem;
    padding: 0.35rem 0;
}
.brand {
    display: flex; align-items: center; gap: 0.65rem;
    font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
    min-width: 0;                       /* v3.33.7:flex 项默认 min-width:auto,长品牌名不肯收缩 */
}
.topbar .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v3.33.15:上面这条 nowrap 只给顶栏 —— 页脚 .brand 里也有一模一样的结构(色块 + 品牌名),
   全局选择器会让页脚品牌名不可折行,列宽被撑到 min-content,390px 下页脚横向溢出
   (长品牌名实测 scrollWidth 478 > 390)。收敛到 .topbar 作用域后页脚恢复折行。 */
.brand-mark {
    width: 34px; height: 34px; border-radius: 6px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #0a1118; display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.brand small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 0.22em; }
.topnav { display: flex; align-items: center; gap: 1.6rem; }
.topnav a {
    font-size: 0.86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.btn-rfq {
    background: var(--brand); color: #0a1118;
    padding: 0.55rem 1.15rem; border-radius: 4px;
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.btn-rfq:hover { background: #fbbf24; }
.topbar-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; row-gap: 0.35rem; }
.langstrip { display: flex; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; }
.mobile-menu-btn .ico { display: inline-block; vertical-align: middle; }
.mobile-menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.2rem; padding: 0.3rem 0.7rem; border-radius: 4px; cursor: pointer; }

/* ---------- 通用区块 ---------- */
.section { padding: 4.2rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
    color: var(--brand); font-weight: 800; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 0.6rem;
}
.section h2.title { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.01em; margin-bottom: 0.5rem; }
.section p.lead { color: var(--muted); max-width: 640px; margin-bottom: 2.2rem; }

.btn {
    display: inline-block; padding: 0.72rem 1.5rem; border-radius: 4px;
    font-weight: 700; font-size: 0.92rem; cursor: pointer; border: 1px solid transparent;
    text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem;
}
.btn-primary { background: var(--brand); color: #0a1118; }
.btn-primary:hover { background: #fbbf24; }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.78rem; }

/* ---------- Hero（左文右规格徽章，非图片大banner） ---------- */
.hero {
    padding: 5.2rem 0 4.6rem;
    background:
        linear-gradient(180deg, rgba(14,22,32,0) 0%, var(--bg) 96%),
        repeating-linear-gradient(-45deg, #101a26 0 14px, #0e1620 14px 28px);
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; letter-spacing: 0.01em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p.sub { color: var(--muted); margin: 1.1rem 0 1.9rem; max-width: 560px; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hero-badge {
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand);
    border-radius: 6px; padding: 0.85rem 1rem;
}
.hero-badge b { display: block; font-size: 1.05rem; }
.hero-badge span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- 数字条 ---------- */
.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    background: var(--surface);
}
.stats-strip .cell { padding: 1.3rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stats-strip .cell:last-child { border-right: none; }
.stats-strip b { font-size: 1.55rem; color: var(--brand); display: block; }
.stats-strip span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- 分类网格（金属面板风） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cat-card {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
    padding: 1.4rem 1.3rem; transition: border-color .18s, transform .18s;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.cat-card .hex { color: var(--brand); font-size: 1.5rem; }
.cat-card h3 { font-size: 1.02rem; margin: 0.5rem 0 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cat-card p { color: var(--muted); font-size: 0.86rem; }
.cat-card .more { color: var(--brand); font-size: 0.8rem; font-weight: 700; display: inline-block; margin-top: 0.6rem; }

/* ---------- 标准带 ---------- */
.standards {
    display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
    padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: #0a1118;
}
.standards .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; margin-right: 0.6rem; }
.std-chip {
    border: 1px solid var(--line); border-radius: 4px; padding: 0.32rem 0.75rem;
    font-size: 0.8rem; font-weight: 700; color: var(--text); background: var(--surface);
}
.std-chip b { color: var(--brand); }

/* ---------- 产品列表（技术清单风：左侧型号块右侧参数） ---------- */
.prod-list { display: flex; flex-direction: column; gap: 1rem; }
.prod-row {
    display: grid; grid-template-columns: 200px 1fr 180px; gap: 1.5rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    padding: 1.1rem 1.3rem; transition: border-color .18s;
}
.prod-row:hover { border-color: var(--brand); }
.prod-thumb {
    background: #0a1118; border: 1px solid var(--line); border-radius: 6px;
    height: 130px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--muted); overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-row h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.prod-row .sku { color: var(--brand); font-size: 0.76rem; letter-spacing: 0.1em; margin-bottom: 0.45rem; }
.prod-row .desc { color: var(--muted); font-size: 0.86rem; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.spec-chip {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px;
    font-size: 0.74rem; padding: 0.22rem 0.55rem; color: var(--muted);
}
.spec-chip b { color: var(--text); font-weight: 600; }
.prod-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- 分类 tab（方形工业风） ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tab {
    background: var(--surface); border: 1px solid var(--line); color: var(--muted);
    padding: 0.45rem 1rem; border-radius: 4px; font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
}
.tab.active, .tab:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 440px 1fr; gap: 2.5rem; align-items: start; }
.detail-img {
    background: #0a1118; border: 1px solid var(--line); border-radius: 8px;
    min-height: 340px; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: var(--muted); overflow: hidden;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; table-layout: fixed; }
.spec-table th, .spec-table td {
    border: 1px solid var(--line); padding: 0.55rem 0.9rem; font-size: 0.88rem; text-align: left;
}
.spec-table th { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.spec-table th:first-child { width: 22%; }
.detail-feats { list-style: none; margin: 0.8rem 0 1.4rem; }
.detail-feats li { padding: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.detail-feats li::before { content: "▸ "; color: var(--brand); font-weight: 800; }

/* ---------- RFQ 表单（深色面板） ---------- */
.rfq-panel {
    background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand);
    border-radius: 8px; padding: 2rem;
}
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
    width: 100%; background: #0a1118; border: 1px solid var(--line); border-radius: 4px;
    color: var(--text); padding: 0.62rem 0.75rem; font-size: 0.92rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field.full { grid-column: 1 / -1; }
.rfq-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.8rem; }
.form-msg { display: none; margin-top: 0.9rem; font-size: 0.9rem; }

/* ---------- 页脚 ---------- */
.footer { background: #0a1118; border-top: 1px solid var(--line); padding: 3.2rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); margin-bottom: 0.9rem; }
.footer p, .footer li { color: var(--muted); font-size: 0.86rem; }
.footer ul { list-style: none; }
.footer li { padding: 0.18rem 0; }
.footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.2rem; color: var(--muted); font-size: 0.78rem; text-align: center; }

/* ---------- 知识中心（技术资料） ---------- */
.doc-list { display: flex; flex-direction: column; gap: 0.7rem; }
.doc-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem;
}
.doc-row h4 { font-size: 0.95rem; }
.doc-row p { color: var(--muted); font-size: 0.82rem; }
.badge {
    display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
    color: var(--brand); font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; border-radius: 3px; padding: 0.18rem 0.55rem; margin-bottom: 0.3rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero-grid, .detail-grid { grid-template-columns: 1fr; }
    .prod-row { grid-template-columns: 90px 1fr; }
    .prod-actions { grid-column: 1 / -1; flex-direction: row; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topnav {
        display: none; position: absolute; top: 66px; left: 0; right: 0;
        background: #0a1118; flex-direction: column; align-items: flex-start;
        padding: 1rem 1.25rem; gap: 0.6rem; border-bottom: 1px solid var(--line);
    }
    .topnav.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* 证书与设备图片墙(v3.13 内容驱动) */
.gal-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:1.4rem; }
.gal-card { margin:0; border:2px solid var(--line); background:var(--surface); transition:border-color .15s; }
.gal-card:hover { border-color:var(--brand); }
.gal-card img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gal-card figcaption { padding:0.7rem 0.9rem; font-size:0.82rem; font-weight:700; color:var(--text); }


/* ============ modern-export:亮色现代覆写(v3.14) ============ */
:root {
  --bg: #ffffff; --surface: #f6f8fc; --surface-2: #eef2f9; --line: #e3e8f0;
  --text: #182238; --muted: #66738c; --brand: #116dff; --brand-dark: #0b54c4; --ok: #16a34a;
}
body { font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Segoe UI', sans-serif; }
.kicker, .title, h2.title { text-transform: none; letter-spacing: -0.01em; }
.hero-badge, .cat-card, .mod, .gal-card, .rfq-panel { border-radius: 10px; }
.btn { border-radius: 8px; text-transform: none; letter-spacing: 0.02em; }
.cat-card .hex { border-radius: 8px; }
.standards .std-chip { border-radius: 999px; }

/* —— modern-export:去深色硬编码,统一为亮色现代(v3.14) —— */
.topbar { background: #ffffff; border-bottom: 2px solid var(--brand); box-shadow: 0 1px 0 rgba(17,109,255,.06); }
.topbar .brand span, .topbar a { color: var(--text); }
.hero {
  background:
    linear-gradient(180deg, rgba(17,109,255,0.05) 0%, #ffffff 96%),
    repeating-linear-gradient(-45deg, #f3f7fd 0 14px, #eef3fb 14px 28px);
}
.btn-primary, .btn-rfq { color: #ffffff; }   /* v3.33.7:白字只给实心按钮,裸 .btn 会压掉 .btn-outline 的深色字 */
.btn-rfq { border-color: var(--brand); }
.btn-primary:hover, .btn-rfq:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.topnav { background: #ffffff; }
.section.alt, .standards { background: var(--surface-2); }

/* —— modern-export:表单/页脚等残余深色硬编码的亮色修正(v3.16) —— */
.field input, .field select, .field textarea {
  background: #ffffff; color: var(--text); border-color: var(--line);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa6b8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.prod-thumb, .detail-img { background: var(--surface-2); }
.footer { background: var(--surface-2); border-top-color: var(--line); }
.footer h4 { color: var(--text); }
.footer p, .footer li, .footer-bottom { color: var(--muted); }

/* 窄屏:操作区独占一行,语言条空间不够时再折到第三行;按钮不参与收缩(v3.33.7) */
@media (max-width: 620px) {
    .brand { font-size: 1rem; }
    .brand small { font-size: 0.58rem; letter-spacing: 0.12em; }
    .topbar-actions { flex: 1 1 100%; justify-content: space-between; }
    .langstrip { flex-wrap: wrap; row-gap: 0.2rem; }
    .btn-rfq { flex: none; white-space: nowrap; padding: 0.5rem 0.9rem; font-size: 0.78rem; }
    .mobile-menu-btn { flex: none; margin-left: auto; }
}
