/* SCS66首页样式 - 零度博客风格 */

/* 排序菜单样式 */
.ajax-option {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.flex.ac {
    display: flex;
    align-items: center;
}

.option-dropdown {
    background: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
}

.option-dropdown:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.option-items {
    margin-left: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.option-items::-webkit-scrollbar {
    display: none;
}

.option-items a {
    color: #666;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 8px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.option-items a:hover,
.option-items a.focus-color {
    color: #007bff;
    background: #e3f2fd;
    border-color: #bbdefb;
    text-decoration: none;
}

/* 文章列表样式 */
.posts-item.list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.posts-item.list:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #e3f2fd;
}

.post-graphic {
    width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
    position: relative;
}

.item-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.item-thumbnail a {
    display: block;
    width: 200px;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
    opacity: 0;
}

.item-thumbnail .fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-thumbnail img.lazyloaded {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.item-thumbnail:hover img.lazyloaded {
    transform: scale(1.05);
}

.radius8 {
    border-radius: 8px;
}

.img-badge.left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,68,68,0.3);
}

.jb-red {
    background: linear-gradient(45deg, #ff4444, #ff6b6b) !important;
}

.item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.xx {
    align-items: flex-start;
}

.flex1 {
    flex: 1;
}

.jsb {
    justify-content: space-between;
}

.item-heading {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-heading a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.item-heading a:hover {
    color: #007bff;
}

.item-excerpt {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb6 {
    margin-bottom: 6px !important;
}

/* Flex布局辅助类 */
.flex {
    display: flex;
}

.ajax-item {
    transition: all 0.3s ease;
}

.ajax-pager {
    min-height: 200px;
}

/* 标签样式 */
.item-tags {
    margin-bottom: 15px !important;
}

.but {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.c-blue {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.c-yellow {
    background: #fff9c4;
    color: #f57c00;
    border: 1px solid #fff59d;
}

.c-green {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.but:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.but i {
    margin-right: 4px;
}

.meta-pay {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

.jb-vip1 {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.meta-pay:hover,
.jb-vip1:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
    color: #fff !important;
}

/* VIP等级样式 */
.vip-gold {
    background: linear-gradient(45deg, #ffd700, #ffb300) !important;
}

.vip-diamond {
    background: linear-gradient(45deg, #b9f2ff, #4a90e2) !important;
}

.vip-super {
    background: linear-gradient(45deg, #9c27b0, #673ab7) !important;
}

/* 文章元信息样式 */
.item-meta {
    margin-top: auto;
}

.meta-author {
    display: flex;
    align-items: center;
}

.avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
}

.ml6 {
    margin-left: 6px;
}

.meta-right {
    display: flex;
    align-items: center;
}

.meta-view,
.meta-like {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    margin-left: 15px;
}

.meta-view svg,
.meta-like svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* 分页样式 */
.pagenav.ajax-pag {
    margin-top: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px 5px 0;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-numbers:hover {
    background: #f8f9fa;
    color: #007bff;
    border-color: #007bff;
}

.page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-numbers.dots {
    background: transparent;
    border: none;
    color: #666;
    padding: 8px 4px;
}

.pag-jump {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.jump-input {
    width: 35px;
    height: 26px;
    padding: 1px 3px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    text-align: center;
    margin-right: 3px;
    font-size: 12px;
    line-height: 1.2;
}

.jump-text {
    font-size: 12px;
    color: #666;
    margin-right: 2px;
}

.jump-icon {
    font-size: 12px;
    color: #666;
    margin-left: 2px;
}

/* 占位符动画样式 */
.placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.placeholder.t1 {
    height: 24px;
    width: 60%;
    margin-bottom: 8px;
}

.placeholder.k1 {
    height: 16px;
    width: 90%;
    margin-bottom: 6px;
}

.placeholder.k2 {
    height: 14px;
    width: 40%;
    margin-bottom: 10px;
}

.placeholder.s1 {
    height: 14px;
    width: 60px;
    display: inline-block;
    margin-right: 10px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 图标样式 */
.img-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 滚动条样式 */
.scroll-x {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 悬停效果增强 */
.posts-item.list {
    position: relative;
    overflow: hidden;
}

.posts-item.list::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.posts-item.list:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-item.list {
        flex-direction: column;
        padding: 15px;
    }
    
    .post-graphic {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .item-thumbnail a {
        width: 100%;
        height: 200px;
    }
    
    .option-items {
        flex-wrap: wrap;
    }
    
    .meta-view,
    .meta-like {
        font-size: 12px;
        margin-left: 10px;
    }
    
    .item-heading {
        font-size: 16px;
    }
    
    .but {
        font-size: 11px;
        padding: 3px 8px;
    }
}