/* 泊瞰电子官网统一样式 */
:root {
    --primary: #1668dc;
    --primary-dark: #0f4fb0;
    --primary-light: #e8f1ff;
    --text: #1f2329;
    --text-sub: #5f6570;
    --text-light: #8a9099;
    --border: #e5e8ed;
    --bg: #f6f8fb;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(22, 104, 220, .07);
    --shadow-hover: 0 8px 28px rgba(22, 104, 220, .15);
    --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text); }
.brand-en { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
    padding: 8px 16px;
    color: var(--text-sub);
    font-size: 15px;
    border-radius: 6px;
    font-weight: 500;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: var(--text-sub); padding: 4px 8px;
}

/* ============ 面包屑 ============ */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-sub); }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(135deg, #0d3d8f 0%, #1668dc 55%, #3b8ff0 100%);
    color: #fff;
    padding: 76px 0 84px;
    text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 18px; line-height: 1.35; }
.hero .sub { font-size: 18px; opacity: .93; max-width: 780px; margin: 0 auto 14px; }
.hero .kw { font-size: 14px; opacity: .78; max-width: 860px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f6ff; color: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ============ 通用区块 ============ */
.section { padding: 60px 0; }
.section-white { background: var(--white); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--text-sub); font-size: 15px; max-width: 720px; margin: 0 auto; }

.page-head {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 36px 0 40px;
}
.page-head h1 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.page-head .lead { color: var(--text-sub); font-size: 15px; max-width: 860px; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #c9dcff; transform: translateY(-2px); }

/* 产品卡片 */
.prod-card { display: flex; flex-direction: column; height: 100%; }
.prod-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.prod-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-light);
    padding: 6px;
    object-fit: contain;
}
.prod-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.prod-card h3 a { color: var(--text); }
.prod-card h3 a:hover { color: var(--primary); }
.prod-meta { font-size: 12px; color: var(--text-light); }
.prod-desc { color: var(--text-sub); font-size: 14px; flex: 1; margin-bottom: 14px; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
}
.tag-gray { background: #f2f4f7; color: var(--text-sub); }
.prod-actions { display: flex; gap: 10px; }

/* 特性卡 */
.feature { text-align: center; }
.feature .ico {
    width: 52px; height: 52px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
    border-radius: 12px; font-size: 24px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-sub); font-size: 14px; }

/* ============ 产品详情页 ============ */
.detail-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 30px 0 44px;
}
.detail-hero-inner { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.detail-hero img.big-icon {
    width: 96px; height: 96px; flex-shrink: 0;
    border-radius: 20px; background: var(--primary-light); padding: 10px;
    object-fit: contain;
}
.detail-hero-body { flex: 1; min-width: 280px; }
.detail-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.detail-hero .en { font-size: 14px; color: var(--text-light); margin-bottom: 14px; letter-spacing: .5px; }
.detail-hero .lead { font-size: 16px; color: var(--text-sub); margin-bottom: 18px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.spec-table th, .spec-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.spec-table th { background: #fafbfd; color: var(--text-sub); font-weight: 600; width: 160px; white-space: nowrap; }

.content-block { margin-bottom: 40px; }
.content-block h2 {
    font-size: 22px; font-weight: 700; margin-bottom: 18px;
    padding-left: 12px; border-left: 4px solid var(--primary);
}
.content-block h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.content-block p { color: var(--text-sub); margin-bottom: 12px; }

.list-check li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-sub);
    font-size: 15px;
}
.list-check li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--primary); font-weight: 700;
}
.list-check li strong { color: var(--text); }

.list-num { counter-reset: n; }
.list-num li {
    counter-increment: n;
    position: relative; padding-left: 32px; margin-bottom: 12px;
    color: var(--text-sub);
}
.list-num li::before {
    content: counter(n);
    position: absolute; left: 0; top: 3px;
    width: 22px; height: 22px; line-height: 22px; text-align: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 12px; font-weight: 700;
}

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.sidebar-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}
.sidebar-box h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-box ul li { margin-bottom: 9px; font-size: 14px; }
.sidebar-box .qr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }

.notice {
    background: #fff9e6;
    border: 1px solid #ffe08a;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #7a5b00;
    margin-bottom: 24px;
}
.notice strong { color: #5c4400; }

/* ============ 下载中心 ============ */
.dl-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dl-table thead th { background: #f3f6fb; padding: 14px 16px; text-align: left; font-weight: 600; color: var(--text-sub); border-bottom: 1px solid var(--border); font-size: 13px; }
.dl-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dl-table tbody tr:last-child td { border-bottom: none; }
.dl-table tbody tr:hover { background: #fafcff; }
.dl-name { display: flex; align-items: center; gap: 12px; }
.dl-name img { width: 34px; height: 34px; border-radius: 8px; background: var(--primary-light); padding: 3px; object-fit: contain; }
.dl-name .n { font-weight: 600; }
.dl-name .f { font-size: 12px; color: var(--text-light); font-family: Consolas, Monaco, monospace; }

/* ============ 技术支持 ============ */
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.qr-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.qr-card img { width: 210px; max-width: 100%; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: 8px; }
.qr-card h3 { font-size: 18px; margin-bottom: 8px; }
.qr-card p { color: var(--text-sub); font-size: 14px; }

.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
    padding: 16px 20px; font-weight: 600; font-size: 15px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { background: #fafcff; }
.faq-q .mark { color: var(--primary); font-size: 18px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .25s; color: var(--text-sub); font-size: 14px; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 600px; }

/* ============ 页脚 ============ */
.site-footer {
    background: #1a2130;
    color: #a8b0be;
    padding: 48px 0 26px;
    font-size: 14px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: #a8b0be; }
.footer-col a:hover { color: #fff; }
.footer-about p { line-height: 1.9; font-size: 13px; }
.footer-bottom {
    border-top: 1px solid #2c3444;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #7a8290;
}
.footer-bottom a { color: #7a8290; margin: 0 6px; }
.footer-bottom a:hover { color: #b9c1ce; }
.footer-bottom .beian { margin-top: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav {
        display: none;
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 8px 16px 14px; gap: 2px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }
    .nav.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 52px 0 58px; }
    .hero h1 { font-size: 27px; }
    .hero .sub { font-size: 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .qr-grid { grid-template-columns: 1fr; }
    .section { padding: 42px 0; }
    .section-head h2 { font-size: 23px; }
    .detail-hero h1 { font-size: 24px; }
    .page-head h1 { font-size: 24px; }
    .dl-table { font-size: 13px; display: block; overflow-x: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .spec-table th { width: auto; }
}
