/* 2025ai Footer 样式 */

/* 主 Footer */
.footer {
    background: var(--bg-dark, #0a0e14);
    color: #fff;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(10, 143, 79, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    position: relative;
    z-index: 10;
}

/* 品牌区域 */
.footer-brand {
    padding-right: 30px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-logo img {
    height: 50px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.brand-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green, #0a5d2c);
    color: var(--white);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* 导航列 */
.footer-nav-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
}

.footer-nav-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green, #0a5d2c);
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-col ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* 联系信息 */
.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contact-info li .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-info li .icon svg {
    width: 20px;
    height: 20px;
}

.footer-contact-info li p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 底部 */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-beian {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-beian a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-beian a:hover {
    color: var(--white);
}

.footer-beian img {
    height: 18px;
}

/* 悬浮工具栏 */
.float-sidebar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    position: relative;
}

.float-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.float-item svg {
    width: 22px;
    height: 22px;
}

.float-item.phone-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.float-item .tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--text-dark);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.float-item .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.float-item.qr-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.float-item.qr-tooltip .tooltip {
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 15px;
    background: var(--white);
}

.float-item.qr-tooltip .tooltip img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.float-item.to-top {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.float-item.to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* AI FAB */
.float-item.ai-fab {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* AI 聊天窗口 */
.ai-chat-window {
    position: fixed;
    right: 80px;
    bottom: 30px;
    width: 380px;
    height: 550px;
    background: var(--bg-dark, #0a0e14);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.ai-chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-avatar svg {
    width: 24px;
    height: 24px;
}

.ai-chat-header-info {
    flex: 1;
}

.ai-chat-header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-chat-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ai-chat-close:hover {
    opacity: 1;
}

.ai-chat-close svg {
    width: 20px;
    height: 20px;
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-chat-footer {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.ai-chat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-chat-input:focus {
    border-color: var(--primary-green, #0a5d2c);
}

.ai-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-green, #0a5d2c);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-send:not(:disabled):hover {
    background: var(--secondary-color);
}

.ai-chat-send svg {
    width: 20px;
    height: 20px;
}

.ai-chat-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 10px;
}

/* 响应式 */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .float-sidebar {
        right: 15px;
        bottom: 80px;
    }
    
    .ai-chat-window {
        right: 10px;
        left: 10px;
        width: auto;
        height: 70vh;
        bottom: 10px;
    }
}
