/* 通用重置 */
* { 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: linear-gradient(135deg, #FF6B6B 0%, #FFEAA7 50%, #FFA07A 100%); 
    min-height: 100vh; 
    padding: 20px;
}
.container { max-width: 1400px; margin: 0 auto; }

/* 骨架屏样式 */
.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-stats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.skeleton-stat-card {
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.skeleton-input {
    width: 300px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-select {
    width: 120px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-button {
    width: 80px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

.skeleton-table th,
.skeleton-table td {
    padding: 12px 8px;
    text-align: left;
}

.skeleton-table th {
    height: 40px;
    background: #f5f7fa;
}

.skeleton-table td {
    height: 50px;
}

.skeleton-cell {
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    display: inline-block;
}

.skeleton-tag {
    width: 50px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    display: inline-block;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-text.short {
    width: 60px;
}

.skeleton-text.medium {
    width: 100px;
}

.skeleton-text.long {
    width: 150px;
}

/* 响应式骨架屏 */
@media screen and (max-width: 1200px) {
    .skeleton-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .skeleton-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .skeleton-stat-card {
        height: 50px;
    }
    .skeleton-input {
        width: 100%;
    }
    .skeleton-select {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .skeleton-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .skeleton-stat-card {
        height: 45px;
    }
}

/* 统计卡片优化 */
.stats { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    gap: 12px; 
    margin-bottom: 25px; 
}
.stat-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 12px 8px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.25);
    cursor: pointer;
}
.stat-card.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.35);
}
.stat-card.active .stat-title,
.stat-card.active .stat-value {
    color: white !important;
    -webkit-text-fill-color: white !important;
}
.stat-title { 
    color: #6c757d; 
    font-size: 11px; 
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}
.stat-value { 
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px; 
    font-weight: bold;
    margin-left: 8px;
    line-height: 1;
}

/* 内容区域优化 */
.content { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 工具栏优化 */
.toolbar { 
    margin-bottom: 25px; 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap;
    align-items: center;
}

/* 表格优化 */
.el-table {
    border-radius: 8px;
    overflow: hidden;
}
.el-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.el-table th {
    background: linear-gradient(135deg, #f8f9ff 0%, #edf0ff 100%) !important;
    color: #2d3748;
    font-weight: 600;
}
.el-table tr:hover {
    background: #f8f9ff;
}

/* 按钮优化 */
.el-button--primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border: none;
}
.el-button--primary:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF7043 100%);
}

/* 对话框优化 */
.el-dialog {
    border-radius: 12px;
    overflow: hidden;
}
.el-dialog__header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 20px 25px;
}
.el-dialog__title {
    color: white;
    font-weight: 600;
}
.el-dialog__body {
    padding: 25px;
}

/* 分页优化 */
.pagination {
    margin-top: 25px;
    text-align: right;
}

/* 成交签约行样式 */
.el-table .success-row {
    background: #f0f9ff !important;
}
.el-table .success-row:hover {
    background: #e6f7ff !important;
}

/* 响应式设计 - 手机端优化 */
@media screen and (max-width: 1200px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 10px 6px;
    }
    .stat-title {
        font-size: 10px;
    }
    .stat-value {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        max-width: 100%;
    }
    .content {
        padding: 15px;
        border-radius: 8px;
    }
    .stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }
    .stat-card {
        padding: 8px 4px;
        border-radius: 8px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .stat-title {
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }
    .stat-value {
        font-size: 20px;
        margin-left: 0;
    }
    .toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .toolbar > *:nth-child(1),
    .toolbar > *:nth-child(2) {
        width: 100% !important;
    }
    .toolbar > *:nth-child(3),
    .toolbar > *:nth-child(4) {
        width: 100% !important;
    }
    .toolbar > *:nth-child(5),
    .toolbar > *:nth-child(6) {
        width: 100% !important;
    }
    .toolbar > *:nth-child(7) {
        display: none;
    }
    .el-table {
        font-size: 12px;
    }
    .el-table th,
    .el-table td {
        padding: 8px 5px;
    }
    .el-table-column--fixed {
        position: static !important;
    }
    .pagination {
        text-align: center;
    }
    .el-pagination {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .stat-card {
        padding: 8px 3px;
    }
    .stat-title {
        font-size: 9px;
    }
    .stat-value {
        font-size: 18px;
    }
    .el-dialog {
        width: 95% !important;
        margin: 10px auto;
    }
    .el-dialog__header {
        padding: 15px 20px;
    }
    .el-dialog__body {
        padding: 20px;
    }
}