/* ============================================================
   博与科技官网样式
   ============================================================ */
:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #dc2626;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f3f6fb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 17px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
}

.site-nav a {
    color: var(--text-muted);
    transition: color .2s;
}

.site-nav a:hover {
    color: var(--primary);
}

.site-nav .nav-cta {
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
}

.site-nav .nav-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ---------------- 通用区块 ---------------- */
.section {
    padding: 72px 0;
}

.alt-bg {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 14px;
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #fff;
    padding: 96px 0 88px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 22px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, .85);
}

/* ---------------- 商店下载按钮 ---------------- */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    min-width: 178px;
    transition: background .2s, transform .2s;
}

.store-btn:hover {
    background: rgba(0, 0, 0, .45);
    transform: translateY(-2px);
}

.store-icon {
    font-size: 20px;
    line-height: 1;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
    font-size: 17px;
    font-weight: 600;
}

.store-text small {
    font-size: 11px;
    font-weight: 400;
    opacity: .85;
}

.store-note {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

/* ---------------- 公司简介 ---------------- */
.about .section-lead {
    margin-bottom: 0;
    font-size: 17px;
}

/* ---------------- 产品介绍 ---------------- */
.product-showcase {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
}

.showcase-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.phone-mock {
    width: 220px;
    height: 400px;
    margin: 0 auto 14px;
    border: 10px solid #1f2937;
    border-radius: 28px;
    background: #fff;
    padding: 14px;
    box-shadow: var(--shadow);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.mock-bar {
    height: 14px;
    border-radius: 6px;
    background: var(--primary-light);
    opacity: .85;
}

.mock-row {
    height: 26px;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.mock-total {
    margin-top: auto;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: .9;
}

.product-points {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.point h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.point p {
    color: var(--text-muted);
}

.point.highlight {
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
}

/* ---------------- 特性卡片 ---------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 26px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------------- 适用场景 ---------------- */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.scenario-item {
    padding: 24px 20px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
}

.scenario-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--primary);
}

.scenario-item p {
    font-size: 14px;
    color: var(--text-muted);
    text-align: left;
}

/* ---------------- 对比表 ---------------- */
.table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 15px 18px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.compare-table td:last-child {
    color: var(--primary);
    font-weight: 600;
}

/* ---------------- 下载区 ---------------- */
.download {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #fff;
}

.download .section-title,
.download .section-lead {
    color: #fff;
}

.download .section-lead {
    color: rgba(255, 255, 255, .85);
}

.download .store-btn {
    border-color: rgba(255, 255, 255, .7);
}

/* ---------------- 子页面（服务条款等） ---------------- */
.page-section {
    padding: 56px 0 72px;
    min-height: 55vh;
}

.page-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.legal-article {
    max-width: 800px;
    padding: 32px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 15px;
    line-height: 1.8;
}

.legal-article h4 {
    font-size: 18px;
    margin: 26px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.legal-article ol,
.legal-article ul {
    padding-left: 24px;
    margin: 10px 0;
}

.legal-article li {
    list-style: decimal;
    margin-bottom: 4px;
}

.legal-article p {
    margin: 10px 0;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #111827;
    color: #9ca3af;
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 20px 36px;
}

.footer-brand .brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.footer-brand p {
    margin-top: 12px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom .link {
    margin-left: 10px;
    color: #9ca3af;
}

.footer-bottom .link:hover {
    color: #fff;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 6px;
    }

    .site-nav {
        gap: 16px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}
