/* ==================== 首页内容区样式 ==================== */

.home-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    height: 100%;
    padding: 0;
}

/* 首页标题 */
.home-section h2 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 搜索框容器 */
.home-section .search-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
}

/* 底部区域容器 - 将宝贝回家和页脚放在一起，贴在底部 */
.home-bottom {
    margin-top: auto;
}

/* 公益链接区域 */
.charity-link {
    text-align: center;
    margin: 0 0 8px 0;
    flex-shrink: 0;
}

.charity-link a {
    color: var(--red-accent);
    font-weight: bold;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    transition: var(--transition);
    font-size: 14px;
}

.charity-link a:hover {
    background: rgba(255, 75, 75, 0.3);
    transform: scale(1.02);
}

/* 底部版权信息 - 固定在底部，单行滚动 */
.home-section .footer {
    margin-top: 0;
    flex-shrink: 0;
    padding: 0 0 10px 0;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条（可选，更美观） */
.home-section .footer::-webkit-scrollbar {
    height: 3px;
}

.home-section .footer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.home-section .footer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.footer-content {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 18px;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    white-space: nowrap;
}

.footer-content a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-content img {
    vertical-align: middle;
}

/* 让中间内容自然居中（通过 flex 自动分配空间） */
.home-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-section h2,
.home-section .search-container {
    flex-shrink: 0;
}

/* 首页视频（如果有需要保留） */
.home-video {
    width: 60%;
    max-width: 3000px;
    margin: var(--gap-lg) auto;
}

.home-video video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .home-section {
        justify-content: flex-start;
        padding: 20px 0;
    }
    
    .home-section h2 {
        margin: 0 0 15px 0;
        font-size: 1.2rem;
    }
    
    .home-section .search-container {
        margin: 0 auto;
        width: calc(100% - 32px);
        max-width: 500px;
    }
    
    .charity-link {
        margin: 0 0 8px 0;
    }
    
    .charity-link a {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .home-section .footer {
        padding: 0 0 8px 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    .footer-content {
        display: inline-flex;
        gap: 12px;
        white-space: nowrap;
        font-size: 18px;
    }
    
    .footer-content a {
        font-size: 18px !important;
        white-space: nowrap;
    }
}

/* 超小屏幕（手机竖屏） */
@media (max-width: 480px) {
    .home-section {
        padding: 10px 0;
    }
    
    .home-section h2 {
        font-size: 1rem;
        margin: 0 0 10px 0;
    }
    
    .home-section .search-container {
        width: calc(100% - 24px);
    }
    
    .charity-link {
        margin: 0 0 6px 0;
    }
    
    .charity-link a {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .home-section .footer {
        padding: 0 0 8px 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    .footer-content {
        display: inline-flex;
        gap: 10px;
        white-space: nowrap;
        font-size: 18px;
    }
    
    .footer-content a {
        font-size: 18px !important;
        white-space: nowrap;
    }
}