:root {
    --primary-color-1: #a1c4fd;
    --primary-color-2: #c2e9fb;
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --text-color: #1a5fb4;
    --accent-color: #1a73e8;
    --decoration-color: #62a8ea;
    --semi-transparent-bg: rgba(161, 196, 253, 0.9);
    --shadow-color: rgba(161, 196, 253, 0.3);
    --gradient-linear: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --gradient-horizontal: linear-gradient(90deg, #a1c4fd, #c2e9fb);
    --gradient-vertical: linear-gradient(180deg, #a1c4fd, #c2e9fb);
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray: #e4e7ed;
    --gray-dark: #909399;
    --success: #67c23a;
    --error: #f56c6c;
    --warning: #e6a23c;
    --info: #909399;
}

* {
    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: var(--white);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.bg-white {
    background-color: var(--white) !important;
}

.text-primary-color {
    color: var(--text-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.border-top {
    border-top: 1px solid var(--gray) !important;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container.with-sidebar {
    flex-direction: row;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray);
    height: 70px;
    display: flex;
    align-items: center;
}

.main-header .header-content {
    max-width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: var(--white);
    border: 2px solid var(--primary-color-1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
}

.header-title {
    flex: 1;
}

.header-title .page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-time {
    font-size: 0.875rem;
    color: var(--gray-dark);
    font-family: monospace;
}

.content-area {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

.main-footer {
    padding: 1rem 2rem;
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.875rem;
    border-top: 1px solid var(--gray-light);
}

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.flash-success .flash-icon {
    background: var(--success);
    color: var(--white);
}

.flash-error .flash-icon {
    background: var(--error);
    color: var(--white);
}

.flash-info .flash-icon {
    background: var(--accent-color);
    color: var(--white);
}

.flash-text {
    flex: 1;
    color: var(--text-color);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-dark);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.flash-close:hover {
    color: var(--text-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--text-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color-1);
}

.btn-secondary:hover {
    background: var(--primary-color-1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-input::placeholder {
    color: var(--gray-dark);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
}

.card-body {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-area {
        padding: 1rem;
    }

    .main-header .header-content {
        padding: 0 1rem;
    }

    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray);
}

.app-header .header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 100%;
    height: 100%;
    color: var(--text-color);
}

.header-nav-menu {
    display: flex;
    gap: 1rem;
}

.header-nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav-link:hover {
    background: var(--gray-light);
}

.nav-logout {
    background: var(--accent-color);
    color: var(--white);
}

.nav-logout:hover {
    background: var(--text-color);
}

.app-main {
    flex: 1;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.app-footer {
    padding: 1rem 2rem;
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.875rem;
}
