/* 全局风格与颜色 */
:root {
    --primary-color: #9c88ff;
    --secondary-color: #f8a5c2;
    --accent-color: #78e08f;
    --light-pink: #ffeef8;
    --soft-blue: #e5f1ff;
    --soft-purple: #f3e5ff;
    --soft-pink: #ffeef5;
    --soft-red: #ffd8d8;
    --text-color: #4a4a4a;
    --light-text: #8a8a8a;
    --border-radius: 12px;
    --box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* 整体容器 */
.content-container {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-image: linear-gradient(to bottom, var(--soft-blue) 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.9) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

/* 头部样式 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: linear-gradient(120deg, var(--soft-purple), var(--soft-pink));
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.content-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #6a3093;
    letter-spacing: 0.5px;
}

.content-header .actions {
    display: flex;
    gap: 12px;
}

/* 闪烁星星效果 */
.sparkle {
    position: relative;
    display: inline-block;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.btn-blossom {
    background: linear-gradient(45deg, #ffcee0, #b5c0ff);
    color: #634a7a;
}

.btn-primary-soft {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #4a4a4a;
}

.btn-secondary-soft {
    background: linear-gradient(135deg, #e2c9fa, #d3f9fb);
    color: #4a4a4a;
}

.btn-danger-soft {
    background: linear-gradient(135deg, #ffb8c6, #ffdfd3);
    color: #a55;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-glow {
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(156, 136, 255, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(156, 136, 255, 0.7);
    }
}

/* 筛选面板 */
.filter-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(248, 200, 220, 0.3);
}

.filter-panel-header {
    margin-bottom: 15px;
    text-align: center;
}

.filter-title {
    font-size: 18px;
    color: #9c88ff;
    font-weight: 500;
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
}

.snowflake-divider {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 8px 0;
    color: var(--primary-color);
    font-size: 14px;
    opacity: 0.7;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #7e6d94;
    font-size: 14px;
}

.elegant-select,
.elegant-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0d0f0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.elegant-select:focus,
.elegant-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(156, 136, 255, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 日期范围样式 */
.date-range-inputs {
    padding-top: 15px;
    margin-top: 5px;
    border-top: 1px dashed #e0d0f0;
}

/* 卡片效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.card-body {
    padding: 20px;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.elegant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-color);
}

.elegant-table th {
    background: linear-gradient(to right, var(--soft-purple), var(--soft-pink));
    color: #6a4c93;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    font-size: 14px;
    border: none;
}

.elegant-table th:first-child {
    border-top-left-radius: 8px;
}

.elegant-table th:last-child {
    border-top-right-radius: 8px;
}

.elegant-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(224, 208, 240, 0.3);
    font-size: 14px;
    transition: var(--transition);
}

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

.elegant-table tr:hover td {
    background-color: rgba(248, 239, 255, 0.6);
}

/* 用户徽章样式 */
.user-badge {
    background: linear-gradient(45deg, #a1c4fd, #c2e9fb);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #4a4a4a;
    display: inline-block;
}

/* 空数据提示 */
.empty-container {
    padding: 30px;
    text-align: center;
    color: var(--light-text);
}

.empty-container i {
    font-size: 40px;
    color: #d0c0e0;
    margin-bottom: 15px;
}

.empty-container p {
    margin: 0;
    font-size: 16px;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(248, 239, 255, 0.5);
    padding: 15px 20px;
    border-radius: 25px;
}

.page-btn {
    padding: 6px 15px;
    border-radius: 20px;
    background: linear-gradient(45deg, #e2bbec, #b6cefd);
    color: #634a7a;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #4a3a5a;
}

.page-info {
    color: var(--light-text);
    font-size: 14px;
}

/* 模态框样式 */
.modal-elegant {
    max-width: 400px;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.modal-header {
    background: linear-gradient(135deg, #f8c8dc, #c8e7f8);
    border-bottom: none;
    padding: 15px 20px;
}

.modal-header .modal-title {
    color: #634a7a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    padding: 20px;
}

.modal-message {
    color: #7e6d94;
    margin-bottom: 15px;
}

.elegant-alert {
    background-color: rgba(255, 248, 225, 0.7);
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-footer {
    background: rgba(248, 239, 255, 0.5);
    border-top: none;
    padding: 15px 20px;
}

/* 行动画效果 */
.fade-in-row {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-item {
        min-width: 100%;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-header .actions {
        margin-top: 15px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
}


