/* 
   主样式表 static/style.css
   风格：极客暗黑、现代玻璃磨砂、响应式布局、流畅微动作动效
*/

:root {
    /* 核心调色盘 - 极客暗黑系列 */
    --bg-dark: #0f172a;        /* 宇宙深邃蓝 */
    --bg-slate: #1e293b;       /* 科技石板灰 */
    --bg-card: rgba(30, 41, 59, 0.7); /* 玻璃半透明卡片 */
    --border-color: rgba(255, 255, 255, 0.08); /* 极细边框反射 */
    
    --primary-color: #3b82f6;  /* 能量皇家蓝 */
    --emerald-color: #10b981;  /* 极客翠绿 */
    --rose-color: #f43f5e;     /* 珊瑚桔红 */
    --cyan-color: #06b6d4;     /* 晨曦靛蓝 */
    
    --text-main: #f8fafc;      /* 珍珠白高光 */
    --text-muted: #94a3b8;     /* 银河灰文字 */
    --font-outfit: 'Outfit', 'Inter', 'Microsoft YaHei', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-outfit);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 1. 全局异步锁遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.spinner-box {
    text-align: center;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-top: 4px solid var(--emerald-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-box p {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* 2. 主页面骨架结构 */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
}

.logo-box h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-box h1 span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 8px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 14px;
    color: var(--emerald-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.layout-body {
    display: grid;
    grid-template-columns: 1fr; /* 默认普通用户界面：大表横向单栏舒展铺满，视觉无阻碍 */
    gap: 20px;
    align-items: start;
}

body.admin-mode .layout-body {
    grid-template-columns: 340px 1fr; /* 管理员登录后：双栏宽屏响应式排版 */
}

/* 3. 玻璃卡片式容器 */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-panel {
    display: none; /* 默认普通用户界面：卡片控制面板完全折叠隐藏，防乱点 */
    flex-direction: column;
    gap: 20px;
}

body.admin-mode .control-panel {
    display: flex; /* 管理员登录后：淡入显示，大权在握 */
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 4. 输入框与表单 */
.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.checkbox-box input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.checkbox-box label {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

/* 5. 拖拽上传专区 */
.drag-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.3);
    transition: border-color 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.drag-zone:hover, .drag-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    font-size: 30px;
}

.drag-text {
    font-size: 14px;
    color: var(--text-muted);
}

.hidden-input {
    display: none;
}

/* 6. 高品质扁平按键 */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-outfit);
}

.w-100 {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-blue {
    background-color: #2980b9;
}
.btn-blue:hover {
    background-color: #3498db;
}

.btn-emerald {
    background-color: var(--emerald-color);
}
.btn-emerald:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background-color: var(--rose-color);
    color: #ffffff;
    margin-top: 12px;
}

.btn-danger:hover {
    background-color: #e11d48;
}

.mini-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.status-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    word-break: break-all;
}

/* 7. Apify 后台采集进度条 */
.progress-container {
    width: 100%;
    margin-top: 12px;
}

.progress-bar-glow {
    width: 100%;
    height: 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 40%;
    height: 100%;
    background: var(--emerald-color);
    border-radius: 4px;
    position: absolute;
    animation: slide-glow 1.5s infinite linear;
}

@keyframes slide-glow {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* 8. 右侧大盘指标 */
.data-viewport {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.stat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.stat-pill:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.9);
}

.stat-pill.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.pill-dot {
    font-size: 20px;
}

.pill-info {
    display: flex;
    flex-direction: column;
}

.pill-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.pill-val {
    font-size: 17px;
    font-weight: 800;
}

/* 五大胶囊色彩修饰器 */
.stat-pill.new { border-left: 3px solid var(--emerald-color); }
.stat-pill.up { border-left: 3px solid var(--rose-color); }
.stat-pill.down { border-left: 3px solid var(--cyan-color); }
.stat-pill.missing { border-left: 3px solid #64748b; }
.stat-pill.same { border-left: 3px solid #f8fafc; }

/* 9. 检索检索面板 */
.search-toolbar {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    padding: 15px 20px;
    align-items: center;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon, .filter-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box-wrapper input {
    padding-left: 36px;
}

.filter-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-dropdown-wrapper select {
    padding-left: 36px;
    cursor: pointer;
}

/* 10. 高性能数据表格区 */
.table-container {
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.table-scroll {
    overflow-x: auto;
    max-height: 520px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

thead {
    background: rgba(15, 23, 42, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

td {
    padding: 12px 16px;
    line-height: 1.4;
    vertical-align: middle;
}

/* 双击对比高亮色彩底色着色器 (企业级标准，30天变动高亮) */
tbody tr.tr-new {
    background-color: rgba(16, 185, 129, 0.08) !important;
}
tbody tr.tr-new td {
    color: #a7f3d0;
}

tbody tr.tr-up {
    background-color: rgba(244, 63, 94, 0.08) !important;
}
tbody tr.tr-up td {
    color: #fecdd3;
}

tbody tr.tr-down {
    background-color: rgba(6, 182, 212, 0.08) !important;
}
tbody tr.tr-down td {
    color: #cffafe;
}

tbody tr.tr-missing {
    background-color: rgba(100, 116, 139, 0.15) !important;
}
tbody tr.tr-missing td {
    color: #94a3b8;
    text-decoration: line-through;
    font-style: italic;
}

/* 分页条控制 */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
}

.btn-page {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-page:disabled {
    background: rgba(255, 255, 255, 0.01);
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    border-color: transparent;
}

.page-indicator {
    font-size: 13px;
    color: var(--text-muted);
}

/* 11. 弹窗公共样式 (微过渡动画) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10005;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-content {
    width: 100%;
    max-width: 680px;
    padding: 24px;
    transform: translateY(0);
    animation: modal-flyin 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-flyin {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--rose-color);
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.copy-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.copy-feedback {
    font-size: 13px;
    color: var(--emerald-color);
    font-weight: bold;
}

#txtSitemapUrls {
    height: 300px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre;
    resize: none;
}

/* 12. 垂直调优时间轴 (Timeline) 动效 */
.product-summary {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
}

.timeline-wrapper {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 5px 10px 20px;
    position: relative;
}

/* 时间轴主垂线 */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-node {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

/* 圆形节点 */
.timeline-marker {
    position: absolute;
    left: -16px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-slate);
    z-index: 5;
    transition: transform 0.2s;
}

.timeline-node.up .timeline-marker {
    background: var(--rose-color);
    box-shadow: 0 0 6px var(--rose-color);
}

.timeline-node.down .timeline-marker {
    background: var(--cyan-color);
    box-shadow: 0 0 6px var(--cyan-color);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-action {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-node.up .timeline-action { color: var(--rose-color); }
.timeline-node.down .timeline-action { color: var(--cyan-color); }

.timeline-price {
    font-weight: 700;
}

/* ---------------------------------------------------- */
/* 📱 13. 高保真手机/移动端响应式排版优化 (Mobile Optimization) */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    /* 全局容器紧凑化 */
    .app-container {
        padding: 10px;
        gap: 12px;
    }

    /* 头部导航栏纵向排版，防止空间挤压变形 */
    .main-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px 15px;
        text-align: center;
    }

    .logo-box {
        justify-content: center;
    }

    .logo-box h1 {
        font-size: 20px;
    }

    .logo-box h1 span {
        display: none; /* 在超小屏下隐藏副标题以精简空间 */
    }

    .main-header > div {
        flex-direction: column-reverse; /* 按钮和状态灯纵向对齐 */
        width: 100%;
        gap: 10px;
    }

    #btnAdminToggle {
        width: 100%;
        margin-top: 5px;
    }

    .server-status {
        justify-content: center;
        width: 100%;
    }

    /* 布局框架在手机端降级为单栏垂直排列，防止越权展开挤爆屏幕 */
    .layout-body,
    body.admin-mode .layout-body {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* 手机下卡片控制台自动铺满 */
    .control-panel {
        width: 100% !important;
    }

    /* 统计大盘指标由 5 列缩减为 2 列混排，最后一个维持原价独占一行 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .stat-pill.same {
        grid-column: span 2; /* 维持原价占满两列 */
    }

    .stat-pill {
        padding: 10px 12px;
        gap: 8px;
    }

    .pill-dot {
        font-size: 16px;
    }

    .pill-val {
        font-size: 15px;
    }

    /* 检索检索栏纵向层叠 */
    .search-toolbar {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 12px;
    }

    .filter-dropdown-wrapper {
        width: 100%;
    }

    /* 数据表格横向平滑滚动防撑爆 */
    .table-container {
        border-radius: 12px;
    }

    .table-scroll {
        max-height: 450px;
        -webkit-overflow-scrolling: touch; /* iOS 惯性滑动 */
    }

    table {
        min-width: 680px; /* 物理锁定最小宽度，配合我们第二价格列，让手机看盘最核心前两列完全不需要滑动，而其他描述在向右滑动时平滑浮现 */
    }

    th, td {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* 弹窗在手机上自动居中拉满 */
    .modal-content {
        max-width: 95% !important;
        padding: 16px;
    }

    .product-summary {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    #txtSitemapUrls {
        height: 200px;
    }
}

/* ==================================================== */
/* 💾 14. 数据库双通道高科技状态指示灯样式 */
/* ==================================================== */
.db-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.db-status-pill.unconnected-mode {
    background: rgba(244, 63, 94, 0.1);
    color: var(--rose-color);
    border-color: rgba(244, 63, 94, 0.2);
}
.db-status-pill.online-mode {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-color);
    border-color: rgba(16, 185, 129, 0.2);
}
.db-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.unconnected-mode .db-status-dot {
    background: var(--rose-color);
    animation: pulse 1.5s infinite;
}
.online-mode .db-status-dot {
    background: var(--emerald-color);
    animation: pulse 1.5s infinite;
}

/* 通用系统弹窗主题配色修饰器 */
.border-success {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
}
.border-error {
    border-color: rgba(244, 63, 94, 0.3) !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15) !important;
}
.border-info {
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15) !important;
}

/* 按钮禁用态高级磨砂置灰样式 */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* 本地拖拽上传区域禁用态样式 */
.disabled-drag-zone {
    border: 2px dashed rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.disabled-drag-zone * {
    pointer-events: none !important;
}

.disabled-btn {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ========================================== */
/* 第五期：极奢暗黑磨砂登录大屏及双态样式     */
/* ========================================== */

/* 空白密码大屏容器 */
#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

/* 磨砂玻璃发光登录盒 */
.login-box-glow {
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 60px 45px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
                0 0 50px 0 rgba(59, 130, 246, 0.03);
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.login-box-glow:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
                0 0 50px 5px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* 登录锁标微动画 */
.login-logo {
    font-size: 54px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    animation: lock-glow 3s infinite ease-in-out;
}

@keyframes lock-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6)); }
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.5;
}

.login-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.login-input-wrapper input {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

/* 剧烈左右抖动特效 - 密码错误反馈 */
.shake {
    animation: shake-anim 0.4s ease-in-out;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-12px); }
    30%, 60%, 90% { transform: translateX(12px); }
}

/* 角色徽章样式 */
.role-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border-width: 1px;
    border-style: solid;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.role-badge.admin-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-color);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.role-badge.user-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.05);
}

/* 隔离卡片对普通用户的隐藏属性 */
.admin-only-block {
    display: none !important;
}

body.admin-mode .admin-only-block {
    display: flex !important;
}



