/* 河马加速器官网 — 单文件样式 */
:root {
    --hema-primary: #1a5f5a;
    --hema-primary-dark: #0f3d3a;
    --hema-accent: #e07a5f;
    --hema-accent-light: #f4a261;
    --hema-surface: #faf7f2;
    --hema-card: #ffffff;
    --hema-text: #2c3330;
    --hema-muted: #5c6b66;
    --hema-border: rgba(26, 95, 90, 0.12);
    --hema-radius: 12px;
    --hema-radius-lg: 20px;
    --hema-shadow: 0 4px 24px rgba(15, 61, 58, 0.08);
    --hema-transition: 0.25s ease;
    --hema-container: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--hema-text);
    line-height: 1.65;
    background: var(--hema-surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hema-primary);
    text-decoration: none;
}

a:hover {
    color: var(--hema-accent);
}

/* —— 导航 —— */
.z9b786navbar {
    background: var(--hema-card);
    border-bottom: 1px solid var(--hema-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z9b786navbar .container {
    max-width: var(--hema-container);
}

.z9b786navbar-brand img {
    height: 42px;
    width: auto;
}

.z9b786nav-link {
    color: var(--hema-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--hema-transition), color var(--hema-transition);
}

.z9b786nav-link:hover,
.z9b786nav-item.active .z9b786nav-link {
    color: var(--hema-primary) !important;
    background: rgba(26, 95, 90, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--hema-border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--hema-card);
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
    }
}

/* —— 首页 Hero —— */
.z9b786hero-section {
    background: var(--hema-card);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.z9b786hero-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(26, 95, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.z9b786hero-section .container {
    max-width: var(--hema-container);
    position: relative;
    z-index: 1;
}

.z9b786hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hema-accent);
    background: rgba(224, 122, 95, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.z9b786hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--hema-primary-dark);
    margin-bottom: 1.25rem;
}

.z9b786hero-subtitle {
    font-size: 1.05rem;
    color: var(--hema-muted);
    margin-bottom: 1.75rem;
    max-width: 32em;
}

.z9b786hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z9b786btn-primary {
    background: var(--hema-primary);
    color: #fff !important;
    border: none;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--hema-transition), transform var(--hema-transition);
}

.z9b786btn-primary:hover {
    background: var(--hema-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

.z9b786btn-outline {
    background: transparent;
    color: var(--hema-primary) !important;
    border: 2px solid var(--hema-primary);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--hema-transition);
}

.z9b786btn-outline:hover {
    background: var(--hema-primary);
    color: #fff !important;
}

.z9b786hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.z9b786hero-frame {
    background: linear-gradient(145deg, var(--hema-primary) 0%, var(--hema-primary-dark) 100%);
    border-radius: var(--hema-radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--hema-shadow);
}

.z9b786hero-image {
    width: 100%;
    border-radius: calc(var(--hema-radius-lg) - 8px);
    object-fit: contain;
}

.z9b786hero-image-shadow {
    display: none;
}

/* —— 区块通用 —— */
.hema-section {
    padding: 4.5rem 0;
}

.hema-section-alt {
    background: var(--hema-card);
}

.hema-container {
    max-width: var(--hema-container);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hema-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hema-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--hema-primary-dark);
    margin-bottom: 0.75rem;
}

.hema-section-head p {
    color: var(--hema-muted);
    margin: 0;
    font-size: 1rem;
}

/* —— 产品优势 Bento —— */
#features .hema-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.hema-bento-card {
    background: var(--hema-card);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    padding: 1.5rem 1.75rem;
    height: 100%;
    transition: box-shadow var(--hema-transition), border-color var(--hema-transition);
    overflow: hidden;
}

.hema-bento-card:hover {
    box-shadow: var(--hema-shadow);
    border-color: rgba(26, 95, 90, 0.22);
}

.hema-bento-card.span-8 {
    grid-column: span 8;
}

.hema-bento-card.span-4 {
    grid-column: span 4;
}

.hema-bento-card.span-6 {
    grid-column: span 6;
}

.hema-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(26, 95, 90, 0.1);
    color: var(--hema-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hema-bento-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hema-primary-dark);
    margin-bottom: 0.5rem;
}

.hema-bento-card p {
    font-size: 0.95rem;
    color: var(--hema-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 服务数据 —— */
.z9b786stats-section {
    background: var(--hema-primary-dark);
    color: #fff;
    padding: 3rem 0;
}

.z9b786stats-section .container {
    max-width: var(--hema-container);
}

.z9b786stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.z9b786stat-item {
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.z9b786stat-item:last-child {
    border-right: none;
}

.z9b786stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.z9b786stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* —— 下载区 —— */
.z9b786download-section {
    padding: 4.5rem 0;
    background: var(--hema-surface);
}

.z9b786download-section .container {
    max-width: var(--hema-container);
}

.z9b786download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.z9b786download-card {
    background: var(--hema-card);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    border-left: 4px solid var(--hema-primary);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.z9b786download-card.z9b786android-card {
    border-left-color: var(--hema-accent);
}

.z9b786download-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z9b786download-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hema-primary-dark);
    margin: 0 0 0.25rem;
}

.z9b786download-card .platform-desc {
    font-size: 0.875rem;
    color: var(--hema-muted);
    margin: 0;
}

.z9b786download-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.z9b786platform-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;
}

.z9b786ios-icon {
    background: var(--hema-primary);
}

.z9b786android-icon {
    background: var(--hema-accent);
}

.z9b786download-info {
    background: var(--hema-surface);
    border: 1px solid var(--hema-border);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.z9b786info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--hema-muted);
}

.z9b786info-item:last-child {
    margin-bottom: 0;
}

.z9b786info-item i {
    color: var(--hema-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z9b786download-action {
    margin-top: auto;
}

.z9b786download-action .z9b786btn-primary {
    width: 100%;
    justify-content: center;
}

/* —— 安全 —— */
.z9b786security-section {
    padding: 4.5rem 0;
    background: var(--hema-card);
}

.z9b786security-section .container {
    max-width: var(--hema-container);
}

.z9b786security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.z9b786security-card {
    background: var(--hema-surface);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    padding: 1.35rem;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.z9b786security-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--hema-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.z9b786security-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hema-primary-dark);
    margin-bottom: 0.85rem;
}

.z9b786security-features {
    text-align: left;
    background: var(--hema-card);
    border: 1px solid var(--hema-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.z9b786feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--hema-muted);
    margin-bottom: 0.45rem;
}

.z9b786feature-item:last-child {
    margin-bottom: 0;
}

.z9b786feature-item i {
    color: var(--hema-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.z9b786security-certificates {
    margin-top: 2.5rem;
}

.z9b786security-certificates .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.z9b786certificate-card {
    background: var(--hema-surface);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    padding: 1.35rem;
    text-align: center;
    height: 100%;
}

.z9b786certificate-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: rgba(26, 95, 90, 0.12);
    color: var(--hema-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.z9b786certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hema-primary-dark);
    margin-bottom: 0.35rem;
}

.z9b786certificate-card p {
    font-size: 0.85rem;
    color: var(--hema-muted);
    margin: 0;
}

/* —— 知识简介 —— */
#intro.hema-intro-block {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--hema-surface) 0%, rgba(26, 95, 90, 0.04) 100%);
}

.hema-intro-inner {
    max-width: 800px;
    margin: 0 auto;
    background: var(--hema-card);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius-lg);
    padding: 2rem 2.25rem;
}

.hema-intro-inner p {
    color: var(--hema-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.hema-intro-inner p:last-child {
    margin-bottom: 0;
}

/* —— FAQ —— */
#faq.hema-faq-section {
    padding: 4.5rem 0;
    background: var(--hema-surface);
}

.hema-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: var(--hema-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.hema-faq-item {
    background: var(--hema-card);
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    padding: 1.25rem 1.5rem;
    overflow: hidden;
}

.hema-faq-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hema-primary-dark);
    margin-bottom: 0.5rem;
}

.hema-faq-item p {
    font-size: 0.9rem;
    color: var(--hema-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 文章区 —— */
#article {
    padding: 4rem 0;
    background: var(--hema-card);
}

#article .container {
    max-width: var(--hema-container);
}

#article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hema-primary-dark);
}

#article .card {
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: none;
    transition: box-shadow var(--hema-transition);
}

#article .card:hover {
    box-shadow: var(--hema-shadow);
}

#article .card-body {
    padding: 0.85rem 1rem;
}

.z9b786thumb-home {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

#article h3.h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--hema-text);
}

#article h3.h5 a:hover {
    color: var(--hema-primary);
}

/* —— 页脚 —— */
.z9b786footer {
    background: var(--hema-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z9b786footer .container {
    max-width: var(--hema-container);
}

.z9b786footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.z9b786footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z9b786footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z9b786footer-links li {
    margin-bottom: 0.5rem;
}

.z9b786footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--hema-transition);
}

.z9b786footer-link:hover {
    color: var(--hema-accent-light);
}

.z9b786footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
}

.z9b786footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

.z9b786footer-bottom a:hover {
    color: #fff;
}

.z9b786friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z9b786friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* —— 列表页 / 内页 —— */
.z9b786page-main {
    padding: 2.5rem 0 4rem;
    background: var(--hema-surface);
    min-height: 50vh;
}

.z9b786page-main .container {
    max-width: var(--hema-container);
}

.z9b786page-main .card {
    border: 1px solid var(--hema-border);
    border-radius: var(--hema-radius);
    overflow: hidden;
    box-shadow: none;
}

.z9b786page-main .card-body {
    padding: 1.25rem 1.5rem;
}

.z9b786article-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z9b786article-content img {
    max-width: 100%;
    height: auto;
}

.z9b786meta-tags .z9b786tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(26, 95, 90, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.z9b786thumb-list,
.z9b786thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z9b786thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z9b786thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--hema-radius);
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

/* Bootstrap 兼容 */
.btn.z9b786btn-outline-primary {
    border-color: var(--hema-primary);
    color: var(--hema-primary);
}

.btn.z9b786btn-outline-primary:hover {
    background: var(--hema-primary);
    border-color: var(--hema-primary);
    color: #fff;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .hema-bento-card.span-8,
    .hema-bento-card.span-4,
    .hema-bento-card.span-6 {
        grid-column: span 12;
    }

    .z9b786stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z9b786stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1.25rem 0.5rem;
    }

    .z9b786stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .z9b786stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .z9b786security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z9b786hero-section {
        padding: 3rem 0;
    }

    .z9b786hero-visual {
        margin-top: 2rem;
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .hema-section,
    .z9b786download-section,
    .z9b786security-section,
    #faq.hema-faq-section,
    #article {
        padding: 3rem 0;
    }

    .z9b786navbar {
        padding: 0.5rem 0;
    }

    .z9b786navbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        border: 1px solid var(--hema-border);
        border-radius: var(--hema-radius);
        padding: 0.5rem;
    }

    .z9b786hero-buttons {
        flex-direction: column;
    }

    .z9b786hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .z9b786download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .z9b786download-head {
        flex-wrap: wrap;
    }

    .z9b786security-grid {
        grid-template-columns: 1fr;
    }

    .hema-faq-grid {
        grid-template-columns: 1fr;
    }

    .hema-intro-inner {
        padding: 1.35rem 1.25rem;
    }

    .z9b786footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z9b786friend-links {
        justify-content: center;
    }

    #article .row-cols-lg-5 {
        --bs-columns: 2;
    }

    .z9b786thumb-home {
        height: 96px;
    }

    #article h3.h5 {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .z9b786thumb-list,
    .z9b786thumb-related {
        height: 72px;
    }

    .z9b786thumb-side {
        height: 50px;
    }

    .z9b786thumb-cover {
        max-height: 200px;
    }

    .z9b786page-main {
        padding: 1.75rem 0 3rem;
    }
}

@media (max-width: 575px) {
    .z9b786stats-grid {
        grid-template-columns: 1fr;
    }

    .z9b786stat-item,
    .z9b786stat-item:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .z9b786stat-item:last-child {
        border-bottom: none;
    }

    #article .row-cols-md-2 {
        --bs-columns: 1;
    }

    .z9b786thumb-home {
        height: 88px;
    }

    .z9b786thumb-list,
    .z9b786thumb-related {
        height: 64px;
    }
}
