/**
 * AiGather Footer Plugin - 前端样式
 */

.aigather-footer-wrapper {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.aigather-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aigather-footer-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 左侧区域 */
.aigather-footer-left {
    flex: 0 0 300px;
}


.aigather-footer-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.aigather-logo-placeholder {
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
}

.aigather-logo-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}



.aigather-footer-company p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.aigather-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.aigather-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007cba;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.aigather-social-link:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

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

/* 右侧区域 */
.aigather-footer-right {
    flex: 1;
    display: flex;
    gap: 40px;
}

.aigather-footer-menu,
.aigather-footer-contact,
.aigather-footer-form {
    flex: 1;
}

.aigather-footer-menu h3,
.aigather-footer-contact h3,
.aigather-footer-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

/* 菜单样式 */
.aigather-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aigather-footer-nav li {
    margin-bottom: 8px;
}

.aigather-footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.aigather-footer-nav a:hover {
    color: #007cba;
    text-decoration: none;
}

/* 联系信息样式 */
.aigather-contact-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.aigather-contact-info p:first-child {
    margin-top: 0;
}

.aigather-contact-info p:last-child {
    margin-bottom: 0;
}

/* 联系表单样式 */
.aigather-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aigather-form-input,
.aigather-form-textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.aigather-form-input:focus,
.aigather-form-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.aigather-form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.aigather-form-submit {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.aigather-form-submit:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 90, 135, 0.2);
}

.aigather-form-submit:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .aigather-footer-content {
        gap: 40px;
    }
    
    .aigather-footer-right {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .aigather-footer-wrapper {
        padding: 30px 0;
    }
    
    .aigather-footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .aigather-footer-left {
        flex: none;
        text-align: center;
    }
    
    .aigather-footer-right {
        flex-direction: column;
        gap: 30px;
    }
    
    .aigather-footer-logo img {
        margin: 0 auto;
    }
    
    .aigather-logo-placeholder {
        margin: 0 auto;
    }
    
    .aigather-footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .aigather-footer-container {
        padding: 0 15px;
    }
    
    .aigather-footer-content {
        gap: 25px;
    }
    
    .aigather-footer-right {
        gap: 25px;
    }
    
    .aigather-footer-menu h3,
    .aigather-footer-contact h3,
    .aigather-footer-form h3 {
        font-size: 16px;
    }
    
    .aigather-social-link {
        width: 36px;
        height: 36px;
    }
    
    .aigather-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* 打印样式 */
@media print {
    .aigather-footer-wrapper {
        background-color: transparent;
        border-top: 1px solid #ccc;
        padding: 20px 0;
    }
    
    .aigather-footer-form {
        display: none;
    }
    
    .aigather-social-link {
        background-color: #666;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .aigather-footer-wrapper {
        background-color: #fff;
        border-top: 2px solid #000;
    }
    
    .aigather-footer-nav a,
    .aigather-contact-info p,
    .aigather-footer-company p {
        color: #000;
    }
    
    .aigather-social-link {
        background-color: #000;
        border: 2px solid #000;
    }
    
    .aigather-form-input,
    .aigather-form-textarea {
        border: 2px solid #000;
    }
    
    .aigather-form-submit {
        background-color: #000;
        border: 2px solid #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .aigather-social-link,
    .aigather-footer-nav a,
    .aigather-form-input,
    .aigather-form-textarea,
    .aigather-form-submit {
        transition: none;
    }
    
    .aigather-social-link:hover,
    .aigather-form-submit:hover {
        transform: none;
    }
}