/* OKX / 欧易下载官网 — 全新视觉（靛青 + 琥珀） */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --accent-soft: #fef3c7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease);
}

*, *::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-2);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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);
}

.z89f2ccontainer {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* —— 导航 —— */
.z89f2cnavbar {
    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);
}

.z89f2cnavbar .z89f2ccontainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav-h);
}

.z89f2cnavbar-brand img {
    height: 42px;
    width: auto;
}

.z89f2cnav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.z89f2cnav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.z89f2cnavbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.z89f2cnav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text) !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.z89f2cnav-link:hover,
.z89f2cnav-item.active .z89f2cnav-link {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08);
}

/* —— 按钮 —— */
.z89f2cbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    max-width: 100%;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
}

.z89f2cbtn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.z89f2cbtn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    color: #fff !important;
}

.z89f2cbtn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.z89f2cbtn-outline:hover {
    background: rgba(79, 70, 229, 0.06);
}

.z89f2cbtn-light {
    background: #fff;
    color: var(--primary) !important;
    box-shadow: var(--shadow);
}

.z89f2cbtn-light:hover {
    transform: translateY(-2px);
    color: var(--primary-dark) !important;
}

.z89f2cbtn-accent {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #fff !important;
}

.z89f2cbtn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* —— 区块通用 —— */
.z89f2csection {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    overflow: hidden;
}

.z89f2csection-alt {
    background: var(--surface);
}

.z89f2csection-muted {
    background: var(--surface-3);
}

.z89f2csection-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    padding-inline: 0.25rem;
}

.z89f2csection-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.z89f2csection-header h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.z89f2csection-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* —— Hero —— */
.z89f2chero-section {
    position: relative;
    padding: 4rem 0 5rem;
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
    color: #fff;
    overflow: hidden;
}

.z89f2chero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(129, 140, 248, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(245, 158, 11, 0.12), transparent);
    pointer-events: none;
}

.z89f2chero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

.z89f2chero-content {
    min-width: 0;
}

.z89f2chero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.z89f2chero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.z89f2chero-subtitle {
    margin: 0 0 1.75rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
}

.z89f2chero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.z89f2chero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.z89f2chero-meta strong {
    color: #fff;
    font-weight: 600;
}

.z89f2chero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.z89f2chero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.z89f2chero-image {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: var(--radius);
}

/* —— 简介条 —— */
.z89f2cintro-bar {
    padding: clamp(1.25rem, 3vw, 1.75rem) 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.z89f2cintro-text {
    margin: 0;
    font-size: clamp(0.92rem, 2vw, 1rem);
    color: var(--text-muted);
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
    line-height: 1.75;
    padding-inline: 0.25rem;
}

/* —— 网格（minmax(0,1fr) 防止内容撑破列宽）—— */
.z89f2crow {
    display: grid;
    gap: clamp(1rem, 2vw, 1.25rem);
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.z89f2crow-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.z89f2crow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.z89f2crow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.z89f2crow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 各板块专属列数，避免过窄或过宽 */
#features .z89f2crow-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#features .z89f2cfeature-card {
    background: var(--surface-2);
}

#download .z89f2crow-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#security > .z89f2ccontainer > .z89f2crow-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#security .z89f2crow-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#stats .z89f2crow-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#article .z89f2crow-5 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 1200px) {
    #article .z89f2crow-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* —— 卡片通用（统一边框与防溢出）—— */
.z89f2cfeature-card,
.z89f2cdownload-card,
.z89f2csecurity-card,
.z89f2ccertificate-card,
.z89f2cfaq-item,
.z89f2carticle-card {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* —— 优势卡片 —— */
.z89f2cfeature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 2.5vw, 1.5rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z89f2cfeature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.z89f2cfeature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(129, 140, 248, 0.2));
    border-radius: 14px;
    margin-bottom: 1rem;
}

.z89f2cfeature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.z89f2cfeature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* —— 注册引导 —— */
.z89f2cregister-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow: var(--shadow-lg);
    border: none;
    max-width: 100%;
}

.z89f2cregister-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.z89f2cregister-panel p {
    margin: 0 0 1.25rem;
    opacity: 0.9;
    line-height: 1.7;
}

.z89f2csteps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.z89f2csteps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.z89f2csteps li:last-child {
    margin-bottom: 0;
}

.z89f2csteps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* —— 统计 —— */
.z89f2cstats-section {
    padding: clamp(2.25rem, 4vw, 3rem) 0;
    background: var(--text);
    color: #fff;
}

.z89f2cstat-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
    min-width: 0;
}

.z89f2cstat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.z89f2cstat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* —— 下载 —— */
.z89f2cdownload-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 2.5vw, 1.35rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z89f2cdownload-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.z89f2cdownload-card .z89f2cbtn {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    white-space: normal;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.z89f2cdownload-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.z89f2cdownload-card-head > div:last-child {
    min-width: 0;
    flex: 1;
}

.z89f2cplatform-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 14px;
    color: #fff;
}

.z89f2cplatform-win { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.z89f2cplatform-android { background: linear-gradient(135deg, #22c55e, #15803d); }
.z89f2cplatform-ios { background: linear-gradient(135deg, #64748b, #334155); }
.z89f2cplatform-web { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

.z89f2cdownload-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
}

.z89f2cdownload-card .z89f2cmuted {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.z89f2cdownload-info {
    background: var(--surface-3);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.z89f2cinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.z89f2cinfo-item:last-child { margin-bottom: 0; }

.z89f2cinfo-item::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* —— 安全 —— */
.z89f2csecurity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 2.5vw, 1.35rem);
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z89f2csecurity-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.z89f2csecurity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
}

.z89f2csecurity-card h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.z89f2csecurity-features {
    text-align: left;
    background: var(--surface-3);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    flex: 1;
}

.z89f2cfeature-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.z89f2cfeature-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.z89f2ccertificate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 2.5vw, 1.35rem);
    text-align: center;
    height: 100%;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z89f2ccertificate-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.z89f2ccertificate-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.z89f2ccertificate-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.z89f2ccertificate-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* —— FAQ —— */
.z89f2cfaq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1rem);
    width: 100%;
}

.z89f2cfaq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.35rem);
    transition: box-shadow var(--transition), border-color var(--transition);
    min-width: 0;
}

.z89f2cfaq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.z89f2cfaq-item h5 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.z89f2cfaq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* —— 文章 —— */
.z89f2carticle-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.z89f2carticle-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.z89f2carticle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z89f2carticle-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.z89f2cthumb-home {
    width: 100%;
    height: clamp(96px, 18vw, 120px);
    object-fit: cover;
    flex-shrink: 0;
}

.z89f2carticle-card .z89f2ccard-body {
    padding: 0.85rem 0.9rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.z89f2carticle-card h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.z89f2carticle-card h3 a {
    color: var(--text);
}

.z89f2carticle-card h3 a:hover {
    color: var(--primary);
}

.z89f2cmeta-small {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* —— 页脚 —— */
.z89f2cfooter {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.z89f2cfooter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.z89f2cfooter-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.z89f2cfooter p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.z89f2cfooter-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.z89f2cfooter-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.z89f2cfooter-links li {
    margin-bottom: 0.5rem;
}

.z89f2cfooter-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.z89f2cfooter-link:hover {
    color: var(--accent);
}

.z89f2cfriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.z89f2cfriend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.z89f2cfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.z89f2cfooter-bottom p {
    margin: 0.35rem 0;
}

.z89f2cfooter-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

/* —— 列表/内页 —— */
.z89f2cpage-main {
    padding: 2.5rem 0 3rem;
}

.z89f2cpage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    width: 100%;
}

.z89f2cpage-layout > * {
    min-width: 0;
}

.z89f2cpage-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.z89f2cpage-desc {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.z89f2ccard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 100%;
    overflow: hidden;
}

.z89f2ccard-body {
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.z89f2clist-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.z89f2clist-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.z89f2clist-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
}

.z89f2cthumb-list,
.z89f2cthumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z89f2cthumb-side {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.z89f2cthumb-cover {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.z89f2csidebar-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.z89f2csidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.z89f2csidebar-list li {
    margin-bottom: 0.5rem;
}

.z89f2csidebar-hot {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.z89f2csidebar-hot > a:last-child {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.z89f2carticle-content {
    line-height: 1.8;
    font-size: 1rem;
}

.z89f2carticle-content img {
    max-width: 100%;
    height: auto;
}

.z89f2cmeta-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.z89f2ctagitem a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface-3);
    border-radius: 999px;
    font-size: 0.85rem;
}

.z89f2cprenext {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.z89f2cprenext-row .z89f2cprenext {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .z89f2cprenext-row .z89f2cprenext {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }

    .z89f2cprenext-row .z89f2cprenext > div {
        flex: 1;
        min-width: 0;
    }
}

/* 分页 */
.pagebar .pagelist,
.zzpages .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.pagebar .pagelist a,
.zzpages .pagelist a {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.pagebar .pagelist a:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

/* 工具类 */
.z89f2ctext-center { text-align: center; }
.z89f2cmb-0 { margin-bottom: 0; }
.z89f2cmt-4 { margin-top: 1.5rem; }
.z89f2cmt-5 { margin-top: clamp(1.25rem, 3vw, 2rem); }
.z89f2cmb-4 { margin-bottom: 1.5rem; }
.z89f2cgap-4 { gap: clamp(1rem, 2vw, 1.25rem); }

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 中等屏：安全四列改两列，避免卡片过窄 */
@media (max-width: 1100px) {
    #security > .z89f2ccontainer > .z89f2crow-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .z89f2cnav-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
    }

    #features .z89f2crow-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .z89f2cnav-toggle {
        display: flex;
    }

    .z89f2cnav-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }

    .z89f2cnav-collapse.is-open {
        max-height: min(80vh, calc(100dvh - var(--nav-h)));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .z89f2cnavbar-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .z89f2cnav-link {
        padding: 0.65rem 0.75rem;
    }

    .z89f2chero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .z89f2chero-subtitle {
        margin-inline: auto;
    }

    .z89f2chero-buttons {
        justify-content: center;
    }

    .z89f2chero-meta {
        justify-content: center;
    }

    .z89f2chero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 400px;
        margin-inline: auto;
    }

    .z89f2chero-buttons .z89f2cbtn {
        width: 100%;
        max-width: 100%;
    }

    .z89f2cnav-collapse {
        margin-left: calc(-1 * clamp(1rem, 3vw, 1.5rem));
        margin-right: calc(-1 * clamp(1rem, 3vw, 1.5rem));
        padding-inline: clamp(1rem, 3vw, 1.5rem);
        width: auto;
    }

    .z89f2cnav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    #features .z89f2crow-3,
    #download .z89f2crow-2,
    #security > .z89f2ccontainer > .z89f2crow-4,
    #security .z89f2crow-3,
    #stats .z89f2crow-4,
    #article .z89f2crow-5,
    .z89f2crow-3,
    .z89f2crow-4,
    .z89f2crow-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .z89f2cregister-panel {
        grid-template-columns: 1fr;
    }

    .z89f2chero-content {
        min-width: 0;
    }

    .z89f2cfooter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z89f2cpage-layout {
        grid-template-columns: 1fr;
    }

    .z89f2cfaq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-h: 60px;
    }

    .z89f2csection {
        padding: clamp(2rem, 5vw, 2.75rem) 0;
    }

    .z89f2csection-header {
        margin-bottom: 1.5rem;
    }

    .z89f2csection-header h2 {
        font-size: 1.35rem;
    }

    .z89f2csection-header p {
        font-size: 0.92rem;
    }

    #features .z89f2crow-3,
    #download .z89f2crow-2,
    #security > .z89f2ccontainer > .z89f2crow-4,
    #security .z89f2crow-3,
    #article .z89f2crow-5,
    .z89f2crow-2,
    .z89f2crow-3,
    .z89f2crow-4,
    .z89f2crow-5 {
        grid-template-columns: 1fr;
    }

    /* 运营数据：手机端 2×2，避免四行过高 */
    #stats .z89f2crow-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }

    .z89f2cstat-item {
        padding: 0.65rem 0.35rem;
    }

    .z89f2cstat-number {
        font-size: 1.5rem;
    }

    .z89f2cstat-label {
        font-size: 0.82rem;
    }

    .z89f2chero-section {
        padding: clamp(2rem, 5vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3rem);
    }

    .z89f2chero-grid {
        gap: 1.5rem;
    }

    .z89f2chero-title {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }

    .z89f2chero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem;
        max-width: 100%;
        text-align: center;
        justify-content: center;
        line-height: 1.4;
    }

    .z89f2chero-meta {
        gap: 0.65rem 1rem;
        justify-content: center;
        font-size: 0.8rem;
    }

    .z89f2chero-meta span {
        flex: 0 1 auto;
    }

    .z89f2chero-buttons {
        max-width: none;
    }

    .z89f2chero-image-wrap {
        max-width: 260px;
    }

    .z89f2cintro-text {
        text-align: left;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .z89f2cregister-panel .z89f2cbtn {
        width: 100%;
        max-width: 100%;
    }

    .z89f2cdownload-card-head {
        flex-wrap: nowrap;
    }

    .z89f2carticle-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .z89f2carticle-header .z89f2cbtn {
        width: 100%;
        text-align: center;
    }

    .z89f2cfooter-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .z89f2cfriend-links {
        justify-content: center;
    }

    .z89f2cpage-main {
        padding: 1.5rem 0 2rem;
    }

    .z89f2cpage-title {
        font-size: 1.25rem;
    }

    .z89f2clist-grid {
        grid-template-columns: 88px 1fr;
        gap: 0.75rem;
    }

    .z89f2cthumb-list,
    .z89f2cthumb-related {
        height: 72px;
    }

    .z89f2cthumb-home {
        height: 140px;
    }

    .z89f2carticle-card h3 {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }

    .z89f2cthumb-cover {
        height: auto;
        min-height: 160px;
        max-height: 220px;
    }

    .z89f2carticle-content {
        font-size: 0.95rem;
        overflow-wrap: break-word;
    }

    .z89f2carticle-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .z89f2cnavbar-brand img {
        height: 34px;
    }

    .z89f2ccontainer {
        padding-inline: max(0.875rem, env(safe-area-inset-left, 0px)) max(0.875rem, env(safe-area-inset-right, 0px));
    }

    .z89f2cnav-collapse {
        margin-left: calc(-1 * max(0.875rem, env(safe-area-inset-left, 0px)));
        margin-right: calc(-1 * max(0.875rem, env(safe-area-inset-right, 0px)));
        padding-inline: max(0.875rem, env(safe-area-inset-left, 0px)) max(0.875rem, env(safe-area-inset-right, 0px));
    }
}

body.z89f2cnav-open {
    overflow: hidden;
    touch-action: none;
}

body.z89f2cnav-open .z89f2cnavbar {
    z-index: 1001;
}

@media (max-width: 575px) {
    .z89f2cregister-panel {
        padding: 1.15rem;
    }

    .z89f2cregister-panel h3 {
        font-size: 1.2rem;
    }

    .z89f2csteps li {
        padding-left: 2.15rem;
        font-size: 0.88rem;
    }

    .z89f2cfaq-item h5 {
        font-size: 0.92rem;
    }

    .z89f2cfaq-item p {
        font-size: 0.85rem;
    }

    .z89f2clist-grid {
        grid-template-columns: 1fr;
    }

    .z89f2clist-grid > a:first-child {
        display: block;
    }

    .z89f2clist-grid .z89f2cthumb-list,
    .z89f2clist-grid .z89f2cthumb-related {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 160px;
        aspect-ratio: 16 / 9;
    }

    .z89f2csidebar-hot {
        flex-direction: column;
        align-items: stretch;
    }

    .z89f2csidebar-hot > a:first-child {
        width: 100%;
    }

    .z89f2csidebar-hot .z89f2cthumb-side {
        width: 100%;
        height: auto;
        max-height: 120px;
        aspect-ratio: 16 / 9;
    }

    .z89f2chero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .z89f2cfooter-bottom {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .z89f2cfooter-bottom p {
        padding-inline: 0.25rem;
    }

    .pagebar .pagelist a,
    .zzpages .pagelist a {
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
    }
}

/* 超小屏：平板竖屏与手机横屏之间的单列保障 */
@media (max-width: 480px) {
    #stats .z89f2crow-4 {
        grid-template-columns: 1fr 1fr;
    }

    .z89f2cstat-number {
        font-size: 1.35rem;
    }
}
