/* 西柚加速器官网 — 西柚珊瑚 + 墨绿主题 */
:root {
    --xy-coral: #e85d4c;
    --xy-coral-dark: #c94a3b;
    --xy-coral-light: #ff8a7a;
    --xy-forest: #1b4332;
    --xy-forest-light: #2d6a4f;
    --xy-cream: #fff8f5;
    --xy-cream-dark: #f5ebe6;
    --xy-ink: #1a1a2e;
    --xy-muted: #5c5c6e;
    --xy-border: rgba(27, 67, 50, 0.12);
    --xy-radius: 14px;
    --xy-radius-sm: 10px;
    --xy-shadow: 0 8px 32px rgba(27, 67, 50, 0.08);
    --xy-transition: 0.25s ease;
    --primary-color: var(--xy-coral);
    --secondary-color: var(--xy-forest);
    --text-color: var(--xy-ink);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.xy-site,
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--xy-ink);
    line-height: 1.65;
    background: var(--xy-cream);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xy-forest);
    text-decoration: none;
    transition: color var(--xy-transition);
}

a:hover {
    color: var(--xy-coral);
}

/* —— 导航 —— */
.zd23e1navbar {
    background: rgba(255, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xy-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.zd23e1navbar-brand img {
    height: 42px;
    width: auto;
}

.zd23e1nav-link {
    color: var(--xy-ink) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--xy-transition), color var(--xy-transition);
}

.zd23e1nav-link:hover,
.zd23e1nav-link.active {
    color: var(--xy-coral) !important;
    background: rgba(232, 93, 76, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--xy-border);
    padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(232, 93, 76, 0.25);
}

@media (max-width: 991px) {
    .zd23e1navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid var(--xy-border);
        border-radius: var(--xy-radius-sm);
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* —— 首屏 —— */
.zd23e1hero-section {
    background: linear-gradient(145deg, var(--xy-forest) 0%, #0d2818 55%, var(--xy-forest-light) 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.zd23e1hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(232, 93, 76, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.zd23e1hero-content {
    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;
    background: rgba(232, 93, 76, 0.2);
    border: 1px solid rgba(255, 138, 122, 0.4);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.zd23e1hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.zd23e1hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.zd23e1hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.xy-btn-primary,
.zd23e1hero-buttons .btn-primary {
    background: var(--xy-coral) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
}

.xy-btn-primary:hover,
.zd23e1hero-buttons .btn-primary:hover {
    background: var(--xy-coral-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 76, 0.35);
}

.zd23e1hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
}

.zd23e1hero-buttons .btn-outline-light:hover {
    background: #fff;
    color: var(--xy-forest);
}

.xy-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.zd23e1hero-image {
    max-width: min(280px, 90%);
    border-radius: var(--xy-radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

.zd23e1hero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.xy-section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.xy-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.xy-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--xy-forest);
    margin-bottom: 0.5rem;
}

.xy-section-head p {
    color: var(--xy-muted);
    margin: 0;
    font-size: 0.98rem;
}

.xy-section-head-light h2,
.xy-section-head-light p {
    color: #fff;
}

.xy-section-head-light p {
    opacity: 0.9;
}

/* —— 优势 Bento —— */
.xy-features {
    background: #fff;
}

.xy-bento-card {
    background: var(--xy-cream);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.5rem;
    height: 100%;
    transition: border-color var(--xy-transition), box-shadow var(--xy-transition);
    overflow: hidden;
}

.xy-bento-card:hover {
    border-color: var(--xy-coral-light);
    box-shadow: var(--xy-shadow);
}

.xy-bento-main {
    border-left: 4px solid var(--xy-coral);
}

.zd23e1feature-icon {
    font-size: 1.75rem;
    color: var(--xy-coral);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 93, 76, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.xy-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--xy-forest);
    margin-bottom: 0.5rem;
}

.xy-bento-card p {
    font-size: 0.92rem;
    color: var(--xy-muted);
    margin: 0;
}

.xy-knowledge {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, rgba(232, 93, 76, 0.06), rgba(27, 67, 50, 0.06));
    border-radius: var(--xy-radius);
    border: 1px solid var(--xy-border);
}

.xy-knowledge h3 {
    font-size: 1rem;
    color: var(--xy-forest);
    margin-bottom: 0.5rem;
}

.xy-knowledge p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--xy-muted);
}

/* —— 数据条 —— */
.zd23e1stats-section.xy-stats {
    background: var(--xy-forest);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.xy-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--xy-radius-sm);
    padding: 1rem 0.75rem;
    text-align: center;
    height: 100%;
}

.zd23e1stat-number {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--xy-coral-light);
    margin-bottom: 0.25rem;
}

.zd23e1stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* —— 下载 —— */
.zd23e1download-section.xy-download {
    background: var(--xy-cream-dark);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.xy-dl-card {
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--xy-shadow);
    overflow: hidden;
}

.xy-dl-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.xy-dl-card-head h3 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    color: var(--xy-forest);
}

.xy-dl-card-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--xy-muted);
}

.zd23e1platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.zd23e1android-icon {
    background: linear-gradient(135deg, #3ddc84, #2bb673);
}

.zd23e1ios-icon {
    background: linear-gradient(135deg, #4a90d9, #2563eb);
}

.zd23e1download-info {
    background: var(--xy-cream);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.zd23e1info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--xy-muted);
}

.zd23e1info-item:last-child {
    margin-bottom: 0;
}

.zd23e1info-item i {
    color: var(--xy-coral);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.zd23e1download-action .btn {
    border-radius: 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* —— 安全 —— */
.zd23e1security-section.xy-security {
    background: linear-gradient(160deg, var(--xy-forest) 0%, #0d2818 100%);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.xy-sec-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--xy-radius);
    padding: 1.25rem;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.xy-sec-item h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0.75rem 0;
}

.zd23e1security-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--xy-coral);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.zd23e1security-features {
    background: transparent;
    padding: 0;
    text-align: left;
}

.xy-sec-item .zd23e1feature-item {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

.xy-sec-item .zd23e1feature-item i {
    color: var(--xy-coral-light);
}

/* —— FAQ —— */
.xy-faq {
    background: #fff;
}

.xy-faq-card {
    background: var(--xy-cream);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-sm);
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.xy-faq-card h4 {
    font-size: 0.98rem;
    color: var(--xy-forest);
    margin-bottom: 0.5rem;
}

.xy-faq-card p {
    font-size: 0.88rem;
    color: var(--xy-muted);
    margin: 0;
}

/* —— 文章 —— */
.xy-articles {
    background: var(--xy-cream-dark);
}

.xy-article-card {
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-sm);
    overflow: hidden;
    transition: box-shadow var(--xy-transition);
}

.xy-article-card:hover {
    box-shadow: var(--xy-shadow);
}

.xy-article-thumb {
    display: block;
    overflow: hidden;
}

.zd23e1thumb-home {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.xy-article-body {
    padding: 0.85rem 1rem;
}

.xy-article-meta {
    font-size: 0.75rem;
    color: var(--xy-muted);
    margin-bottom: 0.35rem;
}

.xy-article-body h3 {
    margin: 0;
    line-height: 1.4;
}

.xy-article-body h3 a {
    color: var(--xy-ink);
    font-weight: 600;
}

.xy-btn-outline {
    border-color: var(--xy-coral) !important;
    color: var(--xy-coral) !important;
    border-radius: 8px;
}

.xy-btn-outline:hover {
    background: var(--xy-coral) !important;
    color: #fff !important;
}

/* —— 页脚 —— */
.zd23e1footer {
    background: var(--xy-forest);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 1.5rem;
}

.zd23e1footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.zd23e1footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.zd23e1footer-link:hover {
    color: var(--xy-coral-light);
}

.xy-footer-desc {
    font-size: 0.88rem;
    opacity: 0.8;
}

.zd23e1friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd23e1friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.zd23e1footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.zd23e1footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

/* —— 列表 / 内页 —— */
.zd23e1py-5.bg-light,
section.zd23e1py-5 {
    background: var(--xy-cream) !important;
    padding: 2rem 0 3rem !important;
}

.zd23e1py-5 .card {
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    overflow: hidden;
    box-shadow: none;
}

.zd23e1py-5 .card-body {
    padding: 1.25rem;
}

.zd23e1article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zd23e1article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--xy-radius-sm);
}

.zd23e1meta-tags .zd23e1tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(232, 93, 76, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* 兼容旧类名 */
.zd23e1feature-card,
.zd23e1download-card,
.zd23e1security-card {
    border: 1px solid var(--xy-border);
}

.zd23e1btn {
    font-weight: 600;
}

.btn {
    border-radius: 10px;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .zd23e1footer .row > [class*="col-"] {
        text-align: center;
    }

    .zd23e1footer-links {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .zd23e1navbar-brand img {
        height: 36px;
    }

    .zd23e1hero-buttons {
        flex-direction: column;
    }

    .zd23e1hero-buttons .btn {
        width: 100%;
    }

    .xy-dl-card-head {
        flex-direction: column;
        text-align: center;
    }

    .xy-dl-card-head > div:last-child {
        width: 100%;
    }

    .zd23e1download-info {
        padding: 0.85rem;
    }

    .zd23e1thumb-home {
        height: 100px;
    }

    #article .xy-articles-head {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .listbox .e2 li {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .zd23e1thumb-list,
    .zd23e1thumb-related {
        height: 72px !important;
    }

    .zd23e1thumb-side {
        height: 50px !important;
    }

    .zd23e1thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
        object-fit: cover;
    }

    aside.col-lg-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    .zd23e1thumb-home {
        height: 88px;
    }

    .zd23e1thumb-list,
    .zd23e1thumb-related {
        height: 64px !important;
    }

    .zd23e1thumb-cover {
        height: 150px !important;
    }

    .xy-stat-pill {
        padding: 0.75rem 0.5rem;
    }

    .zd23e1stat-number {
        font-size: 1.2rem;
    }
}
