/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* 页面布局 */
.page-content {
    padding: 30px 0;
    min-height: calc(100vh - 400px);
}

.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f0f8ff;
    color: #4a90e2;
    padding-left: 25px;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4a90e2;
}

/* 内容区域 */
.content-area {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
    margin-bottom: 20px;
}

.content-header h2 {
    color: #4a90e2;
    font-size: 20px;
}

.search-box {
    display: flex;
    gap: 0;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 180px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-box button:hover {
    background: #357abd;
}

/* 文章列表 */
.article-list {
    min-height: 400px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.article-item:hover {
    background: #fafafa;
    margin: 0 -15px;
    padding: 20px 15px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumb {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-info h3 a {
    color: inherit;
    text-decoration: none;
}

.article-info h3 a:hover {
    color: #4a90e2;
}

.article-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-info {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 12px;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 无图片列表样式 */
.article-item.no-thumb {
    display: block;
}

.article-item.no-thumb .article-info h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-item.no-thumb .article-date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.pagination .active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 文章详情页 */
.article-detail {
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 25px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    font-style: normal;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.article-content h3 {
    font-size: 18px;
    color: #4a90e2;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #4a90e2;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.article-tags span:first-child {
    color: #666;
}

.article-tags span:not(:first-child) {
    background: #f0f8ff;
    color: #4a90e2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 5px;
}

.article-share button {
    padding: 6px 15px;
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.article-share button:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 20px;
}

.article-nav a {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-nav a:hover {
    background: #f0f8ff;
}

.article-nav a span {
    color: #999;
    font-size: 12px;
}

.article-nav a p {
    color: #333;
    font-size: 14px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-article {
    text-align: right;
}

/* 相关推荐 */
.related-articles {
    margin-top: 30px;
}

.related-articles h3 {
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    margin-bottom: 15px;
}

.related-articles ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.related-articles li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.related-articles a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.related-articles a:hover {
    color: #4a90e2;
}

.related-articles a span {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    font-style: normal;
    display: block;
    margin-bottom: 15px;
}

/* 政策列表样式 */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    margin-right: 15px;
    transition: color 0.3s;
}

.policy-item a:hover {
    color: #4a90e2;
}

.policy-item span {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 页面容器 */
.page-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式 */
@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar-menu li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }

    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .article-item {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        height: 180px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .article-nav {
        flex-direction: column;
    }

    .related-articles ul {
        grid-template-columns: 1fr;
    }
}
