/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

/* 首页横幅 */
.hero-section {
    background: var(--gradient-dark), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* 通用部分样式 */
.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 服务卡片 */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    /* 移除悬浮效果 */
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
    text-align: center;
}

.product-card:hover {
    /* 移除悬浮效果 */
}

.product-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 联系表单 */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.form-control {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.info-item {
    padding: 1rem;
}

.info-item:hover {
    /* 移除悬浮效果 */
}

/* 联系信息样式 */
.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-header h4 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.email-info {
    text-align: center;
}

.email-address {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    margin: 0 auto;
}

.email-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.email-address i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 联系弹窗样式 */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-popup.active {
    display: flex;
    opacity: 1;
}

.contact-popup-content {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-popup.active .contact-popup-content {
    transform: translateY(0);
}

.contact-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.contact-popup-close:hover {
    color: #3b82f6;
}

.contact-popup img {
    max-width: 200px;
    margin: 1rem 0;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 弹窗激活时的body样式 */
body.popup-active {
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card, .product-card, .contact-form, .contact-info {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* 动画效果 */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* 特性盒子 */
.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.feature-box:hover {
    /* 移除悬浮效果 */
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3b82f6;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.police-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.police-links img {
    max-width: 20px;
    height: auto;
}

/* 响应式设计中的页脚部分 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-links a {
        padding: 0.75rem 1rem;
        margin: 0.25rem;
        text-align: center;
        min-width: 120px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .police-links {
        justify-content: center;
    }
} 