/* 小牛加速器官网 — 单文件样式 */
:root {
    --xn-primary: #5b21b6;
    --xn-primary-dark: #4c1d95;
    --xn-primary-light: #7c3aed;
    --xn-accent: #f59e0b;
    --xn-accent-soft: rgba(245, 158, 11, 0.12);
    --xn-bg: #faf8ff;
    --xn-surface: #ffffff;
    --xn-text: #1e1b2e;
    --xn-muted: #6b7280;
    --xn-border: #e5e0f0;
    --xn-radius: 12px;
    --xn-radius-lg: 20px;
    --xn-shadow: 0 4px 24px rgba(91, 33, 182, 0.08);
    --xn-shadow-hover: 0 12px 32px rgba(91, 33, 182, 0.14);
    --xn-transition: 0.25s ease;
    --xn-container: min(1140px, 100% - 2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--xn-text);
    line-height: 1.65;
    background: var(--xn-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xn-primary);
    text-decoration: none;
}

a:hover {
    color: var(--xn-primary-light);
}

/* —— 导航 —— */
.z4fb3fnavbar {
    background: var(--xn-surface);
    border-bottom: 1px solid var(--xn-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z4fb3fnavbar .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z4fb3fnavbar-brand img {
    height: 42px;
    width: auto;
}

.z4fb3fnav-link {
    color: var(--xn-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--xn-transition), color var(--xn-transition);
}

.z4fb3fnav-link:hover {
    color: var(--xn-primary) !important;
    background: rgba(91, 33, 182, 0.06);
}

.navbar-toggler {
    border: 1px solid var(--xn-border);
    padding: 0.35rem 0.55rem;
}

.navbar-collapse {
    background: var(--xn-surface);
}

/* —— 通用区块 —— */
.xn-section {
    padding: 4.5rem 0;
}

.xn-section-alt {
    background: var(--xn-surface);
}

.xn-container {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.xn-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.xn-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--xn-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.xn-section-head p {
    color: var(--xn-muted);
    margin: 0;
    font-size: 1.05rem;
}

.xn-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--xn-primary);
    background: rgba(91, 33, 182, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* —— Hero —— */
.z4fb3fhero-section {
    background: linear-gradient(145deg, #1e1b4b 0%, #4c1d95 45%, #5b21b6 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.z4fb3fhero-section::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.z4fb3fhero-section .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.z4fb3fhero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z4fb3fhero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.z4fb3fhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z4fb3fhero-buttons .btn {
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform var(--xn-transition), box-shadow var(--xn-transition);
}

.z4fb3fhero-buttons .btn-light {
    background: #fff;
    color: var(--xn-primary-dark);
}

.z4fb3fhero-buttons .btn-primary,
.z4fb3fbtn.btn-primary {
    background: linear-gradient(135deg, var(--xn-accent) 0%, #d97706 100%);
    color: #1e1b2e;
}

.z4fb3fhero-buttons .btn:hover,
.z4fb3fbtn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.z4fb3fhero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z4fb3fhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--xn-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.z4fb3fhero-image-shadow {
    display: none;
}

/* —— 产品亮点 Bento —— */
#features.xn-section {
    padding-top: 4rem;
}

.xn-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.z4fb3ffeature-card {
    background: var(--xn-surface);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--xn-shadow);
    transition: border-color var(--xn-transition), box-shadow var(--xn-transition);
    overflow: hidden;
}

.z4fb3ffeature-card:hover {
    border-color: rgba(91, 33, 182, 0.35);
    box-shadow: var(--xn-shadow-hover);
    transform: none;
}

.z4fb3ffeature-card.xn-bento-wide {
    grid-column: span 2;
}

.z4fb3ffeature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    color: var(--xn-primary);
    background: rgba(91, 33, 182, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
}

.z4fb3ffeature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--xn-text);
}

.z4fb3ffeature-card p {
    margin: 0;
    color: var(--xn-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* —— 数据统计 —— */
.z4fb3fstats-section {
    background: linear-gradient(90deg, var(--xn-primary-dark), var(--xn-primary));
    color: #fff;
    padding: 3rem 0;
    border-top: none;
    border-bottom: none;
}

.z4fb3fstats-section .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z4fb3fstats-section .z4fb3frow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
}

.z4fb3fstats-section .z4fb3frow > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
}

.z4fb3fstat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.z4fb3fstat-item:last-child {
    border-right: none;
}

.z4fb3fstat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.z4fb3fstat-label {
    font-size: 0.9rem;
    opacity: 0.88;
}

/* —— 下载区 —— */
.z4fb3fdownload-section {
    padding: 4.5rem 0;
    background: var(--xn-bg);
}

.z4fb3fdownload-section .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z4fb3fdownload-header h2 {
    color: var(--xn-text);
    font-weight: 700;
}

.z4fb3fdownload-subtitle {
    color: var(--xn-muted);
}

.z4fb3fdownload-section .z4fb3frow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 0;
}

.z4fb3fdownload-section .z4fb3frow > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
}

.z4fb3fdownload-card {
    background: var(--xn-surface);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    box-shadow: var(--xn-shadow);
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--xn-transition);
}

.z4fb3fdownload-card:hover {
    box-shadow: var(--xn-shadow-hover);
    transform: none;
}

.z4fb3fdownload-card .card-body {
    padding: 1.5rem !important;
}

.z4fb3fplatform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.z4fb3fios-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.z4fb3fandroid-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.z4fb3fdownload-info {
    background: rgba(91, 33, 182, 0.04);
    border: 1px solid var(--xn-border);
    padding: 1rem 1.15rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.z4fb3finfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--xn-muted);
}

.z4fb3finfo-item:last-child {
    margin-bottom: 0;
}

.z4fb3finfo-item i {
    color: var(--xn-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z4fb3fdownload-action .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: normal;
    border: none;
    background: linear-gradient(135deg, var(--xn-primary), var(--xn-primary-light));
    color: #fff;
}

.z4fb3fdownload-action .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.3);
}

/* —— 安全区 —— */
.z4fb3fsecurity-section {
    padding: 4.5rem 0;
    background: var(--xn-surface);
}

.z4fb3fsecurity-section .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z4fb3fsecurity-header h2 {
    color: var(--xn-text);
    font-weight: 700;
}

.z4fb3fsecurity-subtitle {
    color: var(--xn-muted);
}

.z4fb3fsecurity-section > .z4fb3fcontainer > .z4fb3frow.g-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
}

.z4fb3fsecurity-section > .z4fb3fcontainer > .z4fb3frow.g-4 > [class*="col-"],
.z4fb3fsecurity-certificates .z4fb3frow > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
}

.z4fb3fsecurity-card {
    background: var(--xn-bg);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.35rem;
    height: 100%;
    box-shadow: none;
    transition: border-color var(--xn-transition);
}

.z4fb3fsecurity-card:hover {
    border-color: rgba(91, 33, 182, 0.3);
    transform: none;
    box-shadow: var(--xn-shadow);
}

.z4fb3fsecurity-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin: 0 0 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xn-primary), var(--xn-primary-light));
    color: #fff;
}

.z4fb3fsecurity-card h3 {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.75rem;
    color: var(--xn-text);
}

.z4fb3fsecurity-features {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.z4fb3ffeature-item {
    font-size: 0.88rem;
    color: var(--xn-muted);
    margin-bottom: 0.4rem;
}

.z4fb3ffeature-item i {
    color: var(--xn-primary);
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.z4fb3fsecurity-certificates .z4fb3frow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.z4fb3fcertificate-card {
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.25rem;
    background: var(--xn-surface);
    box-shadow: none;
    height: 100%;
}

.z4fb3fcertificate-card:hover {
    transform: none;
    border-color: rgba(91, 33, 182, 0.25);
}

.z4fb3fcertificate-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: var(--xn-accent-soft);
    color: var(--xn-accent);
}

.z4fb3fcertificate-card h4 {
    font-size: 0.95rem;
    color: var(--xn-text);
    margin-bottom: 0.35rem;
}

.z4fb3fcertificate-card p {
    font-size: 0.85rem;
    color: var(--xn-muted);
    margin: 0;
}

/* —— 知识简介 —— */
.xn-knowledge {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.04) 0%, var(--xn-bg) 100%);
}

.xn-knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.xn-knowledge-card {
    background: var(--xn-surface);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.5rem;
}

.xn-knowledge-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    color: var(--xn-primary-dark);
}

.xn-knowledge-card p {
    margin: 0 0 0.65rem;
    color: var(--xn-muted);
    font-size: 0.95rem;
}

.xn-knowledge-card p:last-child {
    margin-bottom: 0;
}

/* —— FAQ —— */
#faq.xn-section {
    background: var(--xn-surface);
}

.xn-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#faq .card {
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    box-shadow: none;
    height: 100%;
    overflow: hidden;
}

#faq .card-body {
    padding: 1.25rem;
}

#faq .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xn-text);
    margin-bottom: 0.5rem;
}

#faq .card-text {
    font-size: 0.92rem;
    color: var(--xn-muted);
    margin: 0;
}

/* —— 文章区 —— */
#article.xn-section {
    background: var(--xn-bg);
}

#article .card {
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    overflow: hidden;
    box-shadow: var(--xn-shadow);
}

#article .card-body {
    padding: 0.85rem;
}

.z4fb3fthumb-home {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

#article h3.h5 {
    font-size: 0.95rem;
    line-height: 1.4;
}

#article h3.h5 a {
    color: var(--xn-text);
}

#article .btn-outline-primary {
    border-color: var(--xn-primary);
    color: var(--xn-primary);
    border-radius: 8px;
}

/* —— 页脚 —— */
.z4fb3ffooter {
    background: #1e1b2e;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z4fb3ffooter .z4fb3fcontainer {
    max-width: var(--xn-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z4fb3ffooter-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z4fb3ffooter-link {
    color: rgba(255, 255, 255, 0.65);
}

.z4fb3ffooter-link:hover {
    color: var(--xn-accent);
}

.z4fb3ffooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.88rem;
}

.z4fb3ffooter-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.z4fb3ffriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z4fb3ffriend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

/* —— 列表/内页 —— */
.z4fb3fpy-5.bg-light {
    background: var(--xn-bg) !important;
    padding: 2.5rem 0 !important;
}

.z4fb3fpy-5.bg-light .card {
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    overflow: hidden;
}

.z4fb3farticle-content {
    line-height: 1.75;
    word-break: break-word;
}

.z4fb3farticle-content img {
    max-width: 100%;
    height: auto;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— Bootstrap 按钮覆盖 —— */
.btn {
    border-radius: 10px;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .xn-bento {
        grid-template-columns: 1fr 1fr;
    }

    .z4fb3ffeature-card.xn-bento-wide {
        grid-column: span 2;
    }

    .z4fb3fstats-section .z4fb3frow {
        grid-template-columns: repeat(2, 1fr);
    }

    .z4fb3fstat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 1rem;
    }

    .z4fb3fstat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .z4fb3fsecurity-section > .z4fb3fcontainer > .z4fb3frow.g-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xn-knowledge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .xn-section {
        padding: 3rem 0;
    }

    .z4fb3fnavbar {
        padding: 0.5rem 0;
    }

    .z4fb3fnavbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--xn-border);
        border-radius: var(--xn-radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z4fb3fhero-section {
        padding: 2.5rem 0;
    }

    .z4fb3fhero-buttons {
        flex-direction: column;
    }

    .z4fb3fhero-buttons .btn {
        width: 100%;
    }

    .xn-bento {
        grid-template-columns: 1fr;
    }

    .z4fb3ffeature-card.xn-bento-wide {
        grid-column: span 1;
    }

    .z4fb3fdownload-section .z4fb3frow {
        grid-template-columns: 1fr;
    }

    .z4fb3fdownload-card .d-flex.align-items-center {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .z4fb3fdownload-card .d-flex.align-items-center .ms-3 {
        margin-left: 0.75rem !important;
        min-width: 0;
    }

    .z4fb3fsecurity-section > .z4fb3fcontainer > .z4fb3frow.g-4 {
        grid-template-columns: 1fr;
    }

    .z4fb3fsecurity-certificates .z4fb3frow {
        grid-template-columns: 1fr;
    }

    .xn-faq-grid {
        grid-template-columns: 1fr;
    }

    #article .row-cols-lg-5 {
        --bs-columns: 2;
    }

    .z4fb3fthumb-home {
        height: 96px !important;
    }

    #article h3.h5 {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }

    .z4fb3fthumb-list,
    .z4fb3fthumb-related {
        height: 72px !important;
    }

    .z4fb3fthumb-side {
        height: 50px !important;
    }

    .z4fb3fthumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }
}

@media (max-width: 575px) {
    .z4fb3fstats-section .z4fb3frow {
        grid-template-columns: 1fr 1fr;
    }

    .z4fb3fstat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .z4fb3fstat-item {
        padding: 0.75rem 0.35rem;
    }

    .z4fb3fstat-number {
        font-size: 1.35rem;
    }

    .z4fb3fdownload-card .card-body {
        padding: 1.15rem !important;
    }

    .z4fb3fthumb-home {
        height: 88px !important;
    }

    .z4fb3fthumb-list,
    .z4fb3fthumb-related {
        height: 64px !important;
    }

    .z4fb3fthumb-cover {
        height: 150px !important;
    }

    .z4fb3ffooter .z4fb3frow > [class*="col-"] {
        text-align: center;
    }
}
