/* 海马加速器 - 官网主题（青绿 + 琥珀） */
:root {
    --hm-primary: #1a6b5c;
    --hm-primary-dark: #0f3d36;
    --hm-accent: #d4922a;
    --hm-accent-light: #f0c878;
    --hm-surface: #f4f7f6;
    --hm-card: #ffffff;
    --hm-text: #1e2a28;
    --hm-muted: #5c6f6a;
    --hm-border: rgba(26, 107, 92, 0.14);
    --hm-radius: 14px;
    --hm-radius-lg: 22px;
    --hm-shadow: 0 8px 28px rgba(15, 61, 54, 0.08);
    --hm-shadow-hover: 0 14px 36px rgba(15, 61, 54, 0.12);
    --hm-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: var(--hm-primary);
    --secondary-color: var(--hm-primary-dark);
    --accent-color: var(--hm-accent);
    --text-color: var(--hm-text);
    --light-bg: var(--hm-surface);
    --transition-speed: 0.28s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body,
.hm-page {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--hm-text);
    line-height: 1.65;
    background: var(--hm-surface);
    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-primary-dark);
}

/* 导航 */
.z29502navbar,
.hm-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hm-border);
    padding: 0.65rem 0;
    box-shadow: none;
}

.z29502navbar-brand img {
    height: 42px;
    width: auto;
}

.z29502nav-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);
}

.z29502nav-link:hover {
    color: var(--hm-primary) !important;
    background: rgba(26, 107, 92, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--hm-border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: #fff;
    padding: 0.75rem;
    border-radius: var(--hm-radius);
    border: 1px solid var(--hm-border);
    margin-top: 0.5rem;
}

/* 按钮 */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform var(--hm-transition), box-shadow var(--hm-transition), background var(--hm-transition);
    white-space: normal;
    text-align: center;
}

.hm-btn-primary,
.z29502hero-buttons .btn-primary,
.z29502download-action .btn-primary {
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark));
    color: #fff !important;
    border: none;
}

.hm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hm-shadow-hover);
    color: #fff !important;
}

.hm-btn-accent {
    background: linear-gradient(135deg, var(--hm-accent), #b87a1f);
    color: #fff !important;
}

.hm-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--hm-shadow-hover);
    color: #fff !important;
}

.hm-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.hm-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.hm-btn-outline-sm {
    background: transparent;
    color: var(--hm-primary) !important;
    border: 1px solid var(--hm-border);
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
}

.hm-btn-outline-sm:hover {
    background: rgba(26, 107, 92, 0.06);
    border-color: var(--hm-primary);
}

/* 英雄区 */
.z29502hero-section,
.hm-hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    color: #fff;
    overflow: hidden;
    background: var(--hm-primary-dark);
}

.hm-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(212, 146, 42, 0.25), transparent 55%),
        radial-gradient(ellipse 70% 50% at 10% 80%, rgba(26, 107, 92, 0.5), transparent 50%),
        linear-gradient(155deg, #0f3d36 0%, #1a6b5c 45%, #134a42 100%);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hm-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.hm-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.z29502hero-title,
.hm-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z29502hero-subtitle,
.hm-hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.z29502hero-buttons,
.hm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hm-hero-frame {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--hm-radius-lg);
    padding: 1.25rem;
    max-width: 320px;
    margin: 0 auto;
}

.z29502hero-image,
.hm-hero-img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.z29502hero-image-shadow {
    display: none;
}

/* 区块通用 */
.hm-section {
    padding: 4rem 0;
}

.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.65rem;
}

.hm-section-head p {
    color: var(--hm-muted);
    margin: 0;
    font-size: 1rem;
}

.hm-section-head--light h2,
.hm-section-head--light p {
    color: #fff;
}

/* 简介 */
.hm-intro {
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
}

.hm-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.hm-intro-grid p {
    margin: 0;
    padding: 1.25rem 1.35rem;
    background: var(--hm-surface);
    border-radius: var(--hm-radius);
    border: 1px solid var(--hm-border);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* 产品优势 Bento */
.hm-features {
    background: linear-gradient(165deg, var(--hm-primary-dark), #1a5c50);
    padding: 4rem 0;
}

.hm-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.hm-bento-main {
    grid-column: span 2;
    grid-row: span 2;
}

.hm-bento-item,
.z29502feature-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--hm-shadow);
    transition: transform var(--hm-transition), box-shadow var(--hm-transition);
    overflow: hidden;
}

.hm-bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-hover);
}

.hm-bento-item h3 {
    font-size: 1.1rem;
    color: var(--hm-primary-dark);
    margin: 0.75rem 0 0.5rem;
}

.hm-bento-item p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.92rem;
}

.z29502feature-icon,
.hm-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    color: var(--hm-primary);
    background: rgba(26, 107, 92, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* 统计 */
.z29502stats-section,
.hm-stats {
    padding: 2.5rem 0;
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border);
    border-bottom: 1px solid var(--hm-border);
}

.hm-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z29502stat-item,
.hm-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid var(--hm-border);
}

.hm-stat:last-child {
    border-right: none;
}

.z29502stat-number,
.hm-stat-num {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--hm-primary);
    margin-bottom: 0.25rem;
}

.z29502stat-label,
.hm-stat-label {
    font-size: 0.9rem;
    color: var(--hm-muted);
}

/* 下载区 */
.z29502download-section,
.hm-download {
    background: var(--hm-surface);
    padding: 4rem 0;
}

.z29502download-header h2 {
    color: var(--hm-primary-dark);
}

.z29502download-subtitle {
    color: var(--hm-muted);
}

.hm-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.z29502download-card,
.hm-dl-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--hm-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--hm-transition);
}

.hm-dl-card:hover {
    box-shadow: var(--hm-shadow-hover);
}

.hm-dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hm-dl-head h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem;
    color: var(--hm-primary-dark);
}

.hm-dl-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--hm-muted);
}

.z29502platform-icon,
.hm-dl-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark));
    color: #fff;
}

.z29502android-icon {
    background: linear-gradient(135deg, #2d9d6a, #1a6b5c);
}

.hm-dl-list,
.z29502download-info {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: var(--hm-surface);
    border-radius: var(--hm-radius);
    border: 1px solid var(--hm-border);
    flex: 1;
}

.hm-dl-list {
    padding-left: 0;
}

.z29502info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    color: var(--hm-muted);
}

.z29502info-item:last-child {
    margin-bottom: 0;
}

.z29502info-item i {
    color: var(--hm-primary);
    margin-top: 0.15rem;
}

.hm-download-note {
    text-align: center;
    max-width: 720px;
    margin: 1.75rem auto 0;
    font-size: 0.9rem;
    color: var(--hm-muted);
    line-height: 1.7;
}

/* 安全 */
.z29502security-section,
.hm-security {
    background: var(--hm-card);
    padding: 4rem 0;
    border-top: 1px solid var(--hm-border);
}

.hm-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z29502security-card,
.hm-sec-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.35rem;
    height: 100%;
    box-shadow: none;
    transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
    overflow: hidden;
}

.hm-sec-card:hover {
    border-color: rgba(26, 107, 92, 0.35);
    box-shadow: var(--hm-shadow);
    transform: none;
}

.z29502security-icon,
.hm-sec-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin: 0 0 0.85rem;
    border-radius: 10px;
    background: var(--hm-primary);
    color: #fff;
}

.z29502security-card h3 {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.75rem;
    color: var(--hm-primary-dark);
}

.z29502security-features,
.hm-sec-list {
    background: transparent;
    padding: 0;
    border: none;
}

.z29502feature-item {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.z29502feature-item i {
    color: var(--hm-primary);
}

/* 小知识 */
.hm-knowledge {
    background: var(--hm-surface);
}

.hm-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hm-knowledge-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 1.35rem;
    height: 100%;
}

.hm-knowledge-card h3 {
    font-size: 1rem;
    color: var(--hm-primary-dark);
    margin: 0 0 0.6rem;
}

.hm-knowledge-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--hm-muted);
    line-height: 1.65;
}

/* FAQ */
.hm-faq {
    background: var(--hm-card);
    border-top: 1px solid var(--hm-border);
}

.hm-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.hm-faq-item {
    padding: 1.25rem 1.35rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    height: 100%;
}

.hm-faq-item h3 {
    font-size: 1rem;
    color: var(--hm-primary-dark);
    margin: 0 0 0.5rem;
}

.hm-faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--hm-muted);
}

/* 文章区 */
.hm-articles {
    background: var(--hm-surface);
    border-top: 1px solid var(--hm-border);
}

.hm-articles-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hm-articles-head h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--hm-primary-dark);
}

.hm-article-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--hm-transition);
}

.hm-article-card:hover {
    box-shadow: var(--hm-shadow);
}

.hm-article-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.hm-article-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
}

.hm-article-meta {
    font-size: 0.75rem;
    color: var(--hm-muted);
    margin-bottom: 0.4rem;
}

.hm-article-title {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.hm-article-title a {
    color: var(--hm-text);
}

.hm-article-title a:hover {
    color: var(--hm-primary);
}

/* 页脚 */
.z29502footer,
.hm-footer {
    background: var(--hm-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.hm-footer-desc {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    opacity: 0.85;
    line-height: 1.6;
}

.z29502footer-title {
    color: var(--hm-accent-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.z29502footer-link {
    color: rgba(255, 255, 255, 0.75);
}

.z29502footer-link:hover {
    color: #fff;
}

.z29502footer-links li {
    margin-bottom: 0.5rem;
}

.z29502footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

.z29502footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.hm-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-friend-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* 列表页 / 内页 */
.hm-inner-page {
    padding: 2rem 0 3rem;
    min-height: 50vh;
}

.hm-inner-page .card {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
}

.hm-inner-page .card-body {
    padding: 1.25rem;
}

.z29502article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z29502article-content img {
    max-width: 100%;
    height: auto;
}

.z29502meta-tags .z29502tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* 分页 */
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

/* 响应式 */
@media (max-width: 991px) {
    .hm-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hm-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hm-hero-cta {
        justify-content: center;
    }

    .hm-bento {
        grid-template-columns: 1fr 1fr;
    }

    .hm-bento-main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hm-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-stat:nth-child(2) {
        border-right: none;
    }

    .hm-stat {
        border-right: none;
        border-bottom: 1px solid var(--hm-border);
        padding-bottom: 1rem;
    }

    .hm-stat:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .hm-section {
        padding: 3rem 0;
    }

    .z29502navbar {
        padding: 0.5rem 0;
    }

    .z29502navbar .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .z29502navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.92rem;
    }

    .hm-hero {
        padding: 3rem 0 2.5rem;
    }

    .hm-hero-bg {
        clip-path: none;
    }

    .hm-hero-cta {
        flex-direction: column;
    }

    .hm-hero-cta .hm-btn {
        width: 100%;
    }

    .hm-intro-grid {
        grid-template-columns: 1fr;
    }

    .hm-bento {
        grid-template-columns: 1fr;
    }

    .hm-bento-main {
        grid-column: span 1;
    }

    .hm-download-grid {
        grid-template-columns: 1fr;
    }

    .hm-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .hm-faq-grid {
        grid-template-columns: 1fr;
    }

    .hm-security-grid {
        grid-template-columns: 1fr;
    }

    .hm-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .hm-articles-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm-footer-grid .hm-footer-col {
        margin-bottom: 1.5rem;
    }

    .hm-article-thumb {
        height: 96px;
    }

    .hm-article-title {
        font-size: 0.9rem;
        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: 1rem;
        line-height: 1.35;
    }

    .z29502thumb-list,
    .z29502thumb-related {
        height: 72px !important;
    }

    .z29502thumb-side {
        height: 50px !important;
    }

    .z29502thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }
}

@media (max-width: 575px) {
    .hm-stats-row {
        grid-template-columns: 1fr;
    }

    .hm-stat {
        border-bottom: 1px solid var(--hm-border);
    }

    .hm-stat:last-child {
        border-bottom: none;
    }

    .hm-dl-card {
        padding: 1.15rem;
    }

    .hm-dl-head {
        flex-direction: column;
        text-align: center;
    }

    .z29502thumb-home,
    .hm-article-thumb {
        height: 88px;
    }

    .z29502thumb-list,
    .z29502thumb-related {
        height: 64px !important;
    }

    .z29502thumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}

/* 兼容旧类名，避免 Bootstrap 冲突 */
.btn.z29502btn {
    border-radius: 10px;
}

.card.z29502feature-card {
    border: 1px solid var(--hm-border);
}

.bg-light {
    background: var(--hm-surface) !important;
}
