/* 海马加速器官网 — 全新主题：深青 + 琥珀 */
:root {
    --hm-primary: #0d6e6e;
    --hm-primary-dark: #084f4f;
    --hm-accent: #e8a838;
    --hm-accent-hover: #d49520;
    --hm-bg: #f4f7f6;
    --hm-surface: #ffffff;
    --hm-text: #1a2b2b;
    --hm-muted: #5c6f6f;
    --hm-border: rgba(13, 110, 110, 0.12);
    --hm-radius: 12px;
    --hm-radius-lg: 20px;
    --hm-shadow: 0 4px 24px rgba(8, 79, 79, 0.08);
    --hm-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.hm-page,
body {
    font-family: "PingFang SC", "Microsoft YaHei", 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;
}

a:hover {
    color: var(--hm-primary-dark);
}

/* —— 导航 —— */
.z343c7navbar {
    background: var(--hm-surface);
    border-bottom: 1px solid var(--hm-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z343c7navbar .navbar-toggler {
    border: 1px solid var(--hm-border);
    padding: 0.4rem 0.55rem;
}

.z343c7navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(13, 110, 110, 0.25);
}

.z343c7navbar-brand img {
    height: 42px;
    width: auto;
}

.z343c7nav-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);
}

.z343c7nav-link:hover {
    color: var(--hm-primary) !important;
    background: rgba(13, 110, 110, 0.06);
}

.z343c7navbar .navbar-collapse {
    background: var(--hm-surface);
}

/* —— 首屏 —— */
.z343c7hero-section {
    background: linear-gradient(145deg, var(--hm-primary-dark) 0%, var(--hm-primary) 55%, #0a8585 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.z343c7hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -30%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.z343c7hero-content {
    position: relative;
    z-index: 1;
}

.hm-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.z343c7hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z343c7hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.z343c7hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hm-btn-primary {
    background: var(--hm-accent) !important;
    border: none !important;
    color: #1a2b2b !important;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    transition: transform var(--hm-transition), background var(--hm-transition);
}

.hm-btn-primary:hover {
    background: var(--hm-accent-hover) !important;
    color: #1a2b2b !important;
    transform: translateY(-2px);
}

.hm-btn-outline {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
}

.hm-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.z343c7hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.z343c7hero-image {
    max-width: min(280px, 90%);
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.z343c7hero-image-shadow {
    display: none;
}

/* —— 简介条 —— */
.hm-intro {
    background: var(--hm-surface);
    border-bottom: 1px solid var(--hm-border);
    padding: 1.75rem 0;
}

.hm-intro-text {
    margin: 0;
    font-size: 1rem;
    color: var(--hm-muted);
    text-align: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.hm-intro-text strong {
    color: var(--hm-primary-dark);
    font-weight: 600;
}

/* —— 通用区块 —— */
.hm-section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hm-section--light {
    background: var(--hm-surface);
}

.hm-section--alt {
    background: linear-gradient(180deg, #eef5f4 0%, var(--hm-bg) 100%);
}

.hm-section-head {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hm-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--hm-primary-dark);
    margin-bottom: 0.5rem;
}

.hm-section-head p {
    color: var(--hm-muted);
    margin: 0;
    font-size: 0.98rem;
}

/* —— 卡片 —— */
.hm-card {
    background: var(--hm-surface);
    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-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(8, 79, 79, 0.12);
}

.hm-card--compact {
    padding: 1.25rem;
    text-align: center;
}

.hm-card--compact h3 {
    font-size: 1.05rem;
    margin: 0.75rem 0 0.5rem;
    color: var(--hm-primary-dark);
}

.hm-card--compact p {
    font-size: 0.9rem;
    color: var(--hm-muted);
    margin: 0;
}

.z343c7feature-card {
    border: 1px solid var(--hm-border);
    text-align: left;
}

.z343c7feature-card h3 {
    font-size: 1.15rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.5rem;
}

.z343c7feature-card p {
    font-size: 0.92rem;
    color: var(--hm-muted);
    margin: 0;
}

.z343c7feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    color: var(--hm-primary);
    background: rgba(13, 110, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
}

/* —— 数据条 —— */
.z343c7stats-section {
    background: var(--hm-primary-dark);
    color: #fff;
    padding: 2rem 0;
}

.hm-stat {
    padding: 1rem;
    border-radius: var(--hm-radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.z343c7stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--hm-accent);
    line-height: 1.2;
}

.z343c7stat-label {
    font-size: 0.88rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

/* —— 下载区 —— */
.z343c7download-section {
    background: var(--hm-bg);
}

.z343c7download-header h2,
.z343c7security-header h2 {
    color: var(--hm-primary-dark);
}

.z343c7download-subtitle,
.z343c7security-subtitle {
    color: var(--hm-muted);
}

.hm-dl-card {
    display: flex;
    flex-direction: column;
}

.hm-dl-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hm-dl-card-head h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem;
    color: var(--hm-primary-dark);
}

.hm-dl-card-head p {
    font-size: 0.85rem;
    color: var(--hm-muted);
    margin: 0;
}

.hm-dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.hm-dl-list li {
    font-size: 0.9rem;
    color: var(--hm-muted);
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
}

.hm-dl-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hm-primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.z343c7platform-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.z343c7android-icon {
    background: linear-gradient(135deg, #2d9d6b, #1e7a52);
}

.z343c7ios-icon {
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark));
}

.z343c7download-action {
    margin-top: auto;
}

.z343c7download-action .btn {
    white-space: normal;
}

/* —— 安全 —— */
.z343c7security-section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.z343c7security-icon {
    width: 52px;
    height: 52px;
    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.2rem;
}

/* —— 知识 / FAQ —— */
.hm-knowledge-block h3,
.hm-faq-item h3 {
    font-size: 1.05rem;
    color: var(--hm-primary-dark);
    margin-bottom: 0.5rem;
}

.hm-knowledge-block p,
.hm-faq-item p {
    font-size: 0.92rem;
    color: var(--hm-muted);
    margin: 0;
}

/* —— 文章列表 —— */
.hm-article-card {
    background: var(--hm-surface);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    transition: box-shadow var(--hm-transition);
}

.hm-article-card:hover {
    box-shadow: 0 8px 28px rgba(8, 79, 79, 0.12);
}

.hm-article-thumb {
    display: block;
    overflow: hidden;
}

.z343c7thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.hm-article-body {
    padding: 0.85rem;
}

.hm-article-meta {
    font-size: 0.75rem;
    color: var(--hm-muted);
    margin-bottom: 0.35rem;
}

.hm-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.hm-article-title a {
    color: var(--hm-text);
}

.hm-article-title a:hover {
    color: var(--hm-primary);
}

.hm-article-head h2 {
    font-size: 1.35rem;
    color: var(--hm-primary-dark);
}

/* —— 页脚 —— */
.z343c7footer {
    background: #0f2222;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.hm-footer-desc {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.z343c7footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z343c7footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z343c7footer-links li {
    margin-bottom: 0.5rem;
}

.z343c7footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.z343c7footer-link:hover {
    color: var(--hm-accent);
}

.z343c7friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z343c7friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.z343c7friend-links a:hover {
    color: var(--hm-accent);
}

.z343c7footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* —— 列表 / 内页 —— */
.z343c7py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
}

.hm-inner-page .card {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
}

.hm-inner-page .card-body {
    padding: 1.25rem;
}

.hm-inner-page h1,
.hm-inner-page .h3 {
    color: var(--hm-primary-dark);
}

.z343c7article-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z343c7article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.z343c7meta-tags .z343c7tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(13, 110, 110, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— Bootstrap 覆盖 —— */
.btn-primary {
    background-color: var(--hm-primary) !important;
    border-color: var(--hm-primary) !important;
}

.btn-primary:hover {
    background-color: var(--hm-primary-dark) !important;
    border-color: var(--hm-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--hm-primary) !important;
    border-color: var(--hm-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--hm-primary) !important;
    color: #fff !important;
}

.bg-light {
    background-color: var(--hm-bg) !important;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .z343c7navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--hm-radius);
        border: 1px solid var(--hm-border);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z343c7footer .z343c7col-md-4,
    .z343c7footer .z343c7col-md-2,
    .z343c7footer .z343c7col-md-3 {
        text-align: center;
    }

    .z343c7footer-links {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .z343c7navbar-brand img {
        height: 36px;
    }

    .z343c7hero-buttons {
        flex-direction: column;
    }

    .z343c7hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hm-dl-card-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hm-intro-text {
        font-size: 0.92rem;
        text-align: left;
    }

    .z343c7thumb-home {
        height: 96px;
    }

    .z343c7thumb-list,
    .z343c7thumb-related {
        height: 72px !important;
    }

    .z343c7thumb-side {
        height: 50px !important;
    }

    .z343c7thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .hm-inner-page aside {
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    .z343c7stat-item {
        padding: 0.75rem;
    }

    .hm-card {
        padding: 1.15rem;
    }

    .z343c7thumb-home {
        height: 88px;
    }

    .z343c7thumb-cover {
        height: 150px !important;
    }

    .hm-article-head {
        flex-direction: column;
        align-items: flex-start !important;
    }
}
