/*
zibll页脚美化插件样式
Version: 1.0.2
Author: zibll附加插件开发
*/

/* CSS变量定义 */
:root {
    --primary-color: #006eff;
    --text-primary: #606266;
    --text-secondary: #8c8c8c;
    --bg-light: #fff;
    --transition-normal: 0.25s ease;
    --shadow-normal: 0 2px 8px rgba(0, 110, 255, 0.05);
    --shadow-hover: 0 8px 20px rgba(0, 110, 255, 0.1);
}

/* 页脚美化容器 */
.zibll-tnlfooter-container {
    position: relative;
    padding: 40px 0 20px;
    background: transparent;
    margin-top: 40px;
}

.zibll-tnlfooter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 110, 255, 0.1),
        rgba(0, 110, 255, 0.15),
        rgba(0, 110, 255, 0.1),
        transparent
    );
}

/* 内容区域 */
.zibll-tnlfooter-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题区域样式 */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.section-title .title-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 28px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(0, 110, 255, 0.05);
    border-radius: 10px;
}

.section-title .title-text::before,
.section-title .title-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(0, 110, 255, 0.12);
    transform: translateY(-50%);
}

.section-title .title-text::before {
    right: calc(100% + 15px);
}

.section-title .title-text::after {
    left: calc(100% + 15px);
}

/* 赞助商网格布局 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), minmax(200px, 1fr));
    gap: 25px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

.partner-box {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition-normal);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.partner-box .img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.partner-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-box .sponsor-name {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

/* 无赞助商默认提示 */
.no-sponsors {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1200px;
    width: calc(100% - 30px);
}

.no-sponsors .sponsor-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.no-sponsors .sponsor-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* 友情链接区域样式 */
.footer-links-section {
    margin-top: 40px;
}

.links-category {
    margin-bottom: 20px;
}

.links-category .category-title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.links-list {
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.link-item {
    display: inline-block;
    margin: 4px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.link-item:hover {
    background: rgba(0, 110, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 255, 0.15);
}

.link-item a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-item:hover a {
    color: var(--primary-color);
}

/* 版权信息样式 */
.zibll-tnlfooter-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: calc(100% - 30px);
}

.zibll-tnlfooter-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 110, 255, 0.1),
        rgba(0, 110, 255, 0.3),
        rgba(0, 110, 255, 0.1),
        transparent
    );
}

.zibll-tnlfooter-copyright p {
    margin: 0;
    font-size: 15px;
    color: #666;
    letter-spacing: 0.5px;
    line-height: 1.8;
    text-align: center;
}

.zibll-tnlfooter-copyright a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 0 3px;
    transition: all 0.3s ease;
}

.zibll-tnlfooter-copyright a:hover {
    color: #0099FF;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

/* 注册登录链接样式 */
.footer-login-links {
    margin-top: 10px;
    font-size: 14px;
}

/* 网站信息区域样式 */
.site-info-section {
    margin-top: 40px;
    padding: 30px 0;
    background: transparent;
    border-radius: 12px;
}

.site-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1200px;
}

/* 左侧logo和社交媒体图标 */
.site-info-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
    margin-right: 40px;
    margin-left: 20px;
}

.site-info-logo .site-logo {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.site-logo-text {
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

.site-logo-text .site-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 8px;
    width: fit-content;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.site-logo-text .site-title:hover {
    transform: scale(1.05);
}

.site-logo-text .site-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 3px;
    background-color: #0099FF;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.site-logo-text .site-title:hover::after {
    width: 66.67%;
}

.site-logo-text .site-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 右侧快速链接 */
.site-info-links {
    flex: 1;
    min-width: 0;
}

.links-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    justify-content: flex-end;
    text-align: right;
}

.links-column {
    padding: 0;
}

.column-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    text-align: right;
    position: relative;
    padding-bottom: 8px;
    width: fit-content;
    margin-left: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.column-title:hover {
    transform: scale(1.05);
}

.column-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 3px;
    background-color: #0099FF;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.column-title:hover::after {
    width: 66.67%;
}

.column-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column-link-item {
    margin-bottom: 10px;
    text-align: right;
}

.column-link-item a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.column-link-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #0099FF;
    transition: width var(--transition-normal);
}

.column-link-item a:hover {
    color: #0099FF;
}

.column-link-item a:hover::after {
    width: 100%;
}

/* 桌面端隐藏更多按钮，显示所有快速链接 */
.more-links-btn {
    display: none;
}

.collapsed-links {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-info-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        padding: 0 10px;
    }
    
    .site-info-logo .site-logo {
        max-width: 120px;
        max-height: 80px;
    }
    
    .site-info-links {
        flex: 1;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .collapsed-links {
        display: none;
    }
    
    .collapsed-links.show {
        display: block;
    }
    
    .more-links-btn {
        display: block;
        margin: 10px auto 0;
        padding: 8px 16px;
        background-color: transparent;
        border: 1px solid #0099FF;
        color: #0099FF;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .more-links-btn:hover {
        background-color: #0099FF;
        color: white;
    }
    
    .less-text, .less-icon {
        display: none;
    }
    
    .more-links-btn.show .more-text, .more-links-btn.show .more-icon {
        display: none;
    }
    
    .more-links-btn.show .less-text, .more-links-btn.show .less-icon {
        display: inline;
    }
    
    .column-title {
        text-align: center;
    }
    
    .column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .column-link-item {
        text-align: center;
    }
}


/* 响应式设计 */
@media (max-width: 768px) {
    .zibll-tnlfooter-container {
        padding: 30px 0 15px;
    }
    
    .section-title {
        margin-bottom: 25px;
    }
    
    .section-title .title-text {
        padding: 6px 20px;
        font-size: 14px;
    }
    
    .section-title .title-text::before,
    .section-title .title-text::after {
        width: 25px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
        justify-items: center;
    }
    
    .partner-box {
        padding: 15px;
    }
    
    .links-list {
        gap: 8px;
        padding: 10px;
    }
    
    .link-item {
        padding: 6px 12px;
    }
    
    .link-item a {
        font-size: 12px;
    }
    
    /* 网站信息区域响应式 */
    .site-info-section {
        padding: 20px 0;
        width: calc(100% - 20px);
    }
    
    .site-info-container {
        flex-direction: row;
        gap: 20px;
        padding: 0 10px;
    }
    
    .site-info-logo {
        gap: 15px;
    }
    
    .site-logo {
        max-width: 140px;
        max-height: 90px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .collapsed-links {
        display: none;
    }
    
    .collapsed-links.show {
        display: block;
    }
    
    .more-links-btn {
        display: block;
        margin: 10px auto 0;
        padding: 8px 16px;
        background-color: transparent;
        border: 1px solid #0099FF;
        color: #0099FF;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .more-links-btn:hover {
        background-color: #0099FF;
        color: white;
    }
    
    .less-text, .less-icon {
        display: none;
    }
    
    .more-links-btn.show .more-text, .more-links-btn.show .more-icon {
        display: none;
    }
    
    .more-links-btn.show .less-text, .more-links-btn.show .less-icon {
        display: inline;
    }
    
    .column-title {
        font-size: 16px;
    }
    
    .column-link-item a {
        font-size: 13px;
    }
}