/* 西柚加速器官网 - 全新主题 */
:root {
    --xy-primary: #5B3E96;
    --xy-primary-dark: #3D2868;
    --xy-accent: #FF6F4E;
    --xy-accent-hover: #E85A3A;
    --xy-mint: #2A9D8F;
    --xy-bg: #F7F5F2;
    --xy-surface: #FFFFFF;
    --xy-text: #2C2A32;
    --xy-text-muted: #6B6578;
    --xy-border: #E8E4DF;
    --xy-radius: 14px;
    --xy-radius-sm: 10px;
    --xy-shadow: 0 8px 28px rgba(91, 62, 150, 0.08);
    --xy-shadow-hover: 0 14px 36px rgba(91, 62, 150, 0.14);
    --xy-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --xy-container: min(1140px, 100% - 2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.xy-site,
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--xy-text);
    line-height: 1.65;
    background: var(--xy-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xy-primary);
    text-decoration: none;
    transition: color var(--xy-transition);
}

a:hover {
    color: var(--xy-accent);
}

/* 容器 */
.z4a668container.container {
    max-width: var(--xy-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* 导航 */
.z4a668navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xy-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z4a668navbar .navbar-toggler {
    border: 1px solid var(--xy-border);
    padding: 0.35rem 0.55rem;
}

.z4a668navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(91, 62, 150, 0.2);
}

.z4a668navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 42, 50, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.z4a668navbar-brand img {
    height: 42px;
    width: auto;
    max-height: 42px;
}

.z4a668nav-link {
    color: var(--xy-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--xy-transition), color var(--xy-transition);
}

.z4a668nav-link:hover {
    color: var(--xy-primary) !important;
    background: rgba(91, 62, 150, 0.06);
}

.z4a668navbar .navbar-collapse {
    background: var(--xy-surface);
    border-radius: var(--xy-radius-sm);
}

@media (min-width: 992px) {
    .z4a668navbar .navbar-collapse {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 991px) {
    .z4a668navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--xy-border);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z4a668navbar .navbar-nav .nav-link {
        padding: 0.55rem 0.5rem !important;
    }
}

/* 英雄区 */
.z4a668hero-section {
    background: linear-gradient(145deg, var(--xy-primary-dark) 0%, var(--xy-primary) 55%, #7B5BB8 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.z4a668hero-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 111, 78, 0.25) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.z4a668hero-content {
    position: relative;
    z-index: 1;
}

.z4a668hero-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.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.z4a668hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z4a668hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 36em;
}

.z4a668hero-subtitle strong {
    color: #FFD4C8;
    font-weight: 600;
}

.z4a668hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z4a668hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.z4a668hero-image {
    max-width: min(280px, 85vw);
    border-radius: var(--xy-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

/* 按钮 */
.z4a668btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform var(--xy-transition), box-shadow var(--xy-transition), background var(--xy-transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.z4a668btn:hover {
    transform: translateY(-2px);
}

.z4a668btn-accent {
    background: var(--xy-accent);
    color: #fff;
    border-color: var(--xy-accent);
}

.z4a668btn-accent:hover {
    background: var(--xy-accent-hover);
    border-color: var(--xy-accent-hover);
    color: #fff;
}

.z4a668btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.z4a668btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.z4a668btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: transparent;
}

.z4a668btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.z4a668btn-primary {
    background: var(--xy-primary);
    color: #fff;
    border-color: var(--xy-primary);
    width: 100%;
}

.z4a668btn-primary:hover {
    background: var(--xy-primary-dark);
    border-color: var(--xy-primary-dark);
    color: #fff;
}

.z4a668btn-outline {
    background: transparent;
    color: var(--xy-primary);
    border-color: var(--xy-primary);
}

.z4a668btn-outline:hover {
    background: var(--xy-primary);
    color: #fff;
}

/* 通用区块 */
.z4a668section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.z4a668section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.z4a668section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--xy-primary-dark);
    margin-bottom: 0.75rem;
}

.z4a668section-head p {
    color: var(--xy-text-muted);
    margin: 0;
}

.z4a668section-head-light h2,
.z4a668section-head-light p {
    color: #fff;
}

/* Bento 特点区 */
.z4a668features-section {
    background: var(--xy-surface);
}

.z4a668bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.z4a668bento-card {
    background: var(--xy-bg);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.35rem 1.5rem;
    transition: box-shadow var(--xy-transition), border-color var(--xy-transition);
    overflow: hidden;
}

.z4a668bento-card:hover {
    border-color: rgba(91, 62, 150, 0.25);
    box-shadow: var(--xy-shadow);
}

.z4a668bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(91, 62, 150, 0.06) 0%, rgba(42, 157, 143, 0.06) 100%);
}

.z4a668bento-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--xy-accent);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.z4a668bento-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--xy-primary-dark);
}

.z4a668bento-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--xy-text-muted);
}

@media (max-width: 575px) {
    .z4a668bento-grid {
        grid-template-columns: 1fr;
    }

    .z4a668bento-large {
        grid-column: span 1;
    }
}

/* 数据条 */
.z4a668stats-section {
    background: linear-gradient(90deg, var(--xy-mint), #3CB8A8);
    padding: 2rem 0;
}

.z4a668stat-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z4a668stat-item {
    text-align: center;
    color: #fff;
    padding: 0.5rem;
}

.z4a668stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.z4a668stat-label {
    font-size: 0.88rem;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .z4a668stat-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* 下载区 */
.z4a668download-section {
    background: var(--xy-bg);
}

.z4a668download-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.z4a668download-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--xy-primary-dark);
    margin-bottom: 0.75rem;
}

.z4a668download-subtitle {
    color: var(--xy-text-muted);
    margin: 0;
}

.z4a668download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.z4a668download-card {
    background: var(--xy-surface);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    transition: box-shadow var(--xy-transition);
}

.z4a668download-card:hover {
    box-shadow: var(--xy-shadow-hover);
}

.z4a668download-card h3 {
    font-size: 1.1rem;
    margin: 0.75rem 0 0.35rem;
    color: var(--xy-primary-dark);
}

.z4a668card-desc {
    font-size: 0.88rem;
    color: var(--xy-text-muted);
    margin: 0 0 1rem;
    flex-grow: 0;
}

.z4a668platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.z4a668android-icon {
    background: linear-gradient(135deg, #3DDC84, #2BB673);
}

.z4a668ios-icon {
    background: linear-gradient(135deg, var(--xy-primary), var(--xy-primary-dark));
}

.z4a668download-info {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0.85rem;
    background: var(--xy-bg);
    border-radius: var(--xy-radius-sm);
    flex-grow: 1;
}

.z4a668info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--xy-text-muted);
}

.z4a668info-item:last-child {
    margin-bottom: 0;
}

.z4a668info-item i {
    color: var(--xy-mint);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z4a668download-action {
    margin-top: auto;
    padding-top: 0.25rem;
}

@media (max-width: 991px) {
    .z4a668download-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* 知识区 */
.z4a668knowledge-section {
    background: var(--xy-surface);
}

.z4a668knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.z4a668knowledge-card {
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.35rem;
    background: var(--xy-bg);
    height: 100%;
}

.z4a668knowledge-card h3 {
    font-size: 1rem;
    color: var(--xy-primary);
    margin: 0 0 0.65rem;
}

.z4a668knowledge-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--xy-text-muted);
}

@media (max-width: 991px) {
    .z4a668knowledge-grid {
        grid-template-columns: 1fr;
    }
}

/* 安全区 */
.z4a668security-section {
    background: linear-gradient(160deg, var(--xy-primary-dark), var(--xy-primary));
    color: #fff;
}

.z4a668security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z4a668security-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--xy-radius);
    padding: 1.25rem;
    height: 100%;
    overflow: hidden;
}

.z4a668security-card h3 {
    font-size: 1rem;
    text-align: center;
    margin: 0.65rem 0 0.85rem;
    color: #fff;
}

.z4a668security-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--xy-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.1rem;
}

.z4a668security-features {
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--xy-radius-sm);
    padding: 0.85rem;
}

.z4a668security-section .z4a668feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

.z4a668security-section .z4a668feature-item:last-child {
    margin-bottom: 0;
}

.z4a668security-section .z4a668feature-item i {
    color: var(--xy-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

@media (max-width: 991px) {
    .z4a668security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .z4a668security-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.z4a668faq-section {
    background: var(--xy-bg);
}

.z4a668faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.z4a668faq-card {
    background: var(--xy-surface);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
}

.z4a668faq-card h3 {
    font-size: 0.98rem;
    color: var(--xy-primary-dark);
    margin: 0 0 0.5rem;
}

.z4a668faq-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--xy-text-muted);
}

@media (max-width: 767px) {
    .z4a668faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 文章区 */
.z4a668article-section {
    background: var(--xy-surface);
    border-top: 1px solid var(--xy-border);
}

.z4a668article-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.z4a668article-bar h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--xy-primary-dark);
}

.z4a668article-card {
    border: 1px solid var(--xy-border) !important;
    border-radius: var(--xy-radius-sm) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: box-shadow var(--xy-transition);
}

.z4a668article-card:hover {
    box-shadow: var(--xy-shadow) !important;
}

.z4a668thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.z4a668article-card .card-body {
    padding: 0.75rem;
}

.z4a668article-meta {
    margin-bottom: 0.35rem;
}

.z4a668article-card h3,
.z4a668article-card .h6 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.z4a668article-card h3 a {
    color: var(--xy-text);
}

.z4a668article-card h3 a:hover {
    color: var(--xy-primary);
}

/* 页脚 */
.z4a668footer {
    background: #2C2838;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z4a668footer-desc {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.z4a668footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z4a668footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z4a668footer-links li {
    margin-bottom: 0.5rem;
}

.z4a668footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.z4a668footer-link:hover {
    color: var(--xy-accent);
}

.z4a668friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.z4a668friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.z4a668friend-links a:hover {
    color: var(--xy-accent);
}

.z4a668footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
}

.z4a668footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.z4a668footer-bottom a:hover {
    color: var(--xy-accent);
}

.z4a668footer-bottom p {
    margin: 0.35rem 0;
}

/* 列表页 / 内页 */
.z4a668page-main {
    padding: 2rem 0 3rem;
    background: var(--xy-bg);
    min-height: 50vh;
}

.z4a668page-main .card {
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    overflow: hidden;
    box-shadow: var(--xy-shadow) !important;
}

.z4a668page-main .card-body {
    padding: 1.25rem;
}

.z4a668page-header h1 {
    color: var(--xy-primary-dark);
    font-size: 1.5rem;
}

.z4a668article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z4a668article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--xy-radius-sm);
}

.z4a668thumb-list,
.z4a668thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--xy-radius-sm);
}

.z4a668thumb-side {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--xy-radius-sm);
}

.z4a668side-thumb-link {
    display: block;
    width: 72px;
    flex: 0 0 72px;
}

.z4a668thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--xy-radius);
}

.z4a668meta-tags .z4a668tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--xy-bg);
    border: 1px solid var(--xy-border);
    border-radius: 999px;
    font-size: 0.85rem;
}

/* 分页 */
.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;
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 移动端英雄区 */
@media (max-width: 767px) {
    .z4a668hero-buttons {
        flex-direction: column;
    }

    .z4a668hero-buttons .z4a668btn {
        width: 100%;
    }

    .z4a668hero-visual {
        margin-top: 0.5rem;
    }

    .z4a668navbar-brand img {
        height: 36px;
    }

    .z4a668article-grid.row-cols-lg-5 {
        --bs-columns: 2;
    }

    #article .z4a668thumb-home,
    .z4a668thumb-home {
        height: 96px;
    }

    .z4a668thumb-list,
    .z4a668thumb-related {
        height: 72px;
    }

    .z4a668thumb-side {
        height: 50px;
    }

    .z4a668thumb-cover {
        height: 170px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }

    .z4a668page-main .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .z4a668container.container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .z4a668download-card {
        padding: 1.15rem;
    }

    .z4a668thumb-home {
        height: 88px;
    }

    .z4a668thumb-list,
    .z4a668thumb-related {
        height: 64px;
    }

    .z4a668thumb-cover {
        height: 150px;
    }

    .z4a668footer .row > [class*="col-"] {
        text-align: center;
    }

    .z4a668friend-links {
        justify-content: center;
    }
}

/* 防止边框溢出 */
.z4a668bento-card,
.z4a668download-card,
.z4a668security-card,
.z4a668faq-card,
.z4a668knowledge-card,
.z4a668article-card {
    min-width: 0;
}

/* Bootstrap 覆盖 */
.bg-light {
    background-color: var(--xy-bg) !important;
}

.text-muted {
    color: var(--xy-text-muted) !important;
}

.shadow-sm {
    box-shadow: var(--xy-shadow) !important;
}
