/* 海马加速器 — 官网主题（青绿 + 琥珀） */
:root {
    --hm-primary: #0f766e;
    --hm-primary-dark: #115e59;
    --hm-primary-light: #14b8a6;
    --hm-accent: #d97706;
    --hm-accent-light: #fbbf24;
    --hm-bg: #f0fdfa;
    --hm-bg-alt: #ecfdf5;
    --hm-surface: #ffffff;
    --hm-text: #134e4a;
    --hm-text-muted: #5f7a78;
    --hm-border: rgba(15, 118, 110, 0.12);
    --hm-shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
    --hm-shadow-hover: 0 12px 32px rgba(15, 118, 110, 0.14);
    --hm-radius: 12px;
    --hm-radius-lg: 20px;
    --hm-nav-h: 72px;
    --hm-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--hm-text);
    line-height: 1.65;
    background: var(--hm-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hm-primary);
    text-decoration: none;
    transition: color var(--hm-transition);
}

a:hover {
    color: var(--hm-accent);
}

/* —— 导航 —— */
.z37e5bnavbar {
    background: var(--hm-surface);
    border-bottom: 1px solid var(--hm-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z37e5bnavbar-brand img {
    height: 42px;
    width: auto;
}

.z37e5bnav-link {
    color: var(--hm-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--hm-transition), color var(--hm-transition);
}

.z37e5bnav-link:hover {
    color: var(--hm-primary) !important;
    background: var(--hm-bg-alt);
}

.z37e5bnavbar-toggler {
    border: 1px solid var(--hm-border);
    padding: 0.4rem 0.55rem;
}

.z37e5bnavbar .navbar-collapse {
    background: var(--hm-surface);
}

/* —— 首页 Hero —— */
.z37e5bhero-section {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(160deg, var(--hm-primary-dark) 0%, var(--hm-primary) 45%, #2dd4bf 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.z37e5bhero-section::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 45%;
    height: 140%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z37e5bhero-content {
    position: relative;
    z-index: 1;
}

.z37e5bhero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.z37e5bhero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z37e5bhero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.z37e5bhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z37e5bhero-buttons .btn {
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    border: none;
}

.z37e5bhero-buttons .btn-light {
    background: #fff;
    color: var(--hm-primary-dark);
}

.z37e5bhero-buttons .btn-light:hover {
    background: var(--hm-accent-light);
    color: var(--hm-primary-dark);
    transform: translateY(-2px);
}

.z37e5bhero-buttons .btn-primary,
.z37e5bbtn.btn-primary {
    background: var(--hm-accent);
    color: #fff;
}

.z37e5bhero-buttons .btn-primary:hover,
.z37e5bbtn.btn-primary:hover {
    background: #b45309;
    color: #fff;
    transform: translateY(-2px);
}

.z37e5bhero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z37e5bhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.z37e5bhero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.hm-section {
    padding: 4rem 0;
}

.hm-section-alt {
    background: var(--hm-bg-alt);
}

.hm-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hm-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--hm-primary-dark);
    margin-bottom: 0.75rem;
}

.hm-section-head p {
    color: var(--hm-text-muted);
    margin: 0;
    font-size: 1rem;
}

/* —— 产品优势 Bento —— */
#features.hm-bento-section {
    padding: 4rem 0;
}

.hm-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.hm-bento-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.5rem;
    box-shadow: var(--hm-shadow);
    transition: transform var(--hm-transition), box-shadow var(--hm-transition);
    overflow: hidden;
    min-height: 0;
}

.hm-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-hover);
}

.hm-bento-card--wide {
    grid-column: span 7;
}

.hm-bento-card--narrow {
    grid-column: span 5;
}

.hm-bento-card--third {
    grid-column: span 4;
}

.hm-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hm-primary-light), var(--hm-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hm-bento-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--hm-primary-dark);
}

.hm-bento-card p {
    font-size: 0.95rem;
    color: var(--hm-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 数据统计 —— */
.z37e5bstats-section {
    padding: 3rem 0;
    background: var(--hm-surface);
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
}

.hm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hm-stat-item {
    text-align: center;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--hm-border);
}

.hm-stat-item:last-child {
    border-right: none;
}

.z37e5bstat-number,
.hm-stat-num {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--hm-primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.z37e5bstat-label,
.hm-stat-label {
    font-size: 0.9rem;
    color: var(--hm-text-muted);
}

/* —— 下载区 —— */
.z37e5bdownload-section {
    padding: 4rem 0;
    background: var(--hm-bg);
}

.z37e5bdownload-header h2 {
    color: var(--hm-primary-dark);
    font-weight: 700;
}

.z37e5bdownload-subtitle {
    color: var(--hm-text-muted);
}

.hm-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.z37e5bdownload-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--hm-transition);
}

.z37e5bdownload-card:hover {
    box-shadow: var(--hm-shadow-hover);
}

.z37e5bdownload-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z37e5bplatform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.z37e5bios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.z37e5bandroid-icon {
    background: linear-gradient(135deg, var(--hm-primary-light), var(--hm-primary));
}

.z37e5bdownload-info {
    background: var(--hm-bg-alt);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--hm-border);
    flex: 1;
}

.z37e5binfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--hm-text-muted);
}

.z37e5binfo-item:last-child {
    margin-bottom: 0;
}

.z37e5binfo-item i {
    color: var(--hm-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z37e5bdownload-action {
    margin-top: auto;
    padding-top: 1rem;
}

.z37e5bdownload-action .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    justify-content: center;
    white-space: normal;
}

.hm-download-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hm-download-head h3 {
    font-size: 1.1rem;
    margin: 0 0 0.15rem;
    color: var(--hm-primary-dark);
}

.hm-download-head .text-muted {
    font-size: 0.85rem;
    margin: 0;
}

/* —— 安全区 —— */
.z37e5bsecurity-section {
    padding: 4rem 0;
    background: var(--hm-bg-alt);
}

.z37e5bsecurity-header h2 {
    color: var(--hm-primary-dark);
    font-weight: 700;
}

.hm-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z37e5bsecurity-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.35rem;
    height: 100%;
    box-shadow: var(--hm-shadow);
    text-align: center;
    overflow: hidden;
}

.z37e5bsecurity-card h3 {
    font-size: 1rem;
    color: var(--hm-primary-dark);
    margin: 0.75rem 0;
}

.z37e5bsecurity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.z37e5bsecurity-features {
    background: var(--hm-bg);
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--hm-border);
    text-align: left;
}

.z37e5bfeature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--hm-text-muted);
    margin-bottom: 0.4rem;
}

.z37e5bfeature-item:last-child {
    margin-bottom: 0;
}

.z37e5bfeature-item i {
    color: var(--hm-primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.hm-cert-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.z37e5bcertificate-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--hm-shadow);
}

.z37e5bcertificate-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--hm-bg-alt);
    color: var(--hm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--hm-border);
}

.z37e5bcertificate-card h4 {
    font-size: 0.95rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.35rem;
}

.z37e5bcertificate-card p {
    font-size: 0.85rem;
    color: var(--hm-text-muted);
    margin: 0;
}

/* —— FAQ —— */
#faq.hm-faq-section {
    padding: 4rem 0;
    background: var(--hm-surface);
}

.hm-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hm-faq-item {
    background: var(--hm-bg);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.25rem 1.35rem;
    overflow: hidden;
}

.hm-faq-item h5 {
    font-size: 1rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hm-faq-item p {
    font-size: 0.9rem;
    color: var(--hm-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 知识简介 —— */
.hm-knowledge {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--hm-bg-alt) 0%, var(--hm-bg) 100%);
}

.hm-knowledge-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.hm-knowledge-block {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.5rem;
    box-shadow: var(--hm-shadow);
}

.hm-knowledge-block h3 {
    font-size: 1.1rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hm-primary-light);
    display: inline-block;
}

.hm-knowledge-block p,
.hm-knowledge-block li {
    font-size: 0.92rem;
    color: var(--hm-text-muted);
    line-height: 1.7;
}

.hm-knowledge-block ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* —— 文章区 —— */
#article.hm-article-section {
    padding: 4rem 0;
    background: var(--hm-bg-alt);
}

#article .card {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    height: 100%;
}

#article .card-img-top {
    height: 110px;
    object-fit: cover;
    width: 100%;
}

#article .card-body {
    padding: 0.85rem;
}

#article h3.h5 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--hm-text);
}

#article h3.h5 a:hover {
    color: var(--hm-primary);
}

.z37e5bbtn.btn-outline-primary {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
    border-radius: 10px;
}

.z37e5bbtn.btn-outline-primary:hover {
    background: var(--hm-primary);
    color: #fff;
}

/* —— 页脚 —— */
.z37e5bfooter {
    background: var(--hm-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z37e5bfooter p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.z37e5bfooter-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z37e5bfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z37e5bfooter-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.z37e5bfooter-link:hover {
    color: var(--hm-accent-light);
}

.z37e5bfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    margin-top: 2rem;
}

.z37e5bfooter-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.z37e5bfooter-bottom a:hover {
    color: var(--hm-accent-light);
}

.z37e5bfriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z37e5bfriend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* —— 列表页 / 内页 —— */
.hm-page-banner {
    background: linear-gradient(135deg, var(--hm-primary-dark), var(--hm-primary));
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 0;
}

.hm-page-banner h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.35rem;
}

.hm-page-banner p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
}

.hm-inner-section {
    padding: 2rem 0 3rem;
}

.hm-inner-section .card {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
}

.hm-inner-section .card-body {
    padding: 1.25rem;
}

.hm-sidebar .card {
    margin-bottom: 1rem;
}

.hm-sidebar .card h3 {
    font-size: 1rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.75rem;
}

.z37e5barticle-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z37e5barticle-content img {
    max-width: 100%;
    height: auto;
}

.z37e5bthumb-cover {
    max-width: 100%;
    border-radius: var(--hm-radius);
}

.z37e5bmeta-tags .z37e5btagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--hm-bg-alt);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* 分页 */
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .hm-bento-card--wide,
    .hm-bento-card--narrow,
    .hm-bento-card--third {
        grid-column: span 12;
    }

    .hm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--hm-border);
    }

    .hm-stat-item:nth-child(2n) {
        border-right: none;
    }

    .hm-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .hm-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-cert-row {
        grid-template-columns: 1fr;
    }

    .hm-knowledge-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .z37e5bnavbar {
        padding: 0.5rem 0;
    }

    .z37e5bnavbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: var(--hm-radius);
        border: 1px solid var(--hm-border);
        padding: 0.5rem;
    }

    .z37e5bhero-section {
        padding: 2.5rem 0 3rem;
    }

    .z37e5bhero-buttons {
        flex-direction: column;
    }

    .z37e5bhero-buttons .btn {
        width: 100%;
    }

    .hm-section,
    #features.hm-bento-section,
    .z37e5bdownload-section,
    .z37e5bsecurity-section,
    #faq.hm-faq-section,
    #article.hm-article-section {
        padding: 2.5rem 0;
    }

    .hm-download-grid {
        grid-template-columns: 1fr;
    }

    .z37e5bdownload-card .card-body {
        padding: 1.15rem;
    }

    .hm-download-head {
        flex-wrap: wrap;
    }

    .hm-faq-grid {
        grid-template-columns: 1fr;
    }

    .hm-security-grid {
        grid-template-columns: 1fr;
    }

    .hm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z37e5bstat-number,
    .hm-stat-num {
        font-size: 1.5rem;
    }

    #article .row-cols-lg-5 {
        --bs-columns: 2;
    }

    #article .card-img-top,
    .z37e5bthumb-home {
        height: 96px !important;
    }

    #article h3.h5 {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .z37e5bthumb-list,
    .z37e5bthumb-related {
        height: 72px !important;
    }

    .z37e5bthumb-side {
        height: 50px !important;
    }

    .z37e5bthumb-cover {
        width: 100% !important;
        height: 170px !important;
        object-fit: cover;
    }

    .z37e5bfooter .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z37e5bfriend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hm-section-head {
        margin-bottom: 1.5rem;
    }

    .hm-bento-card {
        padding: 1.15rem;
    }

    .z37e5bcertificate-card {
        padding: 1rem;
    }

    #article .z37e5bthumb-home {
        height: 88px !important;
    }

    .z37e5bthumb-list,
    .z37e5bthumb-related {
        height: 64px !important;
    }

    .z37e5bthumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}
