/* 平板端footer样式 */
.tablet-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0 15px;
    margin-top: 40px;
}

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

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

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

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

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

.footer-section-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
}

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

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

.footer-shelves-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.footer-features-list a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

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

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

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

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

.footer-updates-tabs {
    display: flex;
    margin-bottom: 8px;
    gap: 8px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.footer-qr-code {
    width: 70px;
    height: 70px;
}

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

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

.footer-wechat-follow {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

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

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

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

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

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

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

.footer-copyright {
    color: #666;
    font-size: 13px;
}

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

.footer-legal {
    display: flex;
    gap: 15px;
}

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

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

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

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

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

@media (max-width: 768px) {
    .tablet-footer {
        display: none;
    }
}

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