.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 主内容区 */
.main-section {
    padding: 50px 0 100px;
}

.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧分类栏 */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-base);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), #34D399);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
    transform-origin: left;
    z-index: 2;
}

.sidebar-card:hover::before {
    transform: scaleX(1);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.sidebar-group {
    padding: 20px 22px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.cat-tree li {
    margin-bottom: 2px;
    font-size: 13.5px;
}

.cat-tree li:last-child {
    margin-bottom: 0;
}

.cat-tree .cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-200);
    transition: var(--transition-base);
    border-left: 3px solid transparent;
}

.cat-tree .cat-item:hover {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.cat-tree .cat-item.active {
    color: var(--brand-primary);
    font-weight: 500;
    background: var(--brand-primary-light);
    border-left-color: var(--brand-primary);
}

.cat-tree .cat-item .count {
    margin-left: auto;
    color: var(--text-400);
    font-size: 12px;
}

/* 右侧主内容 */
.main-content {
    min-width: 0;
}

/* 搜索栏 */
.search-bar {
    background: #fff;
    border-radius: var(--radius-base);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.search-bar:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-400);
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    color: var(--text-200);
    background: var(--bg-page);
    transition: var(--transition-base);
    outline: none;
}

.search-input:focus {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.1);
}

.search-input::placeholder {
    color: var(--text-400);
}

/* 文章列表 - 纯文字列表，标题醒目 */
.article-list-wrap {
    background: #fff;
    border-radius: var(--radius-base);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.article-list-wrap:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-item {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition-base);
    cursor: pointer;
}

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

.article-item:hover {
    background: var(--brand-primary-light);
    padding-left: 28px;
}

/* 标题醒目强化 */
.article-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 8px;
    transition: var(--transition-base);
    line-height: 1.5;
}

.article-item:hover .article-title {
    color: var(--brand-primary);
}

.article-desc {
    font-size: 13.5px;
    color: var(--text-300);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--text-400);
}

.article-meta .tag {
    padding: 2px 10px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-radius: 4px;
    font-weight: 500;
}

.article-meta i {
    margin-right: 4px;
    font-size: 12px;
}

.article-detail-card {
    background: #fff;
    border-radius: var(--radius-base);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
    margin-bottom: 20px;
}

.article-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* 文章头部 */
.article-header {
    padding: 32px 36px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.article-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-100);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-400);
    flex-wrap: wrap;
}

.article-meta .tag {
    padding: 3px 12px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-radius: 4px;
    font-weight: 500;
}

.article-meta i {
    margin-right: 4px;
    font-size: 12px;
}

/* 正文排版 */
.article-content {
    padding: 30px 36px 40px;
    font-size: 15px;
    color: var(--text-200);
    line-height: 1.9;
}

.article-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-100);
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--brand-primary);
    line-height: 1.4;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-100);
    margin: 24px 0 12px;
    line-height: 1.5;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-200);
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.article-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text-100);
    font-weight: 600;
}

/* 提示框 */
.tip-box {
    padding: 16px 20px;
    background: var(--brand-primary-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
    font-size: 14px;
}

.tip-box .tip-title {
    font-weight: 600;
    color: var(--brand-primary-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tip-box p {
    margin-bottom: 0;
    color: var(--text-200);
}

/* 图片占位 */
.article-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-400);
    font-size: 14px;
    border: 1px dashed var(--border);
}

/* 上下篇导航 */
.article-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-soft);
    border-top: 1px solid var(--border-soft);
}

.pag-item {
    background: #fff;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pag-item:hover {
    background: var(--brand-primary-light);
}

.pag-item.next {
    text-align: right;
    align-items: flex-end;
}

.pag-label {
    font-size: 12px;
    color: var(--text-400);
}

.pag-title {
    font-size: 14px;
    color: var(--text-200);
    font-weight: 500;
    transition: var(--transition-base);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.pag-item:hover .pag-title {
    color: var(--brand-primary);
}

/* 相关推荐 */
.related-card {
    background: #fff;
    border-radius: var(--radius-base);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    padding: 24px 28px;
    transition: var(--transition-base);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.related-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--brand-primary);
    border-radius: 2px;
}
.related-list li{border-bottom: 1px dashed var(--border-soft);}
.related-list li a{
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-100);
}

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

.related-list li:hover a{
    color: var(--brand-primary);
    padding-left: 4px;
}

.related-list .date {
    font-size: 12px;
    color: var(--text-400);
    flex-shrink: 0;
    margin-left: 20px;
}



@media (max-width: 1100px) {
    .nav-link {
        padding: 0 20px;
        font-size: 15px;
    }

    .stock-code {
        display: none;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

@media (max-width: 960px) {}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .article-header {
        padding: 24px 20px 18px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .dropdown-inner {
        grid-template-columns: 1fr;
    }

    .article-pagination {
        grid-template-columns: 1fr;
    }

    .pag-item.next {
        text-align: left;
        align-items: flex-start;
    }
}