/* 手机端footer样式 */
.mobile-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0 10px;
    margin-top: 40px;
}

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

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* 通用栏样式 */
.footer-section {
    text-align: left;
}

.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 {
    order: 1;
}

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

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

.footer-shelf-cover {
    width: 24px;
    height: 24px;
    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 {
    order: 2;
}

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

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

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

.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 {
    order: 3;
}

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

.footer-tab {
    background-color: transparent;
    border: none;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    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: 6px;
    line-height: 1.2;
}

.footer-updates-list a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    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: 6px;
    line-height: 1.2;
}

.footer-comments-list a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    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 {
    order: 4;
}

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

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

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

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

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

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

.footer-wechat-desc {
    font-size: 12px;
    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;
    flex-direction: column;
    gap: 10px;
}

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

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

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

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

.footer-legal a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    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 print {
    .mobile-footer {
        display: none;
    }
}
