/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 定义颜色变量，方便后续修改主题色 */
:root {
    --primary-color: #4874CB;      /* 主色调：深蓝色 */
    --secondary-color: #FF6F28;    /* 辅助色：橙色 */
    --text-dark: #333333;          /* 深色文字 */
    --text-light: #666666;         /* 浅色文字 */
    --bg-light: #f5f7fa;           /* 浅色背景 */
    --white: #ffffff;              /* 白色 */
    --footer-bg: #2c3e50;         /* 底部深蓝色背景 */
}

html, body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* 防止横向滚动 */
    background-color: var(--white);
    margin: 0;
    height: 100%;
}

/* 页面内容wrapper - 用于缩放 */
.page-wrapper {
    zoom: 80%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    min-height: 100%;
}

/* 通用容器样式，用于限制内容宽度并居中 */
.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航栏样式 ========== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* 确保导航栏在其他元素之上 */
    padding: 1rem 0; /* 减小垂直方向的内边距，让导航栏变窄 */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 3rem 0 0;
}

/* 公司Logo/名称样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px; /* 根据实际LOGO尺寸调整 */
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem; /* 更大的LOGO字体 */
    font-weight: 900; /* 非常粗的字体 */
    color: var(--primary-color);
    letter-spacing: 2px;
}

.company-name {
    font-size: 1.6rem; /* 进一步增大的公司名称字体 */
    color: var(--text-dark);
    font-weight: 600; /* 加粗 */
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    gap: 2rem; /* 菜单项之间的间距 */
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* 导航链接悬停和激活状态 */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* 导航链接底部指示线 */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* ========== 下拉菜单样式 ========== */
.nav-dropdown {
    position: relative;
}

/* 下拉菜单容器 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    padding: 0.5rem 0;
}

/* 鼠标悬停时显示下拉菜单 */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem 0.8rem 3.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 3rem; /* 悬停时向右移动 */
}

/* 下拉菜单项前的装饰 */
.dropdown-item::before {
    content: '→';
    position: absolute;
    left: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.dropdown-item:hover::before {
    opacity: 1;
}

/* 移动端菜单按钮（默认隐藏） */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========== 首页横幅区样式 ========== */
.hero {
    background-color: var(--white); /* 白色背景，不是渐变 */
    padding: 160px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右各占一半 */
    gap: 10rem;
    align-items: center;
}

/* 左侧文字内容样式 */
.hero-text {
    animation: fadeInLeft 1s ease-out; /* 进入动画 */
    margin-left: 2rem; /* 向右移动文字 */
}

/* 主标题样式（两行大标题） */
.hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero-title .title-line {
    display: block;
}

/* 横幅第二行强调色（橙色）- 仅用于需要强调的那一行 */
.hero-title .title-line-accent {
    color: var(--secondary-color);
    font-size: 0.9em; /* 稍微缩小强调行字号 */
}

/* 副标题样式 */
.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* 功能亮点列表样式 */
.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.feature-no-wrap .feature-text {
    white-space: nowrap;
}

/* 功能亮点前的橙色竖条 */
.feature-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

/* 高亮文本样式 */
.text-highlight {
    font-weight: bold;
    font-size: 1.05em; /* 略微放大 */
    color: var(--text-dark); /* 使用深色文字 */
}

.feature-text {
    color: var(--text-dark);
    font-size: 1.6rem;
    line-height: 1.6;
}

.feature-key {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.2em;
}

/* 按钮组样式 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 主要按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #3a5fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 116, 203, 0.3);
}

/* 产品展示区按钮样式 */
.product-btn {
    width: auto !important;
    max-width: fit-content;
    padding: 10px 18px !important;
    font-size: 1.3rem !important;
}

/* 次要按钮样式 */
.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

/* 右侧产品主图样式 */
.hero-image {
    animation: fadeInRight 1s ease-out; /* 进入动画 */
}

.hero-image img,
.hero-image .placeholder-img {
    width: 120%;
    height: auto;
    border-radius: 10px;
}

/* 图片占位符样式 */
.placeholder-img {
    background-color: #e0e0e0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    font-size: 0.9rem;
}

/* ========== 产品介绍区样式 ========== */
.products {
    padding: 80px 0;
    background-color: var(--white);
}

/* 区域标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* 产品展示区样式（左右分栏布局） */
.product-showcase {
    margin-bottom: 6rem;
}

.product-showcase:last-child {
    margin-bottom: 0;
}

.product-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 反向布局（图片在右侧） */
.product-showcase.reverse .product-showcase-content {
    direction: rtl;
}

.product-showcase.reverse .product-showcase-content > * {
    direction: ltr;
}

/* 产品图片区域 */
.product-showcase-image {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-left: 10rem;
}

.product-showcase-image a {
    display: block;
    transition: transform 0.3s ease;
}

.product-showcase-image a:hover {
    transform: scale(1.02);
}

.product-showcase-image img,
.product-showcase-image .placeholder-img {
    width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-showcase-image .placeholder-img {
    background-color: var(--bg-light);
    min-height: 350px;
}

/* 产品信息区域 */
.product-showcase-info {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 产品1文字位置 */
.product-info-1 {
    margin-left: 0;
}

/* 产品2文字位置 */
.product-info-2 {
    margin-left: 20rem;
}

/* 产品3文字位置 */
.product-info-3 {
    margin-left: 0rem;
}

.product-showcase-name {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.product-features-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 产品功能亮点列表 */
.product-showcase-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.product-showcase-features li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 功能亮点前的橙色对勾 */
.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ========== 优势区样式 ========== */
.advantages {
    padding: 80px 0;
    background: linear-gradient(to bottom right, #f9fafb, #ffffff);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列布局 */
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 优势卡片样式 */
.advantage-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.advantage-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 优势图标样式 */
.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* 品质保证图标 - 绿色背景 */
.quality-icon {
    background-color: #E6F7EE;
    color: #00B42A;
}

/* 技术领先图标 - 蓝色背景 */
.tech-icon {
    background-color: #E8F3FF;
    color: #1890FF;
}

/* 全程服务图标 - 紫色背景 */
.service-icon {
    background-color: #F3EFFF;
    color: #722ED1;
}

.advantage-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.advantage-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 统计数据区样式 */
.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
}

/* ========== 新闻中心样式 ========== */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 新闻列表布局 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* 新闻列表项 */
.news-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-list-item:hover {
    background-color: var(--bg-light);
    transform: translateX(10px);
}

/* 新闻列表内容 */
.news-list-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 新闻卡片样式 */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* 新闻图片样式 */
.news-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-card.no-image {
    min-height: 200px;
    display: flex;
    align-items: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 新闻占位符样式 */
.news-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.news-card:hover .news-placeholder {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* 新闻内容样式 */
.news-content {
    padding: 1.5rem;
}

/* 新闻日期 */
.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* 新闻标题 */
.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 新闻摘要 */
.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* 新闻链接 */
.news-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

/* ========== 底部样式 ========== */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    text-align: center;
}

.footer-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    font-size: 1.2rem;
}

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

.footer-bottom p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.footer-bottom .disclaimer {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ========== 动画效果 ========== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== 响应式设计（移动端适配） ========== */
@media screen and (max-width: 968px) {
    /* 产品展示区在平板设备上变为单列 */
    .product-showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-showcase.reverse .product-showcase-content {
        direction: ltr;
    }
    
    /* 优势网格在平板设备上变为2列 */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 统计数据在平板设备上变为2列 */
    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 底部在平板设备上变为2列 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 新闻网格在平板设备上变为2列 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    /* 移动端和平板设备不应用缩放效果 */
    .page-wrapper {
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
    }
    
    /* 移动端导航菜单样式 */
    .menu-toggle {
        display: flex;
    }
    
    /* 移动端隐藏公司全称，只显示LOGO */
    .company-name {
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* 移动端导航菜单默认隐藏 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none; /* 默认隐藏 */
    }
    
    /* 当菜单激活时显示 */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.8rem 0;
        border-bottom: 1px solid #eee;
    }
    
    /* 移动端下拉菜单样式 */
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background-color: transparent;
        display: none; /* 默认隐藏 */
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.8rem 1rem 0.8rem 2rem;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
    
    .dropdown-item::before {
        left: 1rem;
    }
    
    /* 横幅区在移动端改为单列布局 */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden;
        max-width: 100%;
    }
    
    .hero-image img,
    .hero-image .placeholder-img {
        width: 80% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* 产品展示区在移动端 */
    .product-showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-showcase-image {
        justify-content: center;
        margin-left: 0;
    }
    
    .product-showcase-image img,
    .product-showcase-image .placeholder-img {
        width: 70% !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    .product-showcase-name {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .product-features-title {
        text-align: center;
    }
    
    .product-showcase-features {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .product-info-1,
    .product-info-2,
    .product-info-3 {
        margin-left: 0;
        align-items: center;
    }
    
    /* 优势网格在移动端变为1列 */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* 统计数据在移动端变为2列 */
    .statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* 底部在移动端变为1列 */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* 新闻网格在移动端变为1列 */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* 容器在移动端调整 */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 区域标题在移动端调整字体大小 */
    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    /* 超小屏幕设备进一步调整 */
    .page-wrapper {
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products,
    .advantages {
        padding: 60px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 统计数据在超小屏幕变为1列 */
    .statistics {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ========== AI聊天助手样式（固定在右侧） ========== */
.ai-chat-sidebar {
    position: fixed;
    right: 20px; /* 固定在右侧 */
    bottom: 20px; /* 固定在右下角 */
    top: auto;
    transform: none;
    left: auto;
    z-index: 1000;
    width: 350px; /* 增加宽度，让聊天框更宽 */
    height: 400px; /* 减小高度 */
    max-height: 400px; /* 最大高度也相应减小 */
    display: flex;
    flex-direction: column;
}

.chat-window-sidebar {
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* 继承父容器高度 */
    max-height: 100%; /* 最大高度为父容器的100% */
    overflow: hidden;
}

/* 聊天窗口通用样式 */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 聊天头部 */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a8ddb 100%);
    color: var(--white);
    padding: 1rem 1.5rem; /* 右侧显示，内边距适中 */
    border-radius: 15px 15px 0 0;
    position: relative;
    flex-shrink: 0; /* 防止头部被压缩 */
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem; /* 右侧显示，字体适中 */
    font-weight: bold;
}

.chat-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.0rem; /* 减少内边距，让聊天框更宽 */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 消息间距正常 */
    /* 优化滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Webkit浏览器滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 消息样式 */
.message {
    display: flex;
    margin-bottom: 0.5rem;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 聊天输入区 */
.chat-input-area {
    padding: 1rem; /* 右侧显示，内边距正常 */
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0; /* 防止输入区被压缩 */
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send {
    padding: 0.7rem 1.0rem; /* 适当增加内边距，确保按钮完整显示 */
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem; /* 稍微增大字体，确保清晰 */
    transition: background-color 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
    flex-shrink: 0; /* 防止按钮被压缩 */
    min-width: 60px; /* 设置最小宽度，确保按钮完整 */
}

.chat-send:hover {
    background-color: #ff8533;
}

/* 响应式设计 - AI聊天 */
/* 响应式设计 - AI聊天 */
@media screen and (max-width: 1200px) {
    .ai-chat-sidebar {
        width: 420px; /* 相应增加宽度 */
        right: 15px;
        bottom: 15px;
        top: auto;
        transform: none;
        height: 400px;
        max-height: 400px;
    }
}

@media screen and (max-width: 968px) {
    .ai-chat-sidebar {
        width: 300px; /* 相应增加宽度 */
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
        height: 380px;
        max-height: 380px;
    }
    
    .chat-header {
        padding: 1.2rem 1.5rem;
    }
    
    .chat-header h3 {
        font-size: 1.3rem;
    }
    
    .chat-subtitle {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    /* 在移动端，AI助手改为底部固定按钮，点击后弹出 */
    .ai-chat-sidebar {
        position: fixed;
        left: auto;
        right: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        width: 60px;
        height: 60px;
        max-height: none;
    }
    
    .chat-window-sidebar {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: calc(100vw - 40px);
        max-width: 400px;
        height: 500px;
        max-height: 70vh;
        display: none;
        border-radius: 15px;
    }
    
    .chat-window-sidebar.active {
        display: flex;
    }
    
    /* 添加一个触发按钮 */
    .ai-chat-sidebar::before {
        content: '💬';
        position: absolute;
        width: 60px;
        height: 60px;
        background-color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(72, 116, 203, 0.4);
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    
    .ai-chat-sidebar::before:hover {
        transform: scale(1.1);
    }
}

@media screen and (max-width: 480px) {
    .ai-chat-sidebar {
        right: 15px;
        bottom: 15px;
        transform: none;
    }
    
    .chat-window-sidebar {
        width: calc(100vw - 30px);
        height: 380px;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h3 {
        font-size: 1.2rem;
    }
}