/* style.css - 灵犀科技官网所有样式与特效，带详细中文注释 */

/* 1. 浏览器样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: '微软雅黑', '思源黑体', Arial, Helvetica, sans-serif;
    background: #f5f7fa; /* 明亮浅灰背景 */
    color: #2c3e50;      /* 主文字深灰 */
    line-height: 1.7;
    min-width: 320px;
}
::-webkit-scrollbar {
    width: 8px;
    background: #f5f7fa;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* 2. 导航栏样式（吸顶+缩小+阴影+渐变下划线） */
/* 深色导航栏 */
/* 明亮大厂风格导航栏 */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: height 0.3s, box-shadow 0.3s, background 0.3s;
    padding: 0 40px;
}
.nav-bar.shrink {
    height: 75px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.nav-logo img {
    height: 55px;
    border-radius: 0;
    margin-top: 7px;
    background: #fff;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-menu li a {
    position: relative;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    border-radius: 2px;
    transition: width 0.4s;
    box-shadow: 0 2px 8px #165DFF22;
}
.nav-menu li a:hover::after {
    width: 100%;
}
.nav-mobile-toggle {
    display: none;
    font-size: 28px;
    color: #165DFF;
    cursor: pointer;
}

/* 3. Banner首屏样式（渐变背景+文字动效+按钮特效） */
/* 深色氛围感Banner区 */
/* 明亮大厂风格Banner区 */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(120deg, #f5f7fa 0%, #eaf1fb 100%);
    padding-top: 80px;
    box-sizing: border-box;
}
.banner-bg {
    position: absolute;
    top: 80px; left: 0; right: 0; bottom: 0;
    width: 100%; height: calc(100% - 80px);
    background: linear-gradient(120deg, #eaf1fb 0%, #f5f7fa 100%);
    opacity: 0.75;
    transition: transform 0.5s;
    z-index: 1;
    overflow: hidden;
}

.banner-bg .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
    transition: transform 0.5s;
}
/* 科技蓝光斑氛围装饰 */
.banner::after {
    content: '';
    position: absolute;
    left: 60%;
    top: 60%;
    width: 600px;
    height: 320px;
    background: radial-gradient(ellipse at center, #165DFF33 0%, #eaf1fb00 80%);
    filter: blur(32px);
    opacity: 0.7;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.banner:hover .banner-bg {
    transform: scale(1.03) translateY(-10px);
}
.banner-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: #2c3e50;
    text-shadow: 0 2px 12px #fff8;
    max-width: 1200px;
    margin: 0;
    padding: 60px 40px 80px;
    flex: 1;
    display: flex;
    align-items: center;
}
.banner-text {
    flex: 1;
    text-align: left;
    margin-right: 40px;
    padding-right: 0px;
    padding-bottom: 40px;
}

.banner-title {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: fadeUp 1s;
    color: #333333;
    text-shadow: 0 6px 32px rgba(0,0,0,0.1), 0 1px 0 #fff;
}
.banner-slogan {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 48px;
    animation: fadeUp 1.2s;
    color: #2c3e50;
    text-shadow: 0 2px 12px #fff8;
}
.banner-slogan span {
    margin: 0 12px;
    opacity: 0.8;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-btn {
    font-size: 20px;
    font-weight: 550;
    padding: 16px 35px 18px 31px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(22, 93, 255, 0.15), 0 2px 8px rgba(22, 93, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 17px;
    margin-top: 20px;
}
.banner-btn:hover {
    background: linear-gradient(90deg, #3498db 0%, #165DFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(22, 93, 255, 0.25), 0 4px 16px rgba(22, 93, 255, 0.15);
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. 关于我们模块样式 */
/* 大厂风格 About */
.about {
    max-width: 1350px;
    margin: 60px auto 0;
    padding: 60px 40px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(22, 93, 255, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.about-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    color: #2c3e50;
    letter-spacing: -0.5px;
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
}
.about-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    margin: 12px auto 0 auto;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}
.about:hover {
    box-shadow: 0 16px 48px #165DFF22;
    transform: translateY(-8px) scale(1.01);
}
.about-desc {
    font-size: 20px;
    color: #666;
    line-height: 2.6;
    animation: fadeUp 1.2s;
    margin-bottom: 50px;
    padding: 0 60px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

/* 关于我们图片展示区样式 */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
    padding: 0 24px;
}

.about-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.about-item:hover {
    box-shadow: 0 16px 48px rgba(22, 93, 255, 0.12);
    transform: translateY(-8px);
}

.about-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f7fa;
    position: relative;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-item:hover .about-img img {
    transform: scale(1.1);
}

.about-item-desc {
    padding: 32px;
    background: #fff;
    position: relative;
    text-align: left;
}

.about-item-desc h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
}

.about-item:hover .about-item-desc h3 {
    color: #165DFF;
}

.about-item-desc p {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
    margin: 0;
    min-height: 70px;
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
}

/* 5. 核心业务模块样式 - 大厂风格 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.service {
    background: linear-gradient(135deg, #f5f7fa 0%, #eaf1fb 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(22, 93, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.service-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    color: #2c3e50;
    z-index: 1;
}

.service-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.service-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 8px auto 0 auto;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    border-radius: 2px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
    margin-top: 50px; /* 增加与标题的间距 */
}

/* 业务卡片 - 大厂风格 */
.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 45px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(22, 93, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 24px 48px rgba(22, 93, 255, 0.12);
    transform: translateY(-8px);
}

.service-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #eaf1fb 0%, #f5f7fa 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #165DFF 0%, #3498db 100%);
    transform: scale(1.1);
}

.service-icon {
    font-size: 40px;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    filter: brightness(100) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.service-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: #165DFF;
}

.service-card-desc {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
    min-height: 72px;
}

.service-card-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 14px;
    background: rgba(22, 93, 255, 0.08);
    color: #165DFF;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .feature-tag {
    background: rgba(22, 93, 255, 0.12);
    transform: translateY(-2px);
}

/* 6. 案例展示模块样式 - 大厂风格 */
.case {
    background: #fff;
    padding: 80px 0;
    position: relative;
}

.case-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #2c3e50;
}

.case-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 64px;
}

.case-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 8px auto 0 auto;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    border-radius: 2px;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px; /* 增加与标题的间距 */
}

/* 案例卡片 - 大厂风格 */
.case-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.case-card:hover {
    box-shadow: 0 16px 48px rgba(22, 93, 255, 0.12);
    transform: translateY(-8px);
}

.case-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f7fa;
    position: relative;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-card:hover .case-img img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #165DFF;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.case-card:hover .case-link {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.case-link:hover {
    background: #165DFF;
    color: #fff;
    transform: translateY(-2px);
}

.case-info {
    padding: 32px;
    background: #fff;
    position: relative;
}

.case-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.case-card:hover .case-card-title {
    color: #165DFF;
}

.case-card-desc {
    font-size: 16px;
    color: #666;
    line-height: 2.0;
    margin-bottom: 20px;
    min-height: 68px;
}

.case-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

.case-category {
    color: #165DFF;
    font-weight: 500;
    font-size: 14px;
    background: rgba(22, 93, 255, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
}

.case-date {
    font-weight: 400;
    color: #165DFF;
}
.case-info p {
    font-size: 17px;
    color: #666;
    line-height: 2.0;
}

/* 7. 联系我们模块样式 */
/* 深色卡片 Contact */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 0 20px;
}
.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}
.contact-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 8px auto 0 auto;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    border-radius: 2px;
}
.partner-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

/* 在每三列下面居中显示三个点作为省略号提示 */
.partner-grid {
    position: relative; /* 伪元素定位基准 */
    padding-bottom: 48px; /* 为伪元素留出空间 */
}

.partner-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px; /* 距离网格底部的距离，可根据需要调整 */
    height: 8px;
    pointer-events: none;
    /* 使用九个径向渐变绘制三个省略号（每个省略号三个点），分别放在三个三列组的中间 */
    background-image:
        /* 第一个省略号（左三分之一处） */
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        /* 第二个省略号（中间） */
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        /* 第三个省略号（右三分之一处） */
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%),
        radial-gradient(circle, rgba(44,62,80,0.3) 100%, rgba(0,0,0,0) 101%);
    background-repeat: no-repeat;
    background-size: 10px 10px;
    background-position: 
        12.3333% center, 14.3333% center, 16.3333% center, /* 第一个省略号的三个点，间距2% */
        47% center, 49% center, 51% center, /* 第二个省略号的三个点，间距2% */
        80.6667% center, 82.6667% center, 84.6667% center; /* 第三个省略号的三个点，间距2% */
    opacity: 0.95;
}

/* 小屏幕下隐藏或调整位置，避免与单列布局冲突 */
@media (max-width: 900px) {
    .partner-grid::after {
        display: none;
    }
}
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px #165DFF11;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    cursor: pointer;
    min-height: 70px;
    min-width: 100px;
    padding: 2px 2.5px;
}
.partner-item:hover {
    box-shadow: 0 8px 24px #165DFF22;
    transform: translateY(-4px);
}
.partner-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s;
}
.partner-item:hover img {
    transform: scale(1.05);
}

/* 8. 页脚样式 */
.footer {
    background: #2c3e50;
    color: #fff;
    margin-top: 120px;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

/* 页脚内容区域 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* 页脚栏目 */
.footer-column {
    position: relative;
}

/* 栏目标题 */
.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* 栏目列表 */
.footer-column-list {
    list-style: none;
}

.footer-column-list li {
    margin-bottom: 22px;
}

.footer-column-list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    line-height: 1.6;
    padding: 4px 0;
}

.footer-column-list li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 服务热线 */
.footer-hotline {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
}

/* 二维码 */
.footer-qr {
    margin-top: 10px;
    margin-left: 50px;
}

.footer-qr img {
    width: 118px;
    height: 120px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 关注我们列样式 */
.footer-qr-column {
    justify-self: end;
    text-align: center;
}

/* 移除关注我们标题下方的横线 */
.footer-qr-column .footer-column-title {
    border-bottom: none;
    padding-bottom: 0;
}

/* 底部版权信息 */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* 9. 客服按钮样式 */
.customer-service {
    position: fixed;
    right: 3%;
    bottom: 7%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, #165DFF 0%, #3498db 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px #165DFF11, 0 2px 8px #fff8;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 8px #165DFF22);
}
.customer-service:hover {
    transform: scale(1.12);
    box-shadow: 0 16px 48px #3498db33, 0 2px 8px #fff8;
    filter: drop-shadow(0 0 16px #3498db33);
}

/* 10. 聊天弹窗样式 */
.chat-popup {
    position: fixed;
    right: 32px;
    bottom: 60px;
    width: 360px;
    max-width: 90%;
    height: 650px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 聊天头部 */
.chat-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    color: #2c3e50;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(22, 93, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
}



.chat-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header .beta-tag {
    font-size: 10px;
    background: rgba(22, 93, 255, 0.12);
    color: #165DFF;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.close-btn {
    background: rgba(241, 243, 244, 0.8);
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}

.close-btn:hover {
    background: rgba(224, 224, 224, 0.8);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 聊天内容区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    padding: 16px 0;
}

/* 欢迎界面 */
.welcome-screen {
    padding: 5px 30px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
    min-height: 100%; /* 确保占满整个聊天消息区域 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 欢迎logo */
.welcome-logo {
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.welcome-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

/* 装饰背景 */
.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23e8f0fe;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23f8f9ff;stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,0 C100,100 200,0 300,100 L300,0 L0,0 Z' fill='%23fff' fill-opacity='0.3' /%3E%3Cpath d='M0,50 C100,150 200,50 300,150 L300,0 L0,0 Z' fill='%23fff' fill-opacity='0.2' /%3E%3Cpath d='M0,100 C100,200 200,100 300,200 L300,0 L0,0 Z' fill='%23fff' fill-opacity='0.1' /%3E%3C/svg%3E") no-repeat center top;
    background-size: cover;
    opacity: 0.5;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 20px auto 40px;
    background: linear-gradient(135deg, #165DFF 0%, #3498db 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.welcome-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 预设问题按钮 */
.preset-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
}

.preset-btn {
    padding: 14px 20px;
    background: #fff;
    border: 1px solid rgba(22, 93, 255, 0.1);
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.preset-btn:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border-color: #165DFF;
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
    transform: translateY(-2px);
}

.preset-btn i {
    margin-right: 10px;
    color: #165DFF;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 消息样式 */
.message {
    margin-bottom: 16px;
    display: flex;
    max-width: 85%;
    padding: 0 20px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    margin-left: auto;
    justify-content: flex-end;
}

.message.bot {
    margin-right: auto;
    justify-content: flex-start;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 14px;
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message.user .message-content {
    background: linear-gradient(135deg, #165DFF 0%, #3498db 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.message.bot .message-content {
    background: #fff;
    color: #2c3e50;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 输入区域 */
.chat-input-area {
    display: flex;
    padding: 16px 20px;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border-top: 1px solid rgba(22, 93, 255, 0.1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

#chatInput {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(22, 93, 255, 0.1);
    border-radius: 22px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

#chatInput:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12);
    transform: translateY(-1px);
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #165DFF 0%, #3498db 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.25);
    background: linear-gradient(135deg, #3498db 0%, #165DFF 100%);
}

.send-btn:active {
    transform: scale(0.95);
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(204, 204, 204, 0.6);
    border-radius: 3px;
    transition: background 0.3s;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(170, 170, 170, 0.8);
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.6);
}

/* 10. 响应式布局（平板/手机端适配） */
@media (max-width: 1200px) {
    .service-list, .case-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-content {
        gap: 30px;
    }
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .nav-bar {
        padding: 0 20px;
        background: #fff;
    }
    .service-list, .case-list {
        grid-template-columns: 1fr;
    }
    .contact-content {
        flex-direction: column;
        gap: 24px;
    }
    .contact-qr img {
        width: 140px;
        height: 140px;
    }
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .about-img {
        height: 180px;
    }
}
@media (max-width: 768px) {
    .nav-bar {
        height: 56px;
        background: #fff;
    }
    .nav-logo img {
        height: 32px;
    }
    .nav-menu {
        display: none;
    }
    .nav-mobile-toggle {
        display: block;
    }
    .banner-title {
        font-size: 28px;
    }
    .banner-slogan {
        font-size: 16px;
    }
    .banner-btn {
        font-size: 16px;
        padding: 12px 32px;
    }
    .about, .service, .case, .contact {
        padding-top: 80px;
        background: #fff;
    }
    .footer {
        padding: 40px 0 20px;
        margin-top: 80px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 16px;
    }
    
    .footer-qr-column {
        justify-self: start;
        text-align: left;
    }
    
    .footer-column-title {
        font-size: 16px;
    }
    
    .footer-column-list li a {
        font-size: 13px;
    }
    
    .footer-hotline {
        font-size: 20px;
    }
    
    .footer-qr img {
        width: 80px;
        height: 80px;
    }
    
    .footer-bottom {
        padding: 16px;
        font-size: 13px;
    }
    .to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* 11. 其他细节样式可根据实际需求扩展 */
