/* 标杆打造平台样式 */

/* Banner主题色 - 政务深蓝风格 */
body[data-page="benchmark"] {
    --primary-color: #2c5282;
    --gradient-primary: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
}

.benchmark-banner {
    --banner-gradient: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3182ce 100%);
    --banner-glow-color: rgba(49, 130, 206, 0.3);
    --banner-btn-primary-bg: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    --banner-btn-primary-shadow: rgba(49, 130, 206, 0.4);
    --banner-btn-primary-shadow-hover: rgba(49, 130, 206, 0.5);
}

/* 页面特定Banner背景（带图片） */
.benchmark-banner {
    background: 
        linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 82, 130, 0.88) 50%, rgba(49, 130, 206, 0.85) 100%),
        url('/public/images/banner-benchmark.jpeg') center/cover no-repeat;
}

/* Tab区域 */
.tab-section {
    background: #f5f7fa;
    padding: 0 0 40px;
    min-height: calc(100vh - 600px);
}

.tab-nav-wrapper {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 70px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-nav-wrapper .btn-view-library,
.tab-nav-wrapper .btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
    margin:5px 10px;
}

.tab-nav-wrapper .btn-view-library:hover,
.tab-nav-wrapper .btn-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.tab-nav-wrapper .btn-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tab-nav-wrapper .btn-back:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.benchmark-tabs {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.benchmark-tabs .tabs-wrapper {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
}

.benchmark-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.benchmark-tab svg {
    flex-shrink: 0;
}

.benchmark-tab:hover {
    background: #f1f5f9;
    color: #2c5282;
}

.benchmark-tab.active {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.tab-extra-btn {
    margin-left: auto;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.tab-extra-btn:hover {
    color: #3b82f6;
}

.tab-extra-btn.active {
    color: #3b82f6;
    font-weight: 600;
}

.tab-content {
    display: none;
    padding:24px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 内容区块 */
.content-section {
    background: #fff;
    padding:24px;
}

/* 列表样式 */
.item-list {
    display: flex;
    flex-direction: column;
}

.item-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

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

.item-row:hover {
    background: #f8fafc;
    margin: 0 -16px;
    padding: 16px;
}

.item-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 16px;
    flex-shrink: 0;
}

.item-status.open {
    background: #e6f7ff;
    color: #1890ff;
}

.item-status.closed {
    background: #f5f5f5;
    color: #999;
}

.item-status.review {
    background: #fffbe6;
    color: #d48806;
}

.item-status.graphic {
    background: #f0fdf4;
    color: #16a34a;
}

.item-status.interpret {
    background: #fdf4ff;
    color: #9333ea;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: #f0f5ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #2c5282;
}

.item-icon.doc {
    background: #f0f5ff;
}

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

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.item-row:hover .item-title {
    color: #2c5282;
}

.item-excerpt {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

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

.item-arrow {
    color: #ccc;
    margin-left: 16px;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.item-row:hover .item-arrow {
    color: #2c5282;
    transform: translateX(4px);
}

/* 案例网格 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.case-card-new {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.case-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #2c5282;
}

.case-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.case-type-tag {
    font-size: 12px;
    color: #2c5282;
    background: #f0f5ff;
    padding: 2px 10px;
    border-radius: 4px;
}

.case-date-tag {
    font-size: 12px;
    color: #999;
}

.case-title-new {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.case-company-new {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}

.case-desc-new {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-effect-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.effect-tag {
    font-size: 12px;
    color: #52c41a;
    background: #f6ffed;
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid #b7eb8f;
}

.case-link {
    font-size: 14px;
    color: #2c5282;
    text-decoration: none;
}

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

/* 响应式 */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .item-row {
        flex-wrap: wrap;
    }
    
    .item-status {
        margin-bottom: 8px;
        margin-right: 0;
        order: -1;
    }
    
    .item-icon {
        display: none;
    }
    
    .item-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .item-arrow {
        display: none;
    }
    .benchmark-tabs .tabs-wrapper{
        scrollbar-width: none;
    }
    .tab-content,.content-section{padding: 0;}
}
