.chat-float {
    position: fixed;       /* 我对用户说：“我会一直固定在右下角等你” */
    bottom: 90px;          /* 距离底部90像素，不遮挡其他元素 */
    right: 20px;           /* 距离右侧20像素，触手可及 */
    z-index: 999;          /* “我永远在最上层，随时准备为您服务” */
    
    width: 60px;           /* “我的圆形对话框直径是60像素” */
    height: 60px;          /* 高度也是60像素，保持完美圆形 */
    border-radius: 50%;    /* “看我变成了一个友好的圆形按钮！” */
    
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); /* “我有渐变色装扮，从主色到深主色” */
    box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3); /* “我带着微微的红色阴影，温柔又醒目” */
    
    display: flex;          /* “我内部采用弹性布局，准备居中显示图标” */
    align-items: center;    /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    
    cursor: pointer;        /* 当用户靠近时，我会变成手指形状说：“点我聊聊吧！” */
    transition: all 0.3s ease; /* “所有变化我都会用0.3秒优雅过渡” */
    animation: pulse 2s infinite; /* “我还有呼吸灯效果，每2秒闪烁一次吸引注意” */
}

        .chat-float:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(190, 0, 47, 0.4);
        }

        .chat-icon {
            width: 28px;
            height: 28px;
            position: relative;
        }

        .chat-icon::before,
        .chat-icon::after {
            content: '';
            position: absolute;
            background-color: white;
        }

        .chat-icon::before {
            width: 22px;
            height: 18px;
            border-radius: 12px 12px 4px 4px;
            top: 4px;
            left: 3px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

        .chat-icon::after {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            top: 16px;
            left: 10px;
            box-shadow: 
                8px 0 0 white,
                16px 0 0 white;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3);
            }
            50% {
                box-shadow: 0 4px 25px rgba(190, 0, 47, 0.5);
            }
            100% {
                box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3);
            }
        }

        .footer-mobile {
            background-color: #f8f8f8;
            border-top: 1px solid #e5e5e5;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 998;
        }

        .footer-tabs {
            display: flex;
            justify-content: space-around;
            padding: 0.1rem 0;
        }

        .footer-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #7d7d7d;
            flex: 1;
            padding: 0.2rem 0;
            transition: color 0.3s ease;
        }

        .footer-tab.active {
            color: var(--primary);
        }

        .footer-tab:hover {
            color: var(--primary);
        }
        .tab-label {
            font-size: 0.7rem;
            align-items: center;
        }

        .footer-desktop {
            display: none;
            background-color: var(--background-alt);
            padding: 3rem 0 1.5rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-brand h3 {
            font-size: 1.8rem;
            font-weight: 300;
            margin-bottom: 1rem;
            color: var(--primary-dark);
        }

        .footer-brand p {
            color: var(--text-medium);
            max-width: 300px;
            margin-bottom: 1.5rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--background);
            color: var(--text-dark);
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .social-link:hover {
            background-color: var(--primary);
            color: white;
        }
.footer-nav {
    padding: 0 10px;
}

        .footer-heading {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
            color: var(--text-dark);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }
        .footer-links ul, ol {
    margin: 0;!important;  
}
        .footer-links a {
            color: var(--text-medium);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.9rem;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding: 1rem 0;
            text-align: center;
            color: var(--text-light);
            font-size: 0.85rem;
        }

        /* 响应式设计 */
        @media (min-width: 769px) {
            .footer-mobile {
                display: none;
            }
            
            .footer-desktop {
                display: block;
            }
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr;
            }
        }

.list {
    width: 100%;
    margin: 20px 0;
}

.list ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* 添加这一行，允许所有屏幕尺寸下自动换行 */
}

.list a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    font-size: 0.8em;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block; /* 确保链接在换行时保持正确的盒模型 */
}

.list a:hover {
    color: #333;
    background-color: #f5f5f5;
}

/* 平板设备 */
@media (max-width: 768px) {
    .list ul {
        gap: 20px;
    }
    
    .list a {
        padding: 6px 12px;
        font-size: 0.75em;
    }
}

/* 移动设备 */
@media (max-width: 480px) {
    .list ul {
        gap: 15px;
    }
    
    .list a {
        padding: 5px 10px;
        font-size: 0.7em;
        white-space: normal; /* 允许文字换行 */
    }
}

/* 小屏手机 */
@media (max-width: 320px) {
    .list ul {
        gap: 10px;
        flex-direction: column; /* 垂直排列 */
        align-items: center;
    }
    
    .list a {
        padding: 8px 15px;
        font-size: 0.75em;
        text-align: center;
        width: 150px; /* 固定宽度 */
    }
}
/* 移动端标签激活状态下的图标颜色 */
.footer-tab.active .icon {
    filter: brightness(0) saturate(100%) invert(24%) sepia(90%) saturate(5000%) hue-rotate(340deg) brightness(90%) contrast(100%);
}/* 安全区域适配（针对iPhone X等有刘海的设备） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer-mobile {
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }
}

/* 桌面端容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 底部列表容器优化 */
.footer-bottom .list {
    margin: 10px 0 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.footer-bottom .list ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom .list a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-bottom .list a:hover {
    color: var(--primary);
    background-color: rgba(190, 0, 47, 0.05);
}

/* 版权信息样式 */
.footer-bottom p {
    margin: 15px 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom .list ul {
        gap: 20px;
    }
    
    .footer-bottom .list a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .footer-bottom .list ul {
        gap: 15px;
    }
    
    .footer-bottom .list a {
        font-size: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}