/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 内容区占位 */
.content-placeholder {
    flex: 1;
}

/* 页脚核心样式 - 降低高度版本 */
footer {
    width: 100%;
    background-color: #111827;
    color: white;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem; /* 减少上下内边距（原4rem） */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 减少列间距（原2rem） */
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    font-size: 1.1rem; /* 略微缩小标题 */
    font-weight: 600;
    margin-bottom: 1rem; /* 减少标题标题间距（原1.5rem） */
    color: #ffffff;
}

.footer-column p {
    color: #9ca3af;
    margin-bottom: 1rem; /* 减少段落间距（原1.5rem） */
    line-height: 1.5; /* 略微收紧行高 */
    font-size: 0.9rem; /* 缩小文字 */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem; /* 减少链接行间距（原0.75rem） */
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem; /* 缩小链接文字 */
}

.footer-links a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 0.8rem; /* 减少图标间距（原1rem） */
    margin-top: 0.8rem; /* 减少上间距（原1rem） */
}

.social-icons a {
    color: #9ca3af;
    font-size: 1.3rem; /* 缩小图标（原1.5rem） */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem; /* 减少上间距（原3rem） */
    padding-top: 1.5rem; /* 减少上内边距（原2rem） */
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 减少底部间距（原1rem） */
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.copyright {
    color: #9ca3af;
    font-size: 0.8rem; /* 缩小版权文字（原0.875rem） */
}

.bottom-links {
    display: flex;
    gap: 1.2rem; /* 减少底部链接间距（原1.5rem） */
}

.bottom-links a {
    color: #9ca3af;
    font-size: 0.8rem; /* 缩小底部链接文字（原0.875rem） */
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-links a:hover {
    color: #ffffff;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 1.5rem; /* 略微上移（原2rem） */
    right: 1.5rem; /* 略微左移（原2rem） */
    background-color: #0066cc;
    color: white;
    width: 2.8rem; /* 缩小按钮（原3rem） */
    height: 2.8rem; /* 缩小按钮（原3rem） */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    border: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
