/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2024-01-03 00:15:11
 * @LastEditors: iowen
 * @LastEditTime: 2024-01-13 11:05:39
 * @FilePath: \onenavsub\assets\css\sub-style.css
 * @Description: 自定义样式
 */

/* 简约底部样式 */
.footer-main-content {
    background: #ffffff;
    padding: 40px 0;
    position: relative;
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* 品牌区域 */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-tagline {
    color: #999999;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* 导航区域 */
.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-nav a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-nav a:hover {
    color: #333333;
}

.footer-friend-links {
    margin-top: 15px;
}

.friend-links-title {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-list a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friend-links-list a:hover {
    color: #007bff;
}

/* 社交区域 */
.footer-social {
    display: flex;
    align-items: center;
}

.qr-codes {
    display: flex;
    gap: 16px;
    align-items: center;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qr-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.qr-item img:hover {
    transform: scale(1.05);
}

.qr-item span {
    color: #999999;
    font-size: 11px;
    text-align: center;
}

/* 友情链接区域 - 仅首页显示，放在底部框架上面 */
.footer-friendlinks-top {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.friendlinks-container {
    width: 1480px;
    height: 65px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.friendlinks-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.friendlinks-title {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.friendlinks-list {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.friendlinks-list a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.friendlinks-list a:hover {
    color: #333333;
}

.friendlinks-more {
    display: flex;
    justify-content: flex-end;
}

.more-links {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-links:hover {
    color: #333333;
}

/* 赞助商区域 */
.footer-sponsors-area {
    background: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sponsors-content {
    text-align: center;
}

.sponsors-title {
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.sponsors-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

.sponsors-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sponsor-item img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.sponsor-name {
    color: #666666;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 底部版权区域 */
.footer-bottom-section {
    background: #ffffff;
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright {
    color: #999999;
    font-size: 12px;
    text-align: center;
}

.footer-copyright a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #666666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-main-content {
        padding: 30px 0;
    }
    
    .footer-simple-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-friendlinks-top {
        padding: 16px 0;
    }
    
    .friendlinks-container {
        width: 100%;
        max-width: 1480px;
        height: auto;
        min-height: 65px;
    }
    
    .friendlinks-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .friendlinks-list {
        gap: 12px;
    }
    
    .friendlinks-more {
        justify-content: flex-start;
    }
    
    .sponsors-list {
        gap: 15px;
    }
    
    .sponsor-item {
        min-width: 100px;
        padding: 10px;
    }
    
    .sponsor-item img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-simple-content {
        gap: 16px;
    }
    
    .footer-nav {
        gap: 12px;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
    
    .qr-codes {
        gap: 12px;
    }
    
    .qr-item img {
        width: 40px;
        height: 40px;
    }
    
    .qr-item span {
        font-size: 10px;
    }
    
    .sponsors-list {
        flex-direction: column;
        align-items: center;
    }
    
    .sponsor-item {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-friendlinks-top {
        padding: 16px 0;
    }
    
    .friendlinks-content {
        gap: 8px;
    }
    
    .friendlinks-list a {
        margin-right: 12px;
        font-size: 13px;
    }
}

/* 自定义深色主题书籍头部样式 */
.custom-book-header {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-book-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.book-header-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.book-header-left {
    flex: 1;
    color: #ffffff;
}

.book-title-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.title-decoration {
    width: 4px;
    height: 60px;
    background: #ffc107;
    border-radius: 2px;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.book-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.book-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.book-description p {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.8;
    text-align: left;
    font-weight: 400;
}

.book-header-right {
    flex-shrink: 0;
}

.book-poster {
    width: 200px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
}

.book-poster:hover {
    transform: scale(1.05);
}

.book-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 上映时间徽章 */
.release-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    opacity: 0.95;
}

/* 豆瓣评分徽章 */
.douban-rating-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-book-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .book-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .book-main-title {
        font-size: 2rem;
    }
    
    .book-poster {
        width: 150px;
        height: 210px;
        margin: 0 auto;
    }
    
    .release-date-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .douban-rating-badge {
        bottom: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* 深色模式优化 */
.io-black-mode .custom-book-header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.io-black-mode .custom-book-header::before {
    background: radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
}

/* 添加一些动画效果 */
.custom-book-header {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题装饰条动画 */
.title-decoration {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .custom-book-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .book-main-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .title-decoration {
        height: 40px;
        width: 3px;
    }
    
    .book-poster {
        width: 120px;
        height: 168px;
    }
    
    .release-date-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
        border-radius: 10px;
    }
    
    .douban-rating-badge {
        bottom: 6px;
        left: 6px;
        padding: 2px 4px;
        font-size: 8px;
        border-radius: 8px;
    }
}

/* 底部版权区域布局 */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-copyright-left {
    text-align: left;
    color: #999999;
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
}

.footer-logo-right {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

/* 友情链接响应式样式 */
/* 平板端适配 */
@media (max-width: 1200px) {
    .friendlinks-container {
        width: 100%;
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .friendlinks-content {
        gap: 15px;
    }
    
    .friendlinks-list {
        gap: 12px;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    .friendlinks-container {
        width: 100%;
        height: auto;
        padding: 15px 20px;
    }
    
    .friendlinks-content {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .friendlinks-title {
        font-size: 13px;
        margin: 0;
        white-space: nowrap;
    }
    
    .friendlinks-list {
        font-size: 13px;
        line-height: 1.6;
        gap: 10px;
        flex: 1;
        display: flex;
        flex-wrap: wrap;
    }
    
    .friendlinks-more {
        justify-content: flex-end;
        margin-left: auto;
    }
    
    .more-links {
        font-size: 13px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .friendlinks-container {
        padding: 10px 15px;
    }
    
    .friendlinks-content {
        gap: 10px;
    }
    
    .friendlinks-title {
        font-size: 12px;
    }
    
    .friendlinks-list {
        font-size: 12px;
        gap: 8px;
    }
    
    .more-links {
        font-size: 12px;
    }
    
    /* 底部版权区域手机端适配 */
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-copyright-left {
        text-align: center;
        font-size: 11px;
    }
    
    .footer-logo-right {
        margin-left: 0;
    }
    
    .footer-logo-img {
        height: 20px;
    }
}
