/* 博客系统暗色系样式 - 参考AI电影创作页面色彩搭配 */

/* 基础样式重置 */
html, body {
    background: #0a0a0f;
    color: #e0e0e0;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.container {
    background: transparent;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(100, 210, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 210, 100, 0.08) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    opacity: 0.6;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        background-position: 0% 0%, 100% 100%, 20% 80%, 80% 20%;
    }
    25% {
        transform: scale(1.05) rotate(5deg);
        background-position: 10% 20%, 90% 80%, 30% 70%, 70% 30%;
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        background-position: 20% 60%, 80% 40%, 60% 20%, 40% 80%;
    }
    75% {
        transform: scale(1.05) rotate(-5deg);
        background-position: 30% 30%, 70% 70%, 10% 90%, 90% 10%;
    }
}

/* 叠加层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* 头部样式 */
.cl-header {
    background: url('/sucai/banner.jpg') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 40px 0;
}

.cl-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.cl-header > * {
    position: relative;
    z-index: 2;
}

/* 品牌文字内容样式 */
.cl-brand-content {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.cl-brand-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.cl-brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #7877c6;
}

.navbar-light .navbar-nav .active > .nav-link {
    color: #7877c6;
    font-weight: bold;
}

.navbar-light .navbar-toggler {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 容器样式 */
.container {
    background: transparent;
}

/* 左侧内容 */
.cl-left {
    margin: 20px 0;
}

/* 右侧内容 */
.cl-right {
    margin: 20px 0;
}

/* 卡片样式 */
.cl-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cl-card:hover {
    border-color: rgba(120, 119, 198, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(120, 119, 198, 0.2);
}

/* 文章列表样式 - 移除封面图，只显示分类名、标题、日期 */
.cl-card .cl-card-image {
    display: none;
}

.cl-card .cl-card-main {
    padding: 0;
    width: 100%;
}

.cl-card-main-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cl-card-main-title a {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cl-card-main-title a:hover {
    color: #7877c6;
    text-decoration: none;
}

.cl-card-main-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 添加分类名和日期样式 */
.cl-card-category {
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cl-card-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* 移除阅读更多链接 */
.cl-card-more {
    display: none;
}

/* 水平布局样式 */
.cl-card-horizontal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
    position: relative;
}

.cl-card-announcement {
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    order: 1;
}

.cl-card-horizontal .cl-card-main-title {
    flex: 1;
    font-size: 1.1rem;
    margin: 0;
    padding: 0 50px 0 2px;
    text-align: left;
    order: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-card-horizontal .cl-card-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    white-space: nowrap;
    order: 3;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 调整卡片内边距，使整体更紧凑 */
.cl-card {
    padding: 15px 20px;
    margin-bottom: 15px;
}

/* 内容页样式 */
.cl-artical-content, .recommend-panel, .comment {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

/* 文章标题 */
.cl-artical-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 文章信息 */
.cl-content-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 文章内容 */
.cl-artical {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.cl-artical h1, .cl-artical h2, .cl-artical h3, .cl-artical h4, .cl-artical h5 {
    color: #ffffff;
    margin: 1.5rem 0 0.8rem 0;
}

.cl-artical p img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 引用样式 */
.cl-artical blockquote {
    background: rgba(120, 119, 198, 0.1);
    border-left: 4px solid #7877c6;
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* 评论区域 */
.comment-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-panel .comment-panel-content .comment-panel-content-main {
    color: rgba(255, 255, 255, 0.8);
}

/* 评论表单 */
.cl-comment-from div {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.cl-comment-from > div > textarea {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.cl-comment-from > div > textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cl-comment-from button {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.3);
}

.cl-comment-from button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 119, 198, 0.4);
}

/* 右侧卡片 */
.right-card-main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.right-card-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* 标签样式 */
.label li a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    margin: 0 8px 8px 0;
    border-radius: 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.label li a:hover {
    background: rgba(120, 119, 198, 0.3);
    border-color: #7877c6;
    color: #ffffff;
}

/* 推荐列表 */
.right-recommended-list li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.right-recommended-list li:hover {
    color: #7877c6;
    padding-left: 5px;
}

.right-recommended-list i {
    color: #7877c6;
    margin-right: 8px;
}

/* 分页样式 */
.pagination {
    margin: 20px 0;
}

.pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: #7877c6;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
    border-color: #7877c6;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

/* 底部样式 */
.cl-footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.cl-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 弹窗样式 */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3rem);
    margin: 1.5rem auto;
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.modal-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    font-size: 24px;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
    opacity: 1;
}

/* 弹窗中的文章样式 */
.modal-body .cl-artical-content {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.modal-body .cl-content-info {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body .cl-artical {
    line-height: 1.8;
    font-size: 1rem;
}

.modal-body .cl-artical p {
    margin-bottom: 15px;
}

.modal-body .cl-artical img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* 加载更多按钮 */
.btn-loadmore {
    background: rgba(120, 119, 198, 0.2);
    border: 1px solid rgba(120, 119, 198, 0.5);
    color: #7877c6;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-loadmore:hover {
    background: rgba(120, 119, 198, 0.3);
    border-color: #7877c6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.3);
}

/* 搜索建议 */
.autocomplete-suggestions {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.autocomplete-suggestions .autocomplete-suggestion {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.autocomplete-suggestions .autocomplete-suggestion:hover {
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
}

/* 移除焦点图和推荐内容 */
.recommend-index {
    display: none;
}

/* 视频容器样式 */
.cl-video-container {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.cl-video {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
}

/* 品牌文字区域样式 */


/* 响应式设计 */
@media (max-width: 768px) {
    .cl-card {
        padding: 15px;
    }
    
    .cl-artical-content, .recommend-panel, .comment {
        padding: 15px;
    }
    
    .cl-artical-title {
        font-size: 1.5rem;
    }
    
    .cl-content-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
    
    /* 响应式视频和品牌文字 */
    .cl-video {
        max-height: 40vh;
    }
    
    .cl-brand-title {
        font-size: 2rem;
    }
    
    .cl-brand-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .cl-header {
        padding: 0 10px;
    }
    
    .cl-card {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .cl-artical-title {
        font-size: 1.3rem;
    }
    
    .right-card-main {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 119, 198, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 119, 198, 0.7);
}

/* 加载更多 */
.loadmore-line .loadmore-tips {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
}

.loadmore-line {
    border-top-color: rgba(255, 255, 255, 0.1);
}