/* 全局样式 */
:root {
    --theme-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --theme-color: #6f42c1;
    --theme-hover: #8250df;
}

/* 背景动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* 基础布局 */
body { 
    min-height: 100vh;
    background: var(--theme-gradient);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

/* 卡片容器样式 */
.card-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin-top: 20px;
    padding: 20px;
}

/* Navbar样式调整 */
.navbar {
    background: var(--theme-gradient) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: relative;
    z-index: 1000;
}

/* 按钮样式 */
.btn-primary {
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.btn-primary:hover {
    background: var(--theme-hover);
    border-color: var(--theme-hover);
}

/* 状态卡片 */
.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* 通用标题样式 */
.settings-header {
    color: #444;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 表格样式 */
.table thead {
    background-color: rgba(255, 255, 255, 0.9);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* 添加或修改以下样式 */
.container {
    max-width: 1140px !important;  /* 强制所有页面使用相同宽度 */
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* 导航栏样式 */
.navbar > .container {
    max-width: 1140px !important;  /* 确保导航栏容器宽度一致 */
}