/* 现代化页脚样式 */
:root {
    --footer-bg-primary: #1a1a2e;
    --footer-bg-secondary: #16213e;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #a0a0a0;
    --footer-accent: #ff7f2a;
    --footer-border: #2a2a4a;
    --footer-hover: #ff9955;
    --footer-social-bg: #252545;
    --footer-social-hover: #353565;
    --footer-input-bg: #2d2d4d;
    --footer-input-border: #444466;
    --transition-speed: 0.3s;
}

/* 基础容器样式 */
.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 主要按钮样式 */
.btn.primary {
    background-color: var(--footer-accent);
    color: white;
}

.btn.primary:hover {
    background-color: var(--footer-hover);
}

/* 新闻区域样式 */
.news-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.section-header {
    /* text-align: center; */
    margin-bottom: 40px;
    position:relative
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.view-all {
    color: var(--footer-bg-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position:absolute;
    right: 1%;
    top: 30%;
    padding:10px 15px;
    border-radius: 10px;
    border:1px solid #cecece;
}

.view-all:hover {
    color: var(--footer-accent);
    border:1px solid var(--footer-accent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px 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 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.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-info {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    background-color: var(--footer-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more {
    color: var(--footer-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--footer-hover);
}

/* CTA区域样式 */
.cta-section {
    background: linear-gradient(135deg, var(--footer-accent) 0%, #e66e22 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: white;
    color: var(--footer-accent);
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    /* background-color: #f0f0f0; */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 主页脚容器 */
.modern-footer {
    background:#f1f4f9;
    /* color: var(--footer-text-primary); */
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 装饰性背景元素 */
/* .modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--footer-accent) 0%, #ff9955 50%, var(--footer-accent) 100%);
    animation: gradientShift 3s ease-in-out infinite alternate;
} */

.footer-bottom{
    width:80%;
    min-width:1900px;
    margin:0 auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* 上部内容区域 */
.footer-top {
    padding: 60px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-container {
    /* min-width: 1900px; */
    width:80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 网格布局 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 中等屏幕（如 13 寸笔记本）下：布局与字号微调，避免换行错位 */
@media (max-width: 1366px) and (min-width: 769px) {
    .footer-container {
        width: 90%;
    }
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
    .footer-heading {
        font-size: 16px;
    }
    .footer-links a,
    .contact-info span {
        font-size: 14px;
    }

    /* 底部版权区域：占满宽度，版权和隐私链接上下居中显示 */
    .footer-bottom {
        width: 100%;
        min-width: auto;
    }
    .bottom-container {
        max-width: 100%;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .privacy-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* 页脚列样式 */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Logo 区域 */
.footer-logo-area {
    margin-bottom: 25px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    transition: transform var(--transition-speed);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-tagline {
    color: var(--footer-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

/* 标题样式 */
.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

/* 链接列表 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed);
    color: var(--footer-accent);
}

.footer-links a:hover {
    color: var(--footer-accent);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 联系信息 */
.contact-item {
    display: flex;
    align-items: flex-start;
    line-height:40px!important;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--footer-text-secondary);
    line-height: 1.5;
}

.contact-icon {
    min-width: 24px;
    margin-right: 12px;
    color: var(--footer-accent);
    font-size: 16px;
}

/* 社交媒体区域 */
.social-media {
    margin-top: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--footer-social-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    text-decoration: none;
    color: var(--footer-text-secondary);
}

.social-link:hover {
    background: var(--footer-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 127, 42, 0.3);
}

/* 订阅表单 */
.subscribe-form {
    margin-top: 20px;
}

.subscribe-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--footer-input-bg);
    border: 1px solid #c5c5c5;
    border-radius: 25px;
    color: var(--footer-text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all var(--transition-speed);
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--footer-accent);
    box-shadow: 0 0 0 3px rgba(255, 127, 42, 0.1);
}

.subscribe-input::placeholder {
    color: var(--footer-text-secondary);
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background: var(--footer-accent);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.subscribe-btn:hover {
    background: var(--footer-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 42, 0.3);
}

/* 底部版权区域 */
.footer-bottom {
    /* background: rgba(0, 0, 0, 0.2); */
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    position: relative;
    z-index: 2;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    color: var(--footer-text-secondary);
    font-size: 13px;
}

.privacy-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.privacy-links a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-speed);
}

.privacy-links a:hover {
    color: var(--footer-accent);
}

/* 返回顶部按钮 */
/* 右侧浮动客服 */
.float-service {
    position: fixed;
    bottom: 95px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

/* 隐藏状态：整体向右侧收起，仅露出开关按钮 */
/* 隐藏状态：整体向右侧收起，仅露出开关按钮（PC 保持原样，具体偏移在移动端覆盖） */
.float-service.collapsed {
    right: -40px;
}

/* 浮动客服隐藏/显示开关按钮（默认 PC 端不显示） */
.float-service-toggle {
    display: none;
    width: 24px;
    height: 60px;
    border-radius: 12px 0 0 12px;
    border: none;
    background: linear-gradient(135deg, #ff7f2a 0%, #ff9955 100%);
    cursor: pointer;
    padding: 0;
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
}

.float-service-toggle::before {
    content: '‹';
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 60px;
}

.float-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ff7f2a 0%, #ff9955 100%);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 3px 12px rgba(255, 127, 42, 0.4);
    transition: all 0.3s ease;
}

.wechat-service-item {
    position: relative;
}

.float-service-item:hover {
    background: linear-gradient(135deg, #e57220 0%, #ff7f2a 100%);
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 5px 16px rgba(255, 127, 42, 0.5);
}

.float-service-icon {
    font-size: 18px;
}

.float-service-text {
    white-space: nowrap;
}

/* 微信二维码悬停弹层（紧贴微信按钮左侧） */
.wechat-qrcode-popover {
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wechat-qrcode-popover.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.wechat-qrcode-popover .wechat-qrcode-inner {
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
}
.wechat-qrcode-popover .wechat-qrcode-inner::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}
.wechat-qrcode-popover .wechat-qrcode-img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
}
.wechat-qrcode-popover .wechat-qrcode-text {
    margin: 8px 0 0;
    font-size: 13px;
    color: #606266;
}
.wechat-qrcode-popover .wechat-qrcode-inner {
    position: relative;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--footer-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--footer-hover);
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 手机端：只保留“联系我们”这一列，隐藏 Logo 介绍 / 核心业务 / 快速链接 */
    .footer-grid > .footer-col:nth-child(1),
    .footer-grid > .footer-col:nth-child(2),
    .footer-grid > .footer-col:nth-child(3) {
        display: none;
    }
    
    /* 手机端：底部版权区域也要跟随屏幕宽度，避免被 min-width 裁掉 */
    .footer-bottom {
        width: 100%;
        min-width: auto;
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* 手机端：只显示版权所有，隐藏各类政策链接 */
    .privacy-links {
        display: none;
    }
    
    .float-service {
        bottom: 80px;
        right: 15px;
    }
    /* 手机端收起时：大部分浮动条移出屏幕，仅保留开关按钮露出 */
    .float-service.collapsed {
        right: -60px;
    }
    .float-service-toggle {
        display: inline-block;
    }
    .wechat-qrcode-popover .wechat-qrcode-img {
        width: 140px;
        height: 140px;
    }
    .float-service-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    .float-service-text {
        display: none;
    }
    /* 手机端浮动客服：按钮由圆形改为方形小卡片 */
    .float-service-item {
        border-radius: 8px;
        width: 60px;
        height: 60px;
        justify-content: center;
        padding: 0;
    }

    /* 手机端：中间“咨询”按钮去掉圆角，背景为直角矩形 */
    .float-service-item[title="在线咨询"] {
        border-radius: 0;
    }
    .float-service-icon {
        font-size: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-container,
    .bottom-container {
        padding: 0 15px;
    }
    
    .footer-logo {
        max-width: 150px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .news-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col {
    animation: fadeInUp 0.6s ease-out;
}

.footer-col:nth-child(2) { animation-delay: 0.1s; }
.footer-col:nth-child(3) { animation-delay: 0.2s; }
.footer-col:nth-child(4) { animation-delay: 0.3s; }

/* 悬浮粒子效果（可选） */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--footer-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-10px); }
    75% { transform: translateY(-20px) translateX(-5px); }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}