/* OKX / 欧易下载官网 — 全新视觉（靛蓝 + 青绿） */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-soft: rgba(6, 182, 212, 0.12);
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(79, 70, 229, 0.1);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --container: min(1120px, calc(100% - 2.5rem));
    --nav-h: 68px;
    --section-y: 3.75rem;
    --card-pad: 1.25rem 1.35rem;
    --card-pad-lg: 1.35rem 1.5rem;
    --grid-gap: 1rem;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    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;
}

/* 统一卡片外框 */
.card-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
    overflow: 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); }

.site-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* —— 导航 —— */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-h);
}

@media (min-width: 769px) {
    .site-nav { height: var(--nav-h); }

    .site-nav__toggle { display: none !important; }

    .site-nav__menu {
        display: flex !important;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        max-width: calc(100% - 160px);
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    body.nav-open { overflow: visible; }
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 0.75rem;
    position: relative;
}

.site-nav__brand img { height: 42px; width: auto; }

.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.site-nav__menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: calc(100% - 160px);
}

.site-nav__link {
    display: block;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    line-height: 1.3;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--primary);
    background: var(--accent-soft);
}

/* —— 按钮 —— */
.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 var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn--primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4); }

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--light {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn--light:hover { color: var(--primary); }

.btn--ghost {
    background: var(--surface-3);
    color: var(--primary);
}

.btn--ghost:hover { background: var(--accent-soft); color: var(--primary-dark); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-group--center {
    justify-content: center;
}

/* —— 区块通用 —— */
.section {
    padding: var(--section-y) 0;
    overflow: hidden;
}
.section--alt { background: var(--surface-2); }
.section--dark {
    background: linear-gradient(160deg, var(--primary-dark) 0%, #1e1b4b 50%, #0f172a 100%);
    color: #fff;
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    padding-inline: 0.5rem;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section--dark .section__eyebrow { color: var(--primary-light); }

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: inherit;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
}

.section--dark .section__desc { color: rgba(255, 255, 255, 0.75); }

/* —— Hero —— */
.hero {
    position: relative;
    padding: 3.5rem 0 4rem;
    background: linear-gradient(145deg, #eef2ff 0%, #f0fdfa 45%, #fff 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content { min-width: 0; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--accent-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text);
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    max-width: 520px;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0.5rem;
}

.hero__visual img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero__card-float {
    position: absolute;
    bottom: 8%;
    right: 8%;
    left: auto;
    max-width: min(200px, 42%);
    background: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.35;
}

/* —— 简介条 —— */
.intro-bar {
    padding: 1.75rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.intro-bar__text {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
    line-height: 1.8;
}

/* —— 特色 Bento —— */
.bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.bento__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad-lg);
    min-width: 0;
    min-height: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.bento__card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.bento__card--wide { grid-column: 1 / -1; }

.bento__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.bento__card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.65rem;
    color: var(--text);
}

.bento__card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* —— 统计 —— */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.stat {
    text-align: center;
    padding: 1.25rem 1rem;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.stat__num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* —— 注册流程 —— */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad);
    text-align: center;
    min-width: 0;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.95rem;
}

.step h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.step p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

/* —— 下载 —— */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.dl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad-lg);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.dl-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.dl-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dl-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.dl-card__icon--win { background: linear-gradient(135deg, #0078d4, #005a9e); }
.dl-card__icon--android { background: linear-gradient(135deg, #3ddc84, #2e7d32); }
.dl-card__icon--ios { background: linear-gradient(135deg, #555, #111); }

.dl-card__head > div:last-child { min-width: 0; }
.dl-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.dl-card__sub { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-muted); }

.dl-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.dl-card__list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dl-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.dl-card .btn { width: 100%; }

.dl-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--accent-soft);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.65;
}

/* —— 安全 —— */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.sec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad);
    text-align: center;
    min-width: 0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.sec-card:hover { box-shadow: var(--shadow-sm); }

.sec-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.35rem;
}

.sec-card h3 { font-size: 1rem; margin: 0 0 0.75rem; }
.sec-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    text-align: left;
    font-size: 0.82rem;
    color: var(--text-muted);
    width: 100%;
}

.sec-card ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
    word-break: break-word;
}
.sec-card ul li:last-child { border-bottom: none; }

.certs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 2rem;
}

.cert {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    min-width: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert i { font-size: 1.75rem; color: var(--primary); margin-bottom: 0.75rem; }
.cert h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.cert p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* —— FAQ —— */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad-lg);
    min-width: 0;
    min-height: 0;
}

.faq-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--primary-dark);
    word-break: break-word;
}

.faq-item p { margin: 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* —— 文章 —— */
.articles__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.articles__head h2 { margin: 0; font-size: 1.75rem; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: var(--grid-gap);
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.article-card__img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.article-card__body {
    padding: 0.85rem 1rem 1rem;
    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__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title a { color: var(--text); }
.article-card__title a:hover { color: var(--primary); }

/* —— 页脚 —— */
.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.75rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    margin-bottom: 2rem;
}

.site-footer__brand img { height: 40px; margin-bottom: 1rem; }
.site-footer__brand p { font-size: 0.9rem; line-height: 1.7; margin: 0; }

.site-footer h5 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.site-footer a:hover { color: var(--accent); }

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer__bottom p { margin: 0.35rem 0; }
.site-footer__bottom a { color: rgba(255, 255, 255, 0.6); }

/* —— 内页/列表页 —— */
.page-main { padding: 2.5rem 0 4rem; background: var(--surface-2); min-height: 50vh; }
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 1.25rem;
    align-items: start;
}
.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}
.page-card h1, .page-card h2, .page-card h3 { color: var(--text); }
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad);
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}
.sidebar-card h3 { font-size: 1rem; margin: 0 0 1rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 0.5rem; }
.sidebar-card a { color: var(--text-muted); font-size: 0.9rem; }
.sidebar-card a:hover { color: var(--primary); }

.listbox .e2 li { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
.listbox .e2 li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.list-row { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; align-items: start; }
.list-row__img { border-radius: 8px; width: 100%; height: 84px; object-fit: cover; }
.related-row { display: grid; grid-template-columns: 72px 1fr; gap: 0.75rem; margin-bottom: 1rem; align-items: start; }
.related-row img, .thumb-side { width: 100%; border-radius: 8px; object-fit: cover; }
.thumb-cover { border-radius: var(--radius); max-width: 100%; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.list-inline-item { display: inline-block; }
@media (min-width: 768px) {
    .flex-md-row { flex-direction: row !important; }
}
.thumb-related { height: 84px; }
.thumb-side { height: 54px; }

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagebar .pagelist li { display: inline-flex; }

.z12341meta-tags { padding: 0; }
.z12341tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--surface-3);
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0.25rem;
}

/* Bootstrap 兼容（列表/内页仍用部分类） */
.bg-light { background: var(--surface-2) !important; }
.text-muted { color: var(--text-muted) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card-body { padding: 1.25rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 0.75rem; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 0.75rem; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; padding: 0 0.75rem; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-md-row { flex-direction: row; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }
.align-items-start { align-items: flex-start; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.me-3 { margin-right: 1rem; }
.p-4 { padding: 1.5rem; }
.h3 { font-size: 1.5rem; }
.h5 { font-size: 1.1rem; }
.fw-semibold { font-weight: 600; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: 8px; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.small { font-size: 0.875rem; }
.container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }

/* 旧类名映射（CMS 前缀） */
.z12341container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }
.z12341footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.75rem;
}
.z12341footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; }
.z12341friend-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; }
.z12341thumb-home, .z12341thumb-list, .z12341thumb-related, .z12341thumb-side, .z12341thumb-cover { object-fit: cover; }
.z12341article-content { line-height: 1.8; }
.z12341article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.z12341pages { margin-top: 1rem; }

/* —— 响应式 —— */
@media (max-width: 1200px) and (min-width: 769px) {
    .site-nav__menu { max-width: calc(100% - 150px); }
    .site-nav__link { padding: 0.35rem 0.5rem; font-size: 0.8125rem; }
}

@media (max-width: 1200px) {
    .article-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (max-width: 1024px) {
    :root { --section-y: 3.25rem; }
    .bento { grid-template-columns: 1fr; }
    .bento__card--wide { grid-column: auto; }
    .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .download-grid .dl-card:last-child { grid-column: 1 / -1; max-width: 100%; }
    .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-card { min-height: 180px; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— 平板 / 手机 —— */
@media (max-width: 768px) {
    :root {
        --section-y: 2.75rem;
        --nav-h: 60px;
        --card-pad: 1.1rem 1.15rem;
        --card-pad-lg: 1.15rem 1.2rem;
    }

    html { font-size: 15px; }
    .site-container { padding-inline: 1rem; }

    /* 导航 */
    .site-nav {
        height: auto;
        min-height: var(--nav-h);
        padding-top: env(safe-area-inset-top, 0);
    }

    .site-nav__inner {
        height: var(--nav-h);
        width: 100%;
    }

    .site-nav__brand img { height: 34px; max-width: 140px; object-fit: contain; }

    .site-nav__toggle {
        display: flex;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .site-nav__menu {
        display: none;
        position: fixed;
        top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: min(70vh, calc(100dvh - var(--nav-h) - 1rem));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav__menu.is-open { display: flex; }

    .site-nav__menu li { width: 100%; }

    .site-nav__link {
        padding: 0.75rem 0.85rem;
        white-space: normal;
        font-size: 0.9375rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    body.nav-open { overflow: hidden; }

    /* Hero */
    .hero { padding: 2rem 0 2.5rem; }
    .hero__grid { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
    .hero__title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
    .hero__lead {
        font-size: 0.95rem;
        margin-inline: auto;
        max-width: 100%;
        text-align: left;
    }
    .hero__badge { font-size: 0.75rem; }
    .btn-group { flex-direction: column; align-items: stretch; width: 100%; }
    .btn-group .btn { width: 100%; max-width: 100%; }
    .hero__visual { order: -1; padding: 0; }
    .hero__visual img { max-width: min(220px, 72vw); margin-inline: auto; }
    .hero__card-float { display: none; }

    /* 简介与标题 */
    .intro-bar { padding: 1.15rem 0; }
    .intro-bar__text {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.75;
    }

    .section__head { margin-bottom: 1.5rem; padding-inline: 0; }
    .section__title { font-size: clamp(1.35rem, 5vw, 1.65rem); }
    .section__desc { font-size: 0.95rem; }

    /* 网格区块 */
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .stat { min-height: 92px; padding: 0.85rem 0.5rem; }
    .stat__num { font-size: clamp(1.5rem, 5vw, 2rem); }
    .stat__label { font-size: 0.85rem; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .step { min-height: 0; padding: 1rem 0.85rem; }
    .step h4 { font-size: 0.9rem; }
    .step p { font-size: 0.8rem; }

    .download-grid { grid-template-columns: 1fr; }
    .download-grid .dl-card:last-child { grid-column: auto; }
    .dl-card__head {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
    }
    .dl-card__head > div:last-child { flex: 1; min-width: 0; }
    .dl-card .btn { width: 100%; }

    .security-grid { grid-template-columns: 1fr; }
    .sec-card { min-height: 0; text-align: left; }
    .sec-card__icon { margin: 0 0 0.75rem; }
    .certs { grid-template-columns: 1fr; gap: 0.65rem; }
    .cert { min-height: auto; padding: 1rem; }

    .faq-grid { grid-template-columns: 1fr; }
    .faq-item { padding: var(--card-pad); }

    /* 文章区 */
    .articles__head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.25rem;
        gap: 0.75rem;
    }
    .articles__head h2 { font-size: 1.35rem; }
    .articles__head .btn { width: 100%; justify-content: center; }
    .article-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .article-card__img { height: 160px; }
    .article-card__title { font-size: 0.9rem; }

    /* 页脚 */
    .site-footer { padding: 2.25rem 0 1.5rem; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
    .site-footer__brand p { font-size: 0.875rem; }
    .friend-links { gap: 0.5rem 0.85rem; }
    .site-footer__bottom { font-size: 0.8rem; padding-top: 1.25rem; }
    .site-footer__bottom p { line-height: 1.6; word-break: break-word; }

    /* 内页 / 列表 */
    .page-main { padding: 1.5rem 0 2.5rem; }
    .page-card { padding: var(--card-pad); }
    .page-card .h3 { font-size: 1.25rem; line-height: 1.35; }
    .page-layout { grid-template-columns: 1fr; gap: 1rem; }
    .list-row { grid-template-columns: 88px minmax(0, 1fr); gap: 0.75rem; }
    .list-row__img { height: 72px; }
    .listbox .e2 li h2.h5 { font-size: 0.95rem; line-height: 1.4; }
    .listbox .e2 li p { font-size: 0.85rem; }
    .related-row { grid-template-columns: 64px minmax(0, 1fr); gap: 0.65rem; }
    .thumb-related { height: 64px !important; }
    .thumb-side { height: 48px !important; }
    .thumb-cover { max-height: 220px !important; }
    .z12341article-content { font-size: 0.95rem; overflow-wrap: anywhere; }
    .z12341article-content img,
    .z12341article-content table { max-width: 100%; }
    .z12341article-content table { display: block; overflow-x: auto; }
    .pagebar .pagelist { justify-content: center; }
    .pagebar .pagelist a,
    .pagebar .pagelist span { min-height: 40px; display: inline-flex; align-items: center; padding: 0.35rem 0.65rem; font-size: 0.875rem; }

    .row { margin: 0; }
    .col-lg-8, .col-lg-4, .col-md-3, .col-md-9,
    .col-4, .col-8 { flex: 0 0 100%; max-width: 100%; padding: 0; }
    .d-flex.flex-column.flex-md-row { gap: 0.75rem; }
    .me-3 { display: inline-block; margin-right: 0.65rem; margin-bottom: 0.25rem; }
}

@media (max-width: 480px) {
    :root { --section-y: 2.35rem; --nav-h: 56px; }
    html { font-size: 14px; }

    .site-nav__brand img { height: 30px; max-width: 120px; }

    .hero { padding: 1.75rem 0 2rem; }
    .hero__title { font-size: 1.45rem; }
    .hero__lead { font-size: 0.9rem; }

    .stats { gap: 0.5rem; }
    .stat { min-height: 82px; padding: 0.75rem 0.4rem; }
    .stat__num { font-size: 1.45rem; }
    .stat__label { font-size: 0.8rem; }

    .steps { grid-template-columns: 1fr; }
    .bento__card,
    .dl-card,
    .faq-item,
    .step { padding: 1rem; }

    .dl-note { font-size: 0.82rem; padding: 0.85rem 1rem; text-align: left; }

    .list-row { grid-template-columns: 72px minmax(0, 1fr); }
    .list-row__img { height: 64px; }

    #register .btn-group { width: 100%; }
}

@media (max-width: 360px) {
    .site-container { padding-inline: 0.85rem; }
    .stat__num { font-size: 1.3rem; }
    .btn { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

/* 触屏设备：取消 hover 位移，避免点击后卡住 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .bento__card:hover,
    .dl-card:hover,
    .article-card:hover { transform: none; }
}
