/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a9fd4;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: #666;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #5a9fd4;
    background-color: #f0f7fc;
}

/* Banner样式 */
.banner {
    background: #5a9fd4;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.banner-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.banner-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    gap: 0;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 15px;
    outline: none;
}

.search-btn {
    padding: 12px 35px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #34495e;
}

/* 分类导航样式 */
.category-nav {
    padding: 50px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #5a9fd4;
}

.category-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #5a9fd4;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 15px;
}

.category-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.category-desc {
    font-size: 13px;
    color: #999;
}

/* 区块通用样式 */
.latest-section,
.hot-section,
.content-section,
.tags-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background-color: #5a9fd4;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
}

/* 最新网名样式 */
.name-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.name-item {
    border-bottom: 1px solid #f0f0f0;
}

.name-item:last-child {
    border-bottom: none;
}

.name-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    transition: background-color 0.3s ease;
}

.name-link:hover {
    background-color: #f8f9fa;
}

.name-title {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.name-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    margin-left: 20px;
}

/* 热门网名样式 */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.hot-item {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 3px solid #5a9fd4;
    color: #333;
}

.hot-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #5a9fd4;
}

/* 内容分栏样式 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-column {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.column-title {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.column-more {
    font-size: 14px;
    color: #5a9fd4;
}

.column-more:hover {
    text-decoration: underline;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.column-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.column-item a:hover {
    background-color: #f8f9fa;
}

.item-title {
    font-size: 14px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-date {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
    white-space: nowrap;
}

/* 标签样式 */
.tags-section {
    background-color: #fff;
    padding: 40px 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    padding: 8px 18px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.footer-link {
    padding: 5px 10px;
    color: #ecf0f1;
    font-size: 14px;
}

.footer-link:hover {
    color: #5a9fd4;
}

.separator {
    color: #7f8c8d;
}

.footer-copyright {
    font-size: 13px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }

    .banner {
        padding: 40px 0;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .search-box form {
        flex-direction: column;
    }

    .search-input {
        border-radius: 5px 5px 0 0;
    }

    .search-btn {
        border-radius: 0 0 5px 5px;
        padding: 12px 20px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }

    .hot-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .name-title,
    .item-title {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb-link {
    color: #666;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #5a9fd4;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
}

/* 主内容区布局 */
.main-content {
    padding: 30px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 列表页样式 */
.main-column {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.category-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.category-header-top {
    margin-bottom: 10px;
}

.category-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-title-main {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 0;
    font-weight: 600;
}

.category-desc-main {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    flex: 1;
    margin: 0;
}

.category-update-time {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    padding: 4px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 子分类筛选 */
.subcategory-filter {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    padding: 6px 16px;
    background-color: #fff;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

/* 列表容器 */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-item {
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 0;
    display: flex;
    gap: 20px;
}

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

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

.list-item-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    display: block;
}

.list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-item-main {
    display: block;
    flex: 1;
}

.list-item-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 500;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.list-item-main:hover .list-item-title {
    color: #5a9fd4;
}

.list-item-date {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.list-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.list-item-tags {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background-color: transparent;
    color: #999;
    font-size: 13px;
    transition: color 0.3s ease;
    margin-right: 15px;
}

.tag-item:last-child {
    margin-right: 0;
}

.tag-item:hover {
    color: #5a9fd4;
}

.tag-item i {
    font-size: 12px;
    color: inherit;
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-tag {
    padding: 4px 12px;
    background-color: #f0f7fc;
    color: #5a9fd4;
    border-radius: 3px;
    font-size: 12px;
}

.meta-date,
.meta-views {
    font-size: 12px;
    color: #999;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* 分页状态信息 */
.page-status {
    color: #666;
    font-size: 14px;
    margin-right: 15px;
}

/* 分页链接通用样式 */
.page-index a,
.page-pre a,
.page-next a,
.page-last a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-index a:hover,
.page-pre a:hover,
.page-next a:hover,
.page-last a:hover {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

/* 禁用状态 */
.page-pre a[href="javascript:;"],
.page-next a[href="javascript:;"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 页码列表 */
.page-numbar {
    display: inline-flex;
    gap: 5px;
}

.page-num {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.page-num:hover {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

/* 当前页码 */
.page-num-current {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
    font-weight: 600;
}

/* 兼容旧样式 */
.pagination-item {
    padding: 8px 14px;
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-item:hover:not(.disabled) {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

.pagination-item.active {
    background-color: #5a9fd4;
    color: #fff;
    border-color: #5a9fd4;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: #999;
    padding: 0 5px;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background-color: #5a9fd4;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.widget-item a:hover {
    background-color: #f8f9fa;
}

.widget-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #f5f5f5;
    color: #999;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.widget-index.hot {
    background-color: #ff6b6b;
    color: #fff;
}

.widget-text {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-tag {
    padding: 6px 14px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.widget-tag:hover {
    background-color: #5a9fd4;
    color: #fff;
}

/* 详情页样式 */
.detail-column {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-title {
    font-size: 28px;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

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

.meta-label {
    color: #999;
}

.meta-link {
    color: #5a9fd4;
    margin-right: 8px;
}

.meta-link:hover {
    text-decoration: underline;
}

.meta-text {
    color: #666;
}

/* 详情内容 */
.detail-content {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.content-intro p:nth-child(1){
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #5a9fd4;
    border-radius: 4px;
    margin-bottom: 30px;
}

.content-intro p {
    margin: 0;
    line-height: 1.8;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

/* 可复制的p标签样式 */
.content-intro p.copyable {
    cursor: pointer;
    padding-right: 80px;
    border: 1px solid #d0d0d0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.content-intro p.copyable:hover {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f7fc 100%);
    border-color: #5a9fd4;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(90, 159, 212, 0.15);
}

/* 复制按钮 */
.content-intro p.copyable::after {
    content: '点击复制';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    background-color: #5a9fd4;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.content-intro p.copyable:hover::after {
    opacity: 1;
    background-color: #4a8fc4;
}

/* 复制成功状态 */
.content-intro p.copyable.copied::after {
    content: '已复制✓';
    background-color: #52c41a;
}

/* 复制图标动画 */
.content-intro p.copyable::before {
    content: '📋';
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.content-intro p.copyable:hover::before {
    opacity: 0.6;
    right: 95px;
}

/* 网名展示区 */
.name-display {
    margin-bottom: 30px;
}

.name-display-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid #5a9fd4;
}

.name-display-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.name-display-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.name-display-item:hover {
    background-color: #f0f7fc;
    border-color: #5a9fd4;
}

.name-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.name-copy-btn {
    padding: 5px 12px;
    background-color: #5a9fd4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.name-copy-btn:hover {
    background-color: #4a8fc4;
}

.name-copy-btn:active {
    transform: scale(0.95);
}

/* 内容区块 */
.content-section {
    margin-bottom: 30px;
}

.content-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid #5a9fd4;
}

.content-text {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 6px;
}

.content-text p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* 详情标签 */
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.tags-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.detail-tag {
    padding: 6px 14px;
    background-color: #f0f7fc;
    color: #5a9fd4;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.detail-tag:hover {
    background-color: #5a9fd4;
    color: #fff;
}

/* 上下篇导航 */
.detail-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.detail-nav-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.detail-nav-item:hover {
    background-color: #f0f7fc;
    border-color: #5a9fd4;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-nav-item.next {
    text-align: right;
}

/* 相关推荐 */
.related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-item:hover {
    background-color: #f0f7fc;
    border-color: #5a9fd4;
}

.related-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.related-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 响应式 - 列表和详情页 */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .name-display-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-column,
    .detail-column {
        padding: 20px;
    }

    .category-title-main,
    .detail-title {
        font-size: 22px;
    }

    .category-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-update-time {
        align-self: flex-end;
    }

    .subcategory-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tags {
        width: 100%;
    }

    .list-item {
        flex-direction: column;
        gap: 15px;
    }

    .list-item-thumb {
        width: 100%;
        height: 200px;
    }

    .list-item-title {
        font-size: 16px;
    }

    .pagination {
        gap: 8px;
        padding: 15px 0;
    }

    .page-status {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .page-index a,
    .page-pre a,
    .page-next a,
    .page-last a,
    .page-num {
        padding: 6px 12px;
        font-size: 13px;
    }

    .name-display-list {
        grid-template-columns: 1fr;
    }

    .detail-nav {
        grid-template-columns: 1fr;
    }

    .detail-nav-item.next {
        text-align: left;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    /* 移动端可复制p标签样式调整 */
    .content-intro p.copyable {
        padding-right: 75px;
        font-size: 14px;
    }

    .content-intro p.copyable::after {
        font-size: 11px;
        padding: 4px 8px;
        right: 10px;
    }

    .content-intro p.copyable::before {
        font-size: 14px;
        right: 85px;
    }

    .content-intro p.copyable:hover::before {
        right: 88px;
    }
}

@media (max-width: 480px) {
    .main-column,
    .detail-column {
        padding: 15px;
    }

    .category-title-main,
    .detail-title {
        font-size: 20px;
    }

    .list-item-meta {
        gap: 8px;
    }

    .pagination-item {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* 小屏幕可复制p标签样式调整 */
    .content-intro p.copyable {
        padding-right: 70px;
        font-size: 13px;
    }

    .content-intro p.copyable::after {
        content: '复制';
        font-size: 10px;
        padding: 3px 6px;
    }

    .content-intro p.copyable.copied::after {
        content: '✓';
    }

    .content-intro p.copyable::before {
        display: none;
    }
}

