/* OKX Download Site — single stylesheet, responsive */
:root {
    --primary: #6d28d9;
    --primary-dark: #5b21b6;
    --primary-light: #8b5cf6;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --bg: #f8f7fc;
    --bg-card: #ffffff;
    --text: #1e1b4b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(109, 40, 217, 0.06);
    --shadow-lg: 0 8px 28px rgba(109, 40, 217, 0.1);
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1120px;
    --nav-h: 64px;
    --section-y: 52px;
    --card-pad: 20px;
    --grid-gap: 18px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    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(--accent); }

ul { list-style: none; }

/* Layout */
.z104d1container,
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.z104d1row,
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: var(--grid-gap);
}

.z104d1row > [class*="col"],
.row > [class*="col"] {
    padding: 0;
    min-width: 0;
}

.col, .z104d1col-12, .col-12 { flex: 0 0 100%; max-width: 100%; }
.col-4, .z104d1col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-8, .z104d1col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-3, .z104d1col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4, .z104d1col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6, .z104d1col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-3, .z104d1col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4, .z104d1col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-lg-6, .z104d1col-lg-6 {
    flex: 1 1 calc(50% - var(--grid-gap) / 2);
    max-width: calc(50% - var(--grid-gap) / 2);
}
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }

.g-3 > *, .g-4 > * { margin-bottom: 16px; }
.g-4 { gap: 0; }

.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.text-center, .z104d1text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.h-100 { height: 100%; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 8px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 12px; }
.ms-3 { margin-left: 12px; }
.mb-0, .z104d1mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4, .z104d1mb-4 { margin-bottom: 24px; }
.mb-5, .z104d1mb-5 { margin-bottom: 40px; }
.mt-3 { margin-top: 12px; }
.mt-4, .z104d1mt-4 { margin-top: 24px; }
.mt-5, .z104d1mt-5 { margin-top: 40px; }
.py-5, .z104d1py-5 { padding: var(--section-y) 0; }
.bg-light { background: var(--bg); }
.p-4 { padding: 24px; }
.fw-semibold { font-weight: 600; }
.small { font-size: 0.875rem; }
.h3 { font-size: 1.5rem; font-weight: 700; }
.h5 { font-size: 1.1rem; font-weight: 600; }

/* Nav */
.z104d1navbar,
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
    overflow: visible;
}

.z104d1navbar .z104d1container,
.site-nav .z104d1container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

.z104d1navbar-brand img,
.site-nav .brand img { height: 42px; width: auto; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.z104d1navbar-nav,
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    max-width: calc(100% - 160px);
}

.z104d1nav-link,
.nav-menu a {
    display: block;
    padding: 6px 10px;
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.z104d1nav-link:hover,
.nav-menu a:hover {
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary) !important;
}

.nav-menu .active .z104d1nav-link,
.nav-menu li.active a { color: var(--primary) !important; font-weight: 600; }

/* Hero */
.z104d1hero-section,
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #7c3aed 100%);
    color: #fff;
    padding: 56px 0 60px;
    position: relative;
    overflow: hidden;
}

.z104d1hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 90% 20%, rgba(20, 184, 166, 0.25), transparent 50%);
    pointer-events: none;
}

.z104d1hero-content,
.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.z104d1hero-title,
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.z104d1hero-subtitle,
.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.z104d1hero-buttons,
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.z104d1hero-buttons .btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 11px 18px;
    font-size: 0.9rem;
}

.z104d1hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.z104d1hero-image {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.z104d1hero-image-shadow { display: none; }

/* Buttons */
.btn, .z104d1btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
}

.btn-primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35); transform: translateY(-2px); }

.btn-light {
    background: #fff;
    color: var(--primary-dark);
}

.btn-light:hover { color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Section headers */
.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
    padding: 0 8px;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Intro band */
.intro-band {
    padding: var(--section-y) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

.intro-grid > div {
    padding: var(--card-pad);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    min-width: 0;
}

.intro-grid h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.intro-grid p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.intro-tags span {
    padding: 6px 14px;
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Features */
#features { padding: var(--section-y) 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.z104d1feature-card,
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.z104d1feature-card:hover,
.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.z104d1feature-icon,
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-align: center;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;
}

/* Stats */
.z104d1stats-section,
.stats-section {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 44px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    text-align: center;
}

.z104d1stat-item,
.stat-item {
    padding: 12px 8px;
    min-width: 0;
}

.z104d1stat-number,
.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4px;
}

.z104d1stat-label,
.stat-label { opacity: 0.88; font-size: 0.95rem; }

/* Download */
.z104d1download-section,
.download-section {
    padding: var(--section-y) 0;
    background: linear-gradient(180deg, #f0fdf9 0%, var(--bg) 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.z104d1download-card,
.download-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.download-card:hover { box-shadow: var(--shadow-lg); }

.download-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.download-card-head > div:last-child {
    flex: 1;
    min-width: 0;
}

.download-card-head h3 {
    word-break: break-word;
    line-height: 1.35;
}

.z104d1platform-icon,
.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.z104d1ios-icon, .win-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.z104d1android-icon, .android-icon { background: linear-gradient(135deg, #059669, #10b981); }

.download-card h3 { font-size: 1.2rem; margin-bottom: 4px; }

.z104d1download-info,
.download-info {
    background: rgba(109, 40, 217, 0.04);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
    flex: 1;
}

.z104d1download-action,
.download-action {
    margin-top: auto;
}

.z104d1download-action .btn,
.download-action .btn {
    width: 100%;
    white-space: normal;
    font-size: 0.9rem;
    padding: 11px 16px;
}

.z104d1info-item,
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.info-item:last-child { margin-bottom: 0; }

.info-item::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.download-steps {
    margin-top: 28px;
    padding: var(--card-pad);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.download-steps h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.step-item {
    text-align: center;
    padding: 12px 8px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Security */
.z104d1security-section,
.security-section {
    padding: var(--section-y) 0;
    background: var(--bg-card);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.z104d1security-card,
.security-card {
    padding: var(--card-pad);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color var(--transition);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.z104d1security-features {
    flex: 1;
}

.security-card:hover { border-color: var(--primary-light); }

.z104d1security-icon,
.security-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.security-card h3 { font-size: 1.05rem; margin-bottom: 12px; }

.z104d1security-features .z104d1feature-item,
.security-card .info-item { font-size: 0.88rem; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 28px;
}

.z104d1certificate-card,
.certificate-card {
    text-align: center;
    padding: var(--card-pad) 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    min-width: 0;
    height: 100%;
}

.z104d1certificate-icon,
.certificate-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.certificate-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary-dark); }
.certificate-card p { font-size: 0.88rem; color: var(--text-muted); }

/* FAQ */
#faq { padding: var(--section-y) 0; background: var(--bg); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
    min-width: 0;
    overflow: hidden;
}

.faq-item p {
    word-break: break-word;
}

.faq-item:hover { border-color: var(--primary-light); }

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.faq-item p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* Articles */
#article { padding: var(--section-y) 0; }

.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.article-header-row h2 { font-size: 1.35rem; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.card-img-top, .z104d1thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-body {
    padding: 12px 14px 14px;
    flex: 1;
    min-width: 0;
}

.card-body h3 {
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }

.shadow-sm { box-shadow: var(--shadow); }

/* Footer */
.z104d1footer,
.footer {
    background: #1e1b4b;
    color: rgba(255, 255, 255, 0.75);
    padding: 44px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.footer-grid > div {
    min-width: 0;
}

.z104d1footer-title,
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.z104d1footer-links li,
.footer-links li { margin-bottom: 10px; }

.z104d1footer-link,
.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

.z104d1footer-link:hover,
.footer-links a:hover { color: var(--accent-light); }

.z104d1friend-links,
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.friend-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

.z104d1footer-bottom,
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom p { margin-bottom: 8px; }

/* Inner / list pages */
.page-main { padding: 40px 0 64px; }

.page-title-block { margin-bottom: 28px; }
.page-title-block h1 { font-size: 1.75rem; margin-bottom: 8px; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: var(--grid-gap);
    align-items: start;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.listbox .e2 li {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.listbox .e2 li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.list-item-inner {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.z104d1thumb-list,
.z104d1thumb-related { width: 100%; height: 84px; object-fit: cover; border-radius: var(--radius); }

.z104d1thumb-side { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

.z104d1thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

.side-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    border: 1px solid var(--border);
    margin-bottom: var(--grid-gap);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.side-widget h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.side-widget li { margin-bottom: 10px; }
.side-widget li a { color: var(--text); }
.side-widget li a:hover { color: var(--primary); }

.side-hot-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.side-hot-item a:last-child {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.z104d1article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.z104d1article-content img { margin: 16px auto; border-radius: var(--radius); }
.z104d1article-content p { margin-bottom: 1em; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.z104d1meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.z104d1tagitem a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 999px;
    font-size: 0.85rem;
}

.nav-prev-next {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

/* Pagination */
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.pagebar .pagelist a,
.pagebar .pagelist span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
}

.pagebar .pagelist a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Icon chars (no external fonts) */
.ico { font-style: normal; }

/* Responsive — tablet */
@media (max-width: 991px) {
    :root {
        --section-y: 44px;
        --card-pad: 18px;
        --nav-h: 60px;
    }

    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8,
    .z104d1col-lg-3, .z104d1col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 平板起折叠导航，避免栏目挤成一团 */
    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        z-index: 1002;
        margin-left: 8px;
    }

    .z104d1navbar-nav,
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        max-width: none;
        width: 100%;
        background: #fff;
        padding: 8px 12px 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: min(75vh, 520px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.is-open { display: flex; }

    .site-nav .z104d1container {
        position: relative;
        flex-wrap: nowrap;
    }

    .z104d1nav-item,
    .nav-menu li {
        width: 100%;
    }

    .z104d1nav-link,
    .nav-menu a {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.95rem;
        white-space: normal;
        word-break: break-word;
        border-radius: 8px;
    }

    .z104d1navbar-brand img,
    .site-nav .brand img { height: 36px; }

    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .content-layout { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .z104d1hero-section .z104d1row { flex-direction: column; }
    .z104d1hero-image-container { margin-top: 20px; }

    .z104d1hero-content,
    .hero-content { text-align: center; }

    .z104d1hero-subtitle,
    .hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }

    .z104d1hero-buttons,
    .hero-buttons { justify-content: center; }

    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: 1.35rem; }
    .section-head p { font-size: 0.95rem; }
}

/* Responsive — phone */
@media (max-width: 767px) {
    :root {
        --section-y: 36px;
        --card-pad: 16px;
        --grid-gap: 14px;
        --nav-h: 56px;
    }

    body.nav-open { overflow: hidden; }

    .z104d1hero-section { padding: 32px 0 40px; }

    .hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
        max-width: 100%;
        line-height: 1.4;
    }

    .z104d1hero-title,
    .hero-title { font-size: 1.5rem; margin-bottom: 12px; }

    .z104d1hero-subtitle,
    .hero-subtitle {
        margin-bottom: 20px;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .z104d1hero-buttons,
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .z104d1hero-buttons .btn,
    .hero-buttons .btn {
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .btn-lg { padding: 12px 16px; font-size: 0.9rem; }

    .z104d1hero-image { max-width: 220px; }

    .feature-grid,
    .download-grid,
    .faq-grid,
    .cert-grid { grid-template-columns: 1fr; }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .z104d1stat-item,
    .stat-item {
        padding: 14px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
    }

    .z104d1stat-number,
    .stat-number { font-size: 1.5rem; }

    .z104d1stat-label,
    .stat-label { font-size: 0.85rem; }

    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    .card-img-top,
    .z104d1thumb-home { height: 100px; }

    .card-body { padding: 10px 12px 12px; }

    .card-body h3 { font-size: 0.85rem; }

    .article-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .article-header-row .btn {
        width: 100%;
        text-align: center;
    }

    .col-md-3, .col-md-4, .col-md-6,
    .z104d1col-md-3, .z104d1col-md-4, .z104d1col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-4, .col-8 { flex: 0 0 100%; max-width: 100%; }

    .list-item-inner {
        grid-template-columns: 88px 1fr;
        gap: 12px;
    }

    .listbox .e2 li h2.h5,
    .listbox .e2 li .h5 { font-size: 0.95rem; }

    .listbox .e2 li p { font-size: 0.85rem; }

    .download-card-head {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .download-card-head .ms-3 { margin-left: 0; }

    .download-steps { margin-top: 20px; padding: 16px; }

    .download-steps h3 { font-size: 1.05rem; margin-bottom: 14px; }

    .steps-row { grid-template-columns: 1fr; gap: 10px; }

    .step-item { padding: 14px 12px; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .z104d1footer-brand,
    .footer-brand { display: inline-block; }

    .z104d1friend-links,
    .friend-links {
        justify-content: center;
    }

    .page-main { padding: 24px 0 40px; }

    .page-title-block h1 { font-size: 1.35rem; }

    .content-card { padding: 16px; }

    .z104d1thumb-cover { height: 180px; }

    .article-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 0.82rem;
    }

    .nav-prev-next {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-prev-next > div { width: 100%; }

    .pagebar .pagelist {
        justify-content: center;
        gap: 6px;
    }

    .pagebar .pagelist a,
    .pagebar .pagelist span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .intro-grid > div { padding: 16px; }

    .intro-grid h2 { font-size: 1.2rem; }

    .intro-tags { justify-content: center; }

    .feature-card h3 { font-size: 1.05rem; }

    .security-card h3 { font-size: 1rem; }

    .faq-item { padding: 16px; }

    .faq-item h3 { font-size: 0.95rem; }

    .faq-item p { font-size: 0.88rem; }
}

/* Responsive — small phone */
@media (max-width: 575px) {
    .z104d1container,
    .container { padding: 0 12px; }

    .article-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .feature-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .list-item-inner { grid-template-columns: 1fr; }

    .list-item-inner > a:first-child {
        display: block;
        max-width: 100%;
    }

    .z104d1thumb-list,
    .z104d1thumb-related {
        width: 100%;
        height: 140px !important;
    }

    .z104d1thumb-cover { height: 160px; }

    .z104d1hero-image { max-width: 200px; }

    .download-card-head {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .download-card-head h3 { font-size: 1.05rem; }

    .z104d1footer-bottom,
    .footer-bottom { font-size: 0.82rem; }

    .footer-bottom p {
        line-height: 1.6;
        word-break: break-word;
    }
}

@media (max-width: 380px) {
    .z104d1hero-title,
    .hero-title { font-size: 1.35rem; }

    .stats-grid { grid-template-columns: 1fr; }

    .intro-tags span {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}
