/* 新样式表 - 具有科技感和现代风格的响应式设计 */

/* 全局变量 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #00c3ff;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #e9ecef;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --section-padding: 80px 0;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
    padding-top: 76px; /* 为固定导航栏留出空间 */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

/* 科技感元素 */
.tech-image {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
}

.tech-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.2);
    border-color: var(--accent-color);
}

.team-image {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 3px solid var(--light-color);
    box-shadow: var(--box-shadow);
}

.team-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    padding: 10px 0;
}

.navbar.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 86, 179, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* 轮播图样式 */
.hero-section {
    margin-top: -16px;
    position: relative;
}

.carousel-item {
    height: 100vh;
    max-height: 700px;
    background-color: var(--dark-color);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 25%;
    text-shadow: var(--text-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: #004a9f;
    border-color: #004a9f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* 章节样式 */
.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.divider {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin-bottom: 20px;
    border-radius: 2px;
}

.sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

/* 卡片样式 */
.card, .license-card, .team-card, .vision-card, .strategy-card, .case-card, .history-card, .contact-info-card, .contact-form-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
    border: none;
    background-color: white;
}

.card:hover, .license-card:hover, .team-card:hover, .vision-card:hover, .strategy-card:hover, .case-card:hover, .history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 服务卡片 */
.service-card {
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(0, 86, 179, 0.05), transparent);
    transition: height 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

/* 愿景卡片 */
.vision-card {
    border-top: 4px solid var(--info-color);
}

.vision-icon {
    font-size: 2.5rem;
    color: var(--info-color);
    background-color: rgba(23, 162, 184, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all var(--transition-speed) ease;
}

.vision-card:hover .vision-icon {
    background-color: var(--info-color);
    color: white;
    transform: rotateY(360deg);
}

/* 战略卡片 */
.strategy-card {
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.strategy-card:hover {
    border-left-width: 8px;
}

/* 历史卡片样式 */
.history-card {
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    background-color: white;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(0, 86, 179, 0.05), transparent);
    transition: height 0.5s ease;
    z-index: 0;
}

.history-card:hover::before {
    height: 100%;
}

.history-year {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.history-year .badge {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 20px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    transition: all var(--transition-speed) ease;
}

.history-card:hover .history-year .badge {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
}

.history-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.history-card .card-text {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.history-card ul {
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.history-card ul li {
    margin-bottom: 5px;
    position: relative;
}

.history-card ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 历史卡片连接线 - 仅在大屏幕显示 */
@media (min-width: 992px) {
    .history-card::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -15px;
        width: 30px;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), transparent);
        z-index: 1;
    }
    
    .col-lg-3:last-child .history-card::after {
        display: none;
    }
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .history-card {
        margin-bottom: 20px;
    }
    
    .history-year .badge {
        font-size: 1rem;
        padding: 6px 15px;
    }
}

@media (max-width: 767.98px) {
    .history-year .badge {
        font-size: 0.9rem;
        padding: 5px 12px;
    }
}

/* 案例卡片 */
.case-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.case-img-wrapper {
    overflow: hidden;
    position: relative;
}

.case-img {
    transition: transform 0.5s ease;
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.case-card:hover .case-img {
    transform: scale(1.1);
}

.case-content {
    padding: 20px;
    background-color: white;
}

/* 合作伙伴 */
.partner-logo {
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.partner-logo img {
    max-height: 70px;
    max-width: 100%;
    filter: grayscale(100%);
    transition: all var(--transition-speed) ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* 联系表单 */
.contact-info-card, .contact-form-card {
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.contact-details:hover .contact-icon {
    background-color: var(--primary-color);
    color: white;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    border-color: var(--primary-color);
}

/* 地图 */
.map-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* 公司口号 */
.company-slogan {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
        margin-left: 0;
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
        font-size: 0.85rem;
        padding: 5px;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-panel::after {
        left: -15px;
        right: auto;
        border-left: none;
        border-right: 15px solid white;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .sub-title {
        font-size: 1.3rem;
    }
    
    .service-icon, .vision-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .timeline-badge {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 4px;
        line-height: 1.1;
    }
}

/* 动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* 科技感元素 - 粒子效果 */
.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 科技感元素 - 闪光效果 */
.tech-glow {
    position: relative;
    overflow: hidden;
}

.tech-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tech-glow:hover::after {
    opacity: 1;
}