/* 基础变量 */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 首屏样式 */
#hero {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.85), rgba(0, 86, 179, 0.85)), url('image/服务器管理.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 动画元素 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 关于我们 */
#about .content {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

#about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

.brand-story {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.brand-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.brand-story h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* 技术栈 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.tech-category {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tech-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--bg-light);
    min-width: 80px;
    transition: var(--transition);
}

.tech-item:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.tech-item:hover i, .tech-item:hover span {
    color: white;
}

.tech-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
    transition: var(--transition);
}

/* 服务内容 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* 核心团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-exp {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 20px;
}

.team-skills {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-skills span {
    font-size: 0.8rem;
    background-color: #f1f3f5;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--light-text);
}

/* 公司优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid transparent;
}

.advantage-card:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 项目案例 */
.category-title {
    font-size: 1.6rem;
    margin: 60px 0 30px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.project {
    margin-bottom: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project:hover {
    box-shadow: var(--shadow-hover);
}

.project h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
}

.project-status {
    display: inline-block;
    font-size: 0.9rem;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.project-status.development {
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.1);
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.project-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.project-image:hover img {
    transform: scale(1.03);
}

.project-description {
    flex: 1.5;
    min-width: 300px;
}

.project-description p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
    color: var(--light-text);
}

.project-link a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link a:hover {
    text-decoration: underline;
}

.project-gallery {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.project-gallery img {
    height: 100px;
    width: auto;
    border-radius: 6px;
    cursor: zoom-in;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.project-gallery img:hover {
    transform: translateY(-3px);
}

/* 联系我们 */
#contact .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-right: 10px;
    vertical-align: middle;
}

.contact-qrcodes {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-qrcode {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    background: white;
    cursor: zoom-in;
    transition: var(--transition);
}

.contact-qrcode:hover {
    transform: scale(1.05);
}

/* 页脚 */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
    color: var(--primary-color);
}

/* 浮动按钮 */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.cta-tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.floating-cta:hover .cta-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        padding: 10px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .project-content {
        flex-direction: column;
    }
    
    .contact-qrcodes {
        flex-direction: column;
        gap: 30px;
    }
}