/* 小牛加速器官网 — 主题色：深青 #0D3B4C + 珊瑚 #E76F51 + 沙色 #F4F1DE */
:root {
    --xn-primary: #0D3B4C;
    --xn-primary-dark: #082A36;
    --xn-accent: #E76F51;
    --xn-accent-hover: #d45f43;
    --xn-surface: #F4F1DE;
    --xn-surface-alt: #E8E4D0;
    --xn-card: #ffffff;
    --xn-text: #1a2b33;
    --xn-muted: #5c6b73;
    --xn-border: rgba(13, 59, 76, 0.12);
    --xn-radius: 12px;
    --xn-radius-lg: 20px;
    --xn-shadow: 0 4px 24px rgba(13, 59, 76, 0.08);
    --xn-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.xn-page,
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--xn-text);
    line-height: 1.65;
    background: var(--xn-surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xn-primary);
    text-decoration: none;
    transition: color var(--xn-transition);
}

a:hover {
    color: var(--xn-accent);
}

/* —— 导航 —— */
.zfecb2navbar {
    background: var(--xn-card);
    border-bottom: 1px solid var(--xn-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.zfecb2navbar .navbar-brand img {
    height: 42px;
    width: auto;
}

.zfecb2nav-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);
}

.zfecb2nav-link:hover {
    color: var(--xn-accent) !important;
    background: rgba(231, 111, 81, 0.08);
}

.zfecb2navbar .navbar-toggler {
    border-color: var(--xn-border);
    padding: 0.4rem 0.55rem;
}

.zfecb2navbar .navbar-collapse {
    background: var(--xn-card);
}

@media (min-width: 992px) {
    .zfecb2navbar .navbar-collapse {
        background: transparent;
    }
}

/* —— 按钮 —— */
.zfecb2btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform var(--xn-transition), box-shadow var(--xn-transition), background var(--xn-transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.zfecb2btn-primary {
    background: var(--xn-accent);
    color: #fff !important;
    border-color: var(--xn-accent);
}

.zfecb2btn-primary:hover {
    background: var(--xn-accent-hover);
    border-color: var(--xn-accent-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.35);
}

.zfecb2btn-outline {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.zfecb2btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-color: #fff;
}

.zfecb2btn-outline-sm {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--xn-primary) !important;
    border: 2px solid var(--xn-primary);
}

.zfecb2btn-outline-sm:hover {
    background: var(--xn-primary);
    color: #fff !important;
}

/* —— Hero —— */
.zfecb2hero-section {
    background: linear-gradient(145deg, var(--xn-primary) 0%, var(--xn-primary-dark) 55%, #0a2833 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.zfecb2hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(231, 111, 81, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.zfecb2hero-content {
    position: relative;
    z-index: 1;
}

.zfecb2hero-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(231, 111, 81, 0.25);
    border: 1px solid rgba(231, 111, 81, 0.5);
    margin-bottom: 1rem;
}

.zfecb2hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.zfecb2hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    max-width: 36em;
    margin-bottom: 1.5rem;
}

.zfecb2hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.zfecb2hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.zfecb2hero-image {
    max-width: min(100%, 320px);
    border-radius: var(--xn-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

/* —— 通用区块 —— */
.zfecb2section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.zfecb2section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.zfecb2section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--xn-primary);
    margin-bottom: 0.65rem;
}

.zfecb2section-head p {
    color: var(--xn-muted);
    margin: 0;
    font-size: 1rem;
}

.zfecb2section-head-light h2,
.zfecb2section-head-light p {
    color: #fff;
}

.zfecb2muted {
    color: var(--xn-muted) !important;
}

/* —— Bento 特性 —— */
.zfecb2features-section {
    background: var(--xn-card);
}

.zfecb2bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zfecb2bento-item {
    background: var(--xn-surface);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.35rem;
    transition: box-shadow var(--xn-transition), border-color var(--xn-transition);
    overflow: hidden;
    min-height: 0;
}

.zfecb2bento-item:hover {
    border-color: rgba(231, 111, 81, 0.35);
    box-shadow: var(--xn-shadow);
}

.zfecb2bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.zfecb2bento-wide {
    grid-column: span 2;
}

.zfecb2bento-icon {
    font-size: 1.5rem;
    color: var(--xn-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.zfecb2bento-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin-bottom: 0.5rem;
}

.zfecb2bento-item p {
    font-size: 0.9rem;
    color: var(--xn-muted);
    margin: 0;
    line-height: 1.55;
}

/* —— 统计 —— */
.zfecb2stats-section {
    background: var(--xn-primary);
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.zfecb2stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zfecb2stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.zfecb2stat-item:last-child {
    border-right: none;
}

.zfecb2stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--xn-accent);
    line-height: 1.2;
}

.zfecb2stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* —— 知识卡片 —— */
.zfecb2knowledge-section {
    background: var(--xn-surface-alt);
}

.zfecb2knowledge-card {
    background: var(--xn-card);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.zfecb2knowledge-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin-bottom: 0.6rem;
}

.zfecb2knowledge-card p {
    font-size: 0.9rem;
    color: var(--xn-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 下载 —— */
.zfecb2download-section {
    background: linear-gradient(160deg, var(--xn-primary) 0%, var(--xn-primary-dark) 100%);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.zfecb2download-card {
    background: var(--xn-card);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--xn-shadow);
}

.zfecb2download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.zfecb2download-card-head h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin: 0 0 0.2rem;
}

.zfecb2platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.zfecb2pc-icon {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.zfecb2mobile-icon {
    background: linear-gradient(135deg, #3ddc84, #2a9d5c);
}

.zfecb2download-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.zfecb2download-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--xn-muted);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.zfecb2download-list li i {
    color: var(--xn-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* —— 安全 —— */
.zfecb2security-section {
    background: var(--xn-card);
}

.zfecb2security-card {
    background: var(--xn-surface);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.25rem;
    height: 100%;
    text-align: center;
    overflow: hidden;
    transition: box-shadow var(--xn-transition);
}

.zfecb2security-card:hover {
    box-shadow: var(--xn-shadow);
}

.zfecb2security-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--xn-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.zfecb2security-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin-bottom: 0.4rem;
}

.zfecb2security-card p {
    font-size: 0.85rem;
    color: var(--xn-muted);
    margin: 0;
    line-height: 1.5;
}

/* —— FAQ —— */
.zfecb2faq-section {
    background: var(--xn-surface-alt);
}

.zfecb2faq-card {
    background: var(--xn-card);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.zfecb2faq-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin-bottom: 0.5rem;
}

.zfecb2faq-card p {
    font-size: 0.9rem;
    color: var(--xn-muted);
    margin: 0;
    line-height: 1.55;
}

/* —— 文章区 —— */
.zfecb2article-section {
    background: var(--xn-card);
}

.zfecb2article-card {
    border: 1px solid var(--xn-border) !important;
    border-radius: var(--xn-radius) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: box-shadow var(--xn-transition);
}

.zfecb2article-card:hover {
    box-shadow: var(--xn-shadow) !important;
}

.zfecb2thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.zfecb2article-card .card-body {
    padding: 0.75rem !important;
}

.zfecb2article-card h6 a,
.zfecb2article-card h3 a {
    color: var(--xn-text);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.zfecb2article-card h6 a:hover,
.zfecb2article-card h3 a:hover {
    color: var(--xn-accent);
}

/* —— 页脚 —— */
.zfecb2footer {
    background: var(--xn-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.zfecb2footer-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 28em;
}

.zfecb2footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zfecb2footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zfecb2footer-links li {
    margin-bottom: 0.5rem;
}

.zfecb2footer-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.zfecb2footer-link:hover {
    color: var(--xn-accent);
}

.zfecb2friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zfecb2friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.zfecb2friend-links a:hover {
    color: var(--xn-accent);
}

.zfecb2footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.zfecb2footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.zfecb2footer-bottom a:hover {
    color: var(--xn-accent);
}

/* —— 列表页 / 内页 —— */
.zfecb2page-main {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
    background: var(--xn-surface);
    min-height: 50vh;
}

.zfecb2page-card {
    background: var(--xn-card);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    overflow: hidden;
    box-shadow: var(--xn-shadow);
}

.zfecb2page-card .card-body {
    padding: 1.25rem 1.5rem;
}

.zfecb2sidebar-card {
    background: var(--xn-card);
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.zfecb2sidebar-card .card-body {
    padding: 1.15rem 1.25rem;
}

.zfecb2sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xn-primary);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--xn-accent);
}

.zfecb2article-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zfecb2article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.zfecb2thumb-list,
.zfecb2thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.zfecb2thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.zfecb2thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--xn-radius);
}

.zfecb2meta-tags .zfecb2tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--xn-surface);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* 分页 */
.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;
}

/* Bootstrap 覆盖 */
.bg-light {
    background-color: var(--xn-surface) !important;
}

.card.shadow-sm {
    box-shadow: var(--xn-shadow) !important;
    border: 1px solid var(--xn-border);
    border-radius: var(--xn-radius);
    overflow: hidden;
}

.listbox .e2 li {
    border-color: var(--xn-border) !important;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .zfecb2bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zfecb2bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .zfecb2bento-wide {
        grid-column: span 2;
    }

    .zfecb2stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zfecb2stat-item:nth-child(2) {
        border-right: none;
    }

    .zfecb2stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1rem;
    }

    .zfecb2stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .zfecb2navbar {
        padding: 0.5rem 0;
    }

    .zfecb2navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--xn-radius);
        border: 1px solid var(--xn-border);
        max-height: 70vh;
        overflow-y: auto;
    }

    .zfecb2navbar .navbar-nav .nav-link {
        padding: 0.55rem 0.5rem !important;
    }

    .zfecb2hero-buttons {
        flex-direction: column;
    }

    .zfecb2hero-buttons .zfecb2btn {
        width: 100%;
    }

    .zfecb2bento-grid {
        grid-template-columns: 1fr;
    }

    .zfecb2bento-large,
    .zfecb2bento-wide {
        grid-column: span 1;
    }

    .zfecb2stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .zfecb2stat-item {
        padding: 0.85rem 0.35rem;
    }

    .zfecb2download-card {
        padding: 1.15rem;
    }

    .zfecb2download-card-head {
        flex-direction: row;
    }

    .zfecb2security-card {
        padding: 1rem 0.75rem;
    }

    .zfecb2security-card h3 {
        font-size: 0.88rem;
    }

    .zfecb2security-card p {
        font-size: 0.8rem;
    }

    .zfecb2thumb-home {
        height: 96px;
    }

    .zfecb2thumb-list,
    .zfecb2thumb-related {
        height: 72px !important;
    }

    .zfecb2thumb-side {
        height: 50px !important;
    }

    .zfecb2thumb-cover {
        max-height: 200px;
    }

    .zfecb2footer .row > [class*="col-"] {
        text-align: center;
    }

    .zfecb2footer-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .zfecb2friend-links {
        justify-content: center;
    }

    #article .row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .zfecb2stats-grid {
        grid-template-columns: 1fr;
    }

    .zfecb2stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .zfecb2stat-item:last-child {
        border-bottom: none;
    }

    .zfecb2thumb-home {
        height: 88px;
    }

    .zfecb2thumb-list,
    .zfecb2thumb-related {
        height: 64px !important;
    }

    .listbox .e2 li .col-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .listbox .e2 li .col-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
        justify-content: center;
    }
}

/* 兼容旧类名 */
.zfecb2feature-card,
.zfecb2hero-image-shadow,
.hero-image-shadow {
    display: none;
}

.zfecb2container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .zfecb2container { max-width: 540px; }
}
@media (min-width: 768px) {
    .zfecb2container { max-width: 720px; }
}
@media (min-width: 992px) {
    .zfecb2container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .zfecb2container { max-width: 1140px; }
}
