/* 西柚加速器官网 — 单文件样式 */
:root {
    --brand: #e76f51;
    --brand-dark: #c45a3f;
    --brand-2: #264653;
    --accent: #2a9d8f;
    --accent-soft: rgba(42, 157, 143, 0.12);
    --bg: #fffcf9;
    --surface: #ffffff;
    --text: #1d3557;
    --muted: #5c6b7a;
    --border: rgba(38, 70, 83, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 28px rgba(38, 70, 83, 0.08);
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.xy-site {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-dark);
}

/* —— 导航 —— */
.zd2ff2navbar.xy-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    box-shadow: none;
}

.zd2ff2navbar-brand img {
    height: 42px;
    width: auto;
}

.zd2ff2nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.zd2ff2nav-link:hover {
    color: var(--brand) !important;
    background: rgba(231, 111, 81, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
}

.navbar-collapse {
    background: var(--surface);
}

/* —— 按钮 —— */
.xy-btn {
    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: none;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: normal;
    text-align: center;
}

.xy-btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff !important;
}

.xy-btn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(231, 111, 81, 0.35);
}

.xy-btn-light {
    background: var(--surface);
    color: var(--brand-2) !important;
    border: 1px solid var(--border);
}

.xy-btn-light:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
}

.xy-btn-outline {
    background: transparent;
    color: var(--brand-2) !important;
    border: 1px solid var(--border);
}

.xy-btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
}

/* —— 首屏 —— */
.xy-hero.zd2ff2hero-section {
    background: linear-gradient(160deg, var(--brand-2) 0%, #1a3a44 55%, var(--brand-2) 100%);
    color: #fff;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.xy-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(231, 111, 81, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

.xy-hero .container {
    position: relative;
    z-index: 1;
}

.xy-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(42, 157, 143, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.zd2ff2hero-title,
.xy-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.zd2ff2hero-subtitle,
.xy-hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 34em;
}

.xy-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.xy-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 220px;
}

.xy-hero-img {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.2));
}

.zd2ff2hero-image-shadow {
    display: none;
}

/* —— 简介条 —— */
.xy-intro {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.xy-intro-text {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
    max-width: 52em;
    margin-left: auto;
    margin-right: auto;
}

/* —— 通用区块 —— */
.xy-section {
    padding: 3.5rem 0;
}

.xy-section--light {
    background: var(--bg);
}

.xy-section--alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.xy-section--articles {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.xy-section-head {
    text-align: center;
    max-width: 36em;
    margin: 0 auto 2.25rem;
}

.xy-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--brand-2);
    margin-bottom: 0.5rem;
}

.xy-section-head p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
}

/* —— 优势卡片 —— */
.xy-panel.zd2ff2feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition);
}

.xy-panel:hover {
    transform: translateY(-4px);
    border-left-color: var(--accent);
}

.xy-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.xy-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-2);
    margin-bottom: 0.5rem;
}

.xy-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* —— 数据条 —— */
.xy-metrics.zd2ff2stats-section {
    background: linear-gradient(90deg, var(--brand) 0%, #d4624a 50%, var(--accent) 100%);
    color: #fff;
    padding: 2.25rem 0;
}

.xy-metric {
    padding: 0.5rem;
}

.zd2ff2stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.zd2ff2stat-label {
    font-size: 0.88rem;
    opacity: 0.92;
}

/* —— 下载区 —— */
.zd2ff2download-section {
    background: var(--bg);
    padding: 3.5rem 0;
}

.xy-dl-card.zd2ff2download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.xy-dl-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.xy-dl-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-2);
    margin: 0 0 0.25rem;
}

.xy-dl-card-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.xy-dl-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.xy-dl-icon--pc {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.xy-dl-icon--mobile {
    background: linear-gradient(135deg, #3ddc84, #2bb673);
}

.xy-dl-list.zd2ff2download-info {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: var(--accent-soft);
    border-radius: var(--radius);
    flex-grow: 1;
}

.xy-dl-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.xy-dl-list li:last-child {
    margin-bottom: 0;
}

.xy-dl-list i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.xy-dl-card .xy-btn {
    width: 100%;
    margin-top: auto;
}

/* —— 指南 —— */
.xy-guide-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    height: 100%;
}

.xy-guide-card h3 {
    font-size: 1.05rem;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.xy-guide-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* —— 安全 —— */
.zd2ff2security-section {
    padding: 3.5rem 0;
    background: var(--surface);
}

.xy-trust-card.zd2ff2security-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
}

.xy-trust-card i {
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 0.65rem;
}

.xy-trust-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-2);
    margin-bottom: 0.35rem;
}

.xy-trust-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

/* —— FAQ —— */
.xy-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.xy-faq-item h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brand-2);
    margin-bottom: 0.45rem;
}

.xy-faq-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* —— 文章卡片 —— */
.xy-article-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.xy-article-card:hover {
    border-color: var(--brand) !important;
    box-shadow: var(--shadow) !important;
}

.xy-article-thumb-link {
    display: block;
    overflow: hidden;
}

.xy-thumb,
.zd2ff2thumb-home {
    height: 110px !important;
    width: 100%;
    object-fit: cover;
}

.xy-article-card .card-body {
    padding: 0.85rem !important;
}

.xy-article-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.xy-article-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.xy-article-title a {
    color: var(--text);
}

.xy-article-title a:hover {
    color: var(--brand);
}

/* —— 页脚 —— */
.zd2ff2footer.xy-footer {
    background: var(--brand-2);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 1.5rem;
}

.xy-footer-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.zd2ff2footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.zd2ff2footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd2ff2footer-links li {
    margin-bottom: 0.4rem;
}

.zd2ff2footer-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.zd2ff2footer-link:hover {
    color: var(--brand);
}

.xy-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.xy-friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.xy-friend-links a:hover {
    color: #fff;
}

.zd2ff2footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.zd2ff2footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.zd2ff2footer-bottom a:hover {
    color: var(--brand);
}

/* —— 列表页 / 内页 —— */
.xy-page-main {
    padding: 2.5rem 0 3rem;
    background: var(--bg);
    min-height: 50vh;
}

.xy-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.xy-page-header h1 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: var(--brand-2);
    margin-bottom: 0.35rem;
}

.xy-page-header p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.xy-content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.xy-content-card .card-body {
    padding: 1.25rem 1.5rem;
}

.xy-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.xy-sidebar-card .card-body {
    padding: 1.15rem 1.25rem;
}

.xy-sidebar-card h3 {
    font-size: 1rem;
    color: var(--brand-2);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}

.zd2ff2article-content {
    line-height: 1.75;
    color: var(--text);
    overflow-wrap: break-word;
}

.zd2ff2article-content img {
    max-width: 100%;
    height: auto;
    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;
}

.zd2ff2meta-tags .zd2ff2tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--accent-soft);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .zd2ff2navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .xy-hero {
        padding: 3rem 0;
    }

    .xy-section {
        padding: 2.75rem 0;
    }
}

@media (max-width: 767px) {
    .xy-hero-actions {
        flex-direction: column;
    }

    .xy-hero-actions .xy-btn {
        width: 100%;
    }

    .xy-hero-visual {
        min-height: 160px;
        margin-top: 0.5rem;
    }

    .xy-hero-img {
        max-width: 240px;
    }

    .xy-dl-card-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .xy-dl-list {
        padding: 0.85rem;
    }

    .xy-section-head {
        margin-bottom: 1.5rem;
    }

    .xy-footer .row > [class*="col-"] {
        text-align: center;
    }

    .xy-friend-links {
        justify-content: center;
    }

    .zd2ff2thumb-home,
    .xy-thumb {
        height: 96px !important;
    }

    .xy-article-title {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .zd2ff2thumb-list,
    .zd2ff2thumb-related {
        height: 72px !important;
    }

    .zd2ff2thumb-side {
        height: 50px !important;
    }

    .zd2ff2thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }

    .xy-content-card .card-body {
        padding: 1rem;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .listbox .e2 li p {
        font-size: 0.88rem;
    }
}

@media (max-width: 575px) {
    .xy-metrics .col-6 {
        padding: 0.35rem;
    }

    .zd2ff2stat-number {
        font-size: 1.35rem;
    }

    .zd2ff2stat-label {
        font-size: 0.8rem;
    }

    .xy-trust-card {
        padding: 1rem 0.75rem;
    }

    .zd2ff2thumb-home,
    .xy-thumb {
        height: 88px !important;
    }

    .zd2ff2thumb-list,
    .zd2ff2thumb-related {
        height: 64px !important;
    }

    .zd2ff2thumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}

/* 兼容旧类名，避免 Bootstrap 冲突 */
.zd2ff2feature-card,
.zd2ff2download-card,
.zd2ff2security-card {
    animation: none;
}

.zd2ff2feature-icon {
    display: none;
}

.btn.zd2ff2btn {
    border-radius: 10px;
}
