:root {
    --primary: #5b21b6;
    --primary-light: #7c3aed;
    --secondary: #0f766e;
    --accent: #f59e0b;
    --surface: #faf5ff;
    --surface-alt: #f0fdfa;
    --text: #1e1b4b;
    --text-muted: #64748b;
    --border: rgba(91, 33, 182, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(91, 33, 182, 0.08);
    --shadow-hover: 0 12px 32px rgba(91, 33, 182, 0.14);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 72px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* —— 导航 —— */
.z4ab55navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.z4ab55navbar-brand img {
    height: 42px;
    width: auto;
}

.z4ab55nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.z4ab55nav-link:hover {
    color: var(--primary) !important;
    background: var(--surface);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: #fff;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* —— 通用区块 —— */
.ave-section {
    padding: 4.5rem 0;
}

.ave-section--alt {
    background: var(--surface);
}

.ave-section--teal {
    background: var(--surface-alt);
}

.ave-section-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.ave-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.ave-section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.02rem;
}

.ave-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(15, 118, 110, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

/* —— Hero —— */
.z4ab55hero-section {
    background: linear-gradient(160deg, #1e1b4b 0%, var(--primary) 45%, var(--secondary) 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.z4ab55hero-section::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.z4ab55hero-content {
    position: relative;
    z-index: 1;
}

.z4ab55hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z4ab55hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.z4ab55hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z4ab55hero-buttons .btn {
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    border: none;
}

.z4ab55hero-buttons .btn-light {
    background: #fff;
    color: var(--primary);
}

.z4ab55hero-buttons .btn-accent {
    background: var(--accent);
    color: #1e1b4b;
}

.z4ab55hero-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.z4ab55hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z4ab55hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.z4ab55hero-image-shadow {
    display: none;
}

/* —— 简介条 —— */
.ave-intro-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.ave-intro-bar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.ave-intro-bar strong {
    color: var(--primary);
}

/* —— 优势 Bento —— */
.ave-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ave-bento-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.ave-bento-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.ave-bento-card--wide {
    grid-column: span 2;
}

.ave-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
}

.ave-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.ave-bento-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 统计 —— */
.z4ab55stats-section {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 3rem 0;
}

.z4ab55stat-item {
    text-align: center;
    padding: 0.5rem;
}

.z4ab55stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
}

.z4ab55stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.35rem;
}

/* —— 下载 —— */
.z4ab55download-section {
    padding: 4.5rem 0;
    background: var(--surface-alt);
}

.z4ab55download-header h2 {
    color: var(--text);
}

.z4ab55download-subtitle {
    color: var(--text-muted);
}

.ave-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.z4ab55download-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

.z4ab55download-card:hover {
    box-shadow: var(--shadow-hover);
}

.z4ab55download-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.z4ab55platform-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;
}

.z4ab55ios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.z4ab55android-icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.ave-dl-icon-mobile {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.z4ab55download-info {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex: 1;
    margin-bottom: 1rem;
}

.z4ab55info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.z4ab55info-item:last-child {
    margin-bottom: 0;
}

.z4ab55info-item i {
    color: var(--secondary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z4ab55download-action .btn,
.z4ab55btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.z4ab55download-action .btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* —— 安全 —— */
.z4ab55security-section {
    padding: 4.5rem 0;
    background: #fff;
}

.z4ab55security-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

.z4ab55security-card:hover {
    box-shadow: var(--shadow-hover);
}

.z4ab55security-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--secondary), #0d9488);
    color: #fff;
}

.z4ab55security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.z4ab55security-features {
    background: var(--surface-alt);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.z4ab55feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.z4ab55feature-item:last-child {
    margin-bottom: 0;
}

.z4ab55feature-item i {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.z4ab55certificate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.z4ab55certificate-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
}

.z4ab55certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.z4ab55certificate-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 知识区 —— */
.ave-knowledge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.ave-knowledge-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.ave-knowledge-main h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.ave-knowledge-main p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.ave-knowledge-main p:last-child {
    margin-bottom: 0;
}

.ave-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ave-tips-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.ave-tips-list li i {
    color: var(--accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* —— FAQ —— */
.ave-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ave-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
}

.ave-faq-item h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.ave-faq-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 文章 —— */
#article {
    background: var(--surface);
}

#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow var(--transition);
}

#article .card:hover {
    box-shadow: var(--shadow);
}

.z4ab55thumb-home {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

/* —— 页脚 —— */
.z4ab55footer {
    background: #1e1b4b;
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.z4ab55footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z4ab55footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z4ab55footer-links li {
    margin-bottom: 0.5rem;
}

.z4ab55footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.z4ab55footer-link:hover {
    color: var(--accent);
}

.z4ab55footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.88rem;
}

.z4ab55footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.z4ab55footer-bottom a:hover {
    color: var(--accent);
}

.z4ab55friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z4ab55friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    text-decoration: none;
}

/* —— 内页/列表 —— */
.z4ab55page-main {
    padding: 2.5rem 0 4rem;
    background: var(--surface);
    min-height: 50vh;
}

.z4ab55page-main .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.z4ab55article-content {
    font-size: 1rem;
    line-height: 1.8;
    word-break: break-word;
}

.z4ab55article-content img {
    max-width: 100%;
    height: auto;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .ave-bento {
        grid-template-columns: 1fr 1fr;
    }

    .ave-bento-card--wide {
        grid-column: span 2;
    }

    .ave-dl-grid {
        grid-template-columns: 1fr;
    }

    .ave-knowledge {
        grid-template-columns: 1fr;
    }

    .z4ab55hero-section {
        padding: 3rem 0 4rem;
    }

    .ave-intro-bar {
        margin-top: -1.5rem;
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .ave-section {
        padding: 3rem 0;
    }

    .z4ab55hero-section {
        padding: 2.5rem 0 3rem;
        text-align: center;
    }

    .z4ab55hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .z4ab55hero-buttons {
        justify-content: center;
    }

    .z4ab55hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .z4ab55hero-image-container {
        margin-top: 1.5rem;
    }

    .ave-bento {
        grid-template-columns: 1fr;
    }

    .ave-bento-card--wide {
        grid-column: span 1;
    }

    .ave-faq-grid {
        grid-template-columns: 1fr;
    }

    .z4ab55stat-item {
        margin-bottom: 1rem;
    }

    .z4ab55download-card .d-flex.align-items-center {
        flex-wrap: wrap;
    }

    .z4ab55security-section .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }

    #article .row {
        --bs-gutter-y: 0.75rem;
    }

    #article .z4ab55thumb-home {
        height: 100px !important;
    }

    #article h3.h5 {
        font-size: 0.92rem;
        line-height: 1.4;
        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;
    }

    .z4ab55thumb-list,
    .z4ab55thumb-related {
        height: 72px !important;
    }

    .z4ab55thumb-side {
        height: 50px !important;
    }

    .z4ab55thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 180px !important;
    }

    .z4ab55footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z4ab55friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .ave-intro-bar {
        margin-top: 0;
        border-radius: var(--radius);
    }

    .z4ab55navbar-brand img {
        height: 36px;
    }

    .z4ab55download-card .card-body {
        padding: 1.15rem !important;
    }

    .z4ab55download-info {
        padding: 0.85rem;
    }

    #article .z4ab55thumb-home {
        height: 88px !important;
    }

    .z4ab55thumb-list,
    .z4ab55thumb-related {
        height: 64px !important;
    }

    .z4ab55thumb-cover {
        height: 150px !important;
    }
}

/* 兼容旧类名 */
.z4ab55feature-card { display: none; }
.z4ab55py-5.bg-light { background: var(--surface) !important; }
