/* 分析页面样式 */

/* 头部左侧 */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    font-size: clamp(24px, 4vw, 48px);
    background: linear-gradient(90deg, #1890ff, #36cfc9, #1890ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
    text-shadow: 0 0 30px rgba(24, 144, 255, 0.5);
    margin: 0;
}

.back-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(24, 144, 255, 0.2);
    border: 1px solid rgba(24, 144, 255, 0.3);
    border-radius: 8px;
    color: #8ec5fc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(24, 144, 255, 0.3);
    border-color: rgba(24, 144, 255, 0.5);
    color: #fff;
}

/* 筛选条件容器 */
.filter-container {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(24, 144, 255, 0.15);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    color: #8ec5fc;
    font-size: 14px;
    font-weight: 500;
}

.filter-item input,
.filter-item select {
    padding: 10px 35px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(24, 144, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238ec5fc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    position: relative;
}

.filter-item select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #1890ff;
    background-color: rgba(24, 144, 255, 0.05);
    box-shadow: 0 0 15px rgba(24, 144, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231890ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-item select:hover {
    border-color: rgba(24, 144, 255, 0.5);
    background-color: rgba(24, 144, 255, 0.08);
}

.filter-item select:active {
    transform: scale(0.98);
}

.filter-item select option {
    background: #1a1f3a;
    color: #fff;
    padding: 10px 15px;
}

.filter-item select option:hover {
    background: #1890ff;
    color: #fff;
}

.filter-item select option:checked {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    font-weight: bold;
}

@supports (-webkit-touch-callout: none) {
    .filter-item select {
        padding-right: 35px;
        border-radius: 8px;
    }
    
    .filter-item select::-ms-expand {
        display: none;
    }
    
    .filter-item select:focus {
        border-radius: 8px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .filter-item select {
        -webkit-appearance: none;
        appearance: none;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .filter-item select:focus {
        background-color: rgba(24, 144, 255, 0.05);
    }
}

.filter-item select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.02);
}

.filter-item select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.filter-item select option:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* 添加下拉框打开时的动画效果 */
.filter-item {
    position: relative;
}

.filter-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1890ff, #36cfc9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    pointer-events: none;
}

.filter-item:focus-within::after {
    width: 100%;
}

/* 优化标签样式 */
.filter-item label {
    transition: all 0.3s ease;
    transform-origin: left center;
}

.filter-item:focus-within label {
    color: #1890ff;
    transform: scale(1.05);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #8ec5fc;
    border: 1px solid rgba(24, 144, 255, 0.3);
}

.filter-btn.primary {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    border: none;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.3);
}

.filter-btn.primary:hover {
    box-shadow: 0 5px 20px rgba(24, 144, 255, 0.4);
}

/* 标签页容器 */
.tabs-container {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* 标签页内容区域 */
.tab-content {
    padding-top: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(24, 144, 255, 0.2);
    padding-bottom: 15px;
}

.tab {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: 8px;
    color: #8ec5fc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab:hover {
    background: rgba(24, 144, 255, 0.1);
    border-color: rgba(24, 144, 255, 0.4);
}

.tab.active {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    border-color: transparent;
}

.tab-content {
    display: none;
}

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

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

/* 表格样式优化 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(24, 144, 255, 0.2);
    padding: 15px;
    text-align: left;
    color: #8ec5fc;
    font-weight: normal;
    border-bottom: 2px solid rgba(24, 144, 255, 0.3);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.data-table tr:hover td {
    background: rgba(24, 144, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-item {
        min-width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        text-align: center;
    }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    color: #8ec5fc;
    font-size: 14px;
}

/* Loading 遮罩层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: rgba(26, 31, 58, 0.9);
    border: 1px solid rgba(24, 144, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(24, 144, 255, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(24, 144, 255, 0.2);
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #8ec5fc;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pagination-info {
    color: #8ec5fc;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.pagination-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: 6px;
    color: #8ec5fc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(24, 144, 255, 0.2);
    border-color: rgba(24, 144, 255, 0.4);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
