/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 布局样式 - 所有页面通用 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 只有在 body 没有 arcaea-theme 时才应用旧通用风格 */
body:not(.arcaea-theme) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 卡片布局样式 - 所有页面通用 */
.card {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

/* 卡片视觉样式（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .card {
    background: white;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

body:not(.arcaea-theme) .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body:not(.arcaea-theme) .card-header {
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

/* 按钮布局样式 - 所有页面通用 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 按钮视觉样式（旧风格只应用在非 Arcaea 页面） */

body:not(.arcaea-theme) .btn-primary {
    background: var(--primary-color);
    color: white;
}

body:not(.arcaea-theme) .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

body:not(.arcaea-theme) .btn-success {
    background: var(--success-color);
    color: white;
}

body:not(.arcaea-theme) .btn-success:hover {
    background: #059669;
}

body:not(.arcaea-theme) .btn-danger {
    background: var(--danger-color);
    color: white;
}

body:not(.arcaea-theme) .btn-danger:hover {
    background: #dc2626;
}

body:not(.arcaea-theme) .btn-warning {
    background: var(--warning-color);
    color: white;
}

body:not(.arcaea-theme) .btn-warning:hover {
    background: #d97706;
}

body:not(.arcaea-theme) .btn-secondary {
    background: var(--text-secondary);
    color: white;
}

body:not(.arcaea-theme) .btn-secondary:hover {
    background: #4b5563;
}

body:not(.arcaea-theme) .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

body:not(.arcaea-theme) .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}


/* 表单布局样式 - 所有页面通用 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* 表单视觉样式（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .form-label {
    color: var(--text-primary);
}

body:not(.arcaea-theme) .form-control {
    border: 2px solid var(--border-color);
    background: white;
}

body:not(.arcaea-theme) .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body:not(.arcaea-theme) .form-control:disabled {
    background: var(--light-color);
    cursor: not-allowed;
}

/* 表格布局样式 - 所有页面通用 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
}

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

/* 表格视觉样式（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .table thead {
    background: var(--light-color);
}

body:not(.arcaea-theme) .table th {
    color: var(--text-primary);
}

body:not(.arcaea-theme) .table tbody tr:hover {
    background: var(--light-color);
}

/* 导航栏布局样式 - 所有页面通用 */
.navbar {
    padding: 16px 0;
    margin-bottom: 30px;
    border-radius: 0 0 12px 12px;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

/* 导航栏视觉样式（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .navbar {
    background: white;
    box-shadow: var(--shadow-md);
}

body:not(.arcaea-theme) .navbar-brand {
    color: var(--primary-color);
}

body:not(.arcaea-theme) .navbar-nav a {
    color: var(--text-primary);
}

body:not(.arcaea-theme) .navbar-nav a:hover {
    color: var(--primary-color);
}

body:not(.arcaea-theme) .navbar-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

/* 消息提示（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body:not(.arcaea-theme) .alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

body:not(.arcaea-theme) .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

body:not(.arcaea-theme) .alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

body:not(.arcaea-theme) .alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 模态框布局样式 - 所有页面通用 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

/* 模态框视觉样式（旧风格只应用在非 Arcaea 页面） */
body:not(.arcaea-theme) .modal {
    background: rgba(0, 0, 0, 0.5);
}

body:not(.arcaea-theme) .modal-content {
    background: white;
}

body:not(.arcaea-theme) .modal-header {
    border-bottom: 2px solid var(--border-color);
}

body:not(.arcaea-theme) .modal-close {
    color: var(--text-secondary);
}

body:not(.arcaea-theme) .modal-close:hover {
    color: var(--text-primary);
}

/* 徽章布局样式 - 所有页面通用 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 徽章视觉样式（旧风格只应用在非 Arcaea 页面） */

body:not(.arcaea-theme) .badge-success {
    background: #d1fae5;
    color: #065f46;
}

body:not(.arcaea-theme) .badge-warning {
    background: #fef3c7;
    color: #92400e;
}

body:not(.arcaea-theme) .badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

body:not(.arcaea-theme) .badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* 响应式设计 - 所有页面通用 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 16px;
    }

    .navbar-content {
        flex-direction: column;
        gap: 16px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 16px;
}

.hidden {
    display: none;
}




