/* 基础样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding-top: 56px; /* 为固定导航栏留出空间 */
}

/* 容器使用宽屏布局，同时限制最大宽度 */
.container {
    max-width: 1400px;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #2c3e50 !important;
}

/* 搜索框样式 */
.search-container {
    margin: 2rem 0;
    padding-top: 1rem;
}

.search-box {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* 美化搜索选择框 */
.search-select {
    position: relative;
    width: 110px;
    height: 54px;
    border-radius: 27px 0 0 27px;
    border: 1px solid #ddd;
    border-right: none;
    background-color: white;
    padding: 0 30px 0 15px;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
    transition: all 0.3s ease;
    text-align: center;
}

.search-select:hover {
    border-color: #b3b3b3;
}

.search-select:focus {
    outline: none;
    border-color: #4285f4;
}

.select-arrow {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    z-index: 3;
    transition: color 0.3s ease;
}

.search-select:focus + .select-arrow {
    color: #4285f4;
}

.search-input {
    height: 54px;
    border-radius: 0 27px 27px 0;
    padding: 0 100px 0 45px; /* 增加左侧内边距，避免文字遮挡图标 */
    font-size: 1.1rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex-grow: 1;
}

.search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 120px; /* 调整图标位置，确保不被文字遮挡 */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input:focus ~ .search-icon {
    color: #4285f4;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    border-radius: 22px;
    padding: 0 24px;
    background-color: #4285f4;
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #3367d6;
    transform: translateY(-50%) scale(1.05);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.98);
}

/* 左侧分类导航 */
.category-sidebar {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px; /* 导航栏下方 */
    height: calc(100vh - 100px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-category {
    padding: 12px 20px;
    display: block;
    color: #333;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-category:hover {
    background-color: #f5f7fa;
    color: #4285f4;
    text-decoration: none;
}

.sidebar-category.active {
    background-color: #f0f7ff;
    color: #4285f4;
    border-left-color: #4285f4;
    font-weight: 600;
}

.sidebar-category i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 移动端菜单按钮 */
.mobile-category-toggle {
    display: none;
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-category-toggle:hover {
    background-color: #3367d6;
}

.mobile-category-toggle i {
    float: right;
}

/* 主内容区域 */
.main-content {
    transition: padding 0.3s ease;
}

/* 分类导航样式 */
.category-section {
    padding-top: 1rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: #4285f4;
}

.more-link {
    color: #4285f4;
    font-size: 0.9rem;
    align-self: flex-end;
    margin-bottom: 5px;
}

.more-link:hover {
    color: #3367d6;
    text-decoration: none;
}

/* 网站卡片样式 - 使用Bootstrap栅格布局 */
.site-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 80px;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.site-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.site-info {
    flex-grow: 1;
    min-width: 0;
}

.site-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    font-size: 0.85rem;
    color: #777;
    /* 确保描述始终显示，使用多行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 直达链接按钮样式 - 图标按钮 */
.visit-btn {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-btn:hover {
    background-color: #3367d6;
    color: white;
    transform: scale(1.1);
}

/* 热门推荐样式 */
.hot-sites {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.hot-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f5f7fa;
    border-radius: 20px;
    margin: 0 10px 10px 0;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

.hot-tag:hover {
    background-color: #e9ecef;
    color: #4285f4;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 底部样式 */
.footer {
    background-color: white;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.footer-links a {
    color: #333;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #4285f4;
    text-decoration: none;
}

.copyright {
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* 响应式调整 - 中型设备 */
@media (max-width: 992px) {
    .category-sidebar {
        display: none !important; /* 平板及以下设备隐藏左侧分类 */
    }

    .mobile-category-toggle {
        display: block; /* 显示移动端菜单按钮 */
    }

    .main-content {
        padding-left: 0;
    }

    .search-btn {
        padding: 0 18px;
    }
}

/* 响应式调整 - 小型设备 */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.25rem;
    }

    .search-select {
        width: 90px;
        font-size: 0.9rem;
    }

    .select-arrow {
        left: 65px;
    }

    .search-icon {
        left: 105px; /* 调整图标位置 */
    }

    .search-input {
        padding: 0 80px 0 35px; /* 调整内边距 */
        font-size: 1rem;
    }

    .search-btn {
        padding: 0 15px;
        height: 40px;
        font-size: 0.9rem;
    }

    .hot-tag {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .site-logo {
        width: 40px;
        height: 40px;
    }

    .site-name {
        font-size: 0.95rem;
        white-space: nowrap; /* 禁止换行 */
        overflow: hidden;    /* 隐藏溢出内容 */
        text-overflow: ellipsis; /* 溢出部分显示省略号 */
        max-width: 100%;     /* 限制最大宽度为父容器宽度 */
    }

    .site-desc {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .visit-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* 响应式调整 - 超小设备 */
@media (max-width: 576px) {
    .search-container{margin: 1rem 0;padding-top: 0;}
    .search-select {
        width: 80px;
        font-size: 0.85rem;
        padding-left: 10px;
    }

    .select-arrow {
        left: 55px;
    }

    .search-icon {
        left: 75px; /* 调整图标位置 */
        font-size: 1rem;
    }

    .search-input {
        padding: 0 60px 0 25px; /* 调整内边距 */
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .search-container h2 {
        font-size: 1.5rem;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px;
    }
        
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .more-link{padding-bottom: 0.75rem;}
    .category-header{margin-bottom: 0;}
}

/* 列表页特有样式 */
.site_list .cate-header {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.site_list .cate-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.site_list .cate-desc {
    color: #666;
    margin-bottom: 1rem;
}

.site_list .cate-stats {
    color: #888;
    font-size: 0.9rem;
}
.site_list .filter-bar {
    background-color: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site_list .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site_list .filter-btn {
    padding: 6px 14px;
    background-color: #f5f7fa;
    border-radius: 20px;
    border: none;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site_list .filter-btn.active {
    background-color: #4285f4;
    color: white;
}


/* 边栏组件样式 */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}
.sidebar-widget ul{
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-site-list {
    list-style: none;
    padding: 0;
}

.sidebar-site-item {
    border-bottom: 1px solid #f5f7fa;
    align-items: center;
}

.sidebar-site-item:last-child {
    border-bottom: none;
}
.sidebar-site-item .site-card, .related-sites .site-card{
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.sidebar-site-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
}

.sidebar-site-info {
    flex: 1;
}

.sidebar-site-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-site-desc {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 内容页特有样式 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.site-detail-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header {
    display: flex;
    align-items: flex-start;
    min-width: 0; /* 允许内容区在必要时收缩 */
}

.site-big-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0; /* 确保图片不被压缩 */
}

.site-header-info {
    flex-grow: 1;
    min-width: 0; /* 允许内容区在必要时收缩 */
}

.site-big-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.site-url {
    color: #4285f4;
    margin-bottom: 15px;
    word-break: break-all;
}
.site-info{
    color: #666;
    word-wrap: break-word; /* 长单词自动换行 */
    overflow-wrap: break-word; /* 处理长文本换行 */
}

.site-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* 按钮组在空间不足时换行 */
}

.visit-btn-detail {
    padding: 8px 20px;
    background-color: #4285f4;
    color: white;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.visit-btn-detail:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
}

.action-btn {
    padding: 8px 12px;
    background-color: #f5f7fa;
    color: #333;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #e9ecef;
    color: #4285f4;
}

.site-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.nav-tabs {
    border-bottom: 1px solid #eee;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
    background-color: transparent;
}

.tab-content {
    padding: 20px 0;
}

.site-description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.site-features {
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: #4285f4;
    font-weight: bold;
    position: absolute;
    left: 10px;
}

/* 相关网站 */
.related-sites {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

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

.related-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.related-item:hover {
    background-color: #f5f7fa;
    text-decoration: none;
}

.related-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
}

.related-name {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 评论区 */
.comments-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.comment-form {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}


.username-input, .captcha-input {
    height: 42px;
}

.comment-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    min-height: 100px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    width: 120px;
    height: 42px;
    background-color: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    user-select: none;
    cursor: pointer;
}

.refresh-captcha {
    color: #4285f4;
    cursor: pointer;
    font-size: 0.9rem;
}

.comment-submit {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.comment-submit:hover {
    background-color: #3367d6;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-time {
    color: #999;
    font-size: 0.85rem;
}

.comment-content {
    color: #444;
    line-height: 1.6;
}
/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #3367d6;
    transform: scale(1.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 标签列表样式 */
.tags-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tag-item {
    background-color: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-name {
    font-weight: 600;
    color: #2d3436;
}

.tag-count {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    background-color: #f1f3f5;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.tag-count i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .tags-container {
        grid-template-columns: 1fr;
    }
    
    .site-big-name{font-size: 1.25rem;}
}

.category-tree {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
}

.tree-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #2d3436;
    font-size: 1.2rem;
}

/* 一级分类样式 */
.fenlei_tree .level-1 {
    margin-bottom: 8px;
}

.fenlei_tree .level-1 > .category-item {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3436;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* 二级分类样式 */
.fenlei_tree .level-2 {
    margin-left: 15px; /* 移动端减小缩进 */
    margin-bottom: 5px;
    padding-left: 8px;
    border-left: 2px solid #dee2e6;
}

.fenlei_tree .level-2 > .category-item {
    font-weight: 500;
    color: #495057;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* 三级分类样式 */
.fenlei_tree .level-3 {
    margin-left: 30px; /* 移动端减小缩进 */
    margin-bottom: 5px;
    padding-left: 8px;
    border-left: 2px solid #dee2e6;
}

.fenlei_tree .level-3 > .category-item {
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 通用分类项样式 */
.fenlei_tree .category-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.fenlei_tree .category-item:hover {
    background-color: #e9f5ff;
}

.fenlei_tree .category-item.active {
    background-color: #007bff;
    color: white !important;
}

/* 展开/折叠图标 */
.fenlei_tree .toggle-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
    width: 16px;
    text-align: center;
}

/* 数量标签 */
.fenlei_tree .category-count {
    margin-left: auto;
    background-color: rgba(0, 0, 0, 0.05);
    color: #6c757d;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
}

.fenlei_tree .category-item.active .category-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 分类名称溢出处理 */
.fenlei_tree .category-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 桌面端样式调整 */
@media (min-width: 576px) {
    .fenlei_tree .category-tree {
        padding: 20px;
    }
    
    .fenlei_tree .tree-title {
        margin-bottom: 25px;
        font-size: 1.5rem;
    }
    
    .fenlei_tree .level-2 {
        margin-left: 25px;
        padding-left: 10px;
    }
    
    .fenlei_tree .level-3 {
        margin-left: 50px;
        padding-left: 10px;
    }
}

/* 二维码显示/隐藏的过渡效果 */
.qrcode-container {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.mobile-access-btn:hover .qrcode-container {
    display: block !important;
    opacity: 1;
}

a.tag{
    color: #666;
}
.breadcrumb a{
    color: #6c757d;
}

/* 文章列表样式 */
.article-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-item {
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-thumbnail {
    border-radius: 6px;
    overflow: hidden;
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.article-title:hover {
    color: #3498db;
    text-decoration: none;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.875rem;
}
.article-meta a{color: #7f8c8d;}

.article-summary {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
.sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-item {
    padding: 12px 0px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

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

.sidebar-link {
    color: #34495e;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: #3498db;
    text-decoration: none;
}
/* 响应式调整 */
@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 1.5rem;
    }
    
    .article-thumbnail {
        margin-bottom: 1rem;
    }
}

/* 文章内容样式 */
.article-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.article-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
}
.article-content {
    color: #444;
    font-size: 1.05rem;
}

.article-content p {
    line-height: 1.5;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-tags {
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    background-color: #f1f5f9;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

/* 上一篇下一篇导航样式 */
.article-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-prev, .nav-next {
    display: flex;
    align-items: center;
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-link-text {
    color: #34495e;
    transition: color 0.3s ease;
}

.nav-link-text:hover {
    color: #3498db;
    text-decoration: none;
}

.related-articles {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.related-item {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-link {
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-link:hover {
    color: #3498db;
    text-decoration: none;
}

@media (max-width: 767px) {
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-prev, .nav-next {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-next {
        justify-content: flex-start;
    }
}

.site-content h3{font-size: 1.2rem;}
.site-content img {
    max-width: 100%;
    height: auto;
}