/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f8fafc;
}

/* 导航链接hover效果 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d47a1;
    transition: width 0.3s ease;
}

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

/* Hero背景样式 */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 卡片hover效果 */
.feature-card:hover {
    transform: translateY(-5px);
}

/* 下载按钮hover效果 */
.download-btn:hover {
    transform: scale(1.05);
}

/* 评分星星颜色 */
.rating-star {
    color: #ffd700;
}

/* 评价卡片 */
.review-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* 弹窗遮罩 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e5e7eb;
}

/* 服务卡片 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 解决方案卡片 */
.solution-card {
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

/* 案例卡片 */
.portfolio-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card img {
    transition: transform 0.3s ease;
}

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

/* 团队成员卡片 */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* 联系表单 */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

/* 页脚链接 */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffd600 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
}