/* OKX Download Site — single stylesheet, responsive */
:root {
    --primary: #5b21b6;
    --primary-light: #7c3aed;
    --primary-dark: #4c1d95;
    --accent: #14b8a6;
    --accent-soft: rgba(20, 184, 166, 0.12);
    --surface: #ffffff;
    --surface-alt: #f5f3ff;
    --surface-dark: #1e1b4b;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(91, 33, 182, 0.06);
    --shadow-lg: 0 8px 28px rgba(91, 33, 182, 0.1);
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1120px;
    --nav-h: 68px;
    --section-y: 3rem;
    --card-pad: 1.25rem;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* —— Layout grid —— */
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.row > [class*="col"] { padding: 0 0.75rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

.g-3 { gap: 0; }
.g-3 > [class*="col"] { margin-bottom: 1rem; }
.g-4 > [class*="col"] { margin-bottom: 1.25rem; }

.align-center { align-items: center; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.bg-alt { background: var(--surface-alt); }

/* 防止网格子项撑破容器 */
.feature-grid > *,
.security-grid > *,
.faq-grid > *,
.steps-row > *,
.download-grid > *,
.article-grid > *,
.intro-list li,
.feature-card,
.security-card,
.faq-item,
.step-card,
.download-card,
.article-card {
    min-width: 0;
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45); }
.btn-light {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-light:hover { color: var(--primary-dark); }
.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary-light); color: #fff; }
.btn-lg { padding: 0.8rem 1.35rem; font-size: 0.95rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; max-width: 100%; }

/* —— Navbar —— */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-brand img { height: 42px; width: auto; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.1rem;
    list-style: none;
    max-width: calc(100% - 140px);
}
.nav-menu a {
    display: block;
    padding: 0.4rem 0.65rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}
@media (min-width: 1200px) {
    .nav-menu a { padding: 0.45rem 0.75rem; font-size: 0.88rem; }
}
.nav-menu a:hover,
.nav-menu .active a {
    color: var(--primary-light);
    background: var(--accent-soft);
}

@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
        z-index: 1002;
        margin-left: auto;
    }
    .nav-brand img { height: 36px; }
    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        max-width: none;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 0.5rem 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
        z-index: 1001;
    }
    .nav-menu a {
        white-space: normal;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-menu.is-open {
        max-height: 75vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: 3rem 0 3.5rem;
    background: linear-gradient(145deg, var(--surface-dark) 0%, var(--primary-dark) 45%, #312e81 100%);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(167, 139, 250, 0.2) 0%, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}
.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 991px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions .btn {
        flex: none;
        width: 100%;
    }
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.85;
}
.hero-tags span {
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual img {
    max-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .hero h1 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
    .hero-badge { font-size: 0.75rem; max-width: 100%; }
    .hero-tags { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 0.25rem; }
    .hero-visual img { max-width: 200px; }
}

/* —— Section headers —— */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.intro-block > div > h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
    line-height: 1.35;
}
.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* —— Intro / About —— */
.intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.intro-block p { margin-bottom: 0.85rem; color: var(--text-muted); font-size: 0.95rem; }
.intro-list li > div { flex: 1; min-width: 0; }
.intro-list li strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.intro-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}
.intro-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: var(--card-pad);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.intro-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.footer-links-title {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.intro-list .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .intro-block { grid-template-columns: 1fr; gap: 1.25rem; }
    .intro-block > div { text-align: center; }
    .intro-block > div > h2 { text-align: center; }
}

/* —— Feature cards —— */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    align-items: stretch;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad) 1.1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.25);
}
.feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

@media (max-width: 991px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* —— Stats —— */
.stats-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: #fff;
    padding: 2.25rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.25rem;
    text-align: center;
}
.stats-grid > div {
    padding: 0.5rem 0.25rem;
}
.stat-num {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.stat-label { font-size: 0.95rem; opacity: 0.9; margin-top: 0.35rem; }

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0.5rem;
    }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.82rem; }
}
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 1.35rem; }
}

/* —— Download —— */
.download-section {
    padding: var(--section-y) 0;
    background: var(--surface-alt);
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    align-items: stretch;
}
.download-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--card-pad) 1.35rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-lg); }
.download-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.download-card-head > div:last-child { min-width: 0; flex: 1; }
.platform-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.platform-icon.win { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.platform-icon.android { background: linear-gradient(135deg, #22c55e, #15803d); }
.platform-icon.ios { background: linear-gradient(135deg, #64748b, #334155); }
.download-card h3 { font-size: 1.15rem; color: var(--primary-dark); }
.download-card .sub { font-size: 0.85rem; color: var(--text-muted); }
.download-features {
    list-style: none;
    margin-bottom: 1.15rem;
    flex: 1;
}
.download-card .btn {
    margin-top: auto;
    align-self: flex-start;
    max-width: 100%;
}
.download-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.download-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.download-note {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .download-grid { grid-template-columns: 1fr; }
    .download-card-head { flex-direction: row; text-align: left; }
    .download-card .btn { align-self: stretch; width: 100%; }
}

/* —— Security —— */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad) 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.security-card:hover { border-color: var(--primary-light); }
.security-card .s-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.security-card h3 { font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--primary-dark); }
.security-card ul {
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: left;
    flex: 1;
    width: 100%;
}
.security-card ul li { padding: 0.25rem 0; }

.cert-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
    align-items: stretch;
}
.cert-card {
    padding: var(--card-pad);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
}
.cert-card h4 { font-size: 0.95rem; color: var(--primary-dark); margin: 0.5rem 0; }
.cert-card p { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 1100px) {
    .security-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .cert-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .security-grid { grid-template-columns: 1fr; }
}

/* —— Register steps —— */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: step;
    align-items: stretch;
}
.step-card {
    position: relative;
    padding: var(--card-pad);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    counter-increment: step;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.step-card::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.step-card p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 991px) {
    .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .steps-row { grid-template-columns: 1fr; }
}

/* —— FAQ —— */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad) 1.2rem;
    height: 100%;
    transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.faq-item p { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 767px) {
    .faq-grid { grid-template-columns: 1fr; }
}

/* —— Articles —— */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.article-header h2 { font-size: 1.5rem; color: var(--primary-dark); }
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-card:hover { box-shadow: var(--shadow-lg); }
.article-card > a { flex-shrink: 0; }
.article-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.article-card-body { padding: 0.75rem 0.85rem 0.9rem; flex: 1; min-width: 0; }
.article-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.article-card h3 {
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary-light); }

@media (min-width: 1280px) {
    .article-grid { grid-template-columns: repeat(5, 1fr); }
    .article-card img { height: 100px; }
}
@media (max-width: 991px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .article-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .article-header .btn { align-self: center; }
    .article-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .article-card { flex-direction: row; height: auto; align-items: stretch; }
    .article-card > a {
        width: 100px;
        flex-shrink: 0;
        display: block;
        overflow: hidden;
    }
    .article-card img {
        width: 100%;
        height: 100%;
        min-height: 80px;
        max-height: none;
        object-fit: cover;
    }
    .article-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0.65rem 0.85rem;
    }
    .article-card h3 { -webkit-line-clamp: 3; font-size: 0.9rem; }
}

/* —— Footer —— */
.site-footer {
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; opacity: 0.8; }
.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; }
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
}
.friend-links li a { font-size: 0.85rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
}
.footer-bottom p { margin-bottom: 0.35rem; }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* —— Inner / List pages —— */
.page-main {
    padding: 2.5rem 0 4rem;
    background: var(--surface-alt);
    min-height: calc(100vh - var(--nav-h) - 120px);
}
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 1.5rem;
    align-items: start;
}
.page-layout > * { min-width: 0; }
.page-title h1 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; }
.page-title .desc { color: var(--text-muted); font-size: 0.95rem; }

.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--card-pad) 1.35rem;
    overflow: hidden;
}
.sidebar-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: var(--card-pad);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.sidebar-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: 0.5rem; }
.sidebar-card ul li a { color: var(--text); font-size: 0.9rem; }
.sidebar-card ul li a:hover { color: var(--primary-light); }

.list-item {
    display: grid;
    grid-template-columns: minmax(80px, 110px) minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.list-item img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius);
}
.list-item .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.list-item h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.list-item h2 a { color: var(--text); }
.list-item h2 a:hover { color: var(--primary-light); }
.list-item p { font-size: 0.9rem; color: var(--text-muted); }

.side-thumb-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.side-thumb-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.side-thumb-item a { font-size: 0.88rem; color: var(--text); line-height: 1.4; }
.side-thumb-item a:hover { color: var(--primary-light); }

.article-detail h1 { font-size: 1.45rem; color: var(--primary-dark); margin-bottom: 0.75rem; }
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.article-cover {
    max-width: 100%;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.article-body { line-height: 1.8; }
.article-body img { margin: 1rem auto; border-radius: var(--radius); }
.article-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.article-tags li a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--primary);
}
.related-item {
    display: grid;
    grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.related-item > div { min-width: 0; }
.related-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}
.nav-prev-next {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.pagebar { margin-top: 1.5rem; }
.pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}
.pagelist li { display: inline-flex; }
.pagelist a,
.pagelist span {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
}
.pagelist a:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

@media (max-width: 991px) {
    .page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .list-item { grid-template-columns: 90px 1fr; }
    .list-item img { height: 64px; }
    .related-item { grid-template-columns: 80px 1fr; }
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
    :root {
        --section-y: 2rem;
        --card-pad: 1rem;
        --nav-h: 56px;
    }

    html { font-size: 15px; }

    .container { padding: 0 1rem; }

    .section-head { margin-bottom: 1.35rem; }
    .section-head h2 { font-size: 1.35rem; }
    .section-head p { font-size: 0.92rem; line-height: 1.6; }

    .hero { padding: 1.5rem 0 2rem; }
    .hero-visual img { max-width: 160px; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); }

    .btn {
        min-height: 44px;
        padding: 0.7rem 1.15rem;
        font-size: 0.9rem;
    }
    .btn:hover { transform: none; }

    .feature-grid,
    .security-grid,
    .faq-grid,
    .steps-row,
    .download-grid { gap: 0.75rem; }

    .feature-card,
    .security-card,
    .faq-item,
    .step-card,
    .download-card { padding: 1rem; }

    .download-note {
        margin-top: 1rem;
        padding: 0.85rem 1rem;
        font-size: 0.84rem;
    }

    .cert-row { grid-template-columns: 1fr; gap: 0.75rem; }

    .footer-grid { gap: 1.25rem; }
    .footer-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; }
    .footer-col ul li { margin-bottom: 0; }
    .friend-links { justify-content: center; gap: 0.5rem 0.85rem; }
    .site-footer { padding: 2rem 0 1rem; }
    .footer-bottom { font-size: 0.8rem; line-height: 1.7; }
    .footer-bottom p { word-break: break-word; }

    /* 列表页 / 内页 */
    .page-main { padding: 1.25rem 0 2.5rem; }
    .page-title h1 { font-size: 1.25rem; }
    .page-title .desc { font-size: 0.88rem; }
    .content-card { padding: 1rem; }
    .sidebar-card { padding: 1rem; }

    .list-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .list-item img { height: 72px; }
    .list-item h2 { font-size: 0.95rem; line-height: 1.35; }
    .list-item p {
        font-size: 0.84rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .side-thumb-item { align-items: flex-start; }
    .side-thumb-item a:last-child {
        word-break: break-word;
        font-size: 0.85rem;
    }

    .article-detail h1 { font-size: 1.2rem; line-height: 1.4; }
    .article-meta { flex-direction: column; gap: 0.35rem; font-size: 0.8rem; }
    .article-cover { max-height: 200px; margin-bottom: 1rem; }
    .article-body { font-size: 0.95rem; overflow-wrap: break-word; }
    .article-body img,
    .article-body table,
    .article-body pre,
    .article-body iframe { max-width: 100% !important; height: auto !important; }

    .related-item { grid-template-columns: 88px minmax(0, 1fr); }
    .related-item img { height: 66px; }

    .nav-prev-next { flex-direction: column; gap: 0.75rem; }

    .pagelist { justify-content: center; }
    .pagelist a,
    .pagelist span { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}

@media (max-width: 640px) {
    .cert-row { grid-template-columns: 1fr; }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .steps-row { grid-template-columns: repeat(2, 1fr); }
}

/* 安全区域：刘海屏底部留白 */
@supports (padding: max(0px)) {
    .site-nav .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .site-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}
