:root {
    --el-color-primary: #6366f1;
    --el-color-primary-light-3: #818cf8;
    --el-color-primary-light-5: #a5b4fc;
    --el-color-primary-light-7: #c7d2fe;
    --el-color-primary-light-9: #e0e7ff;
    --el-color-primary-dark-2: #4f46e5;
    
    /* Landing Page Variables */
    --landing-bg: #f8fafc;
    --landing-text: #0f172a;
    --landing-muted: #64748b;
    --landing-primary: #6366f1;
}

/* 全局滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }

body { 
    margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; 
    background-color: #f8fafc; color: #334155; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[v-cloak] { display: none; }

.el-message { border-radius: 12px !important; padding: 15px 20px !important; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1) !important; border: none !important; }
.el-message__content { font-weight: 500 !important; color: #1e293b !important; }

.el-input__wrapper { border-radius: 8px !important; background-color: #f8fafc !important; box-shadow: 0 0 0 1px #e2e8f0 inset !important; transition: all 0.2s; }
.el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--el-color-primary) inset !important; background-color: #ffffff !important; }

.el-button { border-radius: 8px !important; font-weight: 500 !important; }
.el-button--primary { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important; border: none !important; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important; color: #ffffff !important; }
.el-button--primary:hover { box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important; transform: translateY(-1px); }

/* 卡片增加悬浮微动效 */
.el-card { border: none !important; border-radius: 16px !important; box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.05) !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.el-card:hover { box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.08) !important; transform: translateY(-2px); }

.auth-wrapper { height: 100vh; display: flex; justify-content: center; align-items: center; background: #f8fafc; }
.auth-box { background: #fff; padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); width: 400px; max-width: 90%; }
.auth-title { text-align: center; margin-bottom: 30px; font-size: 24px; font-weight: 600; color: #1e293b; }

.layout-container { height: 100vh; }
.header { background: rgba(255, 255, 255, 0.8) !important; backdrop-filter: blur(12px); height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); z-index: 10; border-bottom: 1px solid #f1f5f9; }
.sidebar { background: #ffffff; border-right: 1px solid #f1f5f9; transition: 0.3s; padding: 0; }
.logo-title { height: 60px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; color: #409eff; border-bottom: 1px solid #f1f5f9; letter-spacing: 0.5px; }
.logo-title .el-icon { color: #409eff !important; }
.body-content { flex: 1; padding: 20px; overflow-y: auto; overflow-x: hidden; }

/* ======== 顶部蓝光加载进度条动画 ======== */
.top-progress-bar {
    position: fixed;
    top: 0; left: 0; right: 0; height: 3px;
    background-color: #409eff; z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out, opacity 0.3s;
    opacity: 0;
}
.top-progress-bar.is-loading {
    transform: translateX(0);
    opacity: 1;
    box-shadow: 0 0 10px #409eff, 0 0 5px #409eff;
}

/* ======== 核心修复：清除抽屉容器自带的缝隙 ======== */
.el-drawer__body {
    padding: 0 !important;
}

/* ======== 菜单栏：完全交由官方原生变量处理布局与配色 ======== */
.el-menu { 
    border-right: none !important; 
    background-color: #ffffff !important;
    
    --el-menu-item-height: 50px;
    --el-menu-item-margin-x: 0px;
    --el-menu-item-margin-y: 0px;
    --el-menu-item-border-radius: 0px;
    --el-menu-text-color: #606266;
    --el-menu-hover-text-color: #409eff;
    --el-menu-hover-bg-color: #f5f7fa;
    --el-menu-active-color: #409eff;
}

.el-menu-item.is-active { 
    background-color: #f0f5ff !important; 
    font-weight: 600;
    border-right: 3px solid var(--el-color-primary) !important;
}

.el-menu--inline {
    background-color: #ffffff !important;
}

.el-menu-item .el-icon, .el-sub-menu__title .el-icon {
    color: inherit !important;
}
/* =================================================================== */

/* ======== 多标签页(Tags View) 带有左右滚动按钮的实现 ======== */
.tags-view-wrapper {
    height: 48px;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.tags-scroll-btn {
    width: 36px; height: 100%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; color: #94a3b8; background: #ffffff;
    transition: all 0.2s; flex-shrink: 0;
    font-size: 16px; 
}
.tags-scroll-btn:hover { background: #f8fafc; color: #409eff; }

.tags-view-container {
    flex: 1; height: 100%; display: flex; align-items: center;
    padding: 0 10px; overflow-x: auto; white-space: nowrap; scroll-behavior: smooth;
}
.tags-view-container::-webkit-scrollbar { display: none; }

.tags-view-item {
    display: inline-flex; align-items: center; height: 32px;
    padding: 0 12px; margin-right: 8px; border: 1px solid #e2e8f0;
    border-radius: 4px; font-size: 13px; color: #475569; background: #ffffff;
    cursor: pointer; transition: all 0.3s; user-select: none;
}

.tags-view-item:hover { color: #409eff; border-color: #409eff; }
.tags-view-item.active { color: #409eff; border-color: #409eff; background-color: #ecf5ff; }
.tags-view-item .el-icon { margin-right: 6px; font-size: 14px; }

.close-icon-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tags-view-item.active .close-icon-wrap {
    max-width: 20px; 
    opacity: 1;
    margin-left: 6px;
}

.tags-view-item .close-icon {
    border-radius: 50%; padding: 1px;
    font-size: 12px; color: #94a3b8; transition: all 0.2s;
}

.tags-view-item.active .close-icon { color: #409eff; }
.tags-view-item.active .close-icon:hover { background-color: #409eff; color: #ffffff !important; }
/* =================================================================== */

.user-dropdown { display: flex; align-items: center; cursor: pointer; padding: 4px 10px; border-radius: 20px; transition: background 0.3s; user-select: none; }
.user-dropdown:hover { background: #f1f5f9; }
.username-text { margin: 0 8px; font-weight: 500; color: #334155; font-size: 14px; }
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 20px 0 10px; }

/* 表格头部美化 */
.el-table { width: 100%; --el-table-border-color: #f1f5f9; }
.el-table th.el-table__cell { background-color: #f8fafc !important; color: #475569 !important; font-weight: 600 !important; }

.stat-badge { font-weight: bold; padding: 4px 8px; border-radius: 6px; font-size: 12px; background: #f1f5f9; color: #475569; display: inline-flex; align-items: center; gap: 4px; }
.flex-neat-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.action-bar > * { margin-left: 0 !important; margin-bottom: 0 !important; }

.home-profile-card { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; }
.profile-left { display: flex; align-items: center; gap: 24px; }
.profile-name { margin: 0 0 10px 0; color: #1e293b; font-size: 24px; }
.profile-email { margin: 0; color: #64748b; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.profile-right { text-align: right; color: #64748b; }
.role-title { font-size: 14px; margin-bottom: 6px; }
.date-text { font-size: 12px; margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.mobile-more-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #f1f5f9; border-radius: 6px; margin-right: 8px; cursor: pointer; color: #475569; transition: 0.2s; }
.mobile-more-btn:active { background: #e2e8f0; }

/* ======== Ant Design Statistic 数据卡片美化 ======== */
.data-card { overflow: hidden; position: relative; background: #ffffff !important; border: 1px solid #f1f5f9 !important; }
.data-card::after { content: ''; position: absolute; right: -25px; top: -25px; width: 110px; height: 110px; border-radius: 50%; opacity: 0.12; z-index: 0; pointer-events: none; transition: 0.3s; }
.data-card:hover::after { transform: scale(1.1); }
.data-card-api::after { background: #4f46e5; }
.data-card-down::after { background: #059669; }
.data-card-traffic::after { background: #d97706; }
.data-card-apps::after { background: #7c3aed; }
.data-card .ant-statistic { text-align: left; position: relative; z-index: 1; }
.data-card .ant-statistic-content { justify-content: flex-start; }

.ant-statistic-title { color: #64748b !important; font-weight: bold !important; font-size: 13px !important; margin-bottom: 10px !important; }
.ant-statistic-content-value { font-size: 28px !important; font-family: 'Inter', sans-serif !important; }
.ant-spin-nested-loading { min-height: 100px; }
.ant-empty { margin: 40px 0 !important; }
.ant-spin-dot-item { background-color: var(--el-color-primary) !important; }
/* ======================================= */

/* ================= 官网(Landing Page) 专有样式 ================= */
.landing-page { background-color: var(--landing-bg); min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(16px); z-index: 1000; border-bottom: 1px solid rgba(226, 232, 240, 0.8); }
.landing-logo { font-size: 22px; font-weight: 800; color: var(--landing-primary); display: flex; align-items: center; gap: 10px; }
.landing-nav-links { display: flex; gap: 30px; }
.landing-nav-links a { text-decoration: none; color: var(--landing-text); font-weight: 500; font-size: 15px; transition: color 0.2s; cursor: pointer; }
.landing-nav-links a:hover { color: var(--landing-primary); }
.landing-auth-btns { display: flex; gap: 15px; }

.landing-hero { position: relative; padding: 160px 5% 100px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.landing-hero::before { content: ''; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 0; }
.landing-hero::after { content: ''; position: absolute; bottom: 0; right: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 0; }
.hero-content { flex: 1; max-width: 600px; position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--landing-text); line-height: 1.2; margin-bottom: 20px; }
.hero-title span { background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.125rem; color: var(--landing-muted); line-height: 1.6; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 15px; }
.btn-large { padding: 15px 30px; font-size: 16px; border-radius: 12px !important; }
.btn-outline { background: transparent !important; color: var(--landing-text) !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important; }
.btn-outline:hover { border-color: var(--landing-primary) !important; color: var(--landing-primary) !important; background: #f8fafc !important; }

.hero-illustration { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; }
.floating-svg { width: 100%; max-width: 550px; height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

.landing-features { padding: 80px 5%; background: #ffffff; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--landing-text); margin-bottom: 15px; }
.section-desc { font-size: 1.1rem; color: var(--landing-muted); max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { padding: 40px 30px; background: var(--landing-bg); border-radius: 20px; transition: 0.3s; border: 1px solid transparent; }
.feature-card:hover { transform: translateY(-5px); background: #ffffff; box-shadow: 0 20px 40px -10px rgba(99,102,241,0.1); border-color: #e0e7ff; }
.feature-icon { width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; background: #e0e7ff; border-radius: 16px; color: var(--landing-primary); margin-bottom: 20px; }
.feature-icon svg { width: 32px; height: 32px; }
.feature-title { font-size: 1.25rem; font-weight: 700; color: var(--landing-text); margin-bottom: 10px; }
.feature-desc { font-size: 1rem; color: var(--landing-muted); line-height: 1.6; }

.landing-footer { background: #0f172a; color: #94a3b8; padding: 40px 5%; text-align: center; font-size: 14px; margin-top: auto; }

@media (max-width: 768px) {
    .body-content { padding: 15px; }
    .desktop-table { display: none; }
    .mobile-cards { display: block; }
    .home-profile-card { flex-direction: column; align-items: flex-start; }
    .profile-left { gap: 15px; }
    .profile-name { font-size: 20px; margin-bottom: 6px; }
    .profile-right { text-align: left; margin-top: 10px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
    .date-text { justify-content: flex-start; margin-top: 8px; }

    /* Landing Page Mobile */
    .landing-nav-links { display: none; }
    .landing-hero { flex-direction: column; padding-top: 120px; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-btns { justify-content: center; flex-wrap: wrap; }
    .hero-illustration { margin-top: 50px; }
    .section-title { font-size: 2rem; }
}
@media (min-width: 769px) { .mobile-cards { display: none; } }