/**
 * 全局变量定义
 * 优化配色方案，使用更柔和的色调
 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #5B9FE8;
    --light-blue: #F5F9FF;
    --hover-blue: #6BA7EA;
    --text-color: #2D3748;
    --border-color: #E8F1FC;
    --muted-color: #64748B;
}

/* 全局基础样式 */
body {
    padding-top: 70px;
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

/* 导航栏样式优化 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    height: 70px;
}

.navbar-brand {
    font-size: 1.4rem;
    line-height: 1.2;
    padding: 0;
}

.navbar-brand small {
    font-family: Arial, sans-serif;
    opacity: 0.75;
    margin-top: -2px;
    display: block;
}

.nav-link {
    font-size: 1rem;
    font-weight: 450;
    padding: 0.5rem 1.2rem !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 550;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
        height: 65px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand small {
        font-size: 0.65em !important;
    }

    /* 移动端导航菜单样式 */
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem !important;
        margin: 0.2rem 0;
        text-align: center;
    }

    .nav-link:hover {
        background-color: var(--light-blue);
    }

    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }
}

/* 主横幅样式优化 */
.hero-section,
.contact-hero {
    background: linear-gradient(rgba(74, 144, 226, 0.92), rgba(91, 159, 232, 0.95)), url('../images/hero-bg.jpg');
}

.hero-section {
    height: 420px;
}

.hero-section h1,
.contact-hero h1 {
    font-size: 2rem;
    color: #ffffff;
}

.hero-section .lead,
.contact-hero .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 卡片样式优化 */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15) !important;
    transform: translateY(-5px);
}

.card:hover .card-title {
    color: var(--primary-color);
}

.card .btn-outline-primary {
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0);
    transition: all 0.3s ease;
}

.card:hover .card-img-wrapper::after {
    background: rgba(74, 144, 226, 0.1);
}

.card-body {
    padding: 1.3rem;
}

.card-title {
    font-size: 1.15rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
}

.card-text {
    font-size: 0.92rem;
    color: var(--muted-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 产品系列卡片链接样式 */
.card-title {
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover .card {
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15) !important;
    transform: translateY(-5px);
}

a:hover .card .card-title {
    color: var(--primary-color);
}

a:active .card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1) !important;
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    padding: 0;
    background-color: #fff;
}

/* 按钮样式优化 */
.btn {
    font-size: 0.92rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 标题样式优化 */
h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

h5 {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 联系信息部分优化 */
.contact-info-section {
    padding: 1.8rem 0;
}

.contact-info-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
}

.contact-info-section .feature-icon i {
    font-size: 1.3rem;
}

.contact-info-section h5 {
    font-size: 0.95rem;
}

.contact-info-section p {
    font-size: 0.88rem;
    color: var(--muted-color);
}

/* 页脚样式优化 */
footer.bg-dark {
    background-color: #2D3748 !important;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* 响应式调整优化 */
@media (max-width: 768px) {
    body {
        padding-top: 65px;
        font-size: 14px;
    }

    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 70px 0 40px;
    }

    .hero-section h1 {
        font-size: 1.7rem;
    }

    .card-img-top {
        height: 180px;
    }

    .card-body {
        padding: 1.1rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .card-text {
        font-size: 0.88rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        font-size: 0.88rem;
        padding: 0.45rem 1rem;
    }

    .navbar {
        height: 65px;
    }

    footer.bg-dark {
        padding: 1.2rem 0;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* 主横幅公司简介卡片样式优化 */
.hero-section .bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem !important;
}

.hero-section .text-white-80 {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92) !important;
}

.hero-section h5.text-white {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

/* 工具类优化 */
.shadow-sm {
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.08) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

/* 联系我们页面样式优化 */
.contact-hero {
    height: 200px;
    margin-bottom: 0;
}

.contact-hero .row {
    height: 100%;
}

.bg-light {
    background-color: var(--light-blue) !important;
}

/* 产品页面和联系我们页面的内容区域 */
.products-section,
.contact-section {
    padding-top: 0;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .contact-hero {
        height: 160px;
        margin-bottom: 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
} 

/* 卡片内按钮效果 */
.card .btn-outline-primary {
    transition: all 0.3s ease;
}

.card:hover .btn-outline-primary {
    background-color: var(--primary-color);
    color: white;
} 