/* OKX Download Theme — Violet / Cyan */
:root {
    --primary: #6d28d9;
    --primary-dark: #4c1d95;
    --primary-light: #8b5cf6;
    --accent: #06b6d4;
    --accent-soft: rgba(6, 182, 212, 0.12);
    --surface: #ffffff;
    --surface-2: #f5f3ff;
    --surface-3: #ede9fe;
    --text: #1e1b4b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(76, 29, 149, 0.08);
    --shadow-lg: 0 20px 50px rgba(76, 29, 149, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --card-border: 1px solid var(--border);
    --card-pad: 1.25rem;
    --card-pad-lg: 1.5rem;
    --section-pad-y: 3.75rem;
    --container: 1140px;
    --nav-h: 72px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font);
    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); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* 栅格子项防撑破、卡片等高 */
.grid-stretch > * { min-width: 0; }

.card-base {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius);
    box-shadow: none;
}

.card-base-lg {
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg);
}

/* —— Nav —— */
.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%;
    gap: 1rem;
}

.nav-brand img { height: 42px; width: auto; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    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;
    margin: 0;
    padding: 0;
    max-width: calc(100% - 160px);
}

.nav-menu a {
    display: block;
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    white-space: nowrap;
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu a:hover,
.nav-menu .active a {
    color: var(--primary);
    background: var(--accent-soft);
}

/* —— 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: 10px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.3;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--surface-3);
    color: var(--primary-dark);
}

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-light:hover { color: var(--primary); transform: translateY(-2px); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 100%;
}

.btn-group .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10.5rem);
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: 3.25rem 0 4rem;
    background: linear-gradient(160deg, #1e1b4b 0%, #4c1d95 45%, #6d28d9 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 45%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem 2.5rem;
    align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5f3fc;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1rem;
    opacity: 0.92;
    margin: 0 0 1.25rem;
    max-width: 100%;
    word-break: break-word;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust span {
    font-size: 0.85rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-trust svg { flex-shrink: 0; }

/* —— Section common —— */
.section {
    padding: var(--section-pad-y) 0;
}

.section-alt { background: var(--surface-2); }

.section-dark {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    padding: 0 0.25rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.section-dark .section-header h2 { color: #fff; }

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-header p { color: rgba(255, 255, 255, 0.85); }

.section-dark .section-label { color: #a5f3fc; }

.register-panel .panel-aside p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.register-panel .panel-aside p:last-child { margin-bottom: 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* —— Intro strip —— */
.intro-block {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
}

.intro-block > * { min-width: 0; }

.intro-block p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.intro-block p:last-child { margin-bottom: 0; }

.intro-highlights {
    display: grid;
    gap: 1rem;
}

.intro-item {
    display: flex;
    gap: 0.85rem;
    padding: var(--card-pad);
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    align-items: flex-start;
}

.intro-item > div:last-child {
    min-width: 0;
    flex: 1;
}

.intro-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 12px;
    color: #fff;
    font-size: 1.25rem;
}

.intro-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.intro-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— Feature grid —— */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.feature-card {
    padding: var(--card-pad-lg);
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(139, 92, 246, 0.45);
}

.feature-card .icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    word-break: break-word;
}

/* —— Stats —— */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-box {
    padding: 1.15rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.stat-num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    background: linear-gradient(90deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.88;
}

/* —— Download —— */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.download-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg);
    border: var(--card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(139, 92, 246, 0.35);
}

.download-card .btn-primary {
    width: 100%;
    margin-top: auto;
}

.download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.platform-icon.win { background: linear-gradient(135deg, #0078d4, #005a9e); }
.platform-icon.android { background: linear-gradient(135deg, #3ddc84, #2bb673); }
.platform-icon.ios { background: linear-gradient(135deg, #555, #111); }

.download-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.download-card .sub { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.download-list {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid var(--border);
    flex: 1;
}

.download-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-list li:last-child { margin-bottom: 0; }
.download-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.download-extra {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.download-step {
    text-align: center;
    padding: 1.15rem 0.85rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    min-width: 0;
}

.download-step .step-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;
}

.download-step h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.download-step p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

/* —— Register CTA —— */
.register-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    padding: var(--card-pad-lg) 1.75rem;
    background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-lg);
    border: var(--card-border);
}

.register-panel > * { min-width: 0; word-break: break-word; }

.register-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.register-panel ul {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.register-panel li { margin-bottom: 0.5rem; }

/* —— Security —— */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.security-card {
    padding: var(--card-pad-lg) var(--card-pad);
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.security-card .sec-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
}

.security-card h3 { margin: 0 0 0.75rem; font-size: 1rem; }

.security-card ul {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0 0;
    text-align: left;
    font-size: 0.84rem;
    color: var(--text-muted);
    flex: 1;
    border-top: 1px solid var(--border);
}

.security-card li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.security-card li:last-child { border-bottom: none; }

.cert-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-card {
    padding: var(--card-pad-lg) var(--card-pad);
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    text-align: center;
    min-width: 0;
}

.cert-card h4 { margin: 0.5rem 0 0.35rem; font-size: 0.95rem; }
.cert-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

/* —— FAQ —— */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.faq-item {
    padding: var(--card-pad-lg);
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    min-width: 0;
    height: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover { border-color: var(--primary-light); }

.faq-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--primary-dark);
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    word-break: break-word;
}

/* —— Articles —— */
.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-header-row h2 { margin: 0; font-size: 1.5rem; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--card-border);
    min-width: 0;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.article-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.article-card h3 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-card h3 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.article-card h3 a:hover { color: var(--primary); }

/* —— Footer —— */
.site-footer {
    background: #0f0a1e;
    color: #c4b5fd;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-bottom: 1.75rem;
}

.footer-grid > * { min-width: 0; }

.footer-links-block {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.25rem;
}

.footer-links-block h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #fff;
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-col h4 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: #a78bfa;
    font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.friend-links a { color: #a78bfa; font-size: 0.88rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p { margin: 0.35rem 0; }
.footer-bottom a { color: #c4b5fd; margin: 0 0.25rem; }

/* —— Inner pages —— */
.page-main {
    padding: 2.5rem 0 4rem;
    background: var(--surface-2);
    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-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: var(--card-border);
    box-shadow: none;
    padding: var(--card-pad-lg);
    min-width: 0;
    overflow: hidden;
}

.page-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.page-desc {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sidebar-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: var(--card-border);
    padding: var(--card-pad);
    margin-bottom: 1rem;
    box-shadow: none;
    min-width: 0;
    overflow: hidden;
}

.sidebar-card h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-card li { margin-bottom: 0.5rem; }
.sidebar-card li a { font-size: 0.9rem; color: var(--text); }
.sidebar-card li a:hover { color: var(--primary); }

.hot-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}

.hot-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hot-item a {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    min-width: 0;
}

.list-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.list-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-entry img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.list-entry > div {
    min-width: 0;
}

.list-entry h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    word-break: break-word;
}

.list-entry h2 a { color: var(--text); font-weight: 600; }
.list-entry h2 a:hover { color: var(--primary); }

.list-entry-title {
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.list-entry-title:hover { color: var(--primary); }

.list-entry-desc {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.article-content {
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.article-cover {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tag-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface-3);
    border-radius: 999px;
    font-size: 0.82rem;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.pagebar .pagelist li { display: inline-flex; }

.pagebar .pagelist a,
.pagebar .pagelist span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
}

.page-card-spaced { margin-top: 1.25rem; }

.prenext-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .prenext-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .prenext-row > div {
        width: auto;
        max-width: 48%;
    }
}

.prenext-row > div {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.list-plain {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
    .nav-menu { max-width: calc(100% - 140px); }

    .nav-menu a {
        padding: 0.4rem 0.5rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    :root {
        --nav-h: 60px;
        --section-pad-y: 3rem;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-brand {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 52px);
    }

    .nav-brand img { height: 36px; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0.75rem 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        max-width: none;
        flex-wrap: nowrap;
        gap: 0;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child { border-bottom: none; }

    .nav-menu a {
        padding: 0.85rem 0.75rem;
        max-width: none;
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.4;
    }

    .hero-grid,
    .intro-block,
    .register-panel,
    .page-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-grid {
        text-align: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 0.25rem;
    }

    .hero-visual img { max-width: 220px; }

    .hero-badge { max-width: 100%; }

    .hero-lead { margin-left: auto; margin-right: auto; }

    .btn-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        gap: 0.65rem 1rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .download-grid { grid-template-columns: 1fr; }
    .download-extra { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cert-row { grid-template-columns: 1fr; }

    .page-layout aside { order: 2; }
}

@media (max-width: 767px) {
    :root {
        --section-pad-y: 2.5rem;
        --card-pad: 1rem;
        --card-pad-lg: 1.15rem;
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .section { padding: var(--section-pad-y) 0; }
    .hero { padding: 1.75rem 0 2.25rem; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: 0.95rem; }

    .hero h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }

    .hero-lead { font-size: 0.92rem; }

    .register-panel {
        padding: var(--card-pad-lg);
        gap: 1.25rem;
    }

    .download-card,
    .feature-card,
    .faq-item,
    .security-card {
        padding: var(--card-pad-lg);
    }

    .feature-grid,
    .faq-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .article-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .article-header-row h2 { font-size: 1.25rem; }

    .article-header-row .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .stat-num { font-size: 1.65rem; }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        width: 100%;
        min-width: 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn {
        min-height: 44px;
    }

    .download-card-head {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .platform-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .intro-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .list-entry {
        grid-template-columns: 88px 1fr;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .list-entry img { height: 68px; }

    .page-main { padding: 1.5rem 0 2.5rem; }

    .page-card { padding: var(--card-pad-lg); }

    .page-title { font-size: 1.25rem; }

    .article-cover {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
    }

    .article-meta-bar {
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.8rem;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { text-align: center; }
    .footer-brand img { margin-left: auto; margin-right: auto; }
    .footer-col { text-align: center; }
    .friend-links { justify-content: center; }

    .site-footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .hero-visual img { max-width: 200px; }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-trust span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .stats-grid { grid-template-columns: 1fr; }

    .stat-box { padding: 0.85rem 1rem; }

    .list-entry {
        grid-template-columns: 1fr;
    }

    .list-entry > a {
        display: block;
    }

    .list-entry img {
        width: 100%;
        height: auto;
        max-height: 180px;
        aspect-ratio: 16 / 9;
    }

    .hot-item img {
        width: 64px;
        height: 48px;
    }

    .article-card img { height: 180px; }

    .intro-item {
        flex-direction: column;
        text-align: center;
    }

    .intro-item-icon { margin: 0 auto; }

    .download-step { padding: 1rem 0.75rem; }

    .page-card-spaced { margin-top: 1rem; }

    .prenext-row { gap: 0.5rem; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 1.28rem; }

    .nav-menu a { font-size: 0.9rem; padding: 0.75rem 0.5rem; }
}
