:root {
    --primary-color: #6d28d9;
    --primary-dark: #5b21b6;
    --secondary-color: #0d9488;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.08);
    --transition-speed: 0.25s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background: var(--light-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 导航 */
.zfd805navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0;
}

.zfd805navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.zfd805navbar-brand img {
    height: 42px;
    width: auto;
}

.zfd805nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-speed), background var(--transition-speed);
}

.zfd805nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(109, 40, 217, 0.06);
}

/* 按钮 */
.zfd805btn {
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.zfd805btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff !important;
}

.zfd805btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

.zfd805btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.zfd805btn-outline:hover {
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary-dark) !important;
}

/* 区块标题 */
.zfd805section-head {
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.zfd805section-head h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.zfd805section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

.zfd805section-head.zfd805text-center {
    margin-left: auto;
    margin-right: auto;
}

/* 英雄区 */
.zfd805hero-section {
    background: linear-gradient(160deg, #4c1d95 0%, #6d28d9 45%, #0d9488 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.zfd805hero-section::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.zfd805hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.zfd805hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.zfd805hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.zfd805hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.zfd805hero-subtitle strong {
    font-weight: 600;
}

.zfd805hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.zfd805hero-buttons .zfd805btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff !important;
}

.zfd805hero-buttons .zfd805btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.zfd805hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.zfd805hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.zfd805hero-image-shadow {
    display: none;
}

/* 简介条 */
.zfd805intro-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.zfd805intro-text {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.zfd805intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Bento 特点区 */
.zfd805features-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.zfd805bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.zfd805bento-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    min-height: 0;
}

.zfd805bento-card:hover {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: var(--shadow-md);
}

.zfd805bento-wide {
    grid-column: span 2;
}

.zfd805bento-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.zfd805bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.zfd805bento-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 统计 */
.zfd805stats-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.zfd805stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zfd805stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid var(--border-color);
}

.zfd805stat-item:last-child {
    border-right: none;
}

.zfd805stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.zfd805stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* 下载区 */
.zfd805download-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f5f3ff 0%, var(--light-bg) 100%);
}

.zfd805download-subtitle {
    color: var(--text-muted);
}

.zfd805download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 1.25rem;
}

.zfd805download-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.zfd805download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.zfd805download-card-head h3 {
    font-size: 1.15rem;
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.zfd805download-card-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zfd805platform-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;
}

.zfd805pc-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.zfd805mobile-icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.zfd805download-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.zfd805download-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.zfd805download-list li i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.zfd805download-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* 安全区 */
.zfd805security-section {
    padding: 4rem 0;
    background: var(--surface);
}

.zfd805security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zfd805security-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    background: var(--light-bg);
    height: 100%;
    overflow: hidden;
}

.zfd805security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.4rem;
}

.zfd805security-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.zfd805security-icon-inline {
    font-size: 1.35rem;
    color: var(--primary-color);
}

/* 知识区 */
.zfd805knowledge-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.zfd805knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.zfd805knowledge-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.35rem;
    overflow: hidden;
}

.zfd805knowledge-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.zfd805knowledge-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ */
.zfd805faq-section {
    padding: 4rem 0;
    background: var(--surface);
}

.zfd805faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.zfd805faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--light-bg);
    overflow: hidden;
}

.zfd805faq-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.zfd805faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 文章区 */
.zfd805article-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.zfd805article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

.zfd805thumb-home {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.zfd805article-card .card-body {
    padding: 0.85rem 1rem;
}

.zfd805article-card h3,
.zfd805article-card .h6 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* 页脚 */
.zfd805footer {
    background: #1e1b4b;
    color: #c7d2fe;
    padding: 3rem 0 1.5rem;
}

.zfd805footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zfd805footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zfd805footer-links li {
    margin-bottom: 0.5rem;
}

.zfd805footer-link {
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.zfd805footer-link:hover {
    color: #fff;
}

.zfd805footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.88rem;
}

.zfd805footer-bottom a {
    color: #a5b4fc;
    text-decoration: none;
}

.zfd805footer-bottom a:hover {
    color: #fff;
}

.zfd805friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zfd805friend-links a {
    color: #a5b4fc;
    font-size: 0.88rem;
    text-decoration: none;
}

/* 列表/内页 */
.zfd805pages .pagelist,
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zfd805article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zfd805article-content img {
    max-width: 100%;
    height: auto;
}

.listbox .card,
article.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* 导航折叠 */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--surface);
}

@media (max-width: 991px) {
    .zfd805hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .zfd805hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .zfd805hero-buttons {
        justify-content: center;
    }

    .zfd805bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .zfd805bento-wide {
        grid-column: span 2;
    }

    .zfd805stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .zfd805stat-item:nth-child(2) {
        border-right: none;
    }

    .zfd805stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .zfd805stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .zfd805security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zfd805knowledge-grid {
        grid-template-columns: 1fr;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .zfd805hero-section {
        padding: 2.5rem 0 2rem;
    }

    .zfd805hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .zfd805hero-buttons .zfd805btn {
        width: 100%;
    }

    .zfd805bento-grid {
        grid-template-columns: 1fr;
    }

    .zfd805bento-wide {
        grid-column: span 1;
    }

    .zfd805stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .zfd805download-grid {
        grid-template-columns: 1fr;
    }

    .zfd805security-grid {
        grid-template-columns: 1fr;
    }

    .zfd805faq-list {
        grid-template-columns: 1fr;
    }

    .zfd805features-section,
    .zfd805download-section,
    .zfd805security-section,
    .zfd805knowledge-section,
    .zfd805faq-section,
    .zfd805article-section {
        padding: 2.5rem 0;
    }

    .zfd805section-head {
        margin-bottom: 1.75rem;
    }

    .zfd805section-head h2 {
        font-size: 1.5rem;
    }

    .zfd805navbar {
        padding: 0.5rem 0;
    }

    .zfd805navbar-brand img {
        height: 36px;
    }

    .zfd805nav-link {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.95rem;
    }

    .zfd805download-card {
        padding: 1.15rem;
    }

    .zfd805download-card-head {
        flex-direction: row;
        align-items: center;
    }

    .zfd805download-action .btn,
    .zfd805download-card .w-100 {
        white-space: normal;
    }

    .zfd805thumb-home {
        height: 96px !important;
    }

    .zfd805article-card h3,
    .zfd805article-card .h6 {
        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;
    }

    .zfd805thumb-list,
    .zfd805thumb-related {
        height: 72px !important;
    }

    .zfd805thumb-side {
        height: 50px !important;
    }

    .zfd805thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }

    .zfd805footer .row > [class*="col-"] {
        text-align: center;
    }

    .zfd805friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .zfd805stat-item {
        padding: 0.75rem 0.5rem;
    }

    .zfd805stat-number {
        font-size: 1.35rem;
    }

    .zfd805thumb-home {
        height: 88px !important;
    }

    .zfd805thumb-list,
    .zfd805thumb-related {
        height: 64px !important;
    }

    .zfd805thumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}

/* 兼容旧类名 */
.zfd805feature-card,
.zfd805download-card.download-card,
.zfd805security-card.security-card {
    max-width: 100%;
}

.zfd805ios-icon,
.zfd805android-icon {
    background: inherit;
}

.zfd805download-info,
.zfd805security-features,
.zfd805certificate-card {
    display: none;
}
