/* 栏目页面样式 - 企业级统一设计 */

/* 栏目头部 - 扁平化设计 */
.category-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-color);
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

/* 栏目头部下方的内容标签区域 */
.category-tags-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-tags-section .section-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-tags-section .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.category-tags-section .section-header i {
    color: var(--primary-color);
}

.category-tags-section .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
/* 相关栏目区域 - 主内容区顶部 */
.related-categories-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.related-categories-section .section-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.related-categories-section .section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.related-categories-section .section-header i {
    color: var(--primary-color);
}

.related-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.category-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.category-link:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-link i {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.category-link:hover i {
    background: var(--secondary-color);
}

.category-link span {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.category-link small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

/* FAQ 分类标签样式 */
.faq-categories {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: flex-start;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.tab-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.tab-btn.active:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.tab-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active i {
    color: var(--white);
}

/* FAQ 搜索区域样式 */
.faq-search-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.search-box {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.search-box .search-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-color);
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.search-box .search-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-box .search-input::placeholder {
    color: var(--text-muted);
}

.search-box .search-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-box .search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.search-box .search-btn:active {
    transform: translateY(0);
}

.search-box .search-btn i {
    font-size: 16px;
}

.popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.search-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: var(--spacing-xs);
}

.search-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 100%;
}

/* 第一行：标题 */
.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    line-height: 1.2;
}

.category-title i {
    color: var(--primary-color);
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

/* 第二行：说明 */
.category-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* 第三行：数据统计 */
.category-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-color);
    padding: 0;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.stat-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 4px;
}

/* 筛选栏 - 现代化设计 */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.filter-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--border-light);
}

.view-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    min-width: 44px;
    height: 40px;
}

.view-btn i {
    font-size: 16px;
    color: inherit;
    display: inline-block;
}

.view-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.view-btn.active i {
    color: var(--white);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    min-width: 140px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 文章容器 - 现代化网格布局 */
.articles-container,
.scripts-container,
.test-tools-grid,
.update-timeline,
.faq-accordion {
    margin-bottom: var(--spacing-xl);
}

/* 网格视图 - 现代化卡片设计 */
.articles-grid,
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

@media (min-width: 1400px) {
    .articles-grid,
    .scripts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid,
    .scripts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* 列表视图 - 带边框设计 */
.articles-grid.list-view,
.scripts-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.articles-grid.list-view .article-card,
.scripts-grid.list-view .script-card {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.articles-grid.list-view .article-image,
.scripts-grid.list-view .script-header {
    width: 280px;
    min-width: 280px;
    height: auto;
    flex-shrink: 0;
}

.articles-grid.list-view .article-content,
.scripts-grid.list-view .script-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
}

.articles-grid.list-view .article-title,
.scripts-grid.list-view .script-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    max-width: 100%;
}

.articles-grid.list-view .article-title a,
.scripts-grid.list-view .script-title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articles-grid.list-view .article-meta,
.scripts-grid.list-view .script-meta {
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.articles-grid.list-view .article-meta span,
.scripts-grid.list-view .script-meta span {
    white-space: nowrap;
    flex-shrink: 0;
}

.articles-grid.list-view .article-excerpt,
.scripts-grid.list-view .script-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.article-card,
.script-card,
.test-tool-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.article-card:hover,
.script-card:hover,
.test-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* 卡片图片区域 */
.article-image,
.script-header {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category,
.script-language {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
}

/* 卡片内容区域 */
.article-content,
.script-content,
.tool-content {
    padding: var(--spacing-lg);
}

.article-title,
.script-title,
.tool-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-title a,
.script-title a,
.tool-title {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover,
.script-title a:hover {
    color: var(--primary-color);
}

.article-meta,
.script-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    color: var(--primary-color);
}

.article-excerpt,
.script-description,
.tool-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签系统 - 规整均匀 */
.article-tags,
.script-tags,
.tool-features {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag,
.feature-tag {
    padding: 4px var(--spacing-sm);
    background: rgba(0, 115, 170, 0.08);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 115, 170, 0.15);
    transition: all 0.3s ease;
}

.tag:hover,
.feature-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 操作按钮 - 规整均匀 */
.article-actions,
.script-actions,
.tool-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    align-items: center;
}

/* 代码预览区域 */
.script-preview {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.script-preview pre {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
}

/* 时间线样式 */
.update-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 20px;
    height: 20px;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.timeline-icon.major {
    background: var(--danger-color);
}

.timeline-icon.security {
    background: var(--warning-color);
}

.timeline-icon.feature {
    background: var(--success-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-left: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-hover);
}

/* FAQ手风琴样式 */
.faq-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.08), rgba(0, 81, 119, 0.05));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow);
}

.faq-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    overflow: visible;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: var(--bg-light);
}

.faq-question {
    padding: var(--spacing-md) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: transparent;
}

.faq-question h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.faq-question h4:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover i,
.faq-question.active i {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.faq-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

.faq-badge.popular {
    background: var(--danger-color);
}

.faq-badge.new {
    background: var(--success-color);
}

.faq-badge.important {
    background: var(--warning-color);
}

.faq-answer {
    display: none;
    padding: var(--spacing-md) 0 var(--spacing-lg) var(--spacing-lg);
    border-top: none;
    background: transparent;
}

.faq-answer.show {
    display: block;
}

.faq-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
}

/* 测试工具网格 */
.test-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.test-tool-card {
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.08), rgba(0, 81, 119, 0.05));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* 分页导航 - 统一设计 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.page-link {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    min-width: 40px;
    justify-content: center;
}

.page-link:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 var(--spacing-xs);
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.pagination-info {
    color: var(--text-light);
    font-size: 14px;
}

/* 侧边栏优化 - 使用common.css统一样式 */

/* 问题分类列表样式 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.category-info i {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.category-info span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.category-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 115, 170, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

/* 热门列表样式 - 规整均匀 */
.popular-list,
.popular-scripts,
.popular-questions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* 热门教程样式 - 每行一条数据，对齐工整 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hot-article {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.hot-article:last-child {
    border-bottom: none;
}

.hot-article:hover {
    background: var(--bg-light);
    padding-left: calc(var(--spacing-md) + 4px);
}

.hot-rank {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-article:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: var(--white);
    border-color: #ffd700;
}

.hot-article:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: var(--white);
    border-color: #c0c0c0;
}

.hot-article:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: var(--white);
    border-color: #cd7f32;
}

.hot-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hot-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.hot-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.hot-content h4 a:hover {
    color: var(--primary-color);
}

.hot-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.hot-meta i {
    color: var(--text-muted);
    font-size: 11px;
}

.popular-item,
.question-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.popular-item:hover,
.question-item:hover {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.popular-item:last-child,
.question-item:last-child {
    margin-bottom: 0;
}

.popular-rank,
.question-rank {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.popular-item:nth-child(1) .popular-rank,
.question-item:nth-child(1) .question-rank {
    background: var(--danger-color);
}

.popular-item:nth-child(2) .popular-rank,
.question-item:nth-child(2) .question-rank {
    background: var(--warning-color);
}

.popular-item:nth-child(3) .popular-rank,
.question-item:nth-child(3) .question-rank {
    background: var(--success-color);
}

.popular-content,
.question-content {
    flex: 1;
    min-width: 0;
}

.popular-content h4,
.question-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.popular-content h4 a,
.question-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.popular-content h4 a:hover,
.question-content h4 a:hover {
    color: var(--primary-color);
}

.popular-meta,
.question-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

/* 相关链接样式 - 规整均匀 */
.related-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.related-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.related-link:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.related-link i {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.related-link:hover i {
    background: var(--white);
    color: var(--primary-color);
}

.related-link div h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-link div p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* 技术支持样式 */
.support-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.support-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.support-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.support-content {
    flex: 1;
}

.support-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.support-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.support-actions .btn {
    width: 100%;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .articles-grid,
    .scripts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .test-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: var(--spacing-lg) 0;
    }
    
    .category-title {
        font-size: 28px;
        flex-wrap: wrap;
    }
    
    .category-title i {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .category-stats {
        gap: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-left {
        justify-content: center;
    }
    
    .articles-grid,
    .scripts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .test-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .update-timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .timeline-item::before {
        left: -16px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: var(--spacing-md) 0;
    }
    
    .category-title {
        font-size: 24px;
        flex-wrap: wrap;
    }
    
    .category-title i {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .category-description {
        font-size: 14px;
    }
    
    .category-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .filter-bar {
        padding: 16px;
    }
    
    .article-content,
    .script-content,
    .tool-content {
        padding: 20px;
    }
    
    .timeline-content {
        padding: 20px;
        margin-left: 10px;
    }
    
    .widget-content {
        padding: 20px;
    }
    
    .faq-categories {
        padding: var(--spacing-md);
    }
    
    .category-tabs {
        gap: var(--spacing-xs);
    }
    
    .tab-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - var(--spacing-xs));
        justify-content: center;
    }
    
    .faq-search-section {
        padding: var(--spacing-md);
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box .search-btn {
        width: 100%;
    }
    
    .popular-searches {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-label {
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
}

/* 没有找到答案区域样式 */
.no-answer-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.no-answer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: var(--spacing-xl);
    text-align: center;
}

.no-answer-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1), rgba(0, 81, 119, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-answer-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.no-answer-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.no-answer-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-btn:hover i {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .no-answer-card {
        padding: var(--spacing-lg);
    }
    
    .no-answer-icon {
        width: 60px;
        height: 60px;
    }
    
    .no-answer-icon i {
        font-size: 30px;
    }
    
    .no-answer-card h3 {
        font-size: 20px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-btn {
        width: 100%;
    }
}

/* 测试统计样式 - 扁平化设计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    background: var(--bg-light);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.function {
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.stat-icon.performance {
    background: rgba(255, 185, 0, 0.1);
    color: var(--warning-color);
}

.stat-icon.compatibility {
    background: rgba(70, 180, 80, 0.1);
    color: var(--success-color);
}

.stat-icon.security {
    background: rgba(220, 50, 50, 0.1);
    color: var(--danger-color);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* 测试报告列表样式 - 扁平化设计 */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.report-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.report-item:last-child {
    border-bottom: none;
}

.report-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.report-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(220, 50, 50, 0.1);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.report-info {
    flex: 1;
    min-width: 0;
}

.report-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.report-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.report-download {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.report-download:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* 测试环境信息样式 */
.env-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.env-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.env-item:last-child {
    border-bottom: none;
}

.env-label {
    color: var(--text-muted);
    font-weight: 500;
}

.env-value {
    color: var(--text-color);
    font-weight: 500;
}

/* 测试统计和报告响应式样式 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--spacing-sm);
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .report-item {
        flex-wrap: wrap;
    }
    
    .report-download {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}