/* ============================================================
   杰柏特半导体 JOULPOWER — 全站统一公共样式
   基于 index.html 新版企业风格：科技蓝 + 深炭灰 + 品牌红
   供 index / products / news / about / contact / selector /
   resources / solutions / clients 等前台页面复用。
   ============================================================ */

:root {
    --brand-blue: #0078d4;
    --brand-blue-dark: #005a9e;
    --brand-blue-light: #e6f3ff;
    --brand-charcoal: #1f1f1f;
    --brand-gray: #4a4a4a;
    --brand-red: #d92332;
    --gold: #b8924f;
    --gold-light: #f7f0e1;
    --bg: #f7f9ff;
    --white: #ffffff;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e8ebf1;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 40px rgba(0, 86, 179, 0.07);
    --shadow-hover: 0 18px 56px rgba(0, 86, 179, 0.13);
    --ring: 0 0 0 3px rgba(0, 120, 212, 0.18);
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 统一键盘可达焦点样式（高级感 = 无障碍） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo img {
    height: 42px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-gray);
    transition: color .25s;
    position: relative;
    padding: 8px 0;
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--brand-blue);
    transition: width .25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brand-blue); }
.nav-login {
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s;
}
.nav-login:hover { background: var(--brand-blue-dark); transform: translateY(-1px); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--brand-charcoal);
    cursor: pointer;
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px 24px 28px;
        gap: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        align-items: flex-start;
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 10px 0; }
    .menu-toggle { display: block; }
}

/* ---------- 页面通用 ---------- */
.page-wrap {
    padding-top: 72px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ---------- 内页 Hero（对齐主页 index.html 主 Hero 浅色风格） ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--brand-charcoal);
    padding: 72px 24px 64px;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,120,212,0.10) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(217,35,50,0.06) 0%, transparent 35%);
    z-index: 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,86,179,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,86,179,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: var(--brand-charcoal);
}
.page-hero h1 span { color: var(--brand-blue); }
.page-hero h1::before {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
    margin: 0 auto 18px;
}
.page-hero p {
    font-size: 17px;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- 香槟金小标签 / 细线（第三点缀色，克制冷静，不破坏蓝色主调） ---------- */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 12px;
}
.eyebrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--brand-blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 区块 ---------- */
.section { margin-bottom: 48px; }
.section-head {
    text-align: center;
    margin-bottom: 40px;
}
.section-head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--brand-charcoal);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}
.section-head h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-blue);
    margin: 14px auto 0;
}
.section-head p {
    color: var(--muted);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}
.section-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand-charcoal);
    letter-spacing: 0.4px;
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 4px;
    border-radius: 4px;
    background: var(--brand-blue);
}
.section-sub {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,120,212,0.35);
}
.card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--brand-charcoal); }
.card p { color: var(--muted); font-size: 14px; }
.card ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 14px; }
.card ul li { margin-bottom: 6px; }

/* ---------- 两列图文 ---------- */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
}
.feature h3 { font-size: 22px; margin-bottom: 12px; color: var(--brand-charcoal); }
.feature p { color: var(--muted); margin-bottom: 12px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    gap: 6px;
}
.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,120,212,0.25);
}
.btn-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,120,212,0.35);
}
.btn-outline {
    border: 2px solid var(--brand-charcoal);
    color: var(--brand-charcoal);
    background: transparent;
}
.btn-outline:hover {
    background: var(--brand-charcoal);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- 表单 ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0,120,212,0.10);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- 信息列表 ---------- */
.info-list { list-style: none; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--muted); min-width: 96px; font-weight: 500; }
.info-list .v { color: var(--text); font-weight: 500; }

/* ---------- 提示条 ---------- */
.notice {
    background: var(--brand-blue-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #f7f9ff;
    color: #6b7280;
    padding: 40px 24px;
    text-align: center;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}
.site-footer a { color: #0078d4; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #005a9e; }
.site-footer strong { color: #1f1f1f; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .page-hero { padding: 56px 20px 48px; }
    .feature { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .container { padding: 24px 16px; }
    .site-footer { padding: 32px 18px; font-size: 12px; gap: 6px; }
}

/* ---------- 页脚顶部细线（高级感收口） ---------- */
.site-footer {
    border-top: 1px solid #e8ebf1;
}

/* ---------- 进场微动效（加载即播放，尊重 prefers-reduced-motion） ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp 0.6s ease both; }
@media (prefers-reduced-motion: reduce) {
    .fade-up { animation: none; }
}

/* ---------- 提示条（统一令牌） ---------- */
.notice {
    background: var(--brand-blue-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}
