@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul {
    list-style: none;
}

/* 401 */
.unauthorized {
    text-align: center;
    padding: 100px 0;
    font-family: Arial, sans-serif;
    display: block; /* 默认显示401 */
}
.unauthorized .title {
    font-size: 80px;
    color: #dc3545;
    margin: 0 0 20px;
}
.unauthorized p:last-child {
    font-size: 20px;
    color: #666;
}

/* ========== 主导航 ========== */
.nav-category h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}
.nav-category {
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important; 
    position: fixed !important; 
    top: 0;
    left: 0;
    z-index: 9999 !important; 
    height: 80px;
    display: flex;
    align-items: center; 
}

.nav-inner {
    width: 100%;
    max-width: 1253px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.nav-logo-box {
    display: flex;
    align-items: center;
    gap: 12px; 
    height: 100%;
}
.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}
.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    display: inline-block;
    vertical-align: middle;
}

.nav-category-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
}
.nav-category-item {
    padding: 10px 22px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-category-item.active {
    background: #007bff;
    color: #ffffff;
}

.nav-category-item:hover:not(.active) {
    background: #f5f9ff;
    color: #007bff;
}

@media (max-width: 1024px) {
    .app-header {
        padding: 20px;
    }
    .app-icon {
        flex: 0 0 100px;
        height: 100px;
        margin-right: 20px;
    }
    .main-layout {
        gap: 20px;
    }
    .app-title {
        font-size: 1.3rem;
    }
    .footer-content {
        gap: 30px;
    }
    .nav-site-name {font-size:1.2rem;}
    .nav-category-item {padding:8px 18px;font-size:0.95rem;}
    .nav-logo {width:42px;height:42px;}
}
@media (max-width: 768px) {
    body{padding-top: 72px;}
    .nav-category{height:72px;}
    .breadcrumb {justify-content: center;font-size: 0.85rem;}
    .nav-site-name {font-size:1rem;}
    .nav-logo {width:38px;height:38px;}
    .nav-category-item {padding:6px 12px;font-size:0.85rem;}
    .main-layout {flex-direction: column;gap:25px;}
    .app-header {flex-direction: column;text-align: center;}
    .app-icon {margin-right:0;margin-bottom:15px;}
    .app-title {font-size:1.2rem;}
    .app-desc {font-size:0.95rem;}
    .similar-app-list {justify-content: center;}
    .footer-content {flex-direction: column;gap:25px;}
    .footer-col {min-width:100%;}
}
@media (max-width: 576px) {
    .nav-logo-box {gap:8px;}
    .nav-site-name {font-size:0.95rem;}
    .nav-category-item {padding:4px 8px;font-size:0.8rem;}
}

/* ========== 公共容器样式（可复用） ========== */
.container {
    max-width: 1200px; 
    width: 92%; 
    margin: 0 auto;
    padding: 20px 0;
    /* display: none;  */
}
/* 主内容分栏容器 */
.main-layout {
    display: flex;
    gap: 30px; 
}
/* 左侧主内容区 */
.main-content {
    flex: 7; 
}
/* 右侧推荐栏 */
.sidebar {
    flex: 3; 
    padding-top: 10px;
}

/* ========== 页面通用样式（可复用） ========== */
.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
    text-align: center;
    padding: 10px 0;
}
.text-muted {
    color: #888;
    font-size: 0.9rem;
}
.mb-5 { /* 【新增】更小的间距类 */
    margin-bottom: 5px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-15 {
    margin-bottom: 15px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mt-30 {
    margin-top: 30px;
}
.text-center {
    text-align: center;
}
/* 侧边栏标题样式（可复用） */
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    margin-bottom: 15px;
}

/* ========== 文章列表核心样式（核心调整：减小高度） ========== */
.article-list {
    display: grid;
    gap: 15px; 
}
.article-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.article-item:hover {
    transform: translateY(-3px);
}
/* 左侧封面图 - 调整后尺寸（PC端） */
.article-img {
    flex: 0 0 200px; 
    height: 120px; 
    overflow: hidden;
    padding-top: 30px;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
/* 右侧内容区 */
.article-content {
    flex: 1;
    padding: 20px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-title {
    font-size: 1.15rem; 
    font-weight: 600;
    color: #222;
    transition: color 0.2s ease;
}
.article-title:hover {
    color: #007bff;
}
.article-desc {
    color: #666;
    font-size: 0.95rem; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 右侧推荐文章列表样式 ========== */
.recommend-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
}
.recommend-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}
.recommend-item:last-child {
    border-bottom: none; 
}
.recommend-item:hover {
    color: #007bff;
}
.recommend-item-title {
    font-size: 1rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; 
}
.pagination-item {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.pagination-item.active {
    background: #007bff;
    color: #fff;
}
.pagination-item:hover:not(.active):not(.disabled) {
    border-color: #007bff;
    color: #007bff;
}
.pagination-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.site-footer {
    background: #f5f5f5; 
    color: #333; 
    padding: 40px 0 20px;
    margin-top: 50px;
}
.site-footer .container {
    max-width: 1200px; 
    width: 92%;
    margin: 0 auto;
    padding: 0;
}
/* 底部内容布局 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 30px;
}
/* 底部导航列 */
.footer-col {
    flex: 1;
    min-width: 200px; 
}
.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222; 
}
.footer-nav-list li {
    margin-bottom: 10px;
}
.footer-nav-list a {
    color: #666; 
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-nav-list a:hover {
    color: #007bff; 
}
/* 底部联系方式 */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #666; 
    font-size: 0.95rem;
}
/* 底部版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    color: #777; 
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-copyright a {
    color: #007bff; 
}
/* 友情链接 */
.friend-link {
    width: 100%;
    background: none;
    padding: 5px 0;
}
.friend-link .container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.friend-link-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    background: none;
}
.friend-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.friend-link-item {
    flex: 0 0 auto;
    font-size: 14px;
}
.friend-link-item a {
    display: inline-block;
    padding: 8px 15px;
    background: none;
    border: none;
    border-radius: 0; 
    color: #666;
    text-decoration: none;
    transition: none;
}
.friend-link-item a:hover {
    background: none;
    color: #666;
    border: none;
}
@media (max-width: 1200px) {
    .friend-link .container {
        width: 95%;
    }
}
@media (max-width: 768px) {
    .friend-link-list {
        gap: 10px;
    }
    .friend-link-item a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 友情链接及底部样式优化 */
.site-footer {
    margin-top: 40px;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-links {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}
.footer-links-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.links-list li {
    margin: 5px 0;
}
.links-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.links-list a:hover {
    color: #007bff;
    text-decoration: underline;
}
.footer-copyright {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}
.footer-copyright a {
    color: #666;
    text-decoration: none;
}
.footer-copyright a:hover {
    color: #007bff;
    text-decoration: underline;
}
/* 响应式适配 */
@media (max-width: 768px) {
    .links-list {
        gap: 10px 15px;
    }
    .footer-links-title {
        font-size: 15px;
    }
    .links-list a {
        font-size: 13px;
    }
    .site-footer {
        padding: 20px 0;
    }
}

/* ========== 响应式适配（优化平板/手机端显示） ========== */
@media (max-width: 1024px) {
    /* 【优化】移除未定义的app-header/app-icon样式，避免无效代码 */
    .main-layout {
        gap: 20px; /* 减小左右栏间距 */
    }
    /* 平板端文章图片尺寸优化 */
    .article-img {
        flex: 0 0 180px;
        height: 100px;
    }
    .article-content {
        padding: 10px;
    }
    /* 底部响应式 */
    .footer-content {
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 25px;
    }
    /* 【优化】手机端文章项改为竖向排列，图片占满宽度 */
    .article-item {
        flex-direction: column;
    }
    .article-img {
        flex: none;
        width: 100%;
        height: 180px; /* 手机端图片高度适中，提升视觉效果 */
    }
    .article-content {
        padding: 15px; /* 手机端内边距适度增大，提升阅读体验 */
    }
    .page-title {
        font-size: 1.6rem; /* 手机端标题字体减小 */
    }
    /* 侧边栏优化 */
    .recommend-list {
        padding: 15px;
    }
    /* 底部移动端适配 - 单列布局 */
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    .footer-col {
        min-width: 100%;
    }
    /* 分页移动端适配 */
    .pagination-item {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}