/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.logo-section h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.subtitle {
    color: #999;
    font-size: 14px;
}

.login-form h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: #764ba2;
}

.footer-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-info p {
    color: #999;
    font-size: 13px;
    margin: 5px 0;
}

.version {
    font-weight: 600;
    color: #667eea;
}

.maintenance-info {
    color: #666;
    font-size: 13px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

/* 页面底部版权信息 */
.page-footer {
    text-align: center;
    padding: 20px 15px;
    background: transparent;
    margin-top: 30px;
}

.page-footer p {
    margin: 0;
    color: #999;
    font-size: 12px;
}

/* 用户面板样式 */
.panel-container {
    min-height: 100vh;
    background: #f5f7fa;
}

/* 注意：用户面板页面的灰色背景由 user-panel.html 中的内联样式控制 */
/* 这里不再重新定义 body 背景，以免覆盖登录页的紫色渐变 */

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, height 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-brand h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.user-info-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.btn-logout {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    background: white;
    border-radius: 15px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.menu-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.menu-item:hover {
    background: #f5f7fa;
    color: #667eea;
}

.menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #764ba2;
}

.menu-item .icon {
    font-size: 20px;
}

/* 退出登录菜单项 */
.menu-logout {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    color: #f44336;
}

.menu-logout:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    color: #d32f2f;
}

.menu-logout.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-left: 4px solid #e53935;
}

.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

/* 调整section显示顺序：账号状态第一 */
#status-section {
    order: 1;
    padding-bottom: 60px;
}

#profile-section {
    order: 2;
}

#security-section {
    order: 3;
    padding-bottom: 60px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-title-group {
    flex: 1;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.section-desc {
    color: #999;
    font-size: 14px;
}

.section-user-welcome {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 14px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.welcome-username {
    font-weight: 600;
    color: #667eea;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.info-card h3 {
    color: #667eea;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-row {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
}

.card-row:last-child {
    border-bottom: none;
}

.card-row label {
    width: 150px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.card-row .value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.card-row.editable .value input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: #fafafa;
}

.card-row.editable .value input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* 密码输入框样式 */
input[type="password"] {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* 账号安全页面的文本输入框样式（与密码输入框一致） */
#securityUsernameInput {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

#securityUsernameInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* 内容显示框样式 */
.card-row .value span {
    color: #333;
    font-size: 14px;
}

#currentDeviceId {
    background: #f5f7fa;
    padding: 8px 12px;
    border-radius: 6px;
    color: #555;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #e0e0e0;
}

#deviceCount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-vip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.btn-save,
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-save,
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-save:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #667eea;
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8ecf1 0%, #dce1e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* 最后登录设备解绑按钮 */
#unbindLastDeviceBtn:hover {
    background: #f5576c !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4) !important;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.status-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.status-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.status-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-active {
    color: #4caf50;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    animation: modalSlideIn 0.3s ease-in-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
}

.modal-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.device-item {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.device-info {
    flex: 1;
    min-width: 0;
}

.device-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: visible;
}

.device-info p {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.device-current {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border: 2px solid #667eea;
}

/* 设备操作按钮容器 */
.device-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* 在线状态按钮样式 */
.btn-online {
    padding: 8px 16px;
    background: #e8f5e9;
    color: #4caf50;
    border: 1px solid #81c784;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

/* 离线按钮样式 */
.btn-offline {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-offline:hover {
    background: #f5f5f5;
    transform: none;
}

/* 自定义弹窗美化 */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dialog {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 
                0 0 1px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUpBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.custom-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.custom-dialog-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.custom-dialog-icon {
    font-size: 32px;
    line-height: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

.custom-dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.custom-dialog-body {
    padding: 30px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    min-height: 60px;
    word-wrap: break-word;
}

.custom-dialog-body small {
    display: block;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.custom-dialog-body strong {
    color: #333;
    font-weight: 600;
}

.custom-dialog-footer {
    padding: 20px 30px 25px;
    background: #fafbfc;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.custom-dialog-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

.custom-dialog-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-dialog-btn:active::before {
    width: 300px;
    height: 300px;
}

.custom-dialog-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.custom-dialog-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.45);
}

.custom-dialog-btn-primary:active {
    transform: translateY(-1px);
}

.custom-dialog-btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.35);
}

.custom-dialog-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.45);
}

.custom-dialog-btn-danger:active {
    transform: translateY(-1px);
}

.custom-dialog-btn-secondary {
    background: #f5f7fa;
    color: #666;
}

.custom-dialog-btn-secondary:hover {
    background: #e8ecf1;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 登录页面适配 */
    .login-container {
        padding: 15px;
    }
    
    .login-box {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .logo-section {
        margin-bottom: 20px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-section h1 {
        font-size: 24px;
    }
    
    .login-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
    
    .page-footer {
        margin-top: 20px;
        padding: 15px 10px;
    }
    
    /* 用户面板适配 */
    .nav-content {
        height: 55px;
        padding: 0 15px;
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-brand h1 {
        font-size: 18px;
    }
    
    .user-info-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .user-icon {
        font-size: 16px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .btn-logout {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .main-content {
        flex-direction: column;
        margin: 15px auto;
        padding: 0 15px;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        border-radius: 12px;
        padding: 15px 0;
    }
    
    .menu-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .menu-item .icon {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    .section-user-welcome {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .status-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .status-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .status-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .status-value {
        font-size: 16px;
    }
    
    .info-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .info-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .card-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
    
    .card-row label {
        width: 100%;
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .card-row .value {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-user-welcome {
        align-self: flex-end;
    }
    
    /* 模态框适配 */
    .modal-content {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .device-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .device-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    
    /* 自定义对话框适配 */
    .custom-dialog {
        width: 95%;
        max-width: none;
        border-radius: 15px;
    }
    
    .custom-dialog-header {
        padding: 20px;
    }
    
    .custom-dialog-icon {
        font-size: 28px;
    }
    
    .custom-dialog-title {
        font-size: 18px;
    }
    
    .custom-dialog-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .custom-dialog-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .custom-dialog-btn {
        width: 100%;
        padding: 10px 20px;
    }
    
    /* Toast适配 */
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 375px) {
    .login-box {
        padding: 20px 15px;
    }
    
    .login-logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-section h1 {
        font-size: 20px;
    }
    
    .login-form h2 {
        font-size: 18px;
    }
    
    .nav-brand h1 {
        font-size: 16px;
    }
    
    /* 保持2列布局，与768px断点一致 */
    /* .status-grid {
        grid-template-columns: 1fr;
    } */
    
    .section-header h2 {
        font-size: 20px;
    }
}
