/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主视觉区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding-left: 10%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* QQ群聊按钮特殊样式 */
.qq-group-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0099cc 100%);
    color: white;
    margin: 25px 0;
    display: inline-block;
}

.qq-group-btn:hover {
    background: linear-gradient(135deg, #0099cc 0%, #0077aa 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(18, 183, 245, 0.4);
    color: white;
}

/* 旋转正方形效果 */
.rotating-square {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) rotate(0deg);
    animation: rotateSquare 16s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@keyframes rotateSquare {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 逆时针旋转正方形 */
.rotating-square-reverse {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    transform: translateY(-50%) rotate(0deg);
    animation: rotateSquareReverse 14s linear infinite;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

@keyframes rotateSquareReverse {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(-360deg);
    }
}

/* 内容区域通用样式 */
.section {
    padding: 100px 20px;
    width: 100%;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 2px;
}

/* 公司简介 */
.about {
    background: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 云服务模块 */
.cloud-service {
    position: relative;
    background: transparent;
    overflow: hidden;
    padding: 120px 20px;
}

.cloud-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cloud-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.cloud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.cloud-content-centered {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    text-align: center;
    color: #2c3e50;
    padding: 0 20px;
}

.cloud-text-centered {
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

.cloud-text-centered h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-shadow: none;
}

.cloud-text-centered p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    text-shadow: none;
}

.cloud-features-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    min-width: 55px;
    color: #3498db;
}

.feature-text h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-text p {
    font-size: 1rem;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* 云服务联系按钮 */
.cloud-contact-btn {
    margin-top: 30px;
    text-align: center;
}

.contact-cloud-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.contact-cloud-btn:hover {
    transform: scale(1.05);
}

/* 联系我们选项卡样式 */
.contact-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
}

.contact-card {
    width: 260px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.qq-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0099cc 100%);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    /* 确保悬停时不改变背景色和文字颜色 */
    text-decoration: none;
}

.qq-btn:hover {
    transform: scale(1.05);
    /* 移除可能导致变白的样式 */
    background: linear-gradient(135deg, #12b7f5 0%, #0099cc 100%) !important;
    color: white !important;
}

.contact-btn {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.deputy-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.deputy-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
    color: white !important;
}

/* 团队工作模块 */
.team-work {
    background: white;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.work-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin: 0 auto;
    max-width: 350px;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.work-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.work-card p {
    color: #666;
    line-height: 1.7;
}

/* 服务器画廊 */
.gallery {
    background: #f8f9fa;
    padding: 80px 0;
}

.gallery-scroll-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 20px 0;
    position: relative;
}

.gallery-scroll-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0) 5%, 
        rgba(248, 249, 250, 0) 95%, 
        rgba(248, 249, 250, 1) 100%);
    z-index: 10;
    pointer-events: none;
}

.gallery-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 0;
    width: max-content;
    animation: scrollLeft 120s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-scroll-wrapper:hover {
    animation-play-state: paused;
}

.gallery-scroll-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-scroll-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.scroll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-scroll-item:hover .scroll-img {
    transform: scale(1.1);
}

/* 进入服务器样式 */
.server-info {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.server-card {
    width: 400px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
}

.server-ip-container {
    margin-bottom: 25px;
}

.server-ip-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #2c3e50;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.server-card h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.server-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.server-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.server-btn:hover {
    transform: scale(1.05);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p, .footer-section a {
    color: #bbb;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: #2980b9;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 覆盖btn默认样式 - 提高优先级 */
.contact-card .qq-btn,
.contact-card .contact-btn,
.contact-card .deputy-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 高优先级按钮样式 */
.contact-card > .qq-btn,
.contact-card > .contact-btn,
.contact-card > .deputy-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0099cc 100%) !important;
    color: white !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.contact-card > .qq-btn:hover,
.contact-card > .contact-btn:hover,
.contact-card > .deputy-btn:hover {
    transform: scale(1.05) !important;
    background: inherit !important;
    color: inherit !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0;
        position: relative;
    }
    
    .nav-menu {
        position: static;
        margin-left: auto;
    }
    
    .hero {
        padding-left: 5%;
        justify-content: flex-start;
    }
    
    .rotating-square {
        width: 260px;
        height: 260px;
        right: 10%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .rotating-square-reverse {
        width: 260px;
        height: 260px;
        right: 10%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px dashed rgba(255, 255, 255, 0.12);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 20px;
        width: 100%;
        margin: 0;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cloud-service {
        padding: 80px 20px;
        background: transparent;
    }
    
    .cloud-text-centered h3 {
        font-size: 2rem;
        color: #2c3e50;
    }
    
    .cloud-text-centered p {
        font-size: 1.1rem;
        color: #555;
    }
    
    .cloud-features-centered {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .gallery-scroll-wrapper {
        gap: 15px;
    }
    
    .gallery-scroll-item {
        width: 250px;
        height: 160px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0;
        position: relative;
    }
    
    .nav-menu {
        position: static;
        margin-left: auto;
    }
    
    .hero {
        padding-left: 3%;
    }
    
    .rotating-square {
        width: 220px;
        height: 220px;
        right: 8%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .rotating-square-reverse {
        width: 220px;
        height: 220px;
        right: 8%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px dashed rgba(255, 255, 255, 0.12);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .work-card {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-scroll-wrapper {
        gap: 10px;
    }
    
    .gallery-scroll-item {
        width: 200px;
        height: 130px;
    }
    
    .cloud-service {
        padding: 60px 20px;
        background: transparent;
    }
    
    .cloud-text-centered h3 {
        font-size: 1.8rem;
        color: #2c3e50;
    }
    
    .cloud-text-centered p {
        font-size: 1rem;
        color: #555;
    }
    
    .cloud-features-centered {
        margin-top: 30px;
    }
    
    .feature-item {
        padding: 18px;
    }
    
    .feature-text h4 {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 40px 20px;
        width: 100%;
        margin: 0;
    }
}
