/* 文章中心全局样式 - 移除 Layui 依赖 */
.article-center-main {
    padding: 90px 0;
    background-color: var(--light-gray);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 自定义栅格系统 */
.art-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.art-col-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 10px;
    box-sizing: border-box;
}

.art-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 通用卡片组件 */
.art-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow, 0 2px 12px 0 rgba(0,0,0,.05));
    margin-bottom: 20px;
    overflow: hidden;
}

.art-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.art-card-body {
    padding: 20px;
}

/* 轮播图主体 - 匹配 index.css */
.banner-container {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.banner-slide {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    transition: transform 0.5s;
    transform: translateX(100%);
}

.banner-slide.active {
    z-index: 2;
    pointer-events: auto;
    transform: translateX(0);
}

/* 向左滑动 (Next) - 当前图向左出，新图从右入 */
.banner-slide.slide-out-left {
    z-index: 2;
    transform: translateX(-100%);
}

.banner-slide.slide-in-right {
    z-index: 2;
    transform: translateX(0);
}

/* 向右滑动 (Prev) - 当前图向右出，新图从左入 */
.banner-slide.slide-out-right {
    z-index: 2;
    transform: translateX(100%);
}

.banner-slide.slide-in-left-start {
    transform: translateX(-100%);
    transition: none;
}

.banner-slide.slide-in-left {
    z-index: 2;
    transform: translateX(0);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary-color, #fe9313);
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 分类筛选区域 */
.article-category-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow, 0 2px 12px 0 rgba(0,0,0,.05));
    margin-bottom: 20px;
}

.category-group {
    display: flex;
    align-items: center;
}

.category-group label {
    width: 80px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.category-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.category-options a {
    color: #666;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-options a:hover {
    color: var(--primary-color, #3498db);
    background-color: rgba(52, 152, 219, 0.1);
}

.category-options a.active {
    color: #fff;
    background-color: var(--primary-color, #3498db);
}

/* 文章列表项 */
.art-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.art-list .art-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    transition: background 0.3s;
}

.art-list .art-item:first-child {
    padding-top: 0;
}

.art-list .art-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.art-item-left {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
}

.art-thumb {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.art-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.art-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.art-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.art-title a:hover {
    color: var(--primary-color, #3498db);
}

.art-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 15px 0;
}

.art-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.art-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.art-cat a {
    color: var(--primary-color, #3498db);
    text-decoration: none;
}

/* 推荐列表 */
.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.recommend-list li:last-child {
    border-bottom: none;
}

.recommend-list li a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.recommend-list li a:hover {
    color: var(--primary-color, #3498db);
}

/* 文章详情页 */
.art-detail {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.art-head {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.art-head .title {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.3;
}

.art-head .meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.art-head .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.art-body {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.art-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

.art-foot {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

/* 面包屑导航 */
.art-breadcrumb {
    padding: 0 0 20px 0;
    font-size: 14px;
    color: #999;
}

.art-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.art-breadcrumb a:hover {
    color: var(--primary-color, #3498db);
}

.art-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

.art-breadcrumb cite {
    font-style: normal;
    color: #333;
}

/* 自定义轮播图简化样式 */
.art-banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* 分页居中 */
.page {
    text-align: center;
    padding: 30px 0 10px;
}

.page ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.page li a, .page li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page li a:hover {
    border-color: var(--primary-color, #3498db);
    color: var(--primary-color, #3498db);
}

.page li.active span {
    background-color: var(--primary-color, #3498db);
    color: #fff;
    border-color: var(--primary-color, #3498db);
}

/* 响应式适配 */
@media screen and (max-width: 992px) {
    .art-col-9, .art-col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .art-col-3 {
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .art-list .art-item {
        flex-direction: column;
    }
    .art-item-left {
        width: 100%;
        height: 200px;
    }
    .art-head .title {
        font-size: 22px;
    }
    .art-head .meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .art-banner {
        height: 200px;
    }
}
