:root {
    --primary-color: #6B46C1;
    --secondary-color: #805AD5;
    --text-color: #2D3748;
    --light-color: #F7FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* 导航链接悬停效果 */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* 当前活动页面的导航链接样式 */
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    width: 100%;
}

/* 主要内容区域样式 */
.hero {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), white);
    color: white;
    padding: 6rem 5%;
    text-align: center;
}

/* 调整文字颜色渐变，确保在白色背景上可见 */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 2rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 特性卡片区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: var(--light-color);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 5%;
    scroll-margin-top: 80px; /* 为固定导航栏预留空间 */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* logo 样式 */
.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* 项目展示区域样式 */
.projects {
    padding: 4rem 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.5;
}

.project-info {
    padding: 1.5rem;
    background: white;
    border-top: 4px solid var(--primary-color);
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* 添加标签样式 */
.project-tags {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.project-tag {
    background: rgba(107, 70, 193, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 为固定导航栏预留空间 */
}

/* 关于我们部分 */
.about-section {
    padding: 6rem 5%;
    background-color: white;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.about-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(107, 70, 193, 0.2));
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* 在小屏幕上调整图片大小 */
@media (max-width: 768px) {
    .about-image img {
        width: 150px;
        height: 150px;
    }
}

/* 服务部分 */
.services-section {
    padding: 6rem 5%;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 导航链接激活状态 */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

/* 如果在小屏幕上需要换行 */
@media (max-width: 768px) {
    .about-text h3 {
        white-space: normal;  /* 在小屏幕上允许换行 */
        font-size: 1.5rem;  /* 调小字体大小 */
    }
} 