/* === 全局样式 === */
body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

/* === 背景图片样式 === */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -999;
}

/* === 遮罩透明效果 === */
.shade {
    width: 100%;
    height: 100vh;
    position: fixed;
    background-color: #f3f3f3;
    opacity: 0.3;
    z-index: -998;
}

/* === 页头（Header）样式 === */
header {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    position: relative;
    z-index: 1000;
}

header .logo {
    margin-left: 1rem;
}

header .logo img {
    height: 3rem;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

header .logo img:hover {
    transform: scale(1.1);
}

header .nav {
    margin-right: 3rem;
}

header .nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

header .nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

header .nav ul li a:hover::after {
    opacity: 1;
}

/* === 主标题区域（Hero）样式 === */
.hero {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    color: darkred;
    min-width: 300px;
    margin-left: 10rem;
    margin-top: 5rem;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-content .download-btn {
    background: linear-gradient(270deg, #3498db, #9b59b6, #e74c3c);
    background-size: 600% 600%;
    animation: gradient 5s infinite;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero-content .download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #2980b9;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
}

.hero-image img {
    max-width: 50%;
    height: auto;
}

/* === 渐变动画 === */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === 模态窗口（下载提示和联系提示）样式 === */
/* 下载提示窗口 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.download-modal .modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    height: auto;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.download-modal .modal-content p {
    font-weight: bold;
    font-size: 1.3rem;
    margin-block-end: 3rem;
}

.download-modal .close-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4d4f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-modal .close-modal:hover {
    background-color: #e03133;
}

/* 联系提示窗口 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.contact-modal .modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: start;
    width: 80%;
    height: auto;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.contact-modal .modal-content p {
    font-weight: bold;
    font-size: 1.3rem;
    margin-block: 0.6rem;
}

.contact-modal .close-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4d4f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-modal .close-modal:hover {
    background-color: #e03133;
}

.contact-modal .contact-image {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.contact-modal .contact-image img {
    width: 100%;
}

/* === 特性（Features）样式 === */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 33%;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item img {
    width: 50px;
}

.feature-item h3 {
    font-size: 20px;
    margin-block: 1rem;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* === 页脚（Footer）样式 === */
.site-footer {
    color: #343a40;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.widget {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.icp-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
}

.icp-item img {
    vertical-align: text-bottom;
    width: 18px;
    margin-right: 5px;
}

.icp-item span {
    font-size: 0.9em;
    color: #666;
}

.social-media {
    text-align: center;
    margin-top: 2rem;
}

.social-media a {
    color: #3498db;
    font-size: 1.2em;
    margin: 0 1rem;
}

.payment-icons img {
    max-width: 100%;
    height: auto;
}

.social-media a:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.icp-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    opacity: 0;
    transition: all 0.3s ease;
}

.icp-item:hover::before {
    opacity: 1;
}

/* === 回顶按钮样式 === */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* 控制按钮的显示和隐藏 */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.scrolled .back-to-top {
    opacity: 1;
    visibility: visible;
}

/* === 菜单切换按钮（Menu Toggle） === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 1rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 5px 0;
}

.nav-collapse .back-btn {
    display: none;
}

/* === 媒体查询（Media Queries） === */
@media (max-width: 800px) {

    /* 主标题区域调整 */
    .hero-content {
        margin-left: 1rem;
        margin-top: 1rem;
    }

    /* 特性区域调整 */
    .feature-item {
        width: 90%;
    }

    /* 容器和页脚调整 */
    .container {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .social-media {
        margin-top: 1rem;
    }

    .payment-icons {
        text-align: center;
    }

    .site-footer {
        border-radius: 0;
        padding: 2rem 0;
    }

    .widget {
        border-radius: 0;
        box-shadow: none;
        padding: 0.8rem 2rem;
    }

    /* 导航菜单调整 */
    .menu-toggle {
        display: block;
    }

    .nav-collapse {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f3f3f3;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        right: 0;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-collapse ul {
        gap: 10px;
    }

    .nav-collapse ul li a {
        display: block;
        padding: 0.3rem 0;
    }

    .nav-collapse .back-btn {
        display: block;
        margin-left: auto;
        padding-right: 2rem;
    }
}