/* 全局样式 */
:root {
    --primary-color: #165DFF;
    --secondary-color: #36CFC9;
    --accent-color: #722ED1;
    --dark-color: #1D2129;
    --light-color: #F2F3F5;
    --gray-color: #6E768C;
}

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    scroll-behavior: smooth;
}

/* 渐变文本 */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 渐变背景 */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color) !important;
}

.navbar-brand .logo-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* 按钮样式 */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #0E4BDB;
    border-color: #0E4BDB;
    color: #fff;
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

.btn-outline-custom {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

/* 板块通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 60px auto;
    text-align: center;
}

/* 卡片样式 */
.service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(22, 93, 255, 0.1);
}

.service-card .card-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card .card-text {
    color: var(--gray-color);
    line-height: 1.7;
}

/* 新闻卡片样式 */
.news-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(22, 93, 255, 0.1);
}

.news-card .news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.news-card .card-body {
    padding: 25px;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-card .news-meta .meta-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.news-card .news-meta i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.news-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.news-card:hover .card-title {
    color: var(--primary-color);
}

.news-card .card-text {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-card .read-more:hover {
    color: #0E4BDB;
    transform: translateX(5px);
}

.news-card .read-more i {
    margin-left: 5px;
    font-size: 0.9rem;
}

/* 英雄区域 */
.hero-section {
    padding: 120px 0 80px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.1);
    width: 100%;
}

/* 关于我们板块 */
.about-img {
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.1);
}

.about-item {
    margin-bottom: 20px;
}

.about-item .icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    margin-right: 15px;
}

/* 联系我们板块 */
.contact-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.contact-card .contact-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
    margin-right: 20px;
}

.contact-card .contact-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-card .contact-content {
    color: var(--gray-color);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px 0;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
}

.footer-desc {
    color: #b0b7c3;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #b0b7c3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b7c3;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding-top: 20px;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .news-card .news-img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 100px 0 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .news-card .news-img {
        height: 150px;
    }
}