/* ========== 全局公共样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 标准粘性页脚布局 —— 核心修复代码（所有屏幕尺寸页脚都在底部） */
html, body {
    height: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;

    /* 背景 */
    background-image: url("https://s41.ax1x.com/2026/04/02/peGqBTg.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    border-radius: 50px;
    transition: all 0.3s ease;
    /* 强制导航栏不换行，桌面端一行 */
    white-space: nowrap;
    overflow: hidden;
}
.navbar:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.7);
    border-color: rgba(76, 175, 80, 0.6);
}
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 8px 15px;
    /* 强制导航栏一行，不换行 */
    flex-wrap: nowrap;
}
.nav-links a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    /* 强制文字不换行 */
    white-space: nowrap;
}
.nav-links a.active,
.nav-links a:hover {
    background: rgba(76, 175, 80, 0.5);
    color: #fff;
    transform: scale(1.08);
}

/* ========== 页面内容容器 ========== */
.page-container {
    flex: 1 0 auto; /* 核心：自动填充空间，把页脚挤到底部 */
    padding-top: 120px;
    padding-bottom: 30px;
}
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* 首页内容居中，和设计一致 */
}

/* Logo自适应样式（所有屏幕自动缩放） */
.logo {
    max-width: 90%;
    height: auto;
    margin: 0 auto 30px;
}

/* 卡片样式（保留原有设计） */
.content-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.7);
    border-color: rgba(76, 175, 80, 0.6);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    text-decoration: none;
    background: rgba(76, 175, 80, 0.6);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    margin: 15px 0;
}
.btn:hover {
    background: rgba(76, 175, 80, 0.9);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

/* ========== 页脚（永久固定底部，不遮挡、不上浮） ========== */
.footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 -5px 15px rgba(76, 175, 80, 0.2);
    padding: 30px 5%;
    margin-top: auto; /* 核心粘性布局：页脚永远在底部 */
    flex-shrink: 0; /* 禁止页脚被压缩 */
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.footer-column {
    flex: 1;
    min-width: 200px;
}
.footer-column.left .footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}
.footer-column.left .footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}
.footer-column.mid h4 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}
.footer-column.mid p {
    line-height: 1.8;
    margin: 0;
}
.footer-column.right {
    text-align: right;
}
.footer-column.right .copyright {
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 13px;
}
.footer-column.right .disclaimer {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* QQ链接样式 */
.footer-link {
    color: #4caf50;
    text-decoration: none;
}
.footer-link:hover {
    color: #81c784;
    text-decoration: underline;
}

/* ================================== */
/* 🔥 平板端专属适配 (768px ≤ 宽度 ≤ 1024px) */
/* ================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 1. 导航栏平板适配：缩小字体/间距，保持一行 */
    .navbar {
        top: 20px;
        width: 95%;
    }
    .nav-links {
        gap: 4px;
        padding: 6px 10px;
        justify-content: center;
    }
    .nav-links a {
        padding: 8px 12px;
        font-size: 15px;
    }

    /* 2. 内容容器平板适配：调整宽度/内边距 */
    .page-content {
        max-width: 95%;
        padding: 0 15px;
    }
    .page-container {
        padding-top: 100px;
        padding-bottom: 20px;
    }

    /* 3. Logo平板适配：自动缩小 */
    .logo {
        max-width: 85%;
    }

    /* 4. 按钮平板适配：缩小尺寸 */
    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    /* 5. 页脚平板适配：保持三列，优化间距 */
    .footer {
        padding: 25px 3%;
        gap: 20px;
    }
    .footer-column {
        min-width: 180px;
    }
}

/* ================================== */
/* 🔥 手机端专属适配 (宽度 < 768px) —— 核心修复所有问题 */
/* ================================== */
@media (max-width: 767px) {
    /* 1. 导航栏手机适配：横向可滚动，一行显示不挤爆 */
    .navbar {
        top: 15px;
        width: 95%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* 手机滚动丝滑 */
    }
    .nav-links {
        gap: 4px;
        padding: 6px 8px;
        flex-wrap: nowrap; /* 强制一行不换行 */
        justify-content: flex-start;
        overflow-x: auto;
    }
    .nav-links a {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap; /* 强制文字不换行 */
    }

    /* 2. 内容容器手机适配：全屏自适应，避免遮挡 */
    .page-content {
        max-width: 100%;
        padding: 0 15px;
    }
    .page-container {
        padding-top: 90px; /* 适配导航栏位置 */
        padding-bottom: 40px; /* 增加底部间距，防页脚遮挡 */
    }

    /* 3. Logo手机适配：自动缩小居中 */
    .logo {
        max-width: 95%;
        margin: 0 auto 20px;
    }

    /* 4. 文字大小手机适配：全局缩小，提升可读性 */
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    /* 5. 按钮手机适配：缩小尺寸，彻底解决遮挡 */
    .btn {
        padding: 10px 20px;
        font-size: 15px;
        margin: 12px 0;
    }

    /* 6. 页脚手机适配：堆叠成一列，间距充足 */
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 25px;
    }
    .footer-column {
        min-width: 100%;
        text-align: center !important;
    }
    .footer-column.right {
        text-align: center !important;
    }
}