/* ===== Design tokens — violet / indigo fintech theme ===== */
:root {
    --primary: #6d28d9;
    --primary-dark: #5b21b6;
    --primary-light: #8b5cf6;
    --accent: #06b6d4;
    --accent-warm: #f59e0b;
    --bg: #f4f6fb;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --dark: #0f172a;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
    --section-py: 3.25rem;
    --card-pad: 1.375rem;
    --card-border: 1px solid var(--border);
    --transition: 0.25s ease;
    --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    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(--primary-dark); }

.z3d819container,
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.875rem, 3vw, 1.25rem);
    padding-right: clamp(0.875rem, 3vw, 1.25rem);
}

/* ===== Navigation ===== */
.z3d819navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.z3d819navbar .z3d819container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.z3d819navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.z3d819navbar-brand img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.z3d819navbar-toggler {
    display: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    line-height: 1;
}

.z3d819navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
}

.z3d819navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.z3d819nav-link {
    display: block;
    padding: 0.45rem 0.7rem !important;
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.z3d819nav-link:hover {
    color: var(--primary) !important;
    background: rgba(109, 40, 217, 0.08);
}

.z3d819nav-item.active .z3d819nav-link,
.z3d819nav-item.on .z3d819nav-link {
    color: var(--primary) !important;
    background: rgba(109, 40, 217, 0.1);
}

@media (max-width: 991px) {
    .z3d819navbar {
        padding: 0.6rem 0;
    }

    .z3d819navbar .z3d819container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.5rem;
    }

    .z3d819navbar-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        max-width: none;
    }

    .z3d819navbar-brand img {
        height: 36px;
    }

    .z3d819navbar-toggler {
        display: block;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
    }

    .z3d819nav-collapse {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-top: 0.5rem;
        background: var(--bg-card);
        border-radius: var(--radius);
        border: var(--card-border);
        box-shadow: var(--shadow);
        padding: 0.5rem;
        max-height: min(70vh, calc(100dvh - 4.5rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .z3d819nav-collapse.is-open { display: block; }

    .z3d819navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .z3d819nav-link {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .z3d819nav-link {
        padding: 0.4rem 0.55rem !important;
        font-size: 0.82rem;
    }
}

/* ===== Buttons ===== */
.z3d819btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.3;
}

.z3d819btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}

.z3d819btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.4);
    color: #fff !important;
}

.z3d819btn-light,
.btn-light {
    background: #fff;
    color: var(--primary) !important;
    border: 1px solid var(--border);
}

.z3d819btn-light:hover { background: #f8fafc; transform: translateY(-2px); }

.z3d819btn-outline,
.btn-outline-primary {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.z3d819btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

.z3d819btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.z3d819btn-ghost:hover { background: rgba(255, 255, 255, 0.25); color: #fff !important; }

/* ===== Section utilities ===== */
.z3d819section { padding: var(--section-py) 0; }
.z3d819section-alt { background: var(--bg-card); }
.z3d819section-dark {
    background: linear-gradient(160deg, var(--dark) 0%, #1e1b4b 55%, var(--primary-dark) 100%);
    color: #fff;
}

.z3d819section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.z3d819section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(109, 40, 217, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.z3d819section-dark .z3d819section-label {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.15);
}

.z3d819section-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    color: inherit;
}

.z3d819section-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.z3d819section-dark .z3d819section-desc { color: rgba(255, 255, 255, 0.75); }

/* ===== Hero ===== */
.z3d819hero-section {
    position: relative;
    padding: clamp(2.5rem, 6vw, 3.75rem) 0 clamp(3rem, 7vw, 4.5rem);
    background: linear-gradient(145deg, #0f172a 0%, #312e81 45%, var(--primary) 100%);
    color: #fff;
    overflow: hidden;
}

.z3d819hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.35) 0%, transparent 40%);
    pointer-events: none;
}

.z3d819hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

.z3d819hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.z3d819hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.z3d819hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.z3d819hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
    max-width: 540px;
}

.z3d819hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.z3d819hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.88rem;
    opacity: 0.85;
}

.z3d819hero-meta span::before {
    content: "✓ ";
    color: var(--accent);
}

.z3d819hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0 0.5rem 0.25rem;
    min-width: 0;
}

.z3d819hero-image {
    max-width: min(300px, 100%);
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.z3d819hero-float-card {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    background: var(--bg-card);
    color: var(--text);
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: var(--card-border);
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    max-width: min(180px, 42%);
    line-height: 1.4;
}

.z3d819hero-float-card strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .z3d819hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
    }

    .z3d819hero-content { order: 2; }
    .z3d819hero-visual { order: 1; }

    .z3d819hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .z3d819hero-buttons,
    .z3d819hero-meta { justify-content: center; }

    .z3d819hero-float-card { display: none; }

    .z3d819hero-image {
        max-width: min(260px, 78vw);
    }
}

@media (max-width: 575px) {
    .z3d819hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .z3d819hero-buttons .z3d819btn { width: 100%; }

    .z3d819hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .z3d819hero-meta span {
        display: block;
        width: 100%;
        max-width: 280px;
    }

    .z3d819hero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
        max-width: 100%;
        justify-content: center;
    }

    .z3d819hero-title {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    }

    .z3d819hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ===== Stats strip ===== */
.z3d819stats-section {
    padding: 2rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.z3d819stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.z3d819stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: var(--card-border);
    min-width: 0;
}

.z3d819stat-item:last-child { border-right: none; }

.z3d819stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.z3d819stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

@media (max-width: 767px) {
    .z3d819stats-section { padding: 1.5rem 0; }

    .z3d819stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .z3d819stat-item {
        border-right: var(--card-border);
        border-bottom: var(--card-border);
        padding: 0.875rem 0.5rem;
    }

    .z3d819stat-item:nth-child(2n) { border-right: none; }
    .z3d819stat-item:nth-last-child(-n+2) { border-bottom: none; }

    .z3d819stat-number {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .z3d819stat-label {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

/* ===== Features grid ===== */
.z3d819features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.z3d819feature-card {
    background: var(--bg);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: var(--card-pad);
    height: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.z3d819section-alt .z3d819feature-card {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.z3d819feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, 0.22);
}

.z3d819feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(6, 182, 212, 0.12));
    border-radius: 12px;
    margin-bottom: 1rem;
}

.z3d819feature-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    color: var(--dark);
}

.z3d819feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .z3d819features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 575px) {
    .z3d819features-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .z3d819feature-card h3 { font-size: 1.05rem; }
}

/* ===== Intro / platform ===== */
.z3d819intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.z3d819intro-grid > div { min-width: 0; }

.z3d819intro-lead {
    text-align: left;
    margin-bottom: 1rem;
}

.z3d819intro-panel {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(6, 182, 212, 0.05));
    border: var(--card-border);
    border-radius: var(--radius);
    padding: var(--card-pad);
    height: 100%;
}

.z3d819intro-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.z3d819intro-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
}

.z3d819intro-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.z3d819tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.z3d819tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .z3d819intro-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .z3d819intro-col-text {
        text-align: center;
    }

    .z3d819intro-col-text .z3d819section-desc,
    .z3d819intro-col-text .z3d819intro-lead,
    .z3d819intro-col-text p {
        text-align: center;
    }

    .z3d819tag-cloud {
        justify-content: center;
    }
}

/* ===== Download ===== */
.z3d819download-section { background: var(--bg); }

.z3d819download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.z3d819download-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: var(--card-border);
    padding: var(--card-pad);
    height: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.z3d819download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.z3d819download-card-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.z3d819platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.z3d819ios-icon { background: linear-gradient(135deg, #007aff, #5856d6); color: #fff; }
.z3d819android-icon { background: linear-gradient(135deg, #3ddc84, #2e7d32); color: #fff; }
.z3d819windows-icon { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; }

.z3d819download-card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.z3d819download-card .z3d819card-meta { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

.z3d819download-info { flex: 1; margin-bottom: 1.25rem; }

.z3d819info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.z3d819info-item i,
.z3d819info-item .z3d819check { color: var(--primary); flex-shrink: 0; }

.z3d819download-action { margin-top: auto; }
.z3d819download-action .z3d819btn { width: 100%; }

.z3d819steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
}

.z3d819step-card {
    text-align: center;
    padding: 1.125rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: var(--card-border);
    min-width: 0;
}

.z3d819step-num {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .z3d819download-grid { grid-template-columns: 1fr; }
    .z3d819steps-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .z3d819steps-row { grid-template-columns: 1fr; }
}

/* ===== Security ===== */
.z3d819security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.z3d819security-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: var(--card-pad);
    height: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    transition: background var(--transition), border-color var(--transition);
}

.z3d819security-card:hover { background: rgba(255, 255, 255, 0.1); }

.z3d819security-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.z3d819security-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #fff;
}

.z3d819security-features .z3d819feature-item {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.45rem;
    display: flex;
    gap: 0.4rem;
}

.z3d819cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
}

.z3d819certificate-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: var(--card-pad);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    min-width: 0;
}

.z3d819certificate-card h4 { margin: 0.5rem 0; color: #fff; font-size: 1rem; }
.z3d819certificate-card p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

@media (max-width: 991px) {
    .z3d819security-grid { grid-template-columns: repeat(2, 1fr); }
    .z3d819cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .z3d819security-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.z3d819faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.z3d819faq-item {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
}

.z3d819faq-item summary {
    padding: 1rem 1.125rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    word-break: break-word;
}

.z3d819faq-item summary::-webkit-details-marker { display: none; }

.z3d819faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 400;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.z3d819faq-item[open] summary::after { content: "−"; }

.z3d819faq-body {
    padding: 0 1.125rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    border-top: var(--card-border);
    margin-top: 0;
    padding-top: 0.75rem;
    word-break: break-word;
}

@media (max-width: 767px) {
    .z3d819faq-grid { grid-template-columns: 1fr; }
}

/* ===== Articles ===== */
.z3d819articles-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.z3d819articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.125rem;
    align-items: stretch;
}

.z3d819article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: var(--card-border);
    overflow: hidden;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.z3d819article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.z3d819thumb-home {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.z3d819article-card-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z3d819article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.z3d819article-card h3 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
}

.z3d819article-card h3 a {
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.z3d819article-card h3 a:hover { color: var(--primary); }

@media (max-width: 1199px) {
    .z3d819articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .z3d819articles-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .z3d819articles-header .z3d819btn {
        width: 100%;
        max-width: 100%;
    }

    .z3d819articles-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .z3d819article-card {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .z3d819article-card > a {
        grid-row: 1 / span 2;
        height: 100%;
    }

    .z3d819thumb-home {
        height: 100%;
        min-height: 88px;
    }

    .z3d819article-card-body {
        padding: 0.75rem 0.85rem;
    }

    .z3d819article-card h3 { font-size: 0.95rem; }

    .z3d819article-card-body {
        min-width: 0;
        justify-content: center;
    }
}

/* ===== Footer ===== */
.z3d819footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.z3d819footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.z3d819footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.z3d819footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z3d819footer-links li { margin-bottom: 0.55rem; }

.z3d819footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.z3d819footer-link:hover { color: var(--accent); }

.z3d819friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z3d819friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.z3d819footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
}

.z3d819footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.z3d819footer-bottom a:hover { color: var(--accent); }

@media (max-width: 991px) {
    .z3d819footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    .z3d819footer {
        padding: 2.5rem 0 1.25rem;
    }

    .z3d819footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .z3d819footer-brand {
        display: inline-flex;
        justify-content: center;
    }

    .z3d819friend-links {
        justify-content: center;
    }
}

/* ===== List / Article inner pages ===== */
.z3d819page-main { padding: 2.5rem 0 3.5rem; }

.z3d819page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.z3d819page-header { margin-bottom: 1.5rem; }
.z3d819page-header h1 { margin: 0 0 0.5rem; font-size: 1.65rem; color: var(--dark); }
.z3d819page-header p { margin: 0; color: var(--text-muted); }

.z3d819card {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.z3d819card-body { padding: 1.5rem; }

.z3d819sidebar-card { margin-bottom: 1.25rem; }
.z3d819sidebar-card h3 { margin: 0 0 1rem; font-size: 1.05rem; }

.z3d819sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z3d819sidebar-list li { margin-bottom: 0.5rem; }
.z3d819sidebar-list a { color: var(--text); font-size: 0.92rem; }
.z3d819sidebar-list a:hover { color: var(--primary); }

.z3d819hot-item {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}

.z3d819hot-item > a:last-child {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.z3d819thumb-side {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.z3d819thumb-list,
.z3d819thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z3d819thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.z3d819list-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.z3d819list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.z3d819list-item h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.z3d819list-item h2 a { color: var(--text); }
.z3d819list-item h2 a:hover { color: var(--primary); }

.z3d819list-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }

.z3d819article-content {
    line-height: 1.8;
    color: var(--text);
}

.z3d819article-content img { max-width: 100%; height: auto; margin: 1rem 0; border-radius: 8px; }

.z3d819meta-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.z3d819tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
}

.z3d819prenext {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.pagebar .pagelist,
.zzpages .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.pagebar .pagelist li { display: inline-flex; }

.listbox .e2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 991px) {
    .z3d819page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .z3d819page-main { padding: 1.75rem 0 2.5rem; }

    .z3d819page-header h1 { font-size: 1.4rem; }

    .z3d819card-body { padding: 1.125rem; }

    .z3d819list-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .z3d819list-item h2 {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .z3d819thumb-list,
    .z3d819thumb-related { height: 72px; }

    .z3d819thumb-cover { height: 170px; }
}

@media (max-width: 480px) {
    .z3d819list-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .z3d819list-item > a:first-child {
        display: block;
    }

    .z3d819thumb-list,
    .z3d819thumb-related {
        height: 160px;
        width: 100%;
    }

    .z3d819thumb-cover { height: 150px; }

    .z3d819hot-item {
        flex-direction: column;
        align-items: stretch;
    }

    .z3d819hot-item > a:first-child {
        width: 100%;
    }

    .z3d819thumb-side {
        width: 100%;
        height: 120px;
    }
}

/* Legacy class aliases */
.z3d819py-5 { padding: 3rem 0; }
.z3d819mb-0 { margin-bottom: 0; }
.z3d819mb-2 { margin-bottom: 0.5rem; }
.z3d819mb-3 { margin-bottom: 1rem; }
.z3d819mb-4 { margin-bottom: 1.5rem; }
.z3d819mb-5 { margin-bottom: 3rem; }
.z3d819mt-3 { margin-top: 1rem; }
.z3d819mt-4 { margin-top: 1.5rem; }
.z3d819mt-5 { margin-top: 3rem; }
.z3d819text-center { text-align: center; }
.bg-light { background: var(--bg); }

/* ===== 板块边框与间距统一修正 ===== */
.z3d819btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.z3d819hero-title,
.z3d819hero-subtitle {
    overflow-wrap: break-word;
    word-break: break-word;
}

.z3d819download-action .z3d819btn,
.z3d819hero-buttons .z3d819btn {
    min-height: 2.75rem;
}

.z3d819info-item span:last-child {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

.z3d819security-features .z3d819feature-item span:last-child {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .z3d819section { padding: 2.75rem 0; }
    .z3d819section-header { margin-bottom: 1.75rem; }
}

@media (max-width: 575px) {
    html { font-size: 15px; }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .z3d819section { padding: 2.25rem 0; }
    .z3d819section-title { font-size: 1.45rem; }
    .z3d819section-desc { font-size: 0.95rem; }

    :root { --card-pad: 1.125rem; }

    .z3d819container {
        padding-left: max(0.875rem, env(safe-area-inset-left));
        padding-right: max(0.875rem, env(safe-area-inset-right));
    }

    .z3d819feature-card:hover,
    .z3d819download-card:hover,
    .z3d819article-card:hover {
        transform: none;
    }

    .z3d819btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .z3d819download-card h3 { font-size: 1.1rem; }

    .z3d819step-card {
        padding: 1rem 0.875rem;
    }

    .z3d819security-card h3 { font-size: 1rem; }

    .z3d819faq-item summary {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .z3d819footer-bottom {
        font-size: 0.82rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .z3d819footer-bottom p {
        line-height: 1.75;
        word-break: break-word;
    }

    .z3d819footer-bottom a {
        display: inline-block;
        margin: 0.15rem 0.25rem;
    }
}

/* ===== Mobile: 安全区、触控与菜单状态 ===== */
.z3d819navbar-toggler,
.z3d819btn,
.z3d819nav-link,
.z3d819faq-item summary {
    -webkit-tap-highlight-color: transparent;
}

body.z3d819nav-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .z3d819cert-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .z3d819security-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
}
