/* Container for consistent width with other pages */
.container2 {
    width: 96%;
    min-width: 1200px;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    padding: 20px 0 16px 0;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #64748b;
    width: 100%;
    justify-content: flex-start;
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.breadcrumb-item:hover {
    color: var(--color);
}

.breadcrumb-item.breadcrumb-current {
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Industry Encyclopedia Styles */
.encyclopedia-container {
    min-height: 600px;
    padding: 0px 0 60px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.page-subtitle {
    margin: 0;
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
}

/* 左右分栏布局 */
.encyclopedia-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 左侧分类栏 */
.encyclopedia-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.encyclopedia-categories {
    padding: 0;
    position: sticky;
    top: 20px;
}

.encyclopedia-categories .tab-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.encyclopedia-categories .tab-btn:last-child {
    margin-bottom: 0;
}

.encyclopedia-categories .tab-btn:hover {
    color: var(--color);
}

.encyclopedia-categories .tab-btn.active {
    border-left-color: var(--color);
    color: var(--color);
    font-weight: 600;
}

/* 右侧内容区 */
.encyclopedia-main {
    flex: 1;
    min-width: 0;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
}

.search-box button {
    height: 44px;
    padding: 0 24px;
    background: var(--color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 列表布局 */
.encyclopedia-content {
    padding: 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* No Results Styles */
.encyclopedia-content .no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    width: 100%;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
}

.no-results-icon .iconfont {
    font-size: 40px;
    color: #94a3b8;
}

.no-results-text {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.no-results-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
}

/* Encyclopedia Item Styles - List Layout */
.encyclopedia-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.encyclopedia-item:last-child {
    border-bottom: none;
}

.encyclopedia-item:hover {
    background-color: #f8fafc;
}

.encyclopedia-item .item-cover {
    display: none;
}

.encyclopedia-item .item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.encyclopedia-item .item-content .item-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.encyclopedia-item .item-content .item-title:hover {
    color: var(--color);
}

.encyclopedia-item .item-content .item-summary {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.encyclopedia-item .item-content .item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.encyclopedia-item .item-content .item-meta .item-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.encyclopedia-item .item-content .item-meta .item-views i {
    font-size: 12px;
    color: #94a3b8;
}

.encyclopedia-item .item-content .item-meta .item-views b {
    font-weight: 500;
    color: #64748b;
}

.encyclopedia-item .item-content .item-meta .item-time {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.encyclopedia-item .item-content .item-meta .item-time svg {
    flex-shrink: 0;
}

/* Encyclopedia Detail Page Styles */
.encyclopedia-detail-container {
    min-height: 600px;
    padding: 0px 0 60px;
}

.encyclopedia-detail-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.encyclopedia-detail-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.encyclopedia-detail-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.encyclopedia-detail-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #94a3b8;
}

.encyclopedia-detail-views i {
    font-size: 12px;
    color: #94a3b8;
}

.encyclopedia-detail-views b {
    font-weight: 500;
    color: #64748b;
}

.encyclopedia-detail-date {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
}

.encyclopedia-detail-date svg {
    flex-shrink: 0;
}

.encyclopedia-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

.encyclopedia-detail-date {
    color: #94a3b8;
}

.encyclopedia-detail-summary {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 4px;
    color: #64748b;
}

.encyclopedia-detail-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}

.encyclopedia-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.encyclopedia-detail-content p {
    margin: 16px 0;
}

.encyclopedia-detail-content h1,
.encyclopedia-detail-content h2,
.encyclopedia-detail-content h3,
.encyclopedia-detail-content h4 {
    margin: 24px 0 16px 0;
    color: #1e293b;
    font-weight: 600;
}

.encyclopedia-detail-content h1 {
    font-size: 24px;
}

.encyclopedia-detail-content h2 {
    font-size: 22px;
}

.encyclopedia-detail-content h3 {
    font-size: 20px;
}

.encyclopedia-detail-content h4 {
    font-size: 18px;
}

.encyclopedia-detail-content ul,
.encyclopedia-detail-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.encyclopedia-detail-content li {
    margin: 8px 0;
}

.encyclopedia-detail-content a {
    color: var(--color);
    text-decoration: none;
}

.encyclopedia-detail-content a:hover {
    text-decoration: underline;
}

.encyclopedia-detail-footer {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.encyclopedia-detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shareLabel {
    font-size: 14px;
    color: #64748b;
    margin-right: 8px;
}

.shareBtn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shareBtn:hover {
    background: var(--color);
    color: #ffffff;
    transform: translateY(-2px);
}

.encyclopediaBackBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.encyclopediaBackBtn:hover {
    background: var(--color);
    opacity: 0.9;
    transform: translateX(-4px);
}

.encyclopediaBackIcon {
    font-size: 16px;
}

/* Pagination Styles */
.encyclopedia-pagination {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.pagination-active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.pagination-btn.pagination-active {
    background: var(--color);
    border-color: var(--color);
    color: #ffffff;
    font-weight: 600;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #94a3b8;
    font-size: 14px;
}

.pagination-info {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}
