/* OKX / 欧易下载官网 — 全新视觉（青绿 + 靛蓝主题） */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary: #4338ca;
    --secondary-dark: #3730a3;
    --accent: #f59e0b;
    --accent-soft: #fef3c7;
    --text: #1e293b;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.1);
    --radius: 12px;
    --radius-lg: 14px;
    --card-pad: 1.25rem;
    --card-pad-lg: 1.5rem;
    --section-pad-y: 3.5rem;
    --grid-gap: 1.25rem;
    --container: min(1120px, calc(100% - 2.5rem));
    --header-h: 68px;
    --ease: 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;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--surface);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover { color: var(--secondary); }

.container {
    width: var(--container);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.25rem;
}

/* 统一卡片外框，避免各板块边框粗细/圆角不一致 */
.card-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

/* —— 顶栏导航 —— */
.site-header {
    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(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
    min-width: 0;
    max-width: calc(100% - 56px);
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-toggle { display: none; }

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav .active > a {
    color: var(--primary-dark);
    background: var(--primary-light);
}

/* —— 按钮 —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
    text-align: center;
    line-height: 1.3;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-light {
    background: #fff;
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
    position: relative;
    padding: 3rem 0 3.5rem;
    background: linear-gradient(160deg, var(--surface-dark) 0%, #1e3a5f 45%, var(--secondary-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(13, 148, 136, 0.35), transparent),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(67, 56, 202, 0.25), transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: center;
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-lead {
    font-size: 1.02rem;
    opacity: 0.92;
    margin: 0 0 1.5rem;
    max-width: 36em;
    word-break: break-word;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-actions .btn {
    min-height: 44px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* —— 通用区块 —— */
.section {
    padding: var(--section-pad-y) 0;
    overflow: hidden;
}

.section-alt { background: var(--surface-alt); }

.section-dark {
    background: var(--surface-dark);
    color: #e2e8f0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    padding-inline: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
    color: inherit;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-header p { color: #94a3b8; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* —— 简介条 —— */
.intro-strip {
    padding: 1.35rem 0;
    background: var(--primary-light);
    border-block: 1px solid rgba(13, 148, 136, 0.12);
}

.intro-strip p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
    max-width: 48em;
    margin-inline: auto;
    padding-inline: 0.5rem;
    line-height: 1.7;
    word-break: break-word;
}

/* —— 网格通用：防止子项撑破容器 —— */
.features-grid,
.stats-grid,
.steps-row,
.download-grid,
.security-grid,
.cert-row,
.faq-grid,
.article-grid,
.footer-grid {
    width: 100%;
    min-width: 0;
}

.features-grid > *,
.stats-grid > *,
.steps-row > *,
.download-grid > *,
.security-grid > *,
.cert-row > *,
.faq-grid > *,
.article-grid > *,
.footer-grid > * {
    min-width: 0;
}

/* —— 特色网格 —— */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    align-items: stretch;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.45);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    border-radius: 14px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    flex: 1;
    word-break: break-word;
}

/* —— 统计 —— */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    text-align: center;
    align-items: stretch;
}

.stat-item {
    padding: 1.25rem 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* —— 注册流程 —— */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    counter-reset: step;
    align-items: stretch;
}

.step-card {
    position: relative;
    padding: var(--card-pad) 1rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--secondary);
    border-radius: 50%;
}

.step-card h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    word-break: break-word;
}

/* —— 下载区 —— */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    align-items: stretch;
}

.download-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--card-pad-lg);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.35);
}

.download-card .check-list { flex: 1; }

.download-card .btn-block { margin-top: auto; }

.download-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.platform-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 14px;
    color: #fff;
    flex-shrink: 0;
}

.platform-icon.win { background: linear-gradient(135deg, #0078d4, #005a9e); }
.platform-icon.android { background: linear-gradient(135deg, #3ddc84, #2e7d32); }
.platform-icon.ios { background: linear-gradient(135deg, #555, #111); }

.download-head h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.download-head .muted { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.check-list {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--text);
}

.check-list li:last-child { margin-bottom: 0; }

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.download-note {
    margin-top: 1.75rem;
    padding: 1rem 1.15rem;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-word;
}

.download-note strong { color: #b45309; }

/* —— 安全 —— */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    align-items: stretch;
}

.security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg) var(--card-pad);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.security-card .sec-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 50%;
}

.security-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--secondary);
}

.sec-features {
    text-align: left;
    list-style: none;
    margin: 0;
    margin-top: auto;
    padding: 0.75rem 0.85rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.84rem;
    flex: 1;
}

.sec-features li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.sec-features li:last-child { border-bottom: none; }

.cert-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-top: 2rem;
    align-items: stretch;
}

.cert-card {
    padding: var(--card-pad-lg) var(--card-pad);
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-card .feature-icon,
.cert-card .cert-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin: 0 auto 0.65rem;
    flex-shrink: 0;
}

.cert-card h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.cert-card p { margin: 0; font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

/* —— FAQ —— */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    max-width: 920px;
    margin-inline: auto;
    align-items: start;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}

.faq-item summary {
    padding: 0.9rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
    word-break: break-word;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 400;
    margin-top: 0.1rem;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-body {
    padding: 0 1rem 0.9rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: 0.75rem;
    line-height: 1.6;
    word-break: break-word;
}

/* —— 文章区 —— */
.article-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.75rem;
}

.article-section-header h2 { margin: 0; font-size: 1.5rem; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.35);
}

.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.88rem;
    font-weight: 600;
    line-height: 1.4;
    min-width: 0;
}

.article-card h3 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.article-card h3 a:hover { color: var(--primary-dark); }

/* —— 页脚 —— */
.site-footer {
    background: var(--surface-dark);
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img { height: 40px; margin-bottom: 0.75rem; }

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h5 {
    color: #f1f5f9;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--primary); }

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.friend-links a { color: #94a3b8; font-size: 0.88rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
}

.footer-bottom p { margin: 0.35rem 0; }

.footer-bottom a { color: #cbd5e1; }

/* —— 列表页 / 内页 —— */
.page-main {
    padding: 2.5rem 0 4rem;
    background: var(--surface-alt);
    min-height: 50vh;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.75rem;
    align-items: start;
}

.page-layout > * {
    min-width: 0;
}

.page-title-block {
    margin-bottom: 1.5rem;
}

.page-title-block h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.page-title-block .muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    margin-bottom: var(--grid-gap);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.sidebar-card h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--primary-light);
}

.sidebar-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-card li { margin-bottom: 0.5rem; }

.sidebar-card a { font-size: 0.92rem; }

.hot-item {
    display: flex;
    gap: 0.65rem;
    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:last-of-type,
.hot-item a[title] {
    font-size: 0.88rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.list-entry {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.list-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.list-entry-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
}

.list-entry img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.list-entry h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.list-entry h2 a { color: var(--text); }

.list-entry h2 a:hover { color: var(--primary-dark); }

.list-entry .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.list-entry p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-header h1 {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
    line-height: 1.35;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.article-cover {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

.article-body {
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body img { margin: 1rem auto; border-radius: 8px; max-width: 100%; }

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 1.5rem 0 0.75rem;
    line-height: 1.35;
}

.article-body p { margin: 0 0 1rem; }

.article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body th,
.article-body td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
}

.z857e8diyfield { margin-top: 1rem; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.tag-list a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 0.82rem;
}

.nav-prev-next {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.related-list .related-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.related-list .related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.related-list img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.pagebar { margin-top: 1.5rem; }

.pagebar .pagelist,
.zzpages .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagebar .pagelist li { display: inline-flex; }

.pagebar .pagelist a,
.pagebar .pagelist span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.88rem;
}

.pagebar .pagelist a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* —— 响应式 —— */
@media (min-width: 1100px) {
    .article-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 平板及以下：折叠导航 + 单栏主布局 */
@media (max-width: 1024px) {
    :root {
        --section-pad-y: 3rem;
        --grid-gap: 1.1rem;
        --header-h: 64px;
    }

    .container {
        padding-inline: 0.75rem;
    }

    .nav-toggle-btn {
        display: flex;
        flex-shrink: 0;
    }

    .header-inner {
        position: relative;
        flex-wrap: nowrap;
    }

    .logo img {
        height: 36px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }

    .nav-toggle:checked ~ .site-nav {
        max-height: min(80vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0.5rem 0.75rem 0.75rem;
        align-items: stretch;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        padding: 0.7rem 0.65rem;
        font-size: 0.92rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-inline: auto; max-width: 100%; font-size: 0.98rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 0.5rem; }
    .hero-visual img { max-width: 220px; }
    .hero h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .page-main { padding: 1.75rem 0 3rem; }
    .download-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; max-width: 100%; }
    .cert-row { grid-template-columns: repeat(2, 1fr); }
    .article-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .article-section-header .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 手机横屏 / 大屏手机 */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-entry-row { grid-template-columns: 96px 1fr; gap: 0.85rem; }
    .download-head { flex-wrap: nowrap; }
    .platform-icon { width: 48px; height: 48px; font-size: 1.35rem; }
    .cert-row { grid-template-columns: 1fr; }
    .related-list .related-item {
        grid-template-columns: 80px 1fr;
    }
    .article-meta-row {
        flex-direction: column;
        gap: 0.35rem;
    }
    .article-header h1 { font-size: 1.25rem; }
    .content-card { padding: 1.15rem; }
    .footer-grid { gap: 1.25rem; }
}

/* 标准手机 */
@media (max-width: 576px) {
    :root {
        --section-pad-y: 2.35rem;
        --card-pad: 1rem;
        --card-pad-lg: 1.1rem;
        --grid-gap: 1rem;
        --container: min(1120px, calc(100% - 1rem));
        --header-h: 58px;
    }

    .container {
        padding-inline: 0.65rem;
    }

    .section { padding: var(--section-pad-y) 0; }
    .hero { padding: 2rem 0 2.5rem; }
    .hero-badge { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
    .hero h1 { font-size: 1.45rem; }
    .hero-lead { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .hero-visual img { max-width: 200px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; max-width: 100%; }
    .intro-strip { padding: 1.1rem 0; }
    .intro-strip p { font-size: 0.88rem; text-align: left; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: 0.9rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.82rem; }
    .stat-item { min-height: auto; padding: 0.9rem 0.5rem; }
    .steps-row { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card img { height: 160px; }
    .article-section-header h2 { font-size: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { max-width: none; margin-inline: auto; }
    .footer-col h5 { margin-bottom: 0.65rem; }
    .friend-links { justify-content: center; }
    .footer-bottom { font-size: 0.82rem; padding-inline: 0.25rem; }
    .footer-bottom p { line-height: 1.6; }
    .list-entry-row { grid-template-columns: 1fr; }
    .list-entry img { width: 100%; height: 140px; }
    .list-entry h2 { font-size: 1rem; }
    .cert-card { min-height: auto; padding: 1rem; }
    .feature-card,
    .download-card,
    .security-card { padding: var(--card-pad-lg) var(--card-pad); }
    .download-head {
        flex-direction: row;
        align-items: center;
    }
    .download-note { margin-top: 1.25rem; font-size: 0.85rem; }
    .page-title-block h1 { font-size: 1.25rem; }
    .page-title-block .muted { font-size: 0.88rem; }
    .hot-item img { width: 64px; height: 48px; }
    .related-list .related-item { grid-template-columns: 1fr; }
    .related-list img { height: 120px; }
    .article-cover { max-height: 200px; }
    .pagebar .pagelist a,
    .pagebar .pagelist span {
        padding: 0.45rem 0.6rem;
        font-size: 0.82rem;
    }
}

/* 小屏手机 */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.3rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn { padding: 0.7rem 1rem; font-size: 0.88rem; }
    .site-nav a { font-size: 0.88rem; }
}

/* 刘海屏安全区 */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .site-footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .page-main {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}
