/* Footer 基础样式 */
.footer {
    width: 100%;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    color: var(--text-light);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer p {
    color: #666;
    margin: 0;
}

.privacy-link {
    margin-top: 10px;
    font-size: 14px;
}

.privacy-link a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-link a:hover {
    text-decoration: underline;
    color: #357abd;
}

/* 链接样式 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* 联系信息样式 */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #666;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #4a90e2;
}

/* 联系表单样式 */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #357abd;
}

/* 地图容器样式 */
.map-container {
    margin-top: 2rem;
}

.map-container h4 {
    color: #333;
    margin-bottom: 1rem;
}

.map {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 深色模式样式 */
html.dark .footer,
body.dark .footer {
    background-color: var(--card-bg);
    border-top-color: var(--border-color);
}

html.dark .footer p,
body.dark .footer p {
    color: var(--text-color);
}

html.dark .privacy-link a,
body.dark .privacy-link a {
    color: var(--link-color);
}

html.dark .privacy-link a:hover,
body.dark .privacy-link a:hover {
    color: var(--link-hover-color);
}

html.dark .footer-links a,
body.dark .footer-links a {
    color: var(--text-color);
}

html.dark .footer-links a:hover,
body.dark .footer-links a:hover {
    color: var(--link-color);
}

html.dark .contact-info h3,
html.dark .map-container h4,
body.dark .contact-info h3,
body.dark .map-container h4 {
    color: var(--heading-color);
}

html.dark .contact-info i,
body.dark .contact-info i {
    color: var(--link-color);
}

html.dark .contact-form input,
html.dark .contact-form textarea,
body.dark .contact-form input,
body.dark .contact-form textarea {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

html.dark .contact-form input::placeholder,
html.dark .contact-form textarea::placeholder,
body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

html.dark .contact-form button,
body.dark .contact-form button {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

html.dark .contact-form button:hover,
body.dark .contact-form button:hover {
    background-color: var(--link-hover-color);
}

html.dark .map,
body.dark .map {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* 高对比度模式样式 */
html.high-contrast .footer {
    background-color: #000;
    border-top-color: #fff;
}

html.high-contrast .footer p {
    color: #fff;
}

html.high-contrast .privacy-link a {
    color: #00ffff;
}

html.high-contrast .privacy-link a:hover {
    background-color: #00ffff;
    color: #000;
}

html.high-contrast .footer-links a {
    color: #fff;
}

html.high-contrast .footer-links a:hover {
    color: #00ffff;
}

html.high-contrast .contact-info h3,
html.high-contrast .map-container h4 {
    color: #fff;
}

html.high-contrast .contact-info i {
    color: #00ffff;
}

html.high-contrast .contact-form input,
html.high-contrast .contact-form textarea {
    background-color: #000;
    border-color: #fff;
    color: #fff;
}

html.high-contrast .contact-form button {
    background-color: #ffff00;
    color: #000;
}

html.high-contrast .contact-form button:hover {
    background-color: #00ffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }

    .contact-form form {
        max-width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .map {
        height: 150px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
}
