:root {
    --primary-color: #6c5ce7;
    --secondary-color: #3498db;
    --dark-color: #2d3436;
    --light-color: #f8f9fe;
    --hover-color: #5849c4;
    --gradient-start: #6c5ce7;
    --gradient-end: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-right: auto;
    padding-right: 2rem;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.3s;
}

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

nav ul {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.6rem 1rem;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(108, 92, 231, 0.1);
    border-radius: 6px;
}

#hero {
    height: 70vh;
    background: linear-gradient(
        rgba(108, 92, 231, 0.4),
        rgba(52, 152, 219, 0.4)
    ), url('images/bg2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 10px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin: 1.2rem 0;
    opacity: 1;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: none;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
    background: linear-gradient(45deg, var(--hover-color), var(--secondary-color));
    transform: translateY(-2px);
}

.cta-button.secondary {
    border: 2px solid rgba(255,255,255,0.95);
    color: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.15);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

section {
    padding: 5rem 5%;
    margin: 0 auto;
}

section:not(#hero) {
    max-width: 1200px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin: 1rem 0;
    color: var(--dark-color);
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    margin: 0.7rem 0;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form button {
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(45deg, var(--hover-color), var(--secondary-color));
}

footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 5%;
    }
    
    .logo {
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .logo-img {
        height: 55px;
    }
    
    nav ul {
        margin-left: 0;
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.5rem 1rem;
    }
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.feature {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 新增亮点展示样式 */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.highlight-item p {
    color: #666;
    line-height: 1.6;
}

.highlight-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .about-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .feature {
        padding: 2rem;
    }
    
    .highlight-item {
        padding: 1.5rem;
    }
}

.about-vision {
    text-align: center;
    padding: 3rem 0;
}

.about-vision h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-item {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.vision-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.vision-item p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .about-vision {
        padding: 2rem 1rem;
    }
}

/* 数据统计部分样式 */
.stats-section {
    background: var(--light-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 3px solid var(--primary-color);
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.stat-label {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 500;
}

/* 优化section标题样式 */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* 自定义对话框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 更深的半透明背景 */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px; /* 增加内边距 */
    border-radius: 12px; /* 更圆的边角 */
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); /* 更强的阴影效果 */
    border: 3px solid #007bff; /* 增加边框宽度和颜色 */
    animation: fadeIn 0.3s; /* 添加淡入动画 */
}

.close-button {
    margin-top: 20px;
    padding: 12px 25px; /* 增加按钮内边距 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem; /* 增加字体大小 */
    transition: background-color 0.3s; /* 添加过渡效果 */
}

.close-button:hover {
    background-color: #0056b3; /* 悬停时的颜色变化 */
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* 从上方淡入 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 