/* 蘑菇加速器官网 - 单文件样式 */
:root {
    --brand: #6d28d9;
    --brand-dark: #4c1d95;
    --brand-light: #ede9fe;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --surface: #faf8ff;
    --surface-alt: #f3f0ff;
    --text: #1e1b2e;
    --text-muted: #5b5675;
    --border: #e4dff5;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 28px rgba(76, 29, 149, 0.08);
    --shadow-hover: 0 12px 32px rgba(76, 29, 149, 0.12);
    --section-y: clamp(3rem, 6vw, 5rem);
    --container-max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.mogu-site {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
    overflow-x: hidden;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

/* 导航 */
.z42a54navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z42a54navbar .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.z42a54navbar-brand img {
    height: 42px;
    width: auto;
}

.z42a54nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.z42a54nav-link:hover,
.z42a54nav-link.active {
    color: var(--brand) !important;
    background: var(--brand-light);
}

.z42a54container.container {
    max-width: var(--container-max);
}

/* 通用板块 */
.z42a54section {
    padding: var(--section-y) 0;
}

.z42a54section-head {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
}

.z42a54section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.65rem;
}

.z42a54section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.z42a54text-center {
    text-align: center;
}

/* 面板统一边框 */
.z42a54panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}

.z42a54panel:hover {
    border-color: #d4c9f7;
    box-shadow: var(--shadow-hover);
}

/* 英雄区 */
.z42a54hero-section {
    background: linear-gradient(128deg, var(--brand-dark) 0%, var(--brand) 48%, #7c3aed 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.z42a54hero-section::after {
    content: "";
    position: absolute;
    right: -8%;
    top: 10%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.z42a54hero-content {
    position: relative;
    z-index: 1;
}

.z42a54hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.z42a54hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z42a54hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    max-width: 36em;
    margin-bottom: 1.5rem;
}

.z42a54hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.z42a54hero-image {
    max-width: min(320px, 90%);
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.z42a54hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z42a54btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.z42a54btn-accent {
    background: var(--accent);
    color: #1e1b2e;
}

.z42a54btn-accent:hover {
    background: var(--accent-hover);
    color: #1e1b2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.z42a54btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.z42a54btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* 特点区 */
.z42a54features-section {
    background: var(--surface);
}

.z42a54panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.z42a54feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.z42a54feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.z42a54insight-strip {
    margin-top: 1.75rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.z42a54insight-strip p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 统计 */
.z42a54stats-section {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.z42a54stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z42a54stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
}

.z42a54stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
}

.z42a54stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

/* 下载区 */
.z42a54download-section {
    background: #fff;
}

.z42a54download-subtitle {
    color: var(--text-muted);
}

.z42a54dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.z42a54dl-head h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--brand-dark);
}

.z42a54dl-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.z42a54platform-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;
}

.z42a54android-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.z42a54ios-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.z42a54dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.z42a54dl-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.z42a54dl-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.z42a54download-action .z42a54btn {
    width: 100%;
}

/* 安全 */
.z42a54security-section {
    background: var(--surface-alt);
}

.z42a54security-card {
    text-align: center;
    padding: 1.25rem 1rem;
}

.z42a54security-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.z42a54security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.4rem;
}

.z42a54security-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* FAQ */
.z42a54faq-section {
    background: #fff;
}

.z42a54faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.z42a54faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/* 文章区 */
.z42a54article-section {
    background: var(--surface);
}

.z42a54article-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.z42a54article-bar h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.z42a54link-more {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid var(--brand);
    border-radius: 999px;
}

.z42a54link-more:hover {
    background: var(--brand);
    color: #fff;
}

.z42a54article-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
}

.z42a54article-thumb-wrap {
    display: block;
    overflow: hidden;
}

.z42a54thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.z42a54article-card .card-body {
    padding: 0.75rem !important;
}

.z42a54article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.z42a54article-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.z42a54article-title a {
    color: var(--text);
}

.z42a54article-title a:hover {
    color: var(--brand);
}

/* 页脚 */
.z42a54footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 1.5rem;
}

.z42a54footer-desc {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    opacity: 0.8;
    line-height: 1.6;
}

.z42a54footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.z42a54footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z42a54footer-links li {
    margin-bottom: 0.4rem;
}

.z42a54footer-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.z42a54footer-link:hover {
    color: var(--accent);
}

.z42a54friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.z42a54friend-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.z42a54friend-links a:hover {
    color: var(--accent);
}

.z42a54footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
}

.z42a54footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
}

.z42a54footer-bottom a:hover {
    color: var(--accent);
}

.z42a54footer-bottom p {
    margin: 0.35rem 0 0;
}

/* 列表页 / 内页 */
.z42a54page-main {
    padding: 2rem 0 3rem;
    background: var(--surface);
    min-height: 50vh;
}

.z42a54page-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.z42a54page-card .card-body {
    padding: 1.25rem;
}

.z42a54sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.z42a54sidebar-card .card-body {
    padding: 1.15rem;
}

.z42a54sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.z42a54article-content {
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z42a54article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.z42a54thumb-list,
.z42a54thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.z42a54thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.z42a54side-thumb {
    width: 72px;
    flex: 0 0 72px;
    display: block;
}

.z42a54thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.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;
}

/* 响应式 */
@media (max-width: 991px) {
    .z42a54stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-collapse {
        background: #fff;
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .z42a54navbar {
        padding: 0.5rem 0;
    }

    .z42a54navbar-brand img {
        height: 36px;
    }

    .z42a54hero-buttons {
        flex-direction: column;
    }

    .z42a54hero-buttons .z42a54btn {
        width: 100%;
    }

    .z42a54panel {
        padding: 1.1rem 1rem;
    }

    .z42a54dl-head {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .z42a54security-card {
        padding: 1rem 0.75rem;
    }

    .z42a54thumb-home {
        height: 96px;
    }

    .z42a54article-title {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .z42a54thumb-list,
    .z42a54thumb-related {
        height: 72px;
    }

    .z42a54thumb-side {
        height: 50px;
    }

    .z42a54thumb-cover {
        height: 170px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .z42a54page-card .card-body,
    .z42a54sidebar-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .z42a54stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .z42a54stat-item {
        padding: 0.75rem 0.35rem;
    }

    .z42a54stat-number {
        font-size: 1.35rem;
    }

    .z42a54insight-strip {
        padding: 1rem;
    }

    .z42a54thumb-home {
        height: 88px;
    }

    .z42a54thumb-list,
    .z42a54thumb-related {
        height: 64px;
    }

    .z42a54thumb-cover {
        height: 150px;
    }

    .z42a54footer .row > [class*="col-"] {
        text-align: center;
    }

    .z42a54friend-links {
        justify-content: center;
    }
}
