/* 旋风加速器官网 — 全新主题：紫罗兰 + 珊瑚橙 */
:root {
    --xf-primary: #5b2c8f;
    --xf-primary-dark: #3d1d5c;
    --xf-accent: #ff6b4a;
    --xf-accent-soft: #ffe8e2;
    --xf-teal: #1b9b8a;
    --xf-bg: #faf8f5;
    --xf-surface: #ffffff;
    --xf-text: #2a2438;
    --xf-muted: #6b6578;
    --xf-border: rgba(91, 44, 143, 0.12);
    --xf-radius: 14px;
    --xf-radius-lg: 22px;
    --xf-shadow: 0 8px 32px rgba(61, 29, 92, 0.08);
    --xf-shadow-hover: 0 14px 40px rgba(61, 29, 92, 0.14);
    --xf-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --xf-container: min(1140px, 100% - 2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.xf-body,
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--xf-text);
    line-height: 1.65;
    background: var(--xf-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xf-primary);
    text-decoration: none;
    transition: color var(--xf-transition);
}

a:hover {
    color: var(--xf-accent);
}

/* —— 导航 —— */
.zc9a86navbar.xf-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xf-border);
    box-shadow: none;
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.xf-nav-link.zc9a86nav-link {
    color: var(--xf-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.xf-nav-link.zc9a86nav-link:hover,
.xf-nav-link.zc9a86nav-link:focus {
    color: var(--xf-primary) !important;
    background: var(--xf-accent-soft);
}

.zc9a86navbar-brand img,
.xf-brand img {
    height: 42px;
    width: auto;
}

.navbar-toggler {
    border: 1px solid var(--xf-border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--xf-surface);
    border-radius: var(--xf-radius);
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--xf-border);
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        border: none;
        margin-top: 0;
        padding: 0;
    }
}

/* —— 按钮 —— */
.xf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform var(--xf-transition), box-shadow var(--xf-transition), background var(--xf-transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.xf-btn-primary {
    background: linear-gradient(135deg, var(--xf-accent), #e84d2f);
    color: #fff !important;
    border-color: transparent;
}

.xf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
    color: #fff !important;
}

.xf-btn-outline {
    background: var(--xf-surface);
    color: var(--xf-primary) !important;
    border-color: var(--xf-primary);
}

.xf-btn-outline:hover {
    background: var(--xf-primary);
    color: #fff !important;
}

.xf-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.xf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
}

/* —— Hero —— */
.xf-hero.zc9a86hero-section {
    background: linear-gradient(145deg, var(--xf-primary-dark) 0%, var(--xf-primary) 45%, #7a3fb0 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.xf-hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.25), transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.xf-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.xf-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.xf-hero-title.zc9a86hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.xf-hero-lead.zc9a86hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.xf-hero-lead strong {
    color: #ffd4c8;
    font-weight: 600;
}

.xf-hero-actions.zc9a86hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.xf-hero-visual.zc9a86hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: auto;
}

.xf-hero-img.zc9a86hero-image {
    max-width: min(320px, 100%);
    border-radius: var(--xf-radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.zc9a86hero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.xf-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.xf-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.xf-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--xf-primary-dark);
    margin-bottom: 0.75rem;
}

.xf-section-head p {
    color: var(--xf-muted);
    margin: 0;
    font-size: 1rem;
}

.xf-section-head-light h2 {
    color: #fff;
}

.xf-section-head-light p {
    color: rgba(255, 255, 255, 0.85);
}

/* —— Bento 特点 —— */
.xf-features {
    background: var(--xf-surface);
}

.xf-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.xf-bento-card {
    background: var(--xf-bg);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.35rem 1.5rem;
    transition: box-shadow var(--xf-transition), border-color var(--xf-transition);
    overflow: hidden;
    min-height: 0;
}

.xf-bento-card:hover {
    box-shadow: var(--xf-shadow-hover);
    border-color: rgba(91, 44, 143, 0.22);
}

.xf-bento-wide {
    grid-column: span 2;
}

.xf-bento-icon {
    font-size: 1.5rem;
    color: var(--xf-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.xf-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--xf-primary-dark);
}

.xf-bento-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--xf-muted);
    line-height: 1.6;
}

/* —— 统计 —— */
.xf-stats.zc9a86stats-section {
    background: linear-gradient(90deg, var(--xf-teal), #148f7f);
    padding: 2.5rem 0;
    color: #fff;
}

.xf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.xf-stat.zc9a86stat-item {
    text-align: center;
    padding: 0.5rem;
}

.xf-stat-num.zc9a86stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.xf-stat-label.zc9a86stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* —— 下载 —— */
.xf-download.zc9a86download-section {
    background: linear-gradient(160deg, var(--xf-primary-dark), var(--xf-primary));
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.xf-download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.xf-dl-card.zc9a86download-card {
    background: var(--xf-surface);
    border-radius: var(--xf-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--xf-border);
    box-shadow: var(--xf-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.xf-dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.xf-dl-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.xf-dl-win { background: #0078d4; }
.xf-dl-android { background: #3ddc84; color: #1a3d2e !important; }
.xf-dl-ios { background: #333; }

.xf-dl-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--xf-primary-dark);
}

.xf-dl-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--xf-muted);
}

.xf-dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.xf-dl-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--xf-muted);
    line-height: 1.5;
}

.xf-dl-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xf-accent);
}

.xf-dl-btn {
    width: 100%;
    margin-top: auto;
}

.xf-dl-tip {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--xf-radius);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.65;
}

.xf-dl-tip p { margin: 0; }

/* —— 安全 —— */
.xf-security.zc9a86security-section {
    background: var(--xf-bg);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.xf-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.xf-sec-card.zc9a86security-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 1.35rem;
    text-align: center;
    height: 100%;
    box-shadow: none;
    transition: box-shadow var(--xf-transition);
}

.xf-sec-card:hover {
    box-shadow: var(--xf-shadow);
}

.xf-sec-icon {
    font-size: 1.75rem;
    color: var(--xf-teal);
    margin-bottom: 0.75rem;
}

.xf-sec-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--xf-primary-dark);
}

.xf-sec-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--xf-muted);
    line-height: 1.55;
}

.xf-knowledge {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius-lg);
    padding: 1.75rem;
}

.xf-knowledge h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--xf-primary-dark);
    margin: 0 0 1.25rem;
    text-align: center;
}

.xf-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.xf-knowledge-grid article {
    padding: 1rem;
    background: var(--xf-bg);
    border-radius: var(--xf-radius);
    border: 1px solid var(--xf-border);
    min-height: 0;
}

.xf-knowledge-grid h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--xf-primary);
}

.xf-knowledge-grid p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--xf-muted);
    line-height: 1.6;
}

/* —— FAQ —— */
.xf-faq {
    background: var(--xf-surface);
}

.xf-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.xf-faq-item {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    background: var(--xf-bg);
    overflow: hidden;
}

.xf-faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--xf-primary-dark);
    margin: 0 0 0.5rem;
}

.xf-faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--xf-muted);
    line-height: 1.6;
}

/* —— 文章 —— */
.xf-articles {
    background: var(--xf-bg);
    border-top: 1px solid var(--xf-border);
}

.xf-article-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.xf-article-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xf-primary-dark);
    margin: 0;
}

.xf-link-more {
    font-weight: 600;
    font-size: 0.95rem;
}

.xf-article-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.xf-article-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--xf-transition);
}

.xf-article-card:hover {
    box-shadow: var(--xf-shadow);
}

.xf-article-thumb {
    display: block;
    overflow: hidden;
}

.zc9a86thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.xf-article-body {
    padding: 0.75rem 0.85rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.xf-article-meta {
    font-size: 0.75rem;
    color: var(--xf-muted);
    margin-bottom: 0.35rem;
}

.xf-article-body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.xf-article-body h3 a {
    color: var(--xf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xf-article-body h3 a:hover {
    color: var(--xf-accent);
}

/* —— 页脚 —— */
.xf-footer.zc9a86footer {
    background: var(--xf-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.xf-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.xf-footer-brand p {
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    line-height: 1.6;
    max-width: 280px;
}

.xf-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.zc9a86footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zc9a86footer-links li {
    margin-bottom: 0.5rem;
}

.zc9a86footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.zc9a86footer-links a:hover {
    color: var(--xf-accent);
}

.xf-friend h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.xf-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.xf-friend-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.xf-footer-bottom.zc9a86footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.xf-footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.xf-footer-bottom p {
    margin: 0.35rem 0 0;
}

/* —— 列表页 / 内页 —— */
.xf-page-main {
    padding: 2rem 0 3rem;
    background: var(--xf-bg);
    min-height: 50vh;
}

.xf-page-main .card {
    border: 1px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    box-shadow: var(--xf-shadow);
}

.xf-page-main .card-body {
    padding: 1.25rem;
}

.xf-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xf-primary-dark);
    margin-bottom: 0.35rem;
}

.xf-page-desc {
    color: var(--xf-muted);
    margin: 0;
}

.xf-sidebar .card {
    margin-bottom: 1rem;
}

.xf-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--xf-primary-dark);
}

.zc9a86article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zc9a86article-content img {
    max-width: 100%;
    height: auto;
}

.zc9a86thumb-cover {
    max-width: 100% !important;
    width: 100%;
    height: auto !important;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--xf-radius);
}

.zc9a86thumb-list,
.zc9a86thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}

.zc9a86thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.xf-side-thumb {
    width: 72px;
    flex: 0 0 72px;
}

.listbox .e2 li {
    border-color: var(--xf-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-left: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

/* 兼容旧类名 */
.zc9a86feature-card,
.zc9a86download-card,
.zc9a86security-card {
    transform: none;
}

.zc9a86feature-card:hover,
.zc9a86download-card:hover {
    transform: none;
}

/* —— 响应式 —— */
@media (max-width: 1199px) {
    .xf-article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .xf-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xf-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .xf-hero-actions {
        justify-content: center;
    }

    .xf-bento {
        grid-template-columns: 1fr 1fr;
    }

    .xf-bento-wide {
        grid-column: span 2;
    }

    .xf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-download-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .xf-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .xf-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .xf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .zc9a86navbar.xf-nav {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .xf-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xf-hero-actions .xf-btn {
        width: 100%;
    }

    .xf-bento {
        grid-template-columns: 1fr;
    }

    .xf-bento-wide {
        grid-column: span 1;
    }

    .xf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .xf-stat-num {
        font-size: 1.6rem;
    }

    .xf-faq-grid {
        grid-template-columns: 1fr;
    }

    .xf-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zc9a86thumb-home {
        height: 96px;
    }

    .xf-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xf-footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .xf-friend-links {
        justify-content: center;
    }

    .zc9a86thumb-list,
    .zc9a86thumb-related {
        height: 72px;
    }

    .zc9a86thumb-side {
        height: 50px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .listbox .e2 li p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .xf-article-grid {
        grid-template-columns: 1fr;
    }

    .zc9a86thumb-home {
        height: 140px;
    }

    .zc9a86thumb-cover {
        max-height: 200px;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }

    .xf-dl-card {
        padding: 1.15rem;
    }

    .xf-knowledge {
        padding: 1.15rem;
    }

    .xf-section-head {
        margin-bottom: 1.75rem;
    }
}
