:root {
    --bg-primary: #eff6ff;
    --bg-secondary: #dbeafe;
    --bg-tertiary: #bfdbfe;
    --border-color: #bfdbfe;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-primary: #1e3a5f;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    --header-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    --gradient-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    --logo-shadow: rgba(59, 130, 246, 0.4);
}

[data-theme="green"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: #dcfce7;
    --bg-tertiary: #bbf7d0;
    --border-color: #bbf7d0;
    --primary-color: #22c55e;
    --primary-hover: #16a34a;
    --text-primary: #14532d;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    --header-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    --gradient-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    --logo-shadow: rgba(34, 197, 94, 0.4);
}

[data-theme="purple"] {
    --bg-primary: #faf5ff;
    --bg-secondary: #f3e8ff;
    --bg-tertiary: #e9d5ff;
    --border-color: #e9d5ff;
    --primary-color: #a855f7;
    --primary-hover: #9333ea;
    --text-primary: #581c87;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    --header-bg: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    --gradient-bg: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    --logo-shadow: rgba(168, 85, 247, 0.4);
}

[data-theme="skyblue"] {
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    --border-color: #7dd3fc;
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --text-primary: #0c4a6e;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    --header-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    --gradient-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    --logo-shadow: rgba(14, 165, 233, 0.4);
}

[data-theme="pink"] {
    --bg-primary: #fdf2f8;
    --bg-secondary: #fce7f3;
    --bg-tertiary: #fbcfe8;
    --border-color: #f9a8d4;
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --text-primary: #831843;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    --header-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    --gradient-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    --logo-shadow: rgba(236, 72, 153, 0.4);
}

[data-theme="orange"] {
    --bg-primary: #fff7ed;
    --bg-secondary: #ffedd5;
    --bg-tertiary: #fed7aa;
    --border-color: #fdba74;
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --text-primary: #9a3412;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    --header-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    --gradient-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    --logo-shadow: rgba(249, 115, 22, 0.4);
}

[data-theme="teal"] {
    --bg-primary: #f0fdfa;
    --bg-secondary: #ccfbf1;
    --bg-tertiary: #99f6e4;
    --border-color: #5eead4;
    --primary-color: #14b8a6;
    --primary-hover: #0d9488;
    --text-primary: #134e4a;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    --header-bg: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    --gradient-bg: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    --logo-shadow: rgba(20, 184, 166, 0.4);
}

[data-theme="indigo"] {
    --bg-primary: #eef2ff;
    --bg-secondary: #e0e7ff;
    --bg-tertiary: #c7d2fe;
    --border-color: #a5b4fc;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-primary: #312e81;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    --header-bg: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
    --gradient-bg: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
    --logo-shadow: rgba(99, 102, 241, 0.4);
}

[data-theme="amber"] {
    --bg-primary: #fffbeb;
    --bg-secondary: #fef3c7;
    --bg-tertiary: #fde68a;
    --border-color: #fcd34d;
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --text-primary: #78350f;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    --header-bg: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    --gradient-bg: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    --logo-shadow: rgba(245, 158, 11, 0.4);
}

[data-theme="rose"] {
    --bg-primary: #fff1f2;
    --bg-secondary: #ffe4e6;
    --bg-tertiary: #fecdd3;
    --border-color: #fda4af;
    --primary-color: #f43f5e;
    --primary-hover: #e11d48;
    --text-primary: #881337;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    --header-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
    --gradient-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
    --logo-shadow: rgba(244, 63, 94, 0.4);
}

[data-theme="white"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --primary-color: #374151;
    --primary-hover: #1f2937;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.9);
    --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    --header-bg: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    --logo-shadow: rgba(55, 65, 81, 0.4);
}

[data-theme="lime"] {
    --bg-primary: #f7fee7;
    --bg-secondary: #ecfccb;
    --bg-tertiary: #d9f99d;
    --border-color: #bef264;
    --primary-color: #84cc16;
    --primary-hover: #65a30d;
    --text-primary: #3f6212;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #f7fee7 0%, #ecfccb 100%);
    --header-bg: linear-gradient(135deg, #f7fee7 0%, #ecfccb 50%, #d9f99d 100%);
    --gradient-bg: linear-gradient(135deg, #f7fee7 0%, #ecfccb 50%, #d9f99d 100%);
    --logo-shadow: rgba(132, 204, 22, 0.4);
}

[data-theme="cyan"] {
    --bg-primary: #ecfeff;
    --bg-secondary: #cffafe;
    --bg-tertiary: #a5f3fc;
    --border-color: #67e8f9;
    --primary-color: #06b6d4;
    --primary-hover: #0891b2;
    --text-primary: #083344;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #ecfeff 0%, #cffafe 100%);
    --header-bg: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #a5f3fc 100%);
    --gradient-bg: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #a5f3fc 100%);
    --logo-shadow: rgba(6, 182, 212, 0.4);
}

[data-theme="slate"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --border-color: #cbd5e1;
    --primary-color: #475569;
    --primary-hover: #334155;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --header-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --logo-shadow: rgba(71, 85, 105, 0.4);
}

[data-theme="fuchsia"] {
    --bg-primary: #fdf4ff;
    --bg-secondary: #fae8ff;
    --bg-tertiary: #f5d0fe;
    --border-color: #f0abfc;
    --primary-color: #d946ef;
    --primary-hover: #c026d3;
    --text-primary: #6b21a8;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --sidebar-bg: linear-gradient(180deg, #fdf4ff 0%, #fae8ff 100%);
    --header-bg: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f5d0fe 100%);
    --gradient-bg: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f5d0fe 100%);
    --logo-shadow: rgba(217, 70, 239, 0.4);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 去除非交互元素的焦点边框 */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
p:focus, span:focus, div:focus, section:focus, main:focus,
header:focus, footer:focus, nav:focus, aside:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible, h4:focus-visible, h5:focus-visible, h6:focus-visible,
p:focus-visible, span:focus-visible, div:focus-visible, section:focus-visible, main:focus-visible,
header:focus-visible, footer:focus-visible, nav:focus-visible, aside:focus-visible {
    outline: none;
}

/* 移除交互元素的移动端点击高亮和默认 focus 黑框 */
a, button, [role="button"],
.nav-link, .nav-item, .nav-active,
.btn-logout, .btn-action, .btn-add, .btn-login, .btn-register {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus, button:focus, [role="button"]:focus,
.nav-link:focus, .nav-item:focus, .nav-active:focus,
.btn-logout:focus, .btn-action:focus {
    outline: none;
    box-shadow: none;
}

/* 保留键盘用户的 focus 指示（可访问性） */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: 2px;
}

#app {
    height: 100%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 导航栏样式 */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.logo-section {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--logo-shadow);
    color: white;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
}

.logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
    outline: none;
}

.nav-menu {
    flex: 1;
    padding: 16px 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 2px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    gap: 10px;
}

.nav-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-menu li a.nav-active {
    background: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
    border-right: 3px solid var(--primary-color);
}



.content-area {
    flex: 1;
    background: var(--gradient-bg);
    overflow: auto;
}

/* 表格样式 */
.instance-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.instance-table th,
.instance-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
}

.instance-table th {
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.instance-table th:nth-child(1),
.instance-table td:nth-child(1) { width: 12%; }

.instance-table th:nth-child(2),
.instance-table td:nth-child(2) { width: 25%; }

.instance-table th:nth-child(3),
.instance-table td:nth-child(3) { width: 10%; }

.instance-table th:nth-child(4),
.instance-table td:nth-child(4) { width: 10%; }

.instance-table th:nth-child(5),
.instance-table td:nth-child(5) { width: 28%; }

.instance-table th:nth-child(6),
.instance-table td:nth-child(6) { width: 15%; }

.instance-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.instance-table tbody tr:hover {
    background: var(--bg-secondary);
}

.instance-table td {
    color: var(--text-primary);
}

.instance-id {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.visit-count {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
}

.update-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instance-table td.action-buttons {
    display: flex;
    gap: 8px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* 操作按钮 */
.btn-action {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 50px;
}

.btn-action.btn-edit {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.btn-action.btn-edit:hover {
    background: var(--primary-hover) !important;
}

.btn-action.btn-delete {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.btn-action.btn-delete:hover {
    background: #dc2626 !important;
}

/* 表格容器 */
.table-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
}

/* Blazor错误UI */
#blazor-error-ui {
    background: #fff3cd;
    padding: 12px 20px;
    color: #856404;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 90%;
}

#blazor-error-ui .reload {
    color: #0ea5e9;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #0ea5e9;
    border-radius: 4px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

.data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.data-table th,
.data-table td {
    padding: 12px 16px !important;
    text-align: left !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) { width: 6% !important; }

.data-table th:nth-child(2),
.data-table td:nth-child(2) { width: 25% !important; }

.data-table th:nth-child(3),
.data-table td:nth-child(3) { width: 10% !important; }

.data-table th:nth-child(4),
.data-table td:nth-child(4) { width: 15% !important; }

.data-table th:nth-child(5),
.data-table td:nth-child(5) { width: 15% !important; }

.data-table th:nth-child(6),
.data-table td:nth-child(6) { width: 14% !important; }

.data-table th:nth-child(7),
.data-table td:nth-child(7) { width: 15% !important; }

/* 导航文字响应式显示 */
.nav-text-short {
    display: none;
}

/* ========== 响应式设计 ========== */

.header-user-email {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.mobile-user-email {
    display: none;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.mobile-page-title {
    display: none;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

/* 平板端适配（768px以下） */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }

    .sidebar .logo {
        display: none;
    }

    .logo-section {
        padding: 16px 8px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto;
    }

    .nav-link {
        justify-content: center;
        padding: 12px 8px;
    }

    .nav-text-full,
    .nav-text-short {
        display: none;
    }

    .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .top-header {
        padding: 0 16px;
    }

    .page-title {
        font-size: 16px;
    }

    .user-details {
        display: none;
    }

    .content-area {
        padding: 16px;
    }

    .search-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-bar .form-group {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .modal-overlay { padding: 20px; }
    .modal-content { max-height: calc(100vh - 40px); }
}

/* 手机端适配（480px以下） */
@media (max-width: 480px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 56px;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid #bfdbfe;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
        overflow: visible;
    }

    .logo-section {
        display: none;
    }

    .nav-menu {
        width: 100%;
        padding: 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 56px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 4px;
        gap: 2px;
    }

    .nav-menu ul::-webkit-scrollbar {
        display: none;
    }

    .nav-menu ul li {
        flex: 0 0 auto;
        min-width: 52px;
    }

    .nav-link {
        flex-direction: column;
        gap: 2px;
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .nav-text-full {
        display: none;
    }

    .nav-text-short {
        display: block;
        font-size: 9px;
        white-space: nowrap;
        text-align: center;
    }

    .nav-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .nav-active {
        background: var(--bg-secondary) !important;
        color: var(--primary-color) !important;
        border-bottom: none;
        border-radius: 8px;
    }

    .main-content {
        width: 100%;
        padding-bottom: 56px;
    }

    .top-header {
        height: 52px;
        padding: 0 12px;
    }

    .page-title {
        display: none;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .mobile-page-title {
        display: block !important;
        margin-right: 8px;
    }

    .mobile-user-email {
        display: block !important;
        font-size: 13px;
        color: #666;
        font-weight: 400;
        margin-left: 0;
        padding-left: 8px;
        border-left: 1px solid #ddd;
    }

    .header-user-email {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .user-header-info {
        gap: 8px;
    }

    .user-details {
        display: none;
    }

    .logout-text {
        display: none;
    }

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

    .btn-logout svg {
        width: 14px;
        height: 14px;
    }

    .content-area {
        padding: 12px;
        padding-bottom: 70px;
    }

    .search-bar {
        flex-direction: column;
        gap: 8px;
    }

    .search-bar .form-group {
        width: 100%;
    }

    .data-table {
        min-width: 500px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .pagination .page-info {
        font-size: 12px;
    }

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

    /* 移动端输入框和表单优化 */
    .search-input { min-width: auto !important; width: 100% !important; }
    .search-select { min-width: auto !important; width: 100% !important; }

    .form-row { 
        flex-direction: column !important; 
        gap: 12px !important; 
    }
    .form-row .form-group { width: 100%; }

    /* 模态框移动端优化 */
    .modal-overlay { padding: 20px !important; }
    .modal-content { max-height: calc(100vh - 40px) !important; }

    /* 增加表单间距和触摸体验 */
    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .form-input, .form-textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        font-size: 16px !important; /* 防止 iOS 自动缩放 */
    }

    /* 底部导航适配 */
    .content-area { padding-bottom: 76px !important; }
    .pagination-bar { margin-bottom: 16px; }
}

/* ========== 我的数据页面移动端适配 ========== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .stat-card {
        padding: 16px !important;
        gap: 12px !important;
    }
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    .stat-value {
        font-size: 20px !important;
    }
    .stat-label {
        font-size: 12px !important;
    }
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .filter-group {
        width: 100% !important;
    }
    .filter-select, .filter-input {
        width: 100% !important;
    }
    .btn-refresh {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .log-item {
        padding: 12px !important;
        gap: 10px !important;
    }
    .log-icon {
        width: 32px !important;
        height: 32px !important;
    }
    .log-title {
        font-size: 13px !important;
    }
    .log-desc {
        font-size: 12px !important;
    }
    .notice-banner {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    .notice-icon {
        width: 30px !important;
        height: 30px !important;
    }
    .notice-content {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .page-subtitle {
        font-size: 15px !important;
        margin: 16px 0 12px !important;
    }
    .logs-container {
        padding: 12px !important;
    }
    .modal-content {
        width: 92% !important;
    }
}