/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 5px 0;
    background-color: #fff;
    color: #333;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo img {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.navbar.scrolled .logo {
    color: #333;
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-links a {
    color: #333;
    text-shadow: none;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-links a:hover {
    color: #6a5acd;
    text-shadow: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
    background-color: #333;
}

/* 移动端导航样式 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2789ff 0%, #a2d6ff 100%);
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-align: right;
    margin-bottom: 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    color: white;
    font-size: 1.2rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 10px;
    color: #f0e68c;
}

/* --- Banner 更深更饱和的渐变色 --- */
.banner {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(120deg, #2273ff 0%, #343af2 100%);
    background-size: 200% 200%;
    animation: bannerGradientMove 8s ease-in-out infinite;
}

@keyframes bannerGradientMove {
    0% {
        background-position: 0% 50%;
    }

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

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

.banner-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.banner h1 {
    font-family: 'Poppins', 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff6a00 0%, #ffebbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.banner-subtitle {
    font-family: 'Poppins', 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #ffffff 0%, #baf2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

/* 服务模块样式 */
.services {
    background-color: white;
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 auto;
    /* max-width: 1280px; */
}

.service-card {
    padding: 15px 20px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 四种卡片颜色 */
.card-1 {
    background-color: #4495FF;
}

.card-2 {
    background-color: #e6265a;
}

.card-3 {
    background-color: #38B955;
}

.card-4 {
    background-color: #9C2CE8;
}

/* 旗下站点样式 */
.sites {
    background-color: #f5f7fa;
}

.sites-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    /*gap: 30px;*/
    /*justify-items: center;*/
}

.site-card {
    width: 285px; /* 固定每个 site-card 的宽度为 300px */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.site-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.site-content {
    padding: 20px;
}

.site-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.site-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.site-logs {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.site-card .btn {
    width: 100%;
    background-color: #2a0fdf;
    color: white;
}

.site-card .btn:hover {
    background-color: #483d8b;
}

/* 关于我们样式 */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-form {
    font-size: 1.1rem;
    line-height: 1.8;
}
.profile {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #6a5acd 0%, #483d8b 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid white;
    background-color: #8a7ac5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-info {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.tech-tags span {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 联系我们样式 */
.contact {
    background-color: #f5f7fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a5acd;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-checkcode {
    display: flex;
    gap: 10px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    background-color: #6a5acd;
    color: white;
}

.contact-form .btn:hover {
    background-color: #483d8b;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    /* 移除 .sites-grid 的 2列设置 */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .banner h1 {
        font-size: 2.2rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 移除 .sites-grid 的 2列设置 */

    .btn-group {
        flex-direction: row;
    }

    .site-card {
      width: 100%;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 移除 .sites-grid 的 2列设置 */

    .banner-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .banner-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 15px;
    }

    .mobile-nav-content {
        width: 100%;
    }
}

#banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.banner-content {
    z-index: 2;
    position: relative;
}

.banner-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.18;
}

.shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    left: 10%;
    top: 20%;
}

.shape-circle.small {
    width: 40px;
    height: 40px;
    left: 80%;
    top: 60%;
    background: #fff;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid #fff;
    left: 70%;
    top: 15%;
    transform: rotate(-15deg);
}

.shape-triangle.small {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #fff;
    left: 20%;
    top: 70%;
    transform: rotate(10deg);
}

.shape-diamond {
    width: 60px;
    height: 60px;
    background: #fff;
    left: 50%;
    top: 75%;
    transform: rotate(45deg);
}

.shape-diamond.small {
    width: 30px;
    height: 30px;
    left: 60%;
    top: 35%;
    background: #fff;
    transform: rotate(45deg);
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.banner-shapes .shape {
    animation: shape-rotate 18s linear infinite;
}

.banner-shapes .shape.shape-triangle {
    animation-duration: 22s;
}

.banner-shapes .shape.shape-diamond {
    animation-duration: 26s;
}

.banner-shapes .shape.small {
    animation-duration: 14s;
}

@keyframes shape-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}