/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* 头部样式 */
.header {
    margin-bottom: 24px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.header-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.header-subtitle {
    color: #64748b;
    font-size: 14px;
}

.back-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #93c5fd;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    gap: 8px;
    background: #1e293b;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 32px;
    border: 1px solid #334155;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #e2e8f0;
    background: #334155;
}

.tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

/* 内容区域 */
.content {
    min-height: 500px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* 市场跟踪网格 */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.market-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.market-card:hover {
    border-color: #475569;
}

.market-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.market-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
}

.market-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.market-section {
    margin-bottom: 20px;
}

.market-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-hint {
    font-size: 10px;
    color: #475569;
    font-weight: 400;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    margin-bottom: 6px;
}

.market-item:last-child {
    margin-bottom: 0;
}

.market-name {
    font-size: 13px;
    color: #cbd5e1;
}

.market-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-close {
    font-size: 11px;
    color: #64748b;
    font-family: 'SF Mono', monospace;
}

.market-return {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.market-return.up {
    color: #ef4444;
}

.market-return.down {
    color: #22c55e;
}

.market-return.neutral {
    color: #94a3b8;
}

.trend-icon {
    width: 14px;
    height: 14px;
}

.change-tag {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    margin-left: 4px;
}

.change-tag svg {
    width: 10px;
    height: 10px;
}

/* 资产研判网格 */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.asset-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
    min-height: 280px;
}

.asset-card:hover {
    border-color: #475569;
}

.asset-header {
    margin-bottom: 12px;
}

.asset-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.asset-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-icon {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.asset-upload-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    color: #60a5fa;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.asset-upload-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.upload-icon {
    width: 12px;
    height: 12px;
}

.asset-conclusion {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 500;
}

.asset-description {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.asset-description:hover {
    -webkit-line-clamp: unset;
}

.asset-attachments {
    margin-top: auto;
    margin-bottom: 12px;
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 4px;
    padding-top: 8px;
    border-top: 1px solid #334155;
}

.attachments-header svg {
    width: 12px;
    height: 12px;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(51, 65, 85, 0.4);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.attachment-item:hover {
    background: rgba(71, 85, 105, 0.6);
    border-color: #475569;
}

.attachment-left {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
    overflow: hidden;
}

.attachment-icon {
    width: 14px;
    height: 14px;
    color: #3b82f6;
    flex-shrink: 0;
}

.attachment-name {
    font-size: 11px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-remove {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.attachment-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.attachment-remove svg {
    width: 12px;
    height: 12px;
}

.asset-indicators {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #334155;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.indicator-tag {
    font-size: 10px;
    color: #94a3b8;
    background: #334155;
    padding: 2px 6px;
    border-radius: 3px;
}

/* 策略配置表格 */
.strategy-table-wrapper {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.strategy-table th,
.strategy-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.strategy-table th {
    background: rgba(51, 65, 85, 0.5);
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.strategy-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.2);
}

.strategy-table tbody tr:last-child td {
    border-bottom: none;
}

.col-type {
    width: 120px;
}

.col-subtype {
    width: 160px;
}

.col-view {
    width: 100px;
}

.view-tag {
    font-weight: 600;
}

.view-tag.recommend {
    color: #ef4444;
}

.view-tag.neutral {
    color: #eab308;
}

.view-tag.not-recommend {
    color: #22c55e;
}

/* 管理人库 */
.manager-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}

.manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(51, 65, 85, 0.3);
    border-bottom: 1px solid #334155;
}

.manager-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manager-icon {
    width: 20px;
    height: 20px;
    color: #60a5fa;
}

.manager-subtitle {
    font-size: 12px;
    color: #64748b;
}

.manager-table-wrapper {
    overflow-x: auto;
}

.manager-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.manager-table th,
.manager-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.manager-table th {
    background: rgba(51, 65, 85, 0.5);
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.manager-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.2);
}

.manager-table tbody tr:last-child td {
    border-bottom: none;
}

.manager-table tbody tr.benchmark {
    background: rgba(51, 65, 85, 0.4);
}

.manager-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #e2e8f0;
}

.benchmark-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
}

.manager-style {
    font-size: 13px;
    color: #94a3b8;
}

.text-right {
    text-align: right;
}

/* 图表卡片样式 */
.chart-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}

.chart-card:hover {
    border-color: #475569;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(51, 65, 85, 0.3);
    border-bottom: 1px solid #334155;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-icon {
    width: 20px;
    height: 20px;
    color: #60a5fa;
}

.chart-subtitle {
    font-size: 12px;
    color: #64748b;
}

.chart-body {
    padding: 20px;
}

.chart-container {
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.legend-items {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.view-full-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-full-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-icon {
    width: 14px;
    height: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease;
    overflow: hidden;
}

.chart-modal-content {
    max-width: 1200px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-icon {
    width: 20px;
    height: 20px;
    color: #60a5fa;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #334155;
    border: none;
    border-radius: 6px;
    color: #60a5fa;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: #475569;
}

.modal-btn svg {
    width: 14px;
    height: 14px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border: none;
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #475569;
    color: #ffffff;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 20px;
}

.chart-modal-body {
    padding: 0;
    height: 70vh;
}

.image-preview-container {
    background: #0f172a;
    border-radius: 8px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #334155;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 40px;
}

.fallback-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #3b82f6;
    opacity: 0.5;
}

.fallback-text {
    font-size: 14px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(51, 65, 85, 0.3);
    border-top: 1px solid #334155;
}

.modal-hint {
    font-size: 12px;
    color: #64748b;
}

.modal-source {
    font-size: 11px;
    color: #475569;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .asset-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .chart-modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: 100%;
        justify-content: flex-start;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .asset-grid {
        grid-template-columns: 1fr;
    }
    
    .strategy-table,
    .manager-table {
        font-size: 12px;
    }
    
    .strategy-table th,
    .strategy-table td,
    .manager-table th,
    .manager-table td {
        padding: 12px;
    }
    
    .col-type,
    .col-subtype,
    .col-view {
        width: auto;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .legend-items {
        flex-wrap: wrap;
    }
    
    .chart-modal-body {
        height: 60vh;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* 隐藏文件输入框 */
.file-input-hidden {
    display: none;
}

/* 策略配置表格样式 */
.strategy-table th.col-level1 {
    width: 100px;
}

.strategy-table th.col-level2 {
    width: 120px;
}

.strategy-table th.col-suggestion {
    width: 100px;
}

.strategy-table th.col-monitor {
    width: 280px;
}

.strategy-table th.col-conclusion {
    min-width: 200px;
}

.strategy-table td.level1-cell {
    font-weight: 600;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.3);
}

.strategy-table td.level2-cell {
    font-weight: 500;
    color: #e2e8f0;
}

/* 配置建议标签 */
.suggestion-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.suggestion-recommend {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.suggestion-not-recommend {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.suggestion-neutral {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* 监测指标单元格 */
.monitor-cell {
    padding: 12px !important;
}

.monitor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.monitor-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.monitor-name {
    color: #94a3b8;
    min-width: 100px;
}

.monitor-value {
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

/* 结论单元格 */
.conclusion-cell {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Tooltip 提示图标 */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: #64748b;
    cursor: help;
    transition: color 0.2s;
    position: relative;
}

.tooltip-icon:hover {
    color: #3b82f6;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 11px;
    color: #e2e8f0;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    max-width: 300px;
    white-space: normal;
    line-height: 1.4;
}

.tooltip-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #334155;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-bottom: -4px;
}

.tooltip-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 管理人库表格样式 */
.manager-table th:first-child {
    width: 35%;
}

.manager-table th:nth-child(2) {
    width: 35%;
}

.manager-table th:nth-child(3) {
    width: 15%;
}

.manager-table th:last-child {
    width: 15%;
}

/* 指数行样式 */
.index-row {
    background: rgba(59, 130, 246, 0.08) !important;
}

.index-row td {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* 管理人名称单元格 */
.manager-name-cell {
    padding: 14px 20px !important;
}

.manager-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(51, 65, 85, 0.6);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.index-icon {
    font-size: 16px;
}

.manager-name {
    font-weight: 500;
    color: #e2e8f0;
}

.index-row .manager-name {
    color: #60a5fa;
    font-weight: 600;
}

/* 风格标签单元格 */
.manager-style-cell {
    padding: 14px 20px !important;
}

.style-tag {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

/* 收益单元格 */
.return-cell {
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    font-weight: 600;
}

/* 收益颜色标记 */
.return-up {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.return-up .trend-icon {
    width: 14px;
    height: 14px;
}

.return-down {
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.return-down .trend-icon {
    width: 14px;
    height: 14px;
}

.return-neutral {
    color: #94a3b8;
    font-weight: 500;
}

/* 变动颜色标记 */
.change-up {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}

.change-up .trend-icon {
    width: 10px;
    height: 10px;
}

.change-down {
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}

.change-down .trend-icon {
    width: 10px;
    height: 10px;
}

.change-neutral {
    color: #94a3b8;
    font-size: 11px;
}

/* 指数份额及规模变动表格样式 */
.detect-table th:first-child {
    width: 20%;
    text-align: left;
}

.detect-table th:nth-child(2) {
    width: 25%;
    text-align: center;
}

.detect-table th:nth-child(3) {
    width: 27.5%;
    text-align: center;
}

.detect-table th:nth-child(4) {
    width: 27.5%;
    text-align: center;
}

.detect-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.detect-table td:nth-child(2),
.detect-table td:nth-child(3),
.detect-table td:nth-child(4) {
    text-align: center;
    font-family: 'SF Mono', monospace;
}

/* 指数份额表格 - 变动列对齐 */
.detect-table td:nth-child(3),
.detect-table td:nth-child(4) {
    text-align: center !important;
    padding: 12px 16px !important;
}

.detect-table td:nth-child(3) .change-up,
.detect-table td:nth-child(3) .change-down,
.detect-table td:nth-child(4) .change-up,
.detect-table td:nth-child(4) .change-down {
    display: inline-block;
    width: 65px;
    text-align: right;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.5px;
}

/* ETF规模变动 - 卡片式布局 */
.etf-scale-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.etf-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}

.etf-scale-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.etf-scale-card:hover {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.8);
}

.etf-scale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.etf-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.etf-total-scale {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    font-family: 'SF Mono', monospace;
}

.etf-scale-changes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.etf-change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.change-label {
    font-size: 12px;
    color: #64748b;
}

.change-value {
    font-size: 13px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 70px;
    text-align: right;
}

.change-value.up {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.change-value.down {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

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

/* 监测指标按钮 */
.asset-detect-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.asset-detect-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 监测指标模态框 */
.detect-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

.detect-modal-body {
    padding: 0;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.detect-section {
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.detect-section:last-child {
    border-bottom: none;
}

.detect-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.detect-section-icon {
    font-size: 20px;
}

.detect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.detect-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
}

.detect-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.detect-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detect-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detect-label {
    font-size: 12px;
    color: #64748b;
}

.detect-value {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    font-family: 'SF Mono', monospace;
}

.detect-value.up {
    color: #ef4444;
}

.detect-value.down {
    color: #22c55e;
}

/* 监测指标表格 */
.detect-table-wrapper {
    overflow-x: auto;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
}

.detect-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.detect-table th,
.detect-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.detect-table th {
    background: rgba(51, 65, 85, 0.5);
    font-weight: 600;
    color: #94a3b8;
    font-size: 12px;
}

.detect-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.3);
}

.detect-table tbody tr:last-child td {
    border-bottom: none;
}

.detect-table td {
    color: #e2e8f0;
}

.detect-table td:first-child {
    font-weight: 500;
    color: #ffffff;
    text-align: left;
}

/* 响应式 */
@media (max-width: 768px) {
    .detect-grid {
        grid-template-columns: 1fr;
    }
    
    .detect-table {
        font-size: 11px;
    }
    
    .detect-table th,
    .detect-table td {
        padding: 8px 10px;
    }
}
