/* 公共样式 - 所有页面共用 */

/* ========== Reset样式 ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* 左侧面板：使用图片背景 */
         /* 左侧面板：占屏幕 75% 宽度 */
        .left-panel {
            width: 70%;
            height: 100%;
            /* 高度占满屏幕 */
             flex: 1;
    display: flex;
            position: relative;
            align-items: center;
            justify-content: flex-start;
            padding-left: 10%;
            /* 核心修改：设置背景图片 */
            background-image: url("./微信图片_20260325112433_451_35.png");
            background-repeat: no-repeat;
            background-position: center;

            /* 实现“拉伸”：
           第一个 100% 代表宽度填满 75% 的容器，
           第二个 100% 代表高度填满屏幕高度。
           这样图片会随着窗口高度的变化而上下拉伸，不会留黑边或被裁剪。 */
            background-size: 100% 100%;
        }
/* ========== Body基础样式 ========== */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f0f4f9;
    min-height: 100vh;
}

/* ========== 按钮样式 ========== */
.btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(69, 115, 204, 0.25);
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 550;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e3a5f;
    box-shadow: 0 2px 6px rgba(0, 20, 40, 0.02), 0 0 0 1px rgba(69, 115, 204, 0.1);
    text-decoration: none;
    line-height: 1.2;
    justify-content: center;
}

.btn:hover {
    background: #ffffff;
    border-color: #3885ee;
    box-shadow: 0 8px 16px rgba(0, 20, 40, 0.06);
    transform: translateY(-1px);
    color: #0f2b4f;
}

.btn:active {
    background: #e8effa;
    box-shadow: inset 0 2px 8px rgba(28, 65, 128, 0.1);
    transform: translateY(1px);
}

.btn-primary {
    background: #3885ee;
    color: white;
    box-shadow: 0 4px 10px rgba(56, 133, 238, 0.2);
}

.btn-primary:hover {
    background: #2b6ed7;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(56, 133, 238, 0.25);
}

.btn-danger {
    color: #cf3e3e;
    border-color: rgba(207, 62, 62, 0.2);
}

.btn-danger:hover {
    background: #fff1f1;
    border-color: #cf3e3e;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========== 玻璃卡片样式 ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 48px;
    box-shadow: 0 30px 60px rgba(28, 52, 94, 0.12), 0 10px 25px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(156, 180, 215, 0.2);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    transition: all 0.2s ease;
}

.glass-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #132b4f;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.glass-card .subhead {
    font-size: 1rem;
    color: #3d5470;
    margin-bottom: 2rem;
    border-left: 3px solid #3885ee;
    padding-left: 16px;
    background: rgba(56, 133, 238, 0.04);
    border-radius: 0 20px 20px 0;
    line-height: 1.4;
}

/* ========== 输入框样式 ========== */
.input-field {
    margin-bottom: 20px;
}

.input-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 550;
    color: #1e3a5f;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-field input,
.input-field select {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    font-size: 1rem;
    color: #132b4f;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(56, 133, 238, 0.2);
    transition: all 0.2s;
}

.input-field input:focus,
.input-field select:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(56, 133, 238, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    width: 240px;
    background: #1a2332;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo h1 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-logo span {
    color: #3885ee;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.menu-item {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-item.active {
    background: rgba(56, 133, 238, 0.2);
    color: #3885ee;
    border-right: 3px solid #3885ee;
}

.menu-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-group {
    margin-top: 10px;
}

.menu-group-title {
    padding: 10px 20px 5px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
}

/* ========== 用户头像样式 ========== */
.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 16px 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 20, 40, 0.04);
    position: relative;
    cursor: pointer;
}

.user-name {
    font-weight: 500;
    color: #1e3a5f;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3885ee, #5ca0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(56, 133, 238, 0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 20, 40, 0.12);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    overflow: hidden;
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1e3a5f;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: #f5f8fc;
}

.user-dropdown-item.logout {
    color: #e74c3c;
    border-top: 1px solid #f0f4f9;
}

.user-dropdown-item.logout:hover {
    background: #fef2f2;
}

.dropdown-icon {
    font-size: 16px;
}

/* ========== 弹窗/模态框样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show,
.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 20, 40, 0.2);
}

.modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: #132b4f;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 550;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(69, 115, 204, 0.15);
    border-radius: 12px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3885ee;
    background: white;
}

/* ========== Toast提示样式 ========== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.toast-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.toast-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* ========== 工具栏样式 ========== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.search-area {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8fa4;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 14px 24px 14px 48px;
    border: none;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    font-size: 15px;
    color: #132b4f;
    box-shadow: 0 2px 8px rgba(0, 20, 40, 0.02), 0 0 0 1px rgba(56, 133, 238, 0.1);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(56, 133, 238, 0.12), 0 0 0 1px #3885ee;
}

.search-input::placeholder {
    color: #8a9bb5;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========== 主容器样式 ========== */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-container {
    margin: 0;
    padding: 24px 32px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 600;
    color: #132b4f;
    letter-spacing: -0.3px;
}

.logo-area h1 span {
    color: #3885ee;
    font-weight: 700;
}

.app-footer {
    text-align: center;
    padding: 24px 0;
    color: #7f8fa4;
    font-size: 13px;
    border-top: 1px solid rgba(0, 20, 40, 0.04);
}

/* ========== 分隔线 ========== */
.divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 20, 40, 0.1);
    margin: 0 8px;
}

/* ========== 页脚注释 ========== */
.footnote {
    text-align: center;
    margin-top: 30px;
    color: #54718f;
    font-size: 0.9rem;
    border-top: 1px dashed rgba(84, 113, 143, 0.2);
    padding-top: 20px;
}

.footnote a {
    color: #3885ee;
    text-decoration: none;
    font-weight: 500;
}

.footnote a:hover {
    text-decoration: underline;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .app-container {
        padding: 16px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-area {
        max-width: 100%;
    }
}
