/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 确保所有容器元素都是响应式的 */
.container {
    max-width: 100%;
}

/* 修复可能导致溢出的元素 */
section, nav, footer {
    position: relative;
    overflow-x: hidden;
}

/* 全局颜色变量 */
:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --banner-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 导航栏滚动效果 */
#navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 导航链接悬停效果 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Banner 背景和动态效果 */
#home {
    background: var(--banner-gradient);
    position: relative;
    overflow: hidden;
}

/* Banner 装饰元素 - 新样式 */
.banner-wave {
    position: absolute;
    z-index: 0;
    opacity: 0.4;
}

/* 圆形装饰 */
.banner-wave-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -150px; /* 进一步移到右侧屏幕外 */
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: subtle-float 12s ease-in-out infinite;
}

/* 方形装饰 */
.banner-wave-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -100px; /* 进一步移到左侧屏幕外 */
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 10px;
    transform: rotate(45deg);
    animation: subtle-float 15s ease-in-out infinite reverse;
    animation-delay: 1s;
}

/* 环形装饰 */
.banner-wave-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 20%;
    background: linear-gradient(45deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: subtle-spin 20s linear infinite;
    animation-delay: 0.5s;
}

/* 微妙浮动动画 */
@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(5px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* 微妙旋转动画 */
@keyframes subtle-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 动态浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 标题渐入动画 */
.banner-title {
    animation: fadeInUp 1s ease-out;
}

.banner-subtitle {
    animation: fadeInUp 1.2s ease-out;
}

.banner-btn {
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* FAQ 样式 */
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.faq-question {
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-light) !important;
}

/* 服务项目部分样式 */
#services {
    overflow: hidden; /* 防止背景装饰元素导致滚动条 */
}

/* 服务项目卡片样式 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 服务项目图标背景 */
.service-icon-bg {
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon-bg {
    transform: scale(1.1);
}

/* 服务流程横板布局样式 */
#process {
    position: relative;
}

/* 流程连接线 */
.process-connector {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    top: 50%;
    left: 5%;
    right: 5%;
    z-index: 0;
    transform: translateY(-50%);
}

.process-step {
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step-circle {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover .process-step-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(79, 70, 229, 0.1);
}

/* 客户评价样式 */
.review-card {
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: rgba(255, 255, 255, 1);
}

/* 常见问题和最新资讯并排布局 */
#faq-news {
    position: relative;
}

#faq-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
}

/* 常见问题样式 */
.faq-section {
    transition: transform 0.3s ease;
}

.faq-section:hover {
    transform: translateY(-5px);
}

/* 最新资讯样式 */
.news-section {
    transition: transform 0.3s ease;
}

.news-section:hover {
    transform: translateY(-5px);
}

.news-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(236, 72, 153, 0.05));
    z-index: -1;
    transition: all 0.5s ease;
}

.news-card:hover {
    transform: translateX(5px);
}

.news-card:hover::before {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
}

/* 5条一列布局样式 */
.faq-list, .news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 联系客服按钮样式 */
#services-contact-wechat {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#services-contact-wechat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

#services-contact-wechat:hover::after {
    height: 100%;
}

/* 微信二维码弹窗美化 */
#wechat-modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FAQ弹窗样式 */
#faq-modal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    /* 平板视图下常见问题和最新资讯堆叠 */
    #faq-news .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* 平板视图下调整流程连接线 */
    .process-connector {
        display: none;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    /* 移动端FAQ和新闻布局 */
    .faq-list, .news-list {
        gap: 0.5rem;
    }
    
    /* 友情链接布局优化 */
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links .flex-wrap {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    /* 友情链接样式优化 */
    .footer-links a {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        text-align: center;
        flex: 1 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    /* 超小屏幕友情链接优化 */
    .footer-links .flex-wrap {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .footer-links a {
        padding: 0.65rem 1rem;
        font-size: 0.8125rem;
        min-width: 100px;
    }
    
    .footer-links h3 {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

/* 微信模态框动画 */
#wechat-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#wechat-modal.show {
    opacity: 1;
    visibility: visible;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-animate {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 导航栏链接高亮 */
.nav-link.active {
    color: #4f46e5 !important;
    font-weight: 600;
}

/* 按钮动画效果 */
button, a.btn {
    transition: all 0.3s ease;
}

button:hover, a.btn:hover {
    transform: translateY(-2px);
}

/* 图片懒加载 */
img {
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* 骨架屏样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.news-content {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}
.news-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.news-meta {
    display: flex;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.news-meta span {
    margin-right: 1.5rem;
}
.news-body {
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.news-body p {
    margin-bottom: 1.5rem;
}
.news-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}
.news-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}
.news-nav a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.news-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.news-nav .prev i {
    margin-right: 0.5rem;
}
.news-nav .next i {
    margin-left: 0.5rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .news-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    .hot-card-image {
        height: 120px;
    }
}
@media (max-width: 768px) {
    .banner{ margin-top:5rem;}
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-link {
        padding: 0.8rem 1rem;
    }
    .news-image {
        height: 180px;
    }
    .hot-card-item {
        flex-direction: column;
    }
    .hot-card-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    .news-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .news-nav a {
        justify-content: center;
        width: 100%;
    }
    .news-content {
        padding: 1.5rem;
    }
    .news-content h1 {
        font-size: 1.5rem;
    }
}

/* ----- 分页数字条效果 开始 ----- */
.pagebar .pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.pagination a {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 3px;text-decoration: none;
}
.pagination span {
    color: #333;
    font-size: 14px;
    padding: 8px 2px;
    margin: 0 5px;
    border-radius: 3px;
}
.pagination a:hover {
  color: #ff6b00;
  border: 1px solid #ff6b00;
}
.pagination a.page-num-current {
  color: #fff;
  background: #ff6b00;
  border: 1px solid #ff6b00;
}

.section-padding {
    padding: 3rem 0;
}

/* 最新资讯和常见问题样式优化 */
.news-list, .faq-list {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}

/* 为最新资讯和常见问题添加不同背景色，增加区分度 */
.news-list {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.faq-list {
    background-color: #fefefe;
    border-left: 4px solid #4CAF50;
}

/*.news-item, .faq-item {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}*/

.news-item:last-child, .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item:hover, .faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #fff;
}

.news-title, .faq-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

/* 添加图标增强视觉效果 */
.news-title::before, .faq-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.news-title::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF6B00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>');
}

.news-title a, .faq-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-title a:hover, .faq-title a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.news-date, .faq-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-style: italic;
}

/* 为日期添加小图标 */
.news-date::before, .faq-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.news-date::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
}

.faq-date::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>');
}

/* 优化查看更多按钮 */
.news-list + div .btn-outline-primary, .faq-list + div .btn-outline-primary {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.65rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-list + div .btn-outline-primary:hover, .faq-list + div .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}
.bg-white {
    background-color: var(--white-color);
}

.h-48 img{ max-height:100%;}

.pagination{align-content: center;
    justify-content: center;}