/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* 间距类 */
.py-12 {
    padding-top: 120px;
    padding-bottom: 120px;
}

.py-16 {
    padding-top: 160px;
    padding-bottom: 160px;
}

.mb-12 {
    margin-bottom: 120px;
}

.mb-16 {
    margin-bottom: 160px;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}

/* Logo图片 */
.navbar-brand .logo-img {
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
}

.nav-link {
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 章节标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* 卡片样式 */
.feature-card,
.product-card,
.service-card,
.patent-card,
.team-card,
.category-card {
    transition: all 0.3s ease;
}

.feature-card:hover,
.product-card:hover,
.service-card:hover,
.patent-card:hover,
.team-card:hover,
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 服务中心图片尺寸 */
.service-categories .category-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.cooperation-section img,
.technical-section img,
.training-section img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

/* 悬停效果 */
.hover-effect {
    transition: all 0.3s ease;
}

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

/* 服务图标 */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 123, 255, 0.1);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.1));
    transform: scale(1.1);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

/* 服务卡片样式优化 */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* 服务卡片按钮优化 */
.service-card .btn-sm {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 图标样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* 按钮样式 */
.btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 联系我们 */
.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 0.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.footer h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .py-16 {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .mb-12 {
        margin-bottom: 60px;
    }

    .feature-card,
    .product-card,
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar-brand h1 {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
        margin-left: 0;
    }
}