/* ========================================
   数据空间页面样式
   根据 Figma 设计生成，使用 ds- 前缀避免冲突
   ======================================== */

/* ========================================
   主内容区
   ======================================== */
.data-space-page {
    min-height: auto !important;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.50) 0%, white 100%) !important;
    display: block !important;
    align-items: initial !important;
    flex: none !important;
    padding: 0;
}

/* ========================================
   Banner
   ======================================== */
.ds-banner {
    width: 100%;
    height: 212px;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
}

.ds-banner-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 24px 0;
}

.ds-banner-title {
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.ds-banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
    margin: 0;
}

/* ========================================
   统计数据卡片区域
   ======================================== */
.ds-stats-section {
    padding: 0;
    margin-top: -32px;
    position: relative;
    z-index: 10;
}

.ds-stats-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.ds-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ds-stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    position: relative;
}

.ds-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ds-stats-icon-blue {
    background: #EFF6FF;
}

.ds-stats-icon-green {
    background: #F0FDF4;
}

.ds-stats-icon-purple {
    background: #FAF5FF;
}

.ds-stats-icon-orange {
    background: #FFF7ED;
}

.ds-stats-icon img {
    width: 24px;
    height: 24px;
}

.ds-stats-trend {
    position: absolute;
    top: 25px;
    right: 25px;
}

.ds-stats-trend img {
    width: 20px;
    height: 20px;
}

.ds-stats-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-stats-number {
    font-size: 30px;
    font-weight: 600;
    color: #101828;
    line-height: 1.23;
}

.ds-stats-unit {
    font-size: 18px;
    font-weight: 600;
    color: #6A7282;
    margin-left: 4px;
}

.ds-stats-label {
    font-size: 16px;
    font-weight: 400;
    color: #4A5565;
    line-height: 1.5;
}

/* ========================================
   内容区域
   ======================================== */
.ds-content-section {
    padding: 48px 0 64px;
}

.ds-content-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   筛选卡片
   ======================================== */
.ds-filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    padding: 25px;
    margin-bottom: 32px;
}

/* 搜索框 */
.ds-search-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 24px;
}

.ds-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.ds-search-input {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 48px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.ds-search-input::placeholder {
    color: rgba(26, 26, 46, 0.50);
}

.ds-search-input:focus {
    border-color: #155DFC;
}

/* 筛选行 */
.ds-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ds-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A5565;
    font-size: 14px;
    font-weight: 400;
    flex-shrink: 0;
}

.ds-filter-label img {
    width: 16px;
    height: 16px;
}

.ds-filter-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ds-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #F9FAFB;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-filter-btn:hover {
    background: #F3F4F6;
}

.ds-filter-btn.active {
    background: #155DFC;
    color: white;
}

.ds-filter-btn.active .ds-filter-count {
    color: rgba(255, 255, 255, 0.75);
}

.ds-filter-count {
    font-size: 12px;
    font-weight: 500;
    color: #364153;
    opacity: 0.75;
}

/* 分隔线 */
.ds-filter-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 16px 0;
}

/* ========================================
   结果头部
   ======================================== */
.ds-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ds-result-count {
    font-size: 16px;
    font-weight: 400;
    color: #4A5565;
}

.ds-result-number {
    font-size: 16px;
    font-weight: 600;
    color: #155DFC;
}

.ds-sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-sort-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5565;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-sort-btn:hover {
    color: #155DFC;
}

.ds-sort-btn.active {
    color: #155DFC;
    background: #EFF6FF;
}

/* ========================================
   数据列表
   ======================================== */
.ds-data-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ds-data-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    padding: 25px;
    display: flex;
    gap: 24px;
}

.ds-data-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ds-data-icon img {
    width: 32px;
    height: 32px;
}

.ds-data-content {
    flex: 1;
    min-width: 0;
}

.ds-data-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ds-data-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    line-height: 1.4;
}

.ds-data-badge {
    padding: 4px 8px;
    background: #FFEDD4;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #F54900;
    flex-shrink: 0;
}

.ds-data-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ds-data-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
}

.ds-data-meta-item img {
    width: 16px;
    height: 16px;
}

.ds-data-desc {
    font-size: 16px;
    font-weight: 400;
    color: #4A5565;
    line-height: 1.625;
    margin-bottom: 16px;
}

.ds-data-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-data-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-data-tag {
    padding: 4px 12px;
    background: #EFF6FF;
    border-radius: 33554400px;
    font-size: 14px;
    font-weight: 400;
    color: #155DFC;
}

.ds-data-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ds-data-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #6A7282;
}

.ds-data-stat img {
    width: 16px;
    height: 16px;
}

.ds-data-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.ds-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 106px;
    height: 44px;
    background: #155DFC;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ds-btn-download:hover {
    background: #1447E6;
}

.ds-btn-download img {
    width: 16px;
    height: 16px;
}

.ds-btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 106px;
    height: 46px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #364153;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-btn-preview:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.ds-btn-preview img {
    width: 16px;
    height: 16px;
}

/* ========================================
   分页
   ======================================== */
.ds-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.ds-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 17px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4A5565;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-page-btn:hover:not(:disabled) {
    border-color: #155DFC;
    color: #155DFC;
}

.ds-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ds-page-btn.active {
    background: #155DFC;
    border-color: #155DFC;
    color: white;
}

.ds-page-num {
    width: 42px;
    padding: 0;
}

/* ========================================
   CTA 区域
   ======================================== */
.ds-cta-section {
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    padding: 64px 0;
}

.ds-cta-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.ds-cta-title {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

.ds-cta-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
    margin: 0 0 32px 0;
}

.ds-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    background: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #155DFC;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-cta-btn:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   页脚样式覆盖
   ======================================== */
.footer {
    background: linear-gradient(135deg, #101828 0%, #1E2939 100%);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0052D9 0%, #155DFC 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon img {
    width: 24px;
    height: 24px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .ds-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .ds-data-item {
        flex-direction: column;
    }

    .ds-data-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .ds-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ds-stats-grid {
        grid-template-columns: 1fr;
    }

    .ds-banner-title {
        font-size: 28px;
    }

    .ds-banner-subtitle {
        font-size: 16px;
    }

    .ds-filter-options {
        width: 100%;
    }

    .ds-data-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ds-cta-title {
        font-size: 24px;
    }

    .ds-cta-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ds-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ds-data-title {
        font-size: 16px;
    }

    .ds-data-meta {
        gap: 12px;
    }

    .ds-data-meta-item {
        font-size: 12px;
    }

    .ds-data-desc {
        font-size: 14px;
    }

    .ds-pagination {
        gap: 8px;
    }

    .ds-page-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }

    .ds-page-num {
        width: 36px;
    }
}
