:root {
    --primary-color: #0f766e;
    --secondary-color: #134e4a;
    --accent-color: #f97316;
    --text-color: #1e293b;
    --light-bg: #f0fdfa;
    --surface: #ffffff;
    --border-color: #ccfbf1;
    --muted: #64748b;
    --dark-bg: #0f172a;
    --transition-speed: 0.25s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 118, 110, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 118, 110, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background: #fafafa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 导航 */
.z5ffd2navbar {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.z5ffd2navbar-brand img {
    height: 42px;
    max-width: 100%;
}

.z5ffd2nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    transition: color var(--transition-speed) ease;
    border-radius: var(--radius-sm);
}

.z5ffd2nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(15, 118, 110, 0.06);
}

/* 主视觉 */
.z5ffd2hero-section {
    background: linear-gradient(160deg, var(--secondary-color) 0%, var(--primary-color) 55%, #14b8a6 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.z5ffd2hero-section::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    pointer-events: none;
}

.z5ffd2hero-content {
    position: relative;
    z-index: 1;
}

.z5ffd2hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.z5ffd2hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.z5ffd2hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 1.75rem;
    opacity: 0.92;
    max-width: 36em;
}

.z5ffd2hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z5ffd2hero-image {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.z5ffd2hero-image-shadow {
    display: none;
}

.z5ffd2hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z5ffd2hero-buttons .btn {
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.z5ffd2hero-buttons .btn-light {
    background: #fff;
    color: var(--primary-color);
    border: none;
}

.z5ffd2hero-buttons .btn-primary {
    background: var(--accent-color);
    border: none;
    color: #fff;
}

.z5ffd2hero-buttons .btn-primary:hover {
    background: #ea580c;
}

/* 通用区块 */
.z5ffd2section {
    padding: 4rem 0;
}

.z5ffd2section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.z5ffd2section-head h2 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.z5ffd2section-head p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 0.98rem;
}

.z5ffd2section-head-light h2,
.z5ffd2section-head-light p {
    color: #fff;
}

.z5ffd2section-head-light p {
    opacity: 0.9;
}

/* Bento 概览 */
.z5ffd2intro-section {
    background: var(--surface);
}

.z5ffd2bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.z5ffd2bento-item {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    transition: box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    overflow: hidden;
    min-width: 0;
}

.z5ffd2bento-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #99f6e4;
}

.z5ffd2bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.z5ffd2bento-wide {
    grid-column: span 2;
}

.z5ffd2bento-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.z5ffd2bento-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.z5ffd2bento-item p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 统计数据 */
.z5ffd2stats-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 3.5rem 0;
}

.z5ffd2stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z5ffd2stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    min-width: 0;
}

.z5ffd2stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.z5ffd2stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
}

/* 下载区 */
.z5ffd2download-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.z5ffd2download-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.z5ffd2download-block {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.z5ffd2download-block-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.z5ffd2download-block-head h3 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: var(--secondary-color);
}

.z5ffd2download-block-head .text-muted {
    font-size: 0.85rem;
}

.z5ffd2platform-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.z5ffd2android-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.z5ffd2ios-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.z5ffd2download-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.z5ffd2download-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    word-break: break-word;
}

.z5ffd2download-list li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* 安全区 */
.z5ffd2security-section {
    padding: 4rem 0;
    background: var(--surface);
}

.z5ffd2security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z5ffd2security-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease;
}

.z5ffd2security-card:hover {
    box-shadow: var(--shadow-sm);
}

.z5ffd2security-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    background: var(--primary-color);
    color: #fff;
}

.z5ffd2security-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.65rem;
}

.z5ffd2security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z5ffd2security-list li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--border-color);
    line-height: 1.45;
    word-break: break-word;
}

.z5ffd2security-list li:last-child {
    border-bottom: none;
}

/* FAQ */
.z5ffd2faq-section {
    background: #f8fafc;
}

.z5ffd2faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.z5ffd2faq-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    min-width: 0;
    overflow: hidden;
}

.z5ffd2faq-card h5 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.z5ffd2faq-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 文章区 */
.z5ffd2article-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.z5ffd2article-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow var(--transition-speed) ease;
}

.z5ffd2article-card:hover {
    box-shadow: var(--shadow-sm);
}

.z5ffd2thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.z5ffd2article-card .card-body {
    padding: 0.85rem;
}

/* 按钮 */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 页脚 */
.z5ffd2footer {
    background: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    color: #94a3b8;
}

.z5ffd2footer-brand img {
    max-width: 100%;
    height: auto;
}

.z5ffd2footer-title {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z5ffd2footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z5ffd2footer-links li {
    margin-bottom: 0.5rem;
}

.z5ffd2footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.z5ffd2footer-link:hover {
    color: #5eead4;
}

.z5ffd2friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z5ffd2friend-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
}

.z5ffd2friend-links a:hover {
    color: #5eead4;
}

.z5ffd2footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.25rem;
    color: #64748b;
    font-size: 0.88rem;
}

.z5ffd2footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.z5ffd2footer-bottom a:hover {
    color: #5eead4;
}

/* 列表/内页 */
.z5ffd2pages .pagelist,
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

.z5ffd2article-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z5ffd2article-content img {
    max-width: 100%;
    height: auto;
}

.z5ffd2meta-tags .z5ffd2tagitem a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* 列表/内页卡片边框统一 */
.listbox .card,
article.card,
aside .card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.listbox .card .card-body,
article.card .card-body,
aside .card .card-body {
    padding: 1.25rem;
}

/* 响应式 - 平板 */
@media (max-width: 991px) {
    .z5ffd2bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z5ffd2bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .z5ffd2bento-wide {
        grid-column: span 2;
    }

    .z5ffd2stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z5ffd2security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z5ffd2hero-section {
        padding: 3.5rem 0 3rem;
    }

    .z5ffd2hero-image-container {
        margin-top: 0.5rem;
    }
}

/* 响应式 - 手机 */
@media (max-width: 767px) {
    .z5ffd2navbar {
        padding: 0.5rem 0;
    }

    .z5ffd2navbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .z5ffd2navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.95rem;
    }

    .z5ffd2navbar-brand img {
        height: 36px;
    }

    .z5ffd2section {
        padding: 2.75rem 0;
    }

    .z5ffd2section-head {
        margin-bottom: 1.75rem;
    }

    .z5ffd2bento-grid {
        grid-template-columns: 1fr;
    }

    .z5ffd2bento-large,
    .z5ffd2bento-wide {
        grid-column: span 1;
    }

    .z5ffd2stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .z5ffd2stat-pill {
        padding: 1rem 0.75rem;
    }

    .z5ffd2download-panel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .z5ffd2download-block {
        padding: 1.25rem;
    }

    .z5ffd2security-grid {
        grid-template-columns: 1fr;
    }

    .z5ffd2faq-grid {
        grid-template-columns: 1fr;
    }

    .z5ffd2hero-buttons {
        flex-direction: column;
    }

    .z5ffd2hero-buttons .btn {
        width: 100%;
    }

    .z5ffd2hero-image {
        max-width: 220px;
    }

    .z5ffd2footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .z5ffd2footer-title {
        margin-top: 1rem;
    }

    .z5ffd2friend-links {
        justify-content: center;
    }

    #article .z5ffd2thumb-home {
        height: 96px;
    }

    #article .card-body {
        padding: 0.75rem;
    }

    #article h3.h6,
    #article h3.h5 {
        font-size: 0.92rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .listbox .e2 li p {
        font-size: 0.88rem;
    }

    .z5ffd2thumb-list,
    .z5ffd2thumb-related {
        height: 72px !important;
    }

    .z5ffd2thumb-side {
        height: 50px !important;
    }

    .z5ffd2thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }
}

@media (max-width: 575px) {
    .z5ffd2stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .z5ffd2stat-number {
        font-size: 1.35rem;
    }

    .z5ffd2download-block-head {
        flex-wrap: wrap;
    }

    .z5ffd2bento-item {
        padding: 1rem;
    }

    #article .z5ffd2thumb-home {
        height: 88px;
    }

    .z5ffd2thumb-list,
    .z5ffd2thumb-related {
        height: 64px !important;
    }

    .z5ffd2thumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}

/* 兼容旧类名（避免残留引用报错） */
.z5ffd2feature-card,
.z5ffd2download-card,
.z5ffd2certificate-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.z5ffd2stat-item {
    text-align: center;
}
