/* 蘑菇加速器官网 — 全新主题：墨绿 + 琥珀 */
:root {
    --primary: #1a6b5c;
    --primary-dark: #0f4a40;
    --primary-light: #e8f5f2;
    --accent: #d97706;
    --accent-hover: #b45309;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f4f7f6;
    --surface: #ffffff;
    --border: #d1e0dc;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 4px 24px rgba(15, 74, 64, 0.08);
    --shadow-hover: 0 8px 32px rgba(15, 74, 64, 0.12);
    --transition: 0.25s ease;
    --section-pad: clamp(3rem, 6vw, 5rem);
    --container-max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", 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(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* —— 导航 —— */
.z56d46navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z56d46navbar-brand img {
    height: 42px;
    width: auto;
}

.z56d46nav-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);
}

.z56d46nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(26, 107, 92, 0.25);
}

@media (max-width: 991px) {
    .z56d46navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z56d46navbar .nav-link {
        padding: 0.5rem 0.25rem !important;
    }
}

/* —— 通用板块 —— */
.z56d46section {
    padding: var(--section-pad) 0;
}

.z56d46section-head {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 640px;
}

.z56d46section-head h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.z56d46section-head p,
.z56d46section-head.z56d46text-center {
    margin-left: auto;
    margin-right: auto;
}

.z56d46section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.z56d46section-head.z56d46text-center {
    text-align: center;
    max-width: 560px;
}

.z56d46panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    word-wrap: break-word;
}

.z56d46panel:hover {
    box-shadow: var(--shadow-hover);
    border-color: #b8d4cc;
}

.z56d46muted {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* —— 按钮 —— */
.z56d46btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.z56d46btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff !important;
}

.z56d46btn-accent:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.z56d46btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.z56d46btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.z56d46btn-outline-sm {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
    border-radius: 8px;
}

.z56d46btn-outline-sm:hover {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
}

/* —— 英雄区 —— */
.z56d46hero-section {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #2d8f7a 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.z56d46hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.z56d46hero-content {
    position: relative;
    z-index: 1;
}

.z56d46hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.z56d46hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.z56d46hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin: 0 0 1.75rem;
    max-width: 540px;
}

.z56d46hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z56d46hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z56d46hero-image {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.z56d46hero-image-shadow {
    display: none;
}

@media (max-width: 767px) {
    .z56d46hero-buttons {
        flex-direction: column;
    }

    .z56d46hero-buttons .z56d46btn {
        width: 100%;
    }

    .z56d46hero-visual {
        margin-top: 0.5rem;
    }

    .z56d46hero-image {
        max-width: 220px;
    }
}

/* —— 特点区 —— */
.z56d46features-section {
    background: var(--surface);
}

.z56d46feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0.75rem 0 0.5rem;
}

.z56d46feature-card p {
    margin: 0;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.z56d46panel-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
}

.z56d46intro-block {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.z56d46intro-block p {
    margin: 0;
}

/* —— 统计 —— */
.z56d46stats-section {
    background: var(--primary-dark);
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.z56d46stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.z56d46stat-number {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.z56d46stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
}

/* —— 下载区 —— */
.z56d46download-section {
    background: var(--bg);
}

.z56d46download-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.z56d46download-card {
    display: flex;
    flex-direction: column;
}

.z56d46download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.z56d46download-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--primary-dark);
}

.z56d46platform-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;
}

.z56d46android-icon {
    background: linear-gradient(135deg, #3ddc84, #2a9d5c);
}

.z56d46pc-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.z56d46download-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.z56d46download-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.z56d46download-info li:last-child {
    border-bottom: none;
}

.z56d46download-info i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.z56d46download-action {
    margin-top: auto;
}

.z56d46download-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 1.75rem 0 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* —— 安全 —— */
.z56d46security-section {
    background: var(--surface);
}

.z56d46security-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.z56d46security-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
}

.z56d46security-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.z56d46security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
}

.z56d46security-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* —— FAQ —— */
.z56d46faq-section {
    background: var(--bg);
}

.z56d46faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.6rem;
}

.z56d46faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— 文章区 —— */
.z56d46article-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.z56d46article-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.z56d46article-thumb-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.z56d46thumb-home {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
}

.z56d46article-card-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z56d46article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.z56d46article-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.z56d46article-card h3 a {
    color: var(--text);
}

.z56d46article-card h3 a:hover {
    color: var(--primary);
}

/* —— 页脚 —— */
.z56d46footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z56d46footer-desc {
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
    line-height: 1.6;
    opacity: 0.85;
}

.z56d46footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.z56d46footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z56d46footer-links li {
    margin-bottom: 0.5rem;
}

.z56d46footer-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.z56d46footer-link:hover {
    color: var(--accent);
}

.z56d46friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z56d46friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.z56d46friend-links a:hover {
    color: #fff;
}

.z56d46footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.z56d46footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
}

.z56d46footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 767px) {
    .z56d46footer .row > [class*="col-"] {
        text-align: center;
    }

    .z56d46footer-brand {
        display: flex;
        justify-content: center;
    }

    .z56d46friend-links {
        justify-content: center;
    }
}

/* —— 列表页 / 内页 —— */
.z56d46page-section {
    padding: clamp(2rem, 5vw, 3rem) 0;
    min-height: 50vh;
}

.z56d46page-section .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.z56d46page-section .card-body {
    padding: 1.25rem 1.5rem;
}

.z56d46page-section aside .card {
    margin-bottom: 1rem;
}

.z56d46page-section aside .card-body {
    padding: 1rem 1.25rem;
}

.z56d46page-section aside h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.z56d46article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z56d46article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.z56d46thumb-list,
.z56d46thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z56d46thumb-side-wrap {
    width: 72px;
    flex: 0 0 72px;
}

.z56d46thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z56d46thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.z56d46meta-tags .z56d46tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.pagebar .pagelist,
.zzpages .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 覆盖：统一边框，避免挤出 */
.card.shadow-sm {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
}

.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;
}

/* 移动端专项 */
@media (max-width: 767px) {
    .z56d46navbar-brand img {
        height: 36px;
    }

    .z56d46download-card-head {
        flex-direction: row;
    }

    .z56d46panel {
        padding: 1.15rem 1.2rem;
    }

    .z56d46stat-item {
        min-height: 88px;
        padding: 0.75rem 0.35rem;
    }

    .z56d46stat-number {
        font-size: 1.5rem;
    }

    .z56d46thumb-home {
        height: 96px;
    }

    .z56d46article-card h3 {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .z56d46page-section .card-body {
        padding: 1rem;
    }

    .z56d46thumb-list,
    .z56d46thumb-related {
        height: 72px;
    }

    .z56d46thumb-side {
        height: 50px;
    }

    .z56d46thumb-cover {
        max-height: 200px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .listbox .e2 li p {
        font-size: 0.875rem;
    }

    .z56d46download-action .z56d46btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .z56d46section-head h2 {
        font-size: 1.35rem;
    }

    .z56d46thumb-home {
        height: 88px;
    }

    .z56d46thumb-list,
    .z56d46thumb-related {
        height: 64px;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
        font-size: 0.9rem;
    }
}

/* 兼容旧类名（列表/内页仍引用） */
.z56d46feature-card,
.z56d46feature-icon,
.z56d46certificate-card,
.z56d46security-features,
.z56d46guide-item {
    /* 由 .z56d46panel 接管首页样式 */
}

.z56d46py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-light {
    background: var(--bg) !important;
}
