:root {
    --xf-primary: #6d28d9;
    --xf-primary-dark: #5b21b6;
    --xf-secondary: #0d9488;
    --xf-accent: #f59e0b;
    --xf-text: #1e293b;
    --xf-text-muted: #64748b;
    --xf-bg: #fafaf9;
    --xf-surface: #ffffff;
    --xf-border: #e7e5e4;
    --xf-dark: #0f172a;
    --xf-radius: 12px;
    --xf-radius-lg: 20px;
    --xf-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --xf-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--xf-text);
    line-height: 1.65;
    background: var(--xf-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xf-primary);
    text-decoration: none;
}

a:hover {
    color: var(--xf-primary-dark);
}

/* —— 导航 —— */
.ze7742navbar {
    background: var(--xf-surface);
    border-bottom: 1px solid var(--xf-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ze7742navbar-brand img {
    height: 40px;
    width: auto;
}

.ze7742nav-link {
    color: var(--xf-text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 8px;
    transition: background var(--xf-transition), color var(--xf-transition);
}

.ze7742nav-link:hover {
    color: var(--xf-primary) !important;
    background: rgba(109, 40, 217, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--xf-border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--xf-surface);
}

/* —— 首页 Hero —— */
.ze7742hero-section {
    padding: 4rem 0 3.5rem;
    background: var(--xf-surface);
    position: relative;
    overflow: hidden;
}

.ze7742hero-section::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 140%;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.07), rgba(13, 148, 136, 0.05));
    border-radius: 40% 0 0 60%;
    pointer-events: none;
}

.ze7742hero-content {
    position: relative;
    z-index: 1;
}

.ze7742hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--xf-primary);
    background: rgba(109, 40, 217, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ze7742hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--xf-dark);
    letter-spacing: -0.02em;
}

.ze7742hero-subtitle {
    font-size: 1.05rem;
    color: var(--xf-text-muted);
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.ze7742hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ze7742hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ze7742hero-image {
    width: 100%;
    max-width: 320px;
    border-radius: var(--xf-radius-lg);
    border: 1px solid var(--xf-border);
    box-shadow: var(--xf-shadow);
    object-fit: contain;
}

.ze7742hero-image-shadow {
    display: none;
}

/* —— 按钮 —— */
.ze7742btn.btn-primary,
.btn-primary.ze7742btn {
    background: linear-gradient(135deg, var(--xf-primary), var(--xf-primary-dark));
    border: none;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
}

.ze7742btn.btn-primary:hover,
.btn-primary.ze7742btn:hover {
    background: linear-gradient(135deg, var(--xf-primary-dark), var(--xf-primary));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.25);
}

.ze7742btn.btn-outline-primary {
    border: 2px solid var(--xf-primary);
    color: var(--xf-primary);
    border-radius: 10px;
    font-weight: 600;
}

.ze7742btn.btn-outline-primary:hover {
    background: var(--xf-primary);
    color: #fff;
}

.ze7742btn.btn-light {
    background: var(--xf-surface);
    color: var(--xf-primary);
    border: 2px solid var(--xf-border);
    border-radius: 10px;
    font-weight: 600;
}

.ze7742btn.btn-light:hover {
    border-color: var(--xf-primary);
    color: var(--xf-primary-dark);
}

/* —— 区块通用 —— */
.xf-section {
    padding: 4rem 0;
}

.xf-section-alt {
    background: var(--xf-surface);
}

.xf-section-head {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.xf-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--xf-dark);
    margin-bottom: 0.75rem;
}

.xf-section-head p {
    color: var(--xf-text-muted);
    margin: 0;
    font-size: 1rem;
}

/* —— 产品优势 Bento —— */
.xf-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.xf-bento-item {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.5rem;
    transition: border-color var(--xf-transition), box-shadow var(--xf-transition);
    overflow: hidden;
    min-height: 0;
}

.xf-bento-item:hover {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: var(--xf-shadow);
}

.xf-bento-item.span-7 {
    grid-column: span 7;
}

.xf-bento-item.span-5 {
    grid-column: span 5;
}

.xf-bento-item.span-4 {
    grid-column: span 4;
}

.xf-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(13, 148, 136, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xf-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.xf-bento-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--xf-dark);
}

.xf-bento-item p {
    font-size: 0.92rem;
    color: var(--xf-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 数据条 —— */
.ze7742stats-section {
    padding: 2.5rem 0;
    background: var(--xf-dark);
    color: #fff;
}

.xf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.xf-stat-pill {
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--xf-radius);
    background: rgba(255, 255, 255, 0.04);
}

.ze7742stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--xf-accent);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.ze7742stat-label {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* —— 下载区 —— */
.ze7742download-section {
    padding: 4rem 0;
}

.xf-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ze7742download-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: none;
    transition: border-color var(--xf-transition);
}

.ze7742download-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--xf-primary), var(--xf-secondary));
}

.ze7742download-card:hover {
    border-color: rgba(109, 40, 217, 0.4);
    transform: none;
    box-shadow: var(--xf-shadow);
}

.ze7742download-card .card-body {
    padding: 1.35rem !important;
}

.ze7742platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ze7742ios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.ze7742android-icon {
    background: linear-gradient(135deg, var(--xf-secondary), #0f766e);
    color: #fff;
}

.ze7742download-info {
    background: var(--xf-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--xf-border);
}

.ze7742info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--xf-text-muted);
}

.ze7742info-item:last-child {
    margin-bottom: 0;
}

.ze7742info-item i {
    color: var(--xf-secondary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ze7742download-action .btn {
    width: 100%;
    border-radius: 10px;
    white-space: normal;
}

/* —— 安全区 —— */
.ze7742security-section {
    padding: 4rem 0;
    background: var(--xf-surface);
}

.xf-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ze7742security-card {
    background: var(--xf-bg);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.35rem;
    height: 100%;
    box-shadow: none;
    transition: border-color var(--xf-transition);
}

.ze7742security-card:hover {
    border-color: rgba(13, 148, 136, 0.45);
    transform: none;
    box-shadow: none;
}

.ze7742security-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xf-secondary), #0f766e);
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.ze7742security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    color: var(--xf-dark);
    margin-bottom: 0.75rem;
}

.ze7742security-features {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.ze7742feature-item {
    font-size: 0.85rem;
    color: var(--xf-text-muted);
    margin-bottom: 0.4rem;
}

.ze7742feature-item i {
    color: var(--xf-secondary);
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.xf-cert-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.ze7742certificate-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: none;
}

.ze7742certificate-card:hover {
    transform: none;
    border-color: var(--xf-primary);
}

.ze7742certificate-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem;
    background: rgba(109, 40, 217, 0.1);
    color: var(--xf-primary);
}

.ze7742certificate-card h4 {
    font-size: 0.95rem;
    color: var(--xf-dark);
    margin-bottom: 0.35rem;
}

.ze7742certificate-card p {
    font-size: 0.82rem;
    color: var(--xf-text-muted);
    margin: 0;
}

/* —— 知识区 —— */
.xf-knowledge {
    padding: 4rem 0;
}

.xf-knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.xf-knowledge-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.5rem;
    overflow: hidden;
}

.xf-knowledge-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--xf-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--xf-primary);
    display: inline-block;
}

.xf-knowledge-card p {
    font-size: 0.92rem;
    color: var(--xf-text-muted);
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

.xf-knowledge-card p:last-child {
    margin-bottom: 0;
}

/* —— FAQ —— */
#faq.xf-section {
    background: var(--xf-surface);
}

.xf-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.xf-faq-item {
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--xf-bg);
}

.xf-faq-item:last-child {
    margin-bottom: 0;
}

.xf-faq-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--xf-dark);
    margin-bottom: 0.4rem;
}

.xf-faq-item p {
    font-size: 0.9rem;
    color: var(--xf-text-muted);
    margin: 0;
}

/* —— 文章区 —— */
#article.xf-section {
    padding: 3.5rem 0;
}

#article .card {
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    box-shadow: none !important;
    transition: border-color var(--xf-transition);
}

#article .card:hover {
    border-color: rgba(109, 40, 217, 0.35);
}

#article .card-body {
    padding: 0.85rem;
}

.ze7742thumb-home {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

#article h3.h5 {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--xf-dark);
}

#article h3.h5 a:hover {
    color: var(--xf-primary);
}

/* —— 页脚 —— */
.ze7742footer {
    background: var(--xf-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.ze7742footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ze7742footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ze7742footer-links li {
    margin-bottom: 0.5rem;
}

.ze7742footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.ze7742footer-link:hover {
    color: var(--xf-accent);
}

.ze7742footer p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.ze7742friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ze7742friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.ze7742footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.ze7742footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
}

/* —— 列表页 / 内页 —— */
.ze7742page-main {
    padding: 2.5rem 0 3rem;
}

.ze7742page-main .card {
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    box-shadow: none !important;
}

.ze7742page-main .card-body {
    padding: 1.25rem;
}

.ze7742article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--xf-text);
    overflow-wrap: break-word;
    word-break: break-word;
}

.ze7742article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ze7742thumb-list,
.ze7742thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.ze7742thumb-side-wrap {
    display: block;
    width: 72px;
    flex: 0 0 72px;
}

.ze7742thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.ze7742thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--xf-radius);
}

.ze7742meta-tags .ze7742tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.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;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .xf-bento-item.span-7,
    .xf-bento-item.span-5,
    .xf-bento-item.span-4 {
        grid-column: span 12;
    }

    .xf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .xf-cert-row {
        grid-template-columns: 1fr;
    }

    .ze7742hero-section {
        padding: 2.5rem 0 2rem;
    }

    .ze7742hero-image {
        max-width: 260px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .ze7742navbar {
        padding: 0.5rem 0;
    }

    .ze7742navbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        border: 1px solid var(--xf-border);
        border-radius: var(--xf-radius);
        padding: 0.5rem;
    }

    .ze7742navbar .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.9rem;
    }

    .xf-section {
        padding: 2.75rem 0;
    }

    .xf-download-grid {
        grid-template-columns: 1fr;
    }

    .ze7742download-card .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .ze7742download-card .d-flex.align-items-center .ms-3 {
        margin-left: 0 !important;
        flex: 1 1 100%;
    }

    .ze7742download-info {
        padding: 0.85rem;
    }

    .ze7742security-card {
        padding: 1.1rem;
    }

    .ze7742hero-buttons {
        flex-direction: column;
    }

    .ze7742hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .ze7742footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .ze7742friend-links {
        justify-content: center;
    }

    #article .row-cols-md-2 {
        --bs-columns: 1;
    }

    .ze7742thumb-home {
        height: 96px;
    }

    #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;
    }

    .ze7742thumb-list,
    .ze7742thumb-related {
        height: 72px;
    }

    .ze7742thumb-side {
        height: 50px;
    }

    .ze7742thumb-cover {
        height: 170px;
    }

    .ze7742page-main aside .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .xf-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .xf-stat-pill {
        padding: 0.75rem 0.35rem;
    }

    .xf-security-grid {
        grid-template-columns: 1fr;
    }

    .ze7742stat-number {
        font-size: 1.35rem;
    }

    .ze7742thumb-home {
        height: 88px;
    }

    .ze7742thumb-list,
    .ze7742thumb-related {
        height: 64px;
    }

    .ze7742thumb-cover {
        height: 150px;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}
