/* chuangwei-en — 外贸工业风设计系统
   Tokens: charcoal #1F2430 / steel blue #2C5F8A / safety orange #E8590C
   VARIANCE 4 / MOTION 2 / DENSITY 5 — trust-first industrial B2B */

:root {
    --ink: #1F2430;
    --ink-soft: #3A4152;
    --steel: #2C5F8A;
    --steel-dark: #214A6B;
    --accent: #E8590C;
    --accent-dark: #C94A06;
    --bg: #FFFFFF;
    --bg-alt: #F4F6F8;
    --line: #DFE4EA;
    --text: #23272F;
    --text-soft: #5A6272;
    --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 4px;
    --wrap: 1200px;
}

@font-face {
    font-family: 'Inter';
    src: url('/template/chuangwei/fonts/inter/inter_woff2/inter-400.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/template/chuangwei/fonts/inter/inter_woff2/inter-500.woff2') format('woff2');
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/template/chuangwei/fonts/inter/inter_woff2/inter-600.woff2') format('woff2');
    font-weight: 600; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/template/chuangwei/fonts/inter/inter_woff2/inter-700.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.65;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--ink); border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo img { height: 40px; width: auto; background: #fff; padding: 4px 10px; border-radius: var(--radius); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
    color: #C9D1DC; font-size: 15px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { color: #C9D1DC; font-size: 14px; border: 1px solid #4A5265; padding: 5px 12px; border-radius: var(--radius); }
.lang-switch:hover { color: #fff; border-color: #8A94A8; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; font-weight: 600; font-size: 15px;
    padding: 11px 24px; border-radius: var(--radius);
    transition: transform .12s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #EDF1F5; color: var(--ink); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #E8ECF1; padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: 40px; font-weight: 700; margin-bottom: 18px; }
.hero-sub { font-size: 18px; color: #B8C2CF; max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: #4A5265; color: #E8ECF1; }
.hero .btn-ghost:hover { border-color: #8A94A8; color: #fff; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Standards strip ---------- */
.standards-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 22px 24px; }
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item .mono { color: var(--steel); font-weight: 600; font-size: 15px; }
.strip-item span:last-child { color: var(--text-soft); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 56px; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 32px; padding-left: 14px; border-left: 4px solid var(--accent); }
.section-more { text-align: center; margin-top: 32px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--steel);
    padding: 22px 20px; border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cat-card:hover { border-top-color: var(--accent); box-shadow: 0 4px 16px rgba(31,36,48,.08); }
.cat-index { color: var(--accent); font-size: 13px; font-weight: 600; }
.cat-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.cat-arrow { position: absolute; right: 18px; bottom: 16px; color: var(--steel); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
    display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: var(--steel); box-shadow: 0 6px 20px rgba(31,36,48,.08); }
.product-media { aspect-ratio: 4/3; background: var(--bg-alt); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 18px 20px 20px; }
.product-info h2, .product-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.product-info p { font-size: 14px; color: var(--text-soft); }

/* ---------- Breadcrumb / page ---------- */
.breadcrumb-row { padding: 18px 24px 0; }
.breadcrumb { font-size: 14px; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline; list-style: none; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.page-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.page-desc { color: var(--text-soft); max-width: 70ch; margin-bottom: 28px; }
.page-content h2 { font-size: 22px; margin: 28px 0 12px; }
.page-content p { margin-bottom: 14px; max-width: 75ch; }

/* ---------- Subcat tabs ---------- */
.subcat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.subcat-tabs a {
    font-size: 14px; font-weight: 500; color: var(--ink-soft);
    border: 1px solid var(--line); padding: 7px 16px; border-radius: var(--radius);
}
.subcat-tabs a:hover { border-color: var(--steel); color: var(--steel); }

/* ---------- Pager ---------- */
.pager { margin-top: 36px; text-align: center; }
.pager a, .pager span {
    display: inline-block; padding: 7px 14px; margin: 0 3px;
    border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px;
}
.pager .current, .pager span.current { background: var(--steel); color: #fff; border-color: var(--steel); }

/* ---------- Product detail ---------- */
.product-detail { padding-bottom: 64px; }
.pd-header { padding: 24px 0 28px; }
.pd-title { font-size: 30px; font-weight: 700; margin-bottom: 10px; max-width: 30em; }
.pd-subtitle { color: var(--accent); font-size: 14px; font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.pd-media { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-spec-title { font-size: 18px; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--text-soft); font-weight: 500; width: 42%; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 2px solid var(--ink); }
.pd-cta { display: flex; gap: 12px; margin-top: 22px; }
.pd-body { max-width: 75ch; margin-bottom: 48px; }
.pd-body p { margin-bottom: 14px; }
.pd-body h2 { font-size: 22px; margin: 32px 0 12px; }
.pd-body h3 { font-size: 17px; margin: 22px 0 8px; }
.faq h3 { color: var(--steel-dark); }

/* ---------- Performance / Applications ---------- */
.pd-perf, .pd-scene { margin-bottom: 48px; }
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.perf-item { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.perf-item h3 { font-size: 16px; margin-bottom: 10px; color: var(--steel-dark); }
.perf-item p { font-size: 14.5px; color: var(--text-soft); }
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pd-app-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pd-app-card .pd-app-icon { color: var(--steel); font-size: 22px; margin-bottom: 10px; }
.pd-app-card h2 { font-size: 15.5px; margin-bottom: 8px; }
.pd-app-card p { font-size: 13.5px; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--steel-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 24px; }
.cta-actions { display: flex; gap: 14px; }

/* ---------- RFQ sticky bar ---------- */
.rfq-bar {
    position: sticky; bottom: 0; z-index: 90;
    background: var(--ink); border-top: 3px solid var(--accent);
    padding: 10px 0;
}
.rfq-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rfq-text { color: #E8ECF1; font-size: 15px; font-weight: 500; }
.rfq-actions { display: flex; gap: 10px; }
.rfq-actions .btn { padding: 8px 18px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B8C2CF; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 24px 40px; }
.footer-brand img { height: 36px; width: auto; background: #fff; padding: 4px 10px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col h2 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: #B8C2CF; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #343B4B; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #8A94A8; }

/* ---------- 404 ---------- */
.nf-wrap { max-width: 560px; margin: 0 auto; padding: 120px 24px; text-align: center; }
.nf-code { font-size: 72px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.nf-wrap h1 { font-size: 28px; margin-bottom: 14px; }
.nf-wrap p { color: var(--text-soft); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { height: 60px; gap: 14px; }
    .main-nav {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: var(--ink); flex-direction: column; padding: 12px 20px 18px;
        border-bottom: 3px solid var(--accent);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .btn-quote { display: none; }
    .hero { padding: 48px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 16px; }
    .section { padding: 44px 0; }
    .section-title { font-size: 23px; }
    .page-title { font-size: 25px; }
    .cat-grid, .product-grid, .perf-grid { grid-template-columns: 1fr; }
    .pd-grid { grid-template-columns: 1fr; gap: 28px; }
    .pd-title { font-size: 24px; }
    .strip-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .rfq-text { display: none; }
    .rfq-inner { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 28px; }
}
