/* 白鲸加速器 — 官网主题（深海青 + 珊瑚橙） */
:root {
    --primary: #0c6e6e;
    --primary-dark: #084f50;
    --primary-light: #e8f6f6;
    --accent: #e07a5f;
    --accent-hover: #c96a52;
    --surface: #ffffff;
    --surface-alt: #f4f8f8;
    --text: #1a2e2e;
    --text-muted: #5a7171;
    --border: rgba(12, 110, 110, 0.12);
    --shadow: 0 4px 24px rgba(8, 79, 80, 0.08);
    --shadow-lg: 0 12px 40px rgba(8, 79, 80, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 72px;
    --transition: 0.25s ease;
    --container-max: 1140px;
}

*, *::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(--text);
    line-height: 1.65;
    background: var(--surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* —— 布局容器 —— */
.z49dfdcontainer.container {
    max-width: var(--container-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* —— 导航 —— */
.z49dfdnavbar.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: none;
}

.z49dfdnavbar-brand img,
.z49dfdfooter-brand img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.z49dfdnavbar .navbar-nav {
    gap: 0.15rem;
}

.z49dfdnav-link.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.z49dfdnav-link.nav-link:hover,
.z49dfdnav-link.nav-link:focus {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.z49dfdnavbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.z49dfdnavbar .navbar-collapse {
    background: var(--surface);
}

@media (max-width: 991px) {
    .z49dfdnavbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z49dfdnav-link.nav-link {
        padding: 0.6rem 0.5rem !important;
    }
}

/* —— 区块通用 —— */
.bj-section {
    padding: 4.5rem 0;
}

.bj-section-alt {
    background: var(--surface-alt);
}

.bj-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.bj-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bj-section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

.bj-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(224, 122, 95, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

/* —— Hero —— */
.z49dfdhero-section.hero-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, #0a8585 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.z49dfdhero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z49dfdhero-content {
    position: relative;
    z-index: 1;
}

.z49dfdhero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.z49dfdhero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
    line-height: 1.7;
}

.z49dfdhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z49dfdhero-buttons .btn {
    border-radius: 10px;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: normal;
    border: none;
}

.z49dfdhero-buttons .btn-light {
    background: #fff;
    color: var(--primary-dark);
}

.z49dfdhero-buttons .btn-light:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.z49dfdhero-buttons .btn-primary,
.z49dfdbtn.btn-primary {
    background: var(--accent);
    color: #fff;
}

.z49dfdhero-buttons .btn-primary:hover,
.z49dfdbtn.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.z49dfdhero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z49dfdhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.z49dfdhero-image-shadow {
    display: none;
}

/* —— 优势 Bento —— */
#features .bj-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.z49dfdfeature-card.feature-card,
.bj-bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.z49dfdfeature-card:hover,
.bj-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.z49dfdfeature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
}

.bj-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.bj-bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.bj-intro-block {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.bj-intro-block p {
    margin: 0 0 1rem;
    color: var(--text);
    line-height: 1.75;
}

.bj-intro-block p:last-child {
    margin-bottom: 0;
}

/* —— 统计 —— */
.z49dfdstats-section.stats-section {
    background: var(--primary-dark);
    color: #fff;
    padding: 3.5rem 0;
}

.z49dfdstats-section .row {
    row-gap: 1.5rem;
}

.z49dfdstat-item {
    text-align: center;
    padding: 0.5rem;
}

.z49dfdstat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.z49dfdstat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 0.35rem;
}

/* —— 下载 —— */
.z49dfddownload-section {
    padding: 4.5rem 0;
    background: var(--surface-alt);
}

.z49dfddownload-header h2 {
    color: var(--primary-dark);
    font-weight: 700;
}

.z49dfddownload-subtitle {
    color: var(--text-muted);
}

.z49dfddownload-section .row.g-4 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.z49dfddownload-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.z49dfddownload-card:hover {
    box-shadow: var(--shadow-lg);
}

.z49dfddownload-card .card-body {
    padding: 1.5rem !important;
}

.z49dfdplatform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.z49dfdios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.z49dfdandroid-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.z49dfddownload-info {
    background: var(--primary-light);
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.z49dfdinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text);
}

.z49dfdinfo-item:last-child {
    margin-bottom: 0;
}

.z49dfdinfo-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z49dfddownload-action .btn {
    width: 100%;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    white-space: normal;
}

.bj-dl-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— 安全 —— */
.z49dfdsecurity-section {
    padding: 4.5rem 0;
    background: var(--surface);
}

.z49dfdsecurity-header h2 {
    color: var(--primary-dark);
    font-weight: 700;
}

.z49dfdsecurity-subtitle {
    color: var(--text-muted);
}

.z49dfdsecurity-section .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.z49dfdsecurity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.z49dfdsecurity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.z49dfdsecurity-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.z49dfdsecurity-features {
    background: var(--surface-alt);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.z49dfdfeature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text);
}

.z49dfdfeature-item:last-child {
    margin-bottom: 0;
}

.z49dfdfeature-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.z49dfdsecurity-certificates {
    margin-top: 2.5rem;
}

.z49dfdcertificate-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.z49dfdcertificate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.z49dfdcertificate-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.z49dfdcertificate-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 知识区 —— */
.bj-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.bj-knowledge-item {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
}

.bj-knowledge-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
}

.bj-knowledge-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* —— FAQ —— */
#faq .bj-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#faq .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    height: 100%;
    overflow: hidden;
}

#faq .card-body {
    padding: 1.25rem;
}

#faq .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

#faq .card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 文章区 —— */
#article {
    padding: 4rem 0;
    background: var(--surface-alt);
}

#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#article .card-body {
    padding: 0.85rem 1rem;
}

.z49dfdthumb-home {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

#article h3.h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--text);
}

#article h3.h5 a:hover {
    color: var(--primary);
}

.z49dfdbtn.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 8px;
}

.z49dfdbtn.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* —— 页脚 —— */
.z49dfdfooter.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z49dfdfooter p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.z49dfdfooter-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.z49dfdfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z49dfdfooter-links li {
    margin-bottom: 0.5rem;
}

.z49dfdfooter-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.z49dfdfooter-link:hover {
    color: var(--accent);
}

.z49dfdfriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z49dfdfriend-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.z49dfdfriend-links a:hover {
    color: #fff;
}

.z49dfdfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.z49dfdfooter-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

.z49dfdfooter-bottom a:hover {
    color: #fff;
}

/* —— 列表页 / 内页 —— */
.z49dfdpy-5.py-5.bg-light,
section.z49dfdpy-5.bg-light {
    background: var(--surface-alt) !important;
    padding: 2.5rem 0 3.5rem;
    min-height: calc(100vh - var(--nav-h) - 120px);
}

.z49dfdpy-5 .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.z49dfdpy-5 .card-body {
    padding: 1.25rem 1.5rem;
}

.z49dfdarticle-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z49dfdarticle-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.z49dfdmeta-tags .z49dfdtagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.pagebar .pagelist,
.zzpages .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— Bootstrap 覆盖 —— */
.btn {
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    #features .bj-bento {
        grid-template-columns: 1fr;
    }

    .bj-knowledge-grid {
        grid-template-columns: 1fr;
    }

    #faq .bj-faq-grid {
        grid-template-columns: 1fr;
    }

    .z49dfdhero-section {
        padding: 3rem 0 3.5rem;
    }

    .z49dfdhero-image-container {
        margin-top: 1.5rem;
    }

    .z49dfdfooter .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z49dfdfriend-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .bj-section {
        padding: 3rem 0;
    }

    .z49dfddownload-section,
    .z49dfdsecurity-section {
        padding: 3rem 0;
    }

    .z49dfdhero-buttons {
        flex-direction: column;
    }

    .z49dfdhero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .z49dfdhero-title {
        font-size: 1.65rem;
    }

    .z49dfddownload-card .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .z49dfddownload-card .d-flex.align-items-center .ms-3 {
        margin-left: 0 !important;
        flex: 1 1 100%;
    }

    .z49dfdsecurity-card {
        padding: 1.25rem;
    }

    .bj-intro-block {
        padding: 1.25rem;
    }

    #article .row-cols-lg-5 {
        --bs-columns: 2;
    }

    .z49dfdthumb-home {
        height: 96px !important;
    }

    #article h3.h5 {
        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;
    }

    .z49dfdthumb-list,
    .z49dfdthumb-related {
        height: 72px !important;
    }

    .z49dfdthumb-side {
        height: 50px !important;
    }

    .z49dfdthumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
    }

    aside .card-body h3.h5 {
        font-size: 1rem;
    }
}

.z49dfdthumb-list,
.z49dfdthumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.z49dfdthumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
}

.z49dfdthumb-cover {
    max-width: 320px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

aside .card .d-flex.gap-2 a:first-child {
    width: 72px;
    flex: 0 0 72px;
}

@media (max-width: 575px) {
    .z49dfdcontainer.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .z49dfdnavbar-brand img {
        height: 36px;
    }

    #article .z49dfdthumb-home {
        height: 88px !important;
    }

    .z49dfdthumb-list,
    .z49dfdthumb-related {
        height: 64px !important;
    }

    .z49dfdstat-number {
        font-size: 1.6rem;
    }

    .z49dfddownload-card .card-body {
        padding: 1.15rem !important;
    }

    .z49dfddownload-info {
        padding: 0.85rem;
    }
}
