/* 基础样式和CSS变量 */
:root {
    --primary-color: #4069C6;
    --secondary-color: #6486d9;
    --light-bg: #f8f9fa;
    --gray-bg: #e9ecef;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* 容器和布局 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 10px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 鼠标移动时顶部导航半透明并简化投影 */
body:hover .header {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo {
    width: 21px;
    height: 21px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
}

.header-left h1 {
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0;
}

/* PC端导航链接 */
.nav-pc ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-pc a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-pc a:hover {
    opacity: 0.8;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.02rem;
    cursor: pointer;
}

/* 主要内容区域 */
.main {
    margin-top: 60px;
    margin-bottom: 0;
    overflow-x: hidden;
}

/* 通用区块样式 */
.section {
    padding: 1rem 0;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom:2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
   
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Section 1: 公司简介 */
.company-intro {
    background-color: #2F4485;
    /* 添加指定背景图，使用rgba颜色叠加实现淡化效果 */
    background-image: linear-gradient(rgba(47, 68, 133, 0.9), rgba(47, 68, 133, 0.9)), 
                      url('https://images.unsplash.com/photo-1534430480872-3498386e7856?w=1200&h=800&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 公司简介文字颜色 */
.company-intro .section-title {
    color: var(--white);
}

.company-intro .intro-text {
    color: var(--white);
}

.company-intro .data-label {
    color: var(--white);
}

.company-intro .data-number {
    color: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

/* 数据展示 */
.data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* 合作伙伴样式 */
.partners {
    margin-top: 15px;
    text-align: center;
}

.partners-title {
    font-size: 12px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
}

.partners-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 0.8rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partner-logo {
    width: 58px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-name {
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

.data-card {
    padding: 2rem 0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.data-card:hover {
    /* 去掉悬停效果 */
}

.data-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.data-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Section 2: 业务介绍 */
.business {
    background-color: var(--light-bg);
    padding: 20px 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.business-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: var(--transition);
    text-align: center;
    min-width: 0;
}

/* PC端公众号运营标签样式 */
@media (min-width: 769px) {
    .business-card:nth-child(5) > div:last-child > div {
        font-size: 12px !important;
    }
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.business-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}

/* 业务图片样式 */
.business-image {
    margin: 1rem 0;
    text-align: center;
}

.business-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 项目详情按钮样式 */
.project-detail-btn {
    width: 60%;
    height: 44px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 10px;
    transition: var(--transition);
}

.project-detail-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.business-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.8rem;
}

.business-description {
    list-style: none;
    text-align: center;
}

.business-description li {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    color: #000;
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 0;
    text-align: center;
}

.business-description li::before {
    content: none;
}

/* 应急演练项目样式 */
.emergency-projects {
    padding: 1.5rem;
}

.emergency-project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
}

.emergency-project-item {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
   
}

.project-image {
    width: 150px !important;
    height: 100px !important;
    background-color: #f5f5f5 !important;
    border-radius: var(--border-radius) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden;
}
.project-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.play-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.play-icon i {
    color: #000 !important;
    font-size: 14px !important;
    margin-left: 2px !important;
}
.project-info img{
    padding: 8px 0 0 0;
}
.project-info {
    width:50% ;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    justify-content: center !important;
}

.project-title {
    font-size: 14px !important;
    font-weight: normal !important;
    color: #666 !important;
    margin: 0 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    max-height: 39.2px !important;
}

.project-tag {
    width: fit-content;
    display: inline-block !important;
    padding: 4px 15px !important;
    background-color: #FAF5F1 !important;
    color: #AB7E53 !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

/* 轮播样式 */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slider-slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}

.slider-slide.active {
    opacity: 1;
}

/* 滑动指示器 */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.5;
}

.indicator.active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Section 3: 发展历程 */
.history {
    background-color: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* 时间轴中心线 */
.timeline::before {
    content: '';
    position: absolute;
    left: calc(50% - 10px);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #F5F5F5;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0.8rem 0 1.5rem 0;
    position: relative;
    width: 50%;
    margin-left: auto;
}

/* 交替时间轴项目 */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.timeline-date {
    position: absolute;
    left: -120px;
    top: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background-color: #2567DC;
    padding-top: 0px;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    border-radius: var(--border-radius);
    box-shadow: none;
    transform: scale(0.84);
}

.timeline-item:nth-child(odd) .timeline-date {
    left: auto;
    right: -120px;
}

/* 时间轴节点 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 8px;
    height: 8px;
    background-color: #2567DC;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 1;
    transform: translateX(calc(-50% + 9px));
}

.timeline-item:nth-child(odd)::before {
    left: 50%;
    right: auto;
    transform: translateX(calc(-50% + 9px));
}

.timeline-content {
    margin-top: 50px;
    padding: 0;
    border-radius: var(--border-radius);
    width: calc(100% - 40px);
}

.timeline-content p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Section 4: 联系我们 */
.contact {
    background-color: #2F4485;
    margin: 0;
    padding-bottom: 2rem;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-align: left;
    padding: 0 10px;
}

/* 修改联系我们文字颜色为白色 */
.contact .section-title {
    color: #fff;
}

.contact-text h3 {
    color: #fff;
}

.contact-text p {
    color: #fff;
}

/* 联系方式 */
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-text h3 {
    font-size: 10px;
    font-weight: normal;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 0.3rem;
}

.contact-text p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

/* 二维码区域 */
.qrcode-section {
    flex: 0 0 auto;
    text-align: left;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: -1rem;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    overflow: hidden;
}

/* 二维码图片样式，方便替换图片 */
.qrcode-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.qrcode-placeholder i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.qrcode-placeholder p {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* 联系我们模块中二维码文字颜色改为白色 */
.contact .qrcode-placeholder p {
    color: #fff;
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p,
.copyright #icp-info {
    color: #fff;
    font-size: 12px;
    opacity: 0.5;
    margin: 0;
}

/* 备案号链接样式 */
.copyright .icp-link {
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 调整通用区块样式 */
    .section {
        padding: 1rem 0;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* 顶部导航栏 */
    .nav-pc {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    /* 公司简介 */
    .intro-text {
        font-size: 12px;
        margin-bottom: 2rem;
    }
    
    .data {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .data-card {
        padding: 1.5rem 0;
    }
    
    .data-number {
        font-size: 20px;
    }
    
    /* 合作伙伴响应式 */
    .partners-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.8rem !important;
    }
    
    .partner-logo {
        width: 58px;
        height: 48px;
    }
    
    .partner-name {
        font-size: 10px;
    }
    
    /* 业务介绍 */
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .business-card {
        padding: 1rem;
    }
    
    .business-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .business-title {
        font-size: 14px;
        margin-bottom: 0.8rem;
        width: 100%;
        border-bottom: 1px #f5f5f5 solid;
        padding-bottom: 15px;
    }
    
    .business-description li {
        font-size: 10px;
        margin-bottom: 0.6rem;
    }
    

    
    /* 发展历程 */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 60px;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        justify-content: flex-start;
        margin-right: 0;
    }
    
    .timeline-date {
        left: auto;
        right: auto;
        top: -30px;
        bottom: auto;
        transform: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-date {
        left: auto;
        right: auto;
    }
    
    .timeline-item::before {
        left: 11px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd)::before {
        left: 11px;
        right: auto;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    /* 联系我们 */
    .contact-content {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
    }
    
    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    .qrcode-section {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    /* 调整数据展示 */
    .data {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .data-card {
        padding: 1rem 0;
    }
    
    .data-number {
        font-size: 20px;
    }
    
    .data-label {
        font-size: 12px;
    }
    
    /* 调整时间轴 */
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-top: 42px;
        transform: scale(0.84);
    }
    
    .timeline-content {
        padding: 0;
    }
    
    /* 合作伙伴响应式 */
    .partners-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.8rem !important;
    }
    
    .partner-logo {
        width: 58px;
        height: 48px;
    }
    
    .partner-name {
        font-size: 9px;
    }
}

/* AI聊天演示组件 */
.ai-chat-demo {
    background-color: #f5f7fa;
    border-radius: var(--border-radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.chat-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-bubble.chat-ai {
    background-color: var(--white);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chat-bubble.chat-user {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-label {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 新增业务卡片图片适配 */
.business-card .business-image img {
    max-height: 280px;
    object-fit: contain;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 辅助类 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}