/* 基本重置和全局设置 */
:root {
    --primary-color: #3498db; /* 主题色 - 蓝色，代表科技、稳定 */
    --secondary-color: #2c3e50; /* 深蓝灰色 - 用于头部、页脚，增加稳重感 */
    --accent-color: #e74c3c; /* 强调色 */
    --light-gray-color: #f4f7f9; /* 浅灰色背景 */
    --text-color: #333;
    --light-text-color: #ecf0f1;
    --white-color: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-gray-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

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

/* 头部导航栏 */
.main-header {
    background: linear-gradient(135deg, #6e89fe 0%, #764ba2 100%); /* 高级渐变背景 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0; /* 增加上下内边距 */
}

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

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white-color); /* 改为白色文字 */
    font-size: 28px; /* 增大字体 */
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加文字阴影 */
}

.logo-container img {
    height: 70px; /* 增大logo高度 */
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); /* 添加logo阴影 */
}

.logo-container:hover img {
    transform: rotate(-5deg) scale(1.05); /* 优化悬停效果 */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px; /* 增加间距 */
}

.nav-links a {
    text-decoration: none;
    color: var(--white-color); /* 改为白色文字 */
    font-weight: 500;
    padding: 8px 0; /* 增加上下内边距 */
    position: relative;
    transition: var(--transition);
    font-size: 16px; /* 明确字体大小 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影 */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white-color); /* 改为白色下划线 */
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover {
    color: #f0f0f0; /* 悬停时稍微变暗 */
    transform: translateY(-1px); /* 添加轻微上移效果 */
}

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


/* 英雄区域/轮播图 */
.hero {
    position: relative;
    height: 60vh;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

/* 给图片加上一层蒙版，让文字更清晰 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}


.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 22px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}


/* 项目区域 */
.projects-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    height: 220px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-content p {
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555;
}

.project-tags {
    margin-bottom: 20px;
}

.project-tags .tag {
    display: inline-block;
    background-color: var(--light-gray-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 500;
}

.project-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    align-self: flex-start; /* 按钮在底部对齐 */
}

.project-link:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* 页脚 */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 50px 0;
    text-align: center;
}

.contact-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.contact-text h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-text p {
    color: #666;
}

.contact-qrcode {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.qrcode-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin: 0 auto;
}

.qrcode-placeholder p {
    color: #666;
    margin: 0.5rem 0;
}

.qrcode-tip {
    font-size: 0.9rem;
    color: #3498db;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info, .contact-qrcode {
        width: 100%;
    }
} 