/* OKX / 欧易下载官网 — 独立样式表 */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #7c3aed;
    --accent-light: #ede9fe;
    --surface: #ffffff;
    --surface-alt: #f0fdfa;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1140px;
    --nav-h: 72px;
    --section-y: 3.25rem;
    --grid-gap: 1.25rem;
    --card-pad: 1.35rem;
    --card-border: 1px solid var(--border);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

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); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 网格子项防撑破、卡片统一边框基调 */
.features-grid,
.download-grid,
.steps-grid,
.security-grid,
.stats-grid,
.cert-row,
.faq-grid,
.articles-grid,
.footer-grid,
.content-layout {
    width: 100%;
}

.features-grid > *,
.download-grid > *,
.steps-grid > *,
.security-grid > *,
.stats-grid > *,
.cert-row > *,
.faq-grid > *,
.articles-grid > * {
    min-width: 0;
}

.card-base {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

/* —— 导航 —— */
.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);
    min-height: var(--nav-h);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-height: var(--nav-h);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.brand {
    flex-shrink: 0;
    z-index: 2;
}

.brand img { height: 42px; width: auto; max-width: 140px; 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;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem 0.35rem;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav .active a {
    color: var(--primary);
    background: var(--primary-light);
}

/* —— 按钮 —— */
.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-align: center;
}

.btn:hover { transform: translateY(-1px); }

.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 24px rgba(13, 148, 136, 0.4); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-light:hover { color: var(--primary-dark); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-block { width: 100%; max-width: 100%; }

.hero-actions .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: 3.25rem 0 3.75rem;
    background: linear-gradient(160deg, var(--bg-darker) 0%, #134e4a 45%, var(--primary-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(124, 58, 237, 0.25), transparent 55%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
}

.hero-content { min-width: 0; }

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    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-bottom: 1rem;
}

.hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 32em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.hero-trust span {
    display: inline-block;
}

.hero-trust span::before {
    content: "✓ ";
    color: #5eead4;
    font-weight: 700;
}

.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 12px 32px rgba(0, 0, 0, 0.25);
}

/* —— 区块通用 —— */
.section {
    padding: var(--section-y) 0;
    overflow: hidden;
}

.section-alt { background: var(--surface-alt); }

.section-dark {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: #fff;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    padding: 0 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-dark .section-header h2 { color: #fff; }

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-header p { color: rgba(255, 255, 255, 0.75); }

.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.5rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.intro-strip .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.intro-strip p {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 52em;
    margin: 0 auto;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.intro-strip strong { color: var(--primary-dark); }

/* —— 特性网格 —— */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.feature-card {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 10px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    overflow-wrap: anywhere;
}

/* —— 统计 —— */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    text-align: center;
}

.stat-item {
    padding: 1.15rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.stat-num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #5eead4;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* —— 下载 —— */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.download-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    border: var(--card-border);
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.download-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.1);
}

.download-card .btn-block { margin-top: auto; }

.download-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.download-card-head > div:last-child {
    min-width: 0;
    flex: 1;
}

.download-card-head h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.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 .meta { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

.download-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    border: 1px solid rgba(13, 148, 136, 0.12);
    flex: 1;
}

.download-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-list li:last-child { margin-bottom: 0; }

.download-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* —— 注册流程 —— */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    counter-reset: step;
    align-items: stretch;
}

.step-card {
    position: relative;
    padding: var(--card-pad);
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    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 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
}

.step-card h4 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* —— 安全 —— */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.security-card {
    background: var(--surface);
    padding: var(--card-pad);
    border-radius: var(--radius-lg);
    border: var(--card-border);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.security-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.security-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.security-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.security-card ul {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
    width: 100%;
}

.security-card li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.security-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.cert-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 2rem;
}

.cert-card {
    padding: 1.15rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px dashed #cbd5e1;
    height: 100%;
}

.cert-card h4 { font-size: 1rem; margin: 0.5rem 0; color: var(--text); }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); }

/* —— FAQ —— */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.faq-item {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    height: 100%;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* —— 文章 —— */
.articles-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.articles-header h2 { font-size: 1.5rem; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.article-card {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
}

.article-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.article-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }

/* —— 页脚 —— */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    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: 1rem; }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-col h5 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-col a:hover { color: #5eead4; }

.footer-grid .footer-links-block {
    grid-column: 1 / -1;
}

.container > .footer-links-block {
    width: 100%;
    margin-bottom: 1rem;
}

.footer-links-block {
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
    max-width: 100%;
}

.friend-links li { max-width: 100%; }

.friend-links a {
    display: inline-block;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.6);
    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.7;
}

.footer-bottom p { margin-bottom: 0.35rem; }

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: #5eead4; }

/* —— 列表页 / 内页 —— */
.page-main { padding: 2.5rem 0 4rem; background: var(--surface-alt); min-height: 50vh; }

.page-title { margin-bottom: 2rem; }
.page-title h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.page-title p { color: var(--text-muted); font-size: 0.95rem; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: var(--grid-gap);
    align-items: start;
}

.main-col { min-width: 0; }

.panel {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: none;
    overflow: hidden;
}

.list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    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;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.list-item h2 a { color: var(--text); }
.list-item h2 a:hover { color: var(--primary); }

.list-item p { font-size: 0.9rem; color: var(--text-muted); }

.sidebar .panel { margin-bottom: 1.25rem; }

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar ul { list-style: none; }

.sidebar li { margin-bottom: 0.5rem; }

.sidebar li a { color: var(--text-muted); font-size: 0.9rem; }
.sidebar li a:hover { color: var(--primary); }

.sidebar-hot {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.sidebar-hot img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-hot a { font-size: 0.875rem; color: var(--text); line-height: 1.4; }

.article-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.article-header h1 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 0.75rem; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-cover {
    max-width: 100%;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body img {
    margin: 1rem auto;
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

.article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body iframe,
.article-body video {
    max-width: 100%;
}

.article-body p { margin-bottom: 1rem; }

.article-body pre {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tag-list a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 999px;
}

.related-title { font-size: 1rem; margin-bottom: 1rem; }

.nav-prev-next {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagebar { margin-top: 1.5rem; }

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagebar .pagelist li { display: inline-flex; }

.pagebar .pagelist a,
.pagebar .pagelist span {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
}

.pagebar .pagelist a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* —— 响应式 —— */
@media (max-width: 1024px) {
    :root { --section-y: 2.75rem; }

    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 平板及以下：折叠导航 */
@media (max-width: 992px) {
    .nav-toggle-btn {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 2;
    }

    .site-header {
        min-height: auto;
    }

    .site-header .container {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 0;
        min-height: 56px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .brand img {
        height: 36px;
        max-width: 120px;
    }

    .site-nav {
        flex: 1 1 100%;
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
        background: var(--surface);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        justify-content: stretch;
    }

    .nav-toggle:checked ~ .site-nav {
        max-height: min(75vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0.5rem 0.75rem 0.75rem;
        gap: 0.15rem;
    }

    .site-nav a {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .site-nav li {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root { --section-y: 2.5rem; --card-pad: 1.15rem; --nav-h: 56px; }

    .hero {
        padding: 2rem 0 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }

    .intro-strip {
        padding: 1.15rem 0;
    }

    .intro-strip p {
        text-align: left;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .section-header p {
        font-size: 0.92rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .stat-num {
        font-size: 1.75rem;
    }

    .download-grid,
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .articles-header {
        margin-bottom: 1.25rem;
    }

    .articles-header h2 {
        font-size: 1.25rem;
    }

    .article-card img {
        height: 100px;
    }

    .download-card-head {
        flex-direction: row;
        text-align: left;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .page-main {
        padding: 1.75rem 0 2.5rem;
    }

    .page-title {
        margin-bottom: 1.25rem;
    }

    .page-title h1 {
        font-size: 1.25rem;
    }

    .cert-row {
        grid-template-columns: 1fr;
    }

    .list-item {
        grid-template-columns: 88px 1fr;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .list-item img {
        height: 72px;
    }

    .list-item h2 {
        font-size: 0.95rem;
    }

    .list-item p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sidebar-hot {
        gap: 0.65rem;
    }

    .sidebar-hot a:last-child {
        min-width: 0;
        flex: 1;
    }

    .site-footer {
        padding: 2.25rem 0 1.25rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .footer-bottom p {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-card img {
        height: 140px;
    }

    .article-header h1 {
        font-size: 1.2rem;
    }

    .article-meta {
        gap: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .article-cover {
        max-height: 200px;
    }

    .panel {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    :root { --section-y: 2rem; --grid-gap: 1rem; }

    .container,
    .intro-strip .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .features-grid,
    .stats-grid,
    .steps-grid,
    .security-grid,
    .articles-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        gap: 1.25rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .friend-links {
        justify-content: center;
    }

    .hero-grid {
        text-align: left;
    }

    .hero-trust {
        align-items: flex-start;
        text-align: left;
    }

    .list-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .list-item img {
        height: 150px;
        width: 100%;
    }

    .stat-item {
        padding: 0.9rem 0.75rem;
    }

    .cert-card {
        padding: 1rem 0.85rem;
    }

    .articles-header {
        flex-direction: column;
        align-items: stretch;
    }

    .articles-header .btn {
        width: 100%;
    }

    .pagebar .pagelist {
        justify-content: center;
    }

    .pagebar .pagelist a,
    .pagebar .pagelist span {
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
    }
}
