/* ========== Banner ========== */
.page-banner-wrap { position: relative; width: 100%; max-width: 100%; height: 600px; overflow: hidden; }
.page-banner-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.page-banner-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ========== 主体内容区 ========== */
.page-content { padding: 0 0 70px; background: var(--bg-page); width: 100%; max-width: 100%; }
.page-layout { display: flex; gap: 56px; align-items: flex-start; }
.page-sidebar {
    width: 265px; flex-shrink: 0; margin-top: -85px; position: relative; z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,.07);
    border-radius: 0 0 12px 12px; overflow: hidden; background: #fff;
}
.side-cat-title {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; font-size: 24px; font-weight: bold; padding: 0 32px; letter-spacing: 4px;
    text-align: center; height: 85px; display: flex; align-items: center; justify-content: center;
}
.side-menu { background: #fff; }
.side-menu li { border-bottom: 1px solid #f5f5f5; }
.side-menu li:last-child { border-bottom: none; }
.side-menu li a {
    display: block; padding: 18px 30px; font-size: 18px; color: var(--text-main);
    transition: all .3s; position: relative; font-weight: 500;
}
.side-menu li a:hover { background: var(--brand-light); color: var(--brand); padding-left: 38px; }
.side-menu li.active a { background: var(--brand-light); color: var(--brand); font-weight: bold; padding-left: 38px; }
.side-menu li.active a::before {
    content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
    background: var(--brand); border-radius: 0 2px 2px 0;
}
.page-main { flex: 1; min-width: 0; padding-top: 44px; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.page-breadcrumb { font-size: 15px; color: var(--text-muted); margin-bottom: 0; padding-bottom: 0; border-bottom: none; flex-shrink: 0; }
.page-breadcrumb .breadcrumb-label { color: var(--text-muted); }
.page-breadcrumb a { color: var(--text-muted); transition: color .3s; }
.page-breadcrumb a:hover { color: var(--brand); }
.page-breadcrumb .sep { margin: 0 8px; color: #ddd; }
.page-breadcrumb .current { color: var(--text-muted); font-weight: normal; }
.page-title-wrap { margin-bottom: 0; min-width: 0; }
.page-title {
    font-size: 28px; font-weight: bold; color: var(--text-main);
    padding-left: 18px; border-left: 5px solid var(--brand); line-height: 1.3; letter-spacing: 1px;
}
.page-title-en {
    font-size: 12px; color: #c0c0c0; letter-spacing: 5px; margin-top: 8px;
    padding-left: 18px; text-transform: uppercase;
}

/* ========== 文章卡片列表 ========== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
.article-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.05), 0 8px 40px rgba(0,0,0,.03);
    transition: all 0.45s cubic-bezier(.25,.46,.45,.94);
    display: flex; flex-direction: column; position: relative;
}
.article-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand), #e84a5a);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s ease; z-index: 2;
}
.article-card:hover { transform: translateY(-10px); box-shadow: 0 12px 32px rgba(200,16,46,.12), 0 24px 60px rgba(200,16,46,.08); }
.article-card:hover::before { transform: scaleX(1); }
.article-cover { position: relative; width: 100%; height: 240px; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.article-card:hover .article-cover img { transform: scale(1.08); }
.article-cover::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; background: linear-gradient(to top, rgba(0,0,0,.12), transparent); pointer-events: none; z-index: 1; }
.article-body { padding: 26px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.article-title {
    font-size: 18px; font-weight: bold; color: #222; line-height: 1.55; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.3s; letter-spacing: .3px;
}
.article-card:hover .article-title { color: var(--brand); }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #aaa; margin-bottom: 16px; }
.article-meta .meta-date { display: flex; align-items: center; gap: 5px; }
.article-meta .meta-date svg { width: 14px; height: 14px; fill: #ccc; }
.article-desc { font-size: 14.5px; color: #888; line-height: 1.85; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-link {
    display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--brand); font-weight: 600;
    margin-top: auto; transition: gap 0.3s ease, opacity .3s; padding: 0; border: none; width: fit-content; letter-spacing: 1px;
}
.article-link:hover { gap: 12px; opacity: .85; }
.article-link svg { width: 16px; height: 16px; fill: var(--brand); transition: transform 0.3s; }
.article-link:hover svg { transform: translateX(4px); }

/* ========== layui分页 ========== */
.pagination-wrap { display: flex !important; justify-content: center !important; margin-bottom: 30px; padding-top: 10px; }
.pagination-wrap .layui-laypage a, .pagination-wrap .layui-laypage span { border-radius: 8px; font-size: 15px; padding: 0 18px; height: 42px; line-height: 42px; }
.pagination-wrap .layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--brand); border-radius: 8px; }
.pagination-wrap .layui-laypage a:hover { color: var(--brand); }
.pagination-wrap .layui-laypage button { border-radius: 8px; height: 42px; line-height: 42px; font-size: 14px; }
.pagination-wrap .layui-laypage button:hover { color: var(--brand); border-color: var(--brand); }
.pagination-wrap .layui-laypage .layui-laypage-skip input { height: 42px; border-radius: 8px; font-size: 14px; }
.pagination-wrap .layui-laypage .layui-laypage-count { font-size: 14px; }

/* ========== 响应式（列表页独有部分） ========== */
@media (max-width: 1200px) {
    .page-banner-wrap { height: 460px; }
    .page-layout { flex-direction: column; gap: 36px; }
    .page-sidebar { width: 100%; margin-top: -85px; }
    .side-cat-title { font-size: 22px; padding: 0 28px; height: 85px; letter-spacing: 4px; }
    .side-menu { display: flex; flex-wrap: wrap; }
    .side-menu li { border-bottom: none; border-right: 1px solid #f0f0f0; flex: 1; min-width: 25%; }
    .side-menu li:last-child { border-right: none; }
    .side-menu li a { padding: 16px 18px; font-size: 17px; text-align: center; }
    .side-menu li a:hover { padding-left: 18px; }
    .side-menu li.active a { padding-left: 18px; }
    .side-menu li.active a::before { display: none; }
    .page-main { padding-top: 0; width: 100%; }
    .page-header-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
    .page-breadcrumb { font-size: 14px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .article-cover { height: 200px; }
    .article-title { font-size: 17px; }
    .pagination-wrap { margin-bottom: 24px; }
}
@media (max-width: 768px) {
    .page-banner-wrap { height: 380px; }
    .page-sidebar { margin-top: -85px; }
    .side-cat-title { font-size: 20px; padding: 0 24px; height: 85px; letter-spacing: 3px; }
    .page-content { padding-bottom: 50px; }
    .page-title { font-size: 24px; }
    .page-title-en { font-size: 11px; }
    .side-menu li { min-width: 50%; }
    .side-menu li:nth-child(2n) { border-right: 0; }
    .side-menu li a { font-size: 16px; }
    .article-grid { grid-template-columns: 1fr; gap: 24px; }
    .article-cover { height: 200px; }
    .article-title { font-size: 17px; }
    .pagination-wrap { margin-bottom: 20px; }
}
@media (max-width: 600px) {
    .page-banner-wrap { height: 320px; }
}

/*文章列表为空时*/
.empty-state {
    width: 100%;
    height: 480px;
    background: #faf8f8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.empty-inner {
    text-align: center;
}
.empty-inner svg {
    margin-bottom: 28px;
}
.empty-inner p {
    font-size: 24px;
    color: #999;
    margin: 0 0 12px 0;
    letter-spacing: 4px;
}
.empty-inner span {
    font-size: 15px;
    color: #ccc;
    letter-spacing: 2px;
}




