/* 非小号主题 — 青墨绿 + 琥珀强调色 */
:root {
    --primary: #1a6b5c;
    --primary-dark: #0f4a40;
    --primary-light: #e8f4f1;
    --accent: #d4922a;
    --accent-hover: #b87a1f;
    --surface: #f6f8f7;
    --surface-alt: #eef2f0;
    --text: #1c2b27;
    --text-muted: #5a6f68;
    --border: #d4e0dc;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 4px 20px rgba(15, 74, 64, 0.08);
    --shadow-hover: 0 8px 28px rgba(15, 74, 64, 0.12);
    --transition: 0.25s ease;
    --container-max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* —— 导航 —— */
.z8f555navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z8f555navbar-brand img {
    height: 40px;
    width: auto;
}

.z8f555nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.z8f555nav-link:hover,
.z8f555nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(26, 107, 92, 0.25);
}

.navbar-collapse {
    background: #fff;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
    }
}

/* —— 按钮 —— */
.fx-btn-primary,
.btn.fx-btn-primary,
.z8f555btn.fx-btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: background var(--transition), transform var(--transition);
}

.fx-btn-primary:hover,
.btn.fx-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.fx-btn-outline,
.btn.fx-btn-outline {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

.fx-btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.fx-btn-ghost,
.btn.fx-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.fx-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* —— 首页 Hero —— */
.fx-hero,
.z8f555hero-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #2a8f7d 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.fx-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.fx-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.z8f555hero-title,
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z8f555hero-subtitle,
.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.z8f555hero-subtitle strong {
    color: #fff;
    font-weight: 600;
}

.fx-hero-actions,
.z8f555hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fx-hero-frame {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    max-width: 320px;
    margin-left: auto;
}

.z8f555hero-image,
.hero-image {
    width: 100%;
    border-radius: var(--radius);
    object-fit: contain;
}

.z8f555hero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.fx-section {
    padding: 4rem 0;
}

.fx-section-light {
    background: #fff;
}

.fx-section-muted {
    background: var(--surface);
}

.fx-section-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.fx-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.fx-section-head p {
    color: var(--text-muted);
    margin: 0;
}

.fx-section-head-light h2,
.fx-section-head-light p {
    color: #fff;
}

.fx-section-head-light p {
    opacity: 0.9;
}

/* —— Bento 特点卡片 —— */
.fx-panel,
.z8f555feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
    border-left: 4px solid var(--primary);
}

.fx-panel:hover,
.z8f555feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent);
    transform: none;
}

.fx-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.fx-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.fx-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 知识区 —— */
.fx-knowledge-intro h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.fx-knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.fx-knowledge-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fx-knowledge-list li:last-child {
    border-bottom: none;
}

.fx-knowledge-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— 统计 —— */
.fx-stats,
.z8f555stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 3.5rem 0;
}

.fx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fx-stat,
.z8f555stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
}

.z8f555stat-number,
.stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.z8f555stat-label,
.stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

/* —— 下载区 —— */
.z8f555download-section,
.download-section {
    background: var(--surface-alt);
    padding: 4rem 0;
}

.fx-dl-card,
.z8f555download-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.fx-dl-card:hover,
.z8f555download-card:hover {
    box-shadow: var(--shadow-hover);
    transform: none;
}

.fx-dl-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.fx-dl-head h3 {
    font-size: 1.05rem;
    margin: 0 0 0.15rem;
    color: var(--primary-dark);
}

.z8f555platform-icon,
.platform-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.z8f555ios-icon,
.ios-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.z8f555android-icon,
.android-icon {
    background: #e3f5ef;
    color: var(--primary-dark);
}

.fx-dl-list,
.z8f555download-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
    flex-grow: 1;
    background: var(--surface);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
}

.fx-dl-list li,
.z8f555info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.fx-dl-list li:last-child,
.z8f555info-item:last-child {
    margin-bottom: 0;
}

.fx-dl-list i,
.z8f555info-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z8f555download-header h2 {
    color: var(--primary-dark);
}

.z8f555download-subtitle {
    color: var(--text-muted);
}

/* —— 安全卡片 —— */
.fx-sec-card,
.z8f555security-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
}

.fx-sec-card:hover,
.z8f555security-card:hover {
    box-shadow: var(--shadow-hover);
    transform: none;
}

.z8f555security-icon,
.security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fx-sec-card h3,
.z8f555security-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.fx-sec-card p,
.z8f555security-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* —— FAQ —— */
.fx-faq-item.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    overflow: hidden;
}

.fx-faq-item .card-body {
    padding: 1.15rem 1.25rem;
}

.fx-faq-item h3 {
    color: var(--primary-dark);
}

.fx-faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* —— 文章卡片 —— */
.fx-article-card,
#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fx-article-card .card-body,
#article .card .card-body {
    padding: 0.85rem;
}

.z8f555thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.fx-article-link {
    color: var(--text);
}

.fx-article-link:hover {
    color: var(--primary);
}

/* —— 页脚 —— */
.z8f555footer,
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z8f555footer-title,
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z8f555footer-links,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z8f555footer-link,
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.z8f555footer-link:hover,
.footer-link:hover {
    color: var(--accent);
}

.z8f555footer-bottom,
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.z8f555footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
}

.z8f555friend-links,
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z8f555friend-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

/* —— 列表页 / 内页 —— */
.fx-inner-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.fx-inner-hero h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.fx-page-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fx-page-card > .card-body {
    padding: 1.25rem;
}

.fx-sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.fx-sidebar-card .card-body {
    padding: 1.15rem;
}

.fx-sidebar-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.z8f555article-content {
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z8f555article-content img {
    max-width: 100%;
    height: auto;
}

.z8f555thumb-list,
.z8f555thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z8f555thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z8f555thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
}

.listbox .e2 li {
    border-color: var(--border) !important;
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

.z8f555pages .pagelist a,
.z8f555pages .pagelist span {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .fx-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .fx-hero-copy {
        order: 1;
    }

    .fx-hero-visual {
        order: 0;
    }

    .fx-hero-frame {
        margin: 0 auto;
    }

    .z8f555hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .fx-hero-actions {
        justify-content: center;
    }

    .fx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .fx-section {
        padding: 2.75rem 0;
    }

    .fx-hero,
    .z8f555hero-section {
        padding: 2.5rem 0 3rem;
    }

    .fx-hero-actions,
    .z8f555hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .fx-hero-actions .btn,
    .z8f555hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .z8f555navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z8f555nav-link {
        padding: 0.5rem 0.65rem !important;
    }

    .fx-dl-head {
        flex-wrap: nowrap;
    }

    .fx-dl-card,
    .z8f555download-card {
        padding: 1.15rem;
    }

    .fx-stats-grid {
        gap: 0.65rem;
    }

    .fx-stat {
        padding: 1rem 0.5rem;
    }

    .z8f555thumb-home {
        height: 96px;
    }

    #article h3.h6,
    #article .h6 {
        font-size: 0.9rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }

    .z8f555thumb-list,
    .z8f555thumb-related {
        height: 72px;
    }

    .z8f555thumb-side {
        height: 50px;
    }

    .z8f555thumb-cover {
        max-height: 200px;
    }

    .fx-page-card > .card-body,
    .fx-sidebar-card .card-body {
        padding: 1rem;
    }

    .z8f555footer .row > [class*="col-"] {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .fx-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .z8f555stat-number {
        font-size: 1.35rem;
    }

    .row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .z8f555thumb-home {
        height: 80px;
    }

    .listbox .e2 .col-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .listbox .e2 .col-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

/* 去除旧版重复动画与过大阴影 */
.z8f555feature-icon {
    display: none;
}

.z8f555security-features,
.z8f555security-certificates,
.z8f555certificate-card,
.z8f555guide-item {
    display: none;
}

.card {
    margin-bottom: 0;
}

.btn {
    white-space: normal;
}
