/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
    min-height: 100vh;
}

/* 容器优化 */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

/* 通用卡片样式 */
.section-card {
    background-color: #fff;
    padding: 45px 30px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* 公告模块专属样式 - 红色字体+醒目布局 */
.notice-section {
    padding: 20px 30px;
    background-color: #fff8f8;
    border-left: 4px solid #e6162d;
    display: flex;
    align-items: center;
    gap: 15px;
}
.notice-icon {
    font-size: 24px;
    color: #e6162d;
    flex-shrink: 0;
}
.notice-text {
    font-size: 18px;
    color: #e6162d;
    font-weight: 500;
    line-height: 1.8;
}

/* 1. 头部介绍模块 */
.app-header {
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.app-logo {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05);
}

.app-desc {
    flex: 1;
    min-width: 300px;
}

.app-desc h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.app-desc h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.app-desc p {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* 2. 下载模块 */
.download-title,
.screenshot-title,
.contact-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 35px;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-bottom: 18px;
}

.download-title::after,
.screenshot-title::after,
.contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.download-card {
    text-align: center;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #f5f5f5;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card-img {
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.download-card:hover .card-img {
    transform: rotate(5deg) scale(1.1);
}

.card-desc {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
}

.card-env {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

/* 下载按钮和悬浮窗口样式 */
.main-download-btn {
    position: relative;
    padding: 12px 25px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
}

.main-download-btn:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.download-popup {
    position: absolute;
    top: -140px; /* 调整弹窗位置，适配3个按钮 */
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 15px; /* 微调内边距 */
    display: none;
    z-index: 100;
    border: 1px solid #f0f0f0;
}

/* 弹窗小三角 */
.download-popup::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transform: translateX(-50%) rotate(45deg);
}

.main-download-btn:hover .download-popup {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 下载弹窗按钮样式（统一适配2/3个按钮） */
.popup-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 8px; /* 微调间距，适配3个按钮 */
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 第二个按钮样式 */
.popup-btn:nth-child(2) {
    background-color: #e74c3c;
}

/* 第三个按钮样式（新增） */
.popup-btn:nth-child(3) {
    background-color: #f39c12; /* 橙色区分第三个按钮 */
    margin-bottom: 0; /* 最后一个按钮取消下外边距 */
}

/* 修复2个按钮时最后一个的下外边距 */
.popup-btn:last-child {
    margin-bottom: 0;
}

.popup-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 3. 截图模块 - 横向滚动缩略图 */
.screenshot-grid {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行，实现横向排列 */
    gap: 20px; /* 缩略图间距 */
    overflow-x: auto; /* 横向滚动 */
    padding: 10px 0 20px; /* 上下内边距，避免滚动条遮挡 */
    scroll-behavior: smooth; /* 滚动顺滑 */
    -ms-overflow-style: none; /* 隐藏IE/Edge滚动条 */
    scrollbar-width: none; /* 隐藏Firefox滚动条 */
}

/* 隐藏Chrome/Safari滚动条 */
.screenshot-grid::-webkit-scrollbar {
    display: none;
}

/* 统一截图缩略图尺寸（竖图比例，视觉整齐） */
.screenshot-img {
    width: 220px; /* 固定缩略图宽度 */
    height: 400px; /* 固定缩略图高度（竖图比例） */
    flex-shrink: 0; /* 禁止缩略图收缩 */
    object-fit: cover; /* 图片填充容器，保持比例 */
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 5px solid #fff;
    cursor: zoom-in; /* 鼠标悬浮显示放大光标 */
}

/* 缩略图悬浮效果 */
.screenshot-img:hover {
    transform: scale(1.05); /* 悬浮轻微放大 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 截图放大预览遮罩层 */
.img-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

/* 放大后的原图样式（显示原始尺寸） */
.preview-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    /* 移除固定尺寸，显示原图 */
    width: auto;
    height: auto;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e6162d;
}

/* 4. 联系方式模块 */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3498db;
    cursor: pointer;
    font-size: 19px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 10px;
    flex-direction: column;
    width: 80px;
    text-align: center;
    position: relative;
}

.contact-item:hover {
    color: #2980b9;
    background-color: #f0f8ff;
    transform: translateY(-5px);
}

/* Font Awesome图标样式 */
.contact-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: block;
}

/* 不同平台图标配色 */
.icon-weibo { color: #e6162d; }
.icon-email { color: #ea4335; }
.icon-qq { color: #12b7f5; }
.icon-wechat { color: #07c160; }
.icon-telegram { color: #26a5e4; }

.contact-item:hover .contact-icon {
    transform: rotate(10deg) scale(1.2);
}

.contact-text {
    font-size: 16px;
    font-weight: 500;
}

/* 联系方式悬浮弹窗样式 */
.contact-popup {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 15px;
    display: none;
    z-index: 99;
    border: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* 联系方式弹窗小三角 */
.contact-popup::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transform: translateX(-50%) rotate(45deg);
}

.contact-item:hover .contact-popup {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 5. 底栏 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 40px 25px;
    margin-top: 30px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.footer p {
    margin-bottom: 12px;
    font-size: 15px;
}

.footer .copyright {
    font-size: 13px;
    color: #bbb;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .contact-links {
        gap: 40px;
    }
    .download-grid {
        gap: 25px;
    }
    /* 移动端缩略图尺寸调整 */
    .screenshot-img {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px 0;
    }
    .container {
        padding: 0 20px;
    }
    .header-content {
        justify-content: center;
        text-align: center;
        gap: 30px;
    }
    .app-desc h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    /* 公告模块移动端适配 */
    .notice-section {
        padding: 15px 20px;
        gap: 10px;
    }
    .notice-icon {
        font-size: 20px;
    }
    .notice-text {
        font-size: 16px;
    }
    .contact-links {
        gap: 30px;
    }
    .contact-item {
        width: 70px;
        font-size: 17px;
    }
    .contact-icon {
        font-size: 28px;
    }
    .contact-popup {
        width: 180px;
        font-size: 13px;
    }
    .section-card {
        padding: 35px 20px;
        margin: 20px 0;
    }
    /* 小屏缩略图尺寸 */
    .screenshot-img {
        width: 150px;
        height: 280px;
    }
    /* 移动端下载弹窗位置微调 */
    .download-popup {
        top: -130px;
        width: 200px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .download-title,
    .screenshot-title,
    .contact-title {
        font-size: 22px;
    }
    /* 公告模块小屏适配 */
    .notice-text {
        font-size: 14px;
    }
    .contact-item {
        width: 60px;
        font-size: 15px;
        padding: 10px 15px;
    }
    .contact-icon {
        font-size: 24px;
    }
    .contact-popup {
        width: 160px;
        padding: 10px;
    }
    .app-logo {
        width: 110px;
        height: 110px;
    }
    /* 超小屏缩略图尺寸 */
    .screenshot-img {
        width: 120px;
        height: 220px;
    }
    /* 放大预览关闭按钮小屏适配 */
    .close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    /* 超小屏下载弹窗 */
    .download-popup {
        top: -120px;
        width: 180px;
    }
    .popup-btn {
        font-size: 14px;
        padding: 8px 0;
    }
}