/* 全局页面样式设置 */
/* 设置页面基础样式，包括背景渐变动画和顶部内边距 */
body {
    margin: 0;
    padding-top: 80px; /* 为固定导航栏预留空间 */
    background: #0a0a0a;
    overflow-y: auto;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.bg-layer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #b3e0ff 0%, #1E90FF 50%, #b3e0ff 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 0%;
        background-size: 200% 200%;
    }
    50% {
        background-position: 100% 100%;
        background-size: 300% 300%;
    }
    100% {
        background-position: 0% 0%;
        background-size: 200% 200%;
    }
}

/* 主导航栏样式 */
/* 固定顶部的导航栏，包含品牌logo和导航链接 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%; /* 左右5%的内边距 */
    background-color: rgba(0, 0, 0, 0.7); /* 调整透明度 */
    z-index: 1000; /* 确保导航栏在最上层 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5); /* 底部阴影效果 */
    min-width: 320px;
    box-sizing: border-box;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid white;
    font-weight: bold;
    color: #1E90FF;
}

.brand {
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
}

/* 空白间距区域样式 */
.spacer {
    width: 100%;
    height: 200px;
    display: block;
    background: transparent;
    pointer-events: none;
}

/* 首页卡片布局样式 */
/* 使用CSS Grid布局的两列响应式卡片容器 */
.home-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    color: #ffffff;
    line-height: 1.8;
}

.home-content {
    width: 100%;
    max-width: 1200px;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}

.home-content .home-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 4;
    overflow-x: hidden;
    overflow-y: visible;
    max-height: none;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.home-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

.home-card {
    padding: 2rem;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    color: white;
    text-align: center;
    list-style: none;
    font-size: 2.2rem;
    font-weight: 900;
    width: 45%;
}

/* 平板设备专用媒体查询 */
@media (max-width: 1180px) {
    .home-container {
        grid-template-columns: 1fr;
        max-width: 95%;
    }

    .home-card {
        width: 100%;
        font-size: 1.6rem;
        padding: 1.5rem;
    }

    .main-nav {
        flex-direction: column;
        padding: 0.5rem 2%;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }

    .main-nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .brand {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .cooperation-btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .cooperation-btn:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(77, 171, 247, 0.4);
    }

    .spacer {
        display: none;
    }
}

.submit-button {
    margin-top: 0.5rem;
}

.home-card .card-description {
    font-size: 1.6rem;
    font-weight: 400;
    text-align: left;
}

.home-card:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

/* 页脚固定定位样式 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    text-align: center;
    z-index: 3;
    min-height: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content {
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.0rem;
    display: block;
    text-align: center;
    padding: 20px 0 0;
    order: 1;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 8px;
    order: 2;
    flex-wrap: wrap;
    width: 100%;
}

.footer-links a {
    color: #1E90FF;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

 

/* 合作按钮样式 */
.cooperation-btn {
    cursor: pointer;
    z-index: 4;
    background: linear-gradient(145deg, #1E90FF 0%, #4dabf7 50%, #1E90FF 100%);
    box-shadow: 0 4px 20px rgba(77, 171, 247, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.6rem;
    border: none;
    color: white;
    font-weight: 600;
    margin-bottom: 2rem;
}
 

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

@media (max-width: 1180px) {
    .back-to-top {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 40px solid white;
        bottom: 15px;
        right: 15px;
    }
}

.cooperation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(77, 171, 247, 0.6);
    background: linear-gradient(160deg, #4dabf7 0%, #1E90FF 60%, #4dabf7 100%);
}





.cooperation-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.6);
}

 
.about-container {
    max-width: 80%;
}
.home-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.footer-links a {
    color: #1E90FF;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.footer-links a:hover {
    background-color: rgba(30, 144, 255, 0.2);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #555;
}
@media (max-width: 1180px) {
    .cooperation-btn {
        position: relative;
        z-index: 2;
        margin-bottom: 80px;
    }
    .footer {
        z-index: 4;
        position: relative;
    }
 
 

    .home-cards {
        display: flex;
        flex-direction: column;
        padding-bottom: 120px;
    }

    /* 合作按钮卡片备用样式 */
    .cooperation-card {
        order: 2;
        background: rgba(30, 144, 255, 0.15);
        border: 1px solid rgba(30, 144, 255, 0.3);
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .cooperation-card .cooperation-btn {
        margin: 0 auto;
        width: 90%;
    }

    .home-card {
        width: 100%;
        margin: 0 0 1.5rem;
        padding: 1.2rem;
        transition: none;
    }

    .home-card:hover {
        transform: none;
        background: rgba(255,255,255,0.1);
    }

    .cooperation-btn:active {
        background: linear-gradient(160deg, #1E90FF 0%, #4dabf7 100%);
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.8);
    }
}

/* 移除原有媒体查询规则 */
@import url('desktop.css') screen and (min-width: 769px);
@import url('mobile.css') screen and (max-width: 768px);
