/* 桌面端footer样式 */
.desktop-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 40px 0 20px !important;
    margin-top: 60px !important;
}

/* 深色模式 */
body.dark-mode .desktop-footer {
    background-color: #1a1a1a !important;
    border-top-color: #333 !important;
}

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

.footer-content {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 40px !important;
    flex-wrap: wrap !important;
}

/* 通用栏样式 */
.footer-section {
    flex: 1 !important;
    min-width: 250px !important;
    margin-right: 20px !important;
    text-align: left !important;
}

.footer-section:last-child {
    margin-right: 0 !important;
}

.footer-section-title {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin-bottom: 16px !important;
}

body.dark-mode .footer-section-title {
    color: #fff !important;
}

/* 第一栏：最新书架 */
.footer-new-shelves {
    flex: 1 !important;
}

.footer-shelves-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.footer-shelf-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.footer-shelf-cover {
    width: 30px !important;
    height: 30px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

.footer-shelf-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.footer-shelf-info {
    flex: 1 !important;
}

.footer-shelf-info h5,
.footer-shelf-info p {
    margin: 0 !important;
}

.footer-shelf-title {
    font-size: 13px !important;
    font-weight: 300 !important;
    color: #333 !important;
    margin-bottom: 2px !important;
}

body.dark-mode .footer-shelf-title {
    color: #fff !important;
}

.footer-shelf-desc {
    font-size: 11px !important;
    color: #666 !important;
    line-height: 1.2 !important;
}

body.dark-mode .footer-shelf-desc {
    color: #aaa !important;
}

/* 第二栏：书管功能 */
.footer-library-features {
    flex: 1 !important;
}

.footer-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-features-list li {
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

.footer-features-list a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.3s ease !important;
    margin: 0 !important;
}

.footer-features-list a:hover {
    color: #07c160 !important;
}

body.dark-mode .footer-features-list a {
    color: #aaa !important;
}

body.dark-mode .footer-features-list a:hover {
    color: #07c160 !important;
}

/* 第三栏：最新动态 */
.footer-latest-updates {
    flex: 1 !important;
}

.footer-updates-tabs {
    display: flex !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
}

.footer-tab {
    background-color: transparent !important;
    border: none !important;
    padding: 4px 12px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #666 !important;
}

.footer-tab.active {
    font-weight: 600 !important;
    text-decoration: underline !important;
    color: #333 !important;
    padding: 0 !important;
}

body.dark-mode .footer-tab {
    background-color: transparent !important;
    color: #aaa !important;
}

body.dark-mode .footer-tab.active {
    font-weight: 600 !important;
    text-decoration: underline !important;
    color: #fff !important;
}

.footer-updates-content {
    position: relative !important;
}

.footer-tab-content {
    display: none !important;
}

.footer-tab-content.active {
    display: block !important;
}

.footer-updates-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-updates-list li {
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

.footer-updates-list a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.3s ease !important;
}

.footer-updates-list a:hover {
    color: #07c160 !important;
}

body.dark-mode .footer-updates-list a {
    color: #aaa !important;
}

body.dark-mode .footer-updates-list a:hover {
    color: #07c160 !important;
}

.footer-comments-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-comments-list li {
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

.footer-comments-list a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.3s ease !important;
}

.footer-comments-list a:hover {
    color: #07c160 !important;
}

body.dark-mode .footer-comments-list a {
    color: #aaa !important;
}

body.dark-mode .footer-comments-list a:hover {
    color: #07c160 !important;
}

/* 第四栏：公众号信息 */
.footer-info {
    flex: 1 !important;
}

.footer-wechat {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.footer-qr-code {
    width: 80px !important;
    height: 80px !important;
}

.footer-qr-code img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.footer-wechat-info {
    flex: 1 !important;
}

.footer-wechat-follow {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

body.dark-mode .footer-wechat-follow {
    color: #fff !important;
}

.footer-wechat-desc {
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
}

.footer-wechat-desc-bold {
    font-weight: 600 !important;
}

body.dark-mode .footer-wechat-desc {
    color: #aaa !important;
}

/* 底部版权信息 */
.footer-bottom {
    border-top: 1px solid #e9ecef !important;
    padding-top: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

body.dark-mode .footer-bottom {
    border-top-color: #333 !important;
}

.footer-copyright {
    color: #666 !important;
    font-size: 14px !important;
}

body.dark-mode .footer-copyright {
    color: #aaa !important;
}

.footer-legal {
    display: flex !important;
    gap: 20px !important;
}

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

.footer-legal a:hover {
    color: #07c160 !important;
}

body.dark-mode .footer-legal a {
    color: #aaa !important;
}

body.dark-mode .footer-legal a:hover {
    color: #07c160 !important;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .footer-section {
        margin-right: 0 !important;
        min-width: 100% !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* 适配activity-list样式 */
.footer-latest-updates .recent-activity-content {
    margin-top: 8px !important;
}

.footer-latest-updates .activity-list {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-latest-updates .activity-item {
    padding: 6px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.8rem !important;
}

.footer-latest-updates .activity-item:last-child {
    border-bottom: none !important;
}

/* 近期活动中链接样式 */
.footer-latest-updates .activity-item a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin:0em !important;
}

.footer-latest-updates .activity-item a:hover {
    color: #05a350 !important;
    text-decoration: none !important;
}

/* 深色模式样式 */
body.dark-mode .footer-latest-updates .activity-item {
    border-bottom-color: #3a3a3a !important;
}

body.dark-mode .footer-latest-updates .activity-item a {
    color: #07c160 !important;
}

body.dark-mode .footer-latest-updates .activity-item a:hover {
    color: #09d570 !important;
}

/* 打印样式 */
@media print {
    .desktop-footer {
        display: none !important;
    }
}
