/* ========================================
   信丰实业 - 深浅平衡半亮主题
   主色: #0F766E / 辅助: #065F46
   内容背景: #F9FAFB → #F3F4F6 浅色渐变
   导航栏保留深色玻璃态质感
   ======================================== */

/* CSS Variables */
:root {
    /* 主色 */
    --primary: #0F766E;
    --primary-dark: #065F46;
    --primary-light: rgba(15, 118, 110, 0.1);
    --primary-glow: rgba(15, 118, 110, 0.2);

    /* 背景 - 半亮浅色 */
    --bg-body-start: #F9FAFB;
    --bg-body-end: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --bg-glass-light: rgba(255, 255, 255, 0.65);

    /* 导航栏 - 白色毛玻璃态 */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.08);
    --nav-text: #1F2937;
    --nav-text-secondary: #6B7280;
    --nav-text-muted: #9CA3AF;
    --nav-hover: rgba(15, 118, 110, 0.06);
    --nav-active: rgba(15, 118, 110, 0.1);

    /* 文字 - 半亮适配 */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-dim: #D1D5DB;

    /* 边框 - 低饱和浅灰 */
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);

    /* 阴影 - 柔和轻盈 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 16px rgba(15, 118, 110, 0.12);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* 功能色 */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* ========================================
   SVG 图标系统 - 线性描边风格
   统一适配深色玻璃态+墨绿主题
   ======================================== */
.icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    vertical-align: middle;
}

.icon-svg-lg {
    width: 28px;
    height: 28px;
}

.icon-svg-md {
    width: 22px;
    height: 22px;
}

.icon-svg-sm {
    width: 16px;
    height: 16px;
}

/* 导航菜单中的图标尺寸适配 */
.nav-link .icon-svg {
    width: 18px;
    height: 18px;
}

.nav-dropdown-link .icon-svg {
    width: 16px;
    height: 16px;
}

.user-dropdown-item .icon-svg {
    width: 16px;
    height: 16px;
}

/* 快捷操作图标适配 */
.quick-action-btn .icon .icon-svg {
    width: 28px;
    height: 28px;
}

/* 手机端导航图标适配 */
.mobile-nav-icon .icon-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* ========================================
   基础重置与全局样式
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--bg-body-start) 0%, var(--bg-body-end) 100%);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   顶部横向通栏导航栏 - 保留暗色玻璃态
   ======================================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--nav-border);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.08);
}

.top-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 导航下划线指示器 */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 14px var(--primary-glow);
}

/* 左侧区域 */
.top-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Logo品牌 */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 700;
    font-size: 17px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover {
    background: var(--nav-hover);
}

.nav-brand-icon {
    font-size: 24px;
    line-height: 1;
}

.nav-brand-text {
    letter-spacing: 1px;
}

/* 导航菜单外层滚动容器 */
.nav-menu-wrapper {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* 导航菜单容器 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 导航项 */
.nav-item {
    position: relative;
    flex-shrink: 0;
}

/* 导航链接 */
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--nav-text);
    background: rgba(15, 118, 110, 0.1);
}

.nav-link.active {
    color: var(--nav-text);
    background: rgba(15, 118, 110, 0.15);
}

.nav-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-link:hover .nav-arrow {
    opacity: 1;
}

/* 下拉菜单 - 白色毛玻璃 + 动态效果 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    z-index: 1001;
    pointer-events: none;
    transform-origin: top left;
}

.nav-dropdown.show {
    opacity: 1;
    transform: translateY(4px) scale(1);
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 下拉菜单项 - 初始状态（用于动画） */
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-8px);
}

/* 下拉菜单展开时，菜单项依次淡入 */
.nav-dropdown.show .nav-dropdown-link {
    opacity: 1;
    transform: translateX(0);
}

/* 展开动画 - 正向依次延迟（第一项先进） */
.nav-dropdown.show .nav-dropdown-link:nth-child(1) { transition-delay: 0.05s; }
.nav-dropdown.show .nav-dropdown-link:nth-child(2) { transition-delay: 0.14s; }
.nav-dropdown.show .nav-dropdown-link:nth-child(3) { transition-delay: 0.23s; }
.nav-dropdown.show .nav-dropdown-link:nth-child(4) { transition-delay: 0.32s; }

/* 悬停效果 - 左侧绿色指示条 + 背景渐变 */
.nav-dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-link:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--nav-text);
    padding-left: 20px;
}

.nav-dropdown-link:hover::before {
    height: 60%;
}

/* 图标微交互 */
.nav-dropdown-link .icon-svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-link:hover .icon-svg {
    transform: scale(1.15);
}

/* 右侧用户区 */
.top-nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
    margin-left: var(--spacing-lg);
}

/* 用户下拉 - 玻璃态（与导航下拉一致） */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-glass-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--nav-text);
    font-size: 13px;
}

.user-dropdown-toggle:hover {
    background: rgba(15, 118, 110, 0.08);
    border-color: var(--primary);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow:
        0 0 14px rgba(15, 118, 110, 0.25),
        0 2px 8px rgba(15, 118, 110, 0.2);
}

.user-info {
    text-align: left;
    line-height: 1.3;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--nav-text);
}

.user-role {
    font-size: 11px;
    color: var(--nav-text-muted);
}

.user-arrow {
    font-size: 10px;
    color: var(--nav-text-muted);
    transition: transform 0.2s;
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    z-index: 1001;
    pointer-events: none;
    transform-origin: top right;
}

.user-dropdown-menu.show {
    opacity: 1;
    transform: translateY(4px) scale(1);
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.user-dropdown-toggle .user-arrow {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.show .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 4px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-menu.show .user-dropdown-header {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.03s;
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow:
        0 0 18px rgba(15, 118, 110, 0.3),
        0 3px 10px rgba(15, 118, 110, 0.2);
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-text);
    margin-bottom: 2px;
}

.user-dropdown-meta {
    font-size: 11px;
    color: var(--nav-text-muted);
    line-height: 1.5;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-8px);
}

.user-dropdown-menu.show .user-dropdown-item {
    opacity: 1;
    transform: translateX(0);
}

/* 展开动画 - 正向依次延迟 */
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(1) { transition-delay: 0.10s; }
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(2) { transition-delay: 0.19s; }
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(3) { transition-delay: 0.28s; }
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(4) { transition-delay: 0.37s; }
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(5) { transition-delay: 0.46s; }
.user-dropdown-menu.show .user-dropdown-item:nth-of-type(6) { transition-delay: 0.55s; }

/* 悬停效果 - 左侧绿色指示条 */
.user-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-item:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--nav-text);
    padding-left: 20px;
}

.user-dropdown-item:hover::before {
    height: 60%;
}

.user-dropdown-item .icon-svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-item:hover .icon-svg {
    transform: scale(1.15);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 8px;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-menu.show .user-dropdown-divider {
    opacity: 1;
    transition-delay: 0.46s;
}

.user-dropdown-logout {
    color: #DC2626 !important;
}

.user-dropdown-logout:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #DC2626 !important;
}

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    min-height: calc(100vh - 72px);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* ========================================
   卡片/面板样式 - 玻璃态
   ======================================== */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-light);
}

/* 统计卡片 */
.stat-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.3);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   按钮样式 - 墨绿主题
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 40px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary);
    color: #FAFAFA;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #FAFAFA;
}

.btn-success {
    background: var(--success);
    color: #FAFAFA;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: var(--danger);
    color: #FAFAFA;
}

.btn-danger:hover {
    background: #DC2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-warning {
    background: var(--warning);
    color: #1F2937;
}

.btn-info {
    background: var(--info);
    color: #FAFAFA;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    height: 32px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    height: 48px;
}

.btn-block {
    width: 100%;
}

/* 文字按钮 */
.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
}

.btn-text:hover {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

/* ========================================
   表单样式 - 深色适配
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.25s ease;
    height: 40px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 0 16px rgba(15, 118, 110, 0.06);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 服务内容 - 超出自动显示滚动条 */
textarea[name="service_content"] {
    max-height: 200px;
    height: auto;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.form-control.readonly.service-content {
    max-height: 200px;
    overflow-y: auto;
    word-wrap: break-word;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #FFFFFF;
    color: var(--text-primary);
}

/* 输入框组 */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ========================================
   表格样式 - 深色适配
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-secondary);
}

.table tbody tr {
    transition: background 0.15s;
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.table .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   徽章/标签样式 - 深色适配
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-primary {
    background: rgba(15, 118, 110, 0.12);
    color: #0F766E;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.badge-info {
    background: rgba(6, 182, 212, 0.12);
    color: #0891B2;
}

.badge-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

/* ========================================
   警告/提示框样式 - 深色适配
   ======================================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    opacity: 0.7;
    padding: 0 4px;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(6, 182, 212, 0.08);
    color: #155E75;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ========================================
   分页样式 - 深色适配
   ======================================== */
.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0 0;
    justify-content: center;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background: var(--primary);
    color: #FAFAFA;
    border-color: var(--primary);
}

.page-item .page-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.page-item.disabled .page-link {
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========================================
   页面标题区域
   ======================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   筛选区域样式
   ======================================== */
.filter-section {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 160px;
}

.filter-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   空状态样式
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   快捷操作区
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    gap: 8px;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(15, 118, 110, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
}

.quick-action-btn .icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   工作记录模块 - 统一主题样式
   ======================================== */

/* 区块标题 */
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 工作类型标签 */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.type-badge .icon-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.type-badge-after-sale {
    background: rgba(37, 99, 235, 0.08);
    color: #1E40AF;
}

.type-badge-delivery {
    background: rgba(22, 101, 52, 0.08);
    color: #166534;
}

.type-badge-construction {
    background: rgba(217, 119, 6, 0.08);
    color: #92400E;
}

.type-badge-debugging {
    background: rgba(124, 58, 237, 0.08);
    color: #6D28D9;
}

.type-badge-training {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
}

/* 大标签（详情页使用） */
.type-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
}

.type-badge-lg .icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.type-badge-lg.type-badge-after-sale { background: #DBEAFE; color: #1E40AF; }
.type-badge-lg.type-badge-delivery { background: #DCFCE7; color: #166534; }
.type-badge-lg.type-badge-construction { background: #FFFBEB; color: #D97706; }
.type-badge-lg.type-badge-debugging { background: #F5F3FF; color: #7C3AED; }
.type-badge-lg.type-badge-training { background: #ECFDF5; color: #059669; }

/* 工作类型选择卡片（表单） */
.type-select-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.type-select-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-select-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-select-card .type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.type-select-card .type-icon .icon-svg {
    width: 22px;
    height: 22px;
}

.type-select-card .type-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

/* 工作的表格样式 */
.work-table {
    font-size: 14px;
    margin: 0;
}

.work-table thead th {
    background: rgba(15, 118, 110, 0.06);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    border-bottom: 2px solid var(--primary);
    vertical-align: middle;
    white-space: nowrap;
}

.work-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--border-light);
}

.work-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}

.work-table tbody tr:hover {
    background: rgba(15, 118, 110, 0.04);
}

.work-table tbody tr:last-child td {
    border-bottom: none;
}

/* 完成状态图标 */
.status-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
}

.status-icon-sm.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-icon-sm.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-icon-sm.muted {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

/* 详情页元信息 */
.detail-meta {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

/* 图片上传区域 */
.upload-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone .upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* 图片预览容器 */
.img-preview-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.img-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-wrapper .img-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.img-preview-wrapper .img-remove-btn:hover {
    background: var(--danger);
}

/* 详情页图片 */
.detail-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}

.detail-image:hover {
    opacity: 0.85;
}

/* 无内容占位 */
.no-content {
    color: var(--text-muted);
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
}

/* 表单只读字段 */
.form-control.readonly {
    background: rgba(0, 0, 0, 0.02);
    border-color: transparent;
    cursor: default;
    min-height: 38px;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   分隔线
   ======================================== */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-md) 0;
}

/* ========================================
   工具类
   ======================================== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-primary); }

.bg-primary { background-color: var(--primary); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.me-1 { margin-right: var(--spacing-xs); }
.me-2 { margin-right: var(--spacing-sm); }

.ms-1 { margin-left: var(--spacing-xs); }
.ms-2 { margin-left: var(--spacing-sm); }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }

.text-center { text-align: center; }
.text-end { text-align: right; }

/* ========================================
   表格操作列增强样式
   ======================================== */
.table .actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.table .actions .form-select-sm {
    width: 100px;
    height: 32px;
    font-size: 12px;
    padding: 4px 8px;
}

.table .actions .btn-sm {
    white-space: nowrap;
    padding: 4px 10px;
    font-size: 12px;
    height: 32px;
}

/* ========================================
   状态图标样式
   ======================================== */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

.status-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.status-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-icon.muted {
    background: rgba(107, 114, 128, 0.2);
    color: #6B7280;
}

/* ========================================
   操作按钮样式
   ======================================== */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-icon.view:hover {
    background: rgba(15, 118, 110, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* 表格单元格居中 */
.table td.text-center,
.table th.text-center {
    text-align: center;
}

/* 标黄行 - 待采购 */
.row-mark-yellow {
    background-color: #FEF3C7 !important;
}
.row-mark-yellow:hover {
    background-color: #FDE68A !important;
}

/* 标蓝行 - 已下单 */
.row-mark-blue {
    background-color: #DBEAFE !important;
}
.row-mark-blue:hover {
    background-color: #BFDBFE !important;
}

/* 操作列布局 */
.table .actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

/* ========================================
   详情页样式
   ======================================== */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.02);
}

.detail-title-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.detail-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    height: auto;
    white-space: nowrap;
}

.detail-actions .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   登录页专用样式 - 墨绿渐变 + 呼吸光晕
   ======================================== */

.login-page {
    background: linear-gradient(135deg, #064E3B 0%, #022C22 50%, #0F766E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

/* 呼吸光晕1 - 左上角（白色柔光，微弱呼吸） */
.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: glowBreathe1 8s ease-in-out infinite;
}

/* 呼吸光晕2 - 右下角（墨绿色柔光，错峰呼吸） */
.login-page::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse, rgba(15, 118, 110, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: glowBreathe2 10s ease-in-out infinite;
}

@keyframes glowBreathe1 {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes glowBreathe2 {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.1); }
}

/* ========================================
   星尘粒子 - 细小但明显的动态光点
   ======================================== */
.login-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 基础光点样式 */
.p-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* 光点1 - 主绿色，慢速大圈漂移 */
.p-dot-1 {
    width: 4px; height: 4px;
    background: rgba(15, 118, 110, 0.7);
    box-shadow: 0 0 8px 2px rgba(15, 118, 110, 0.3);
    top: 20%; left: 15%;
    animation: pFloat1 18s ease-in-out infinite;
}

/* 光点2 - 白色，快速小圈 */
.p-dot-2 {
    width: 3px; height: 3px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.25);
    top: 65%; left: 75%;
    animation: pFloat2 14s ease-in-out infinite;
}

/* 光点3 - 绿色，中等速度 */
.p-dot-3 {
    width: 5px; height: 5px;
    background: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 10px 3px rgba(15, 118, 110, 0.2);
    top: 45%; left: 30%;
    animation: pFloat3 22s ease-in-out infinite;
}

/* 光点4 - 白色小点，快 */
.p-dot-4 {
    width: 2px; height: 2px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.3);
    top: 80%; left: 20%;
    animation: pFloat4 12s ease-in-out infinite;
}

/* 光点5 - 绿色，慢 */
.p-dot-5 {
    width: 4px; height: 4px;
    background: rgba(15, 118, 110, 0.6);
    box-shadow: 0 0 8px 2px rgba(15, 118, 110, 0.25);
    top: 10%; left: 70%;
    animation: pFloat5 26s ease-in-out infinite;
}

/* 光点6 - 白色中等 */
.p-dot-6 {
    width: 3px; height: 3px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.2);
    top: 55%; left: 60%;
    animation: pFloat6 16s ease-in-out infinite;
}

/* 光点7 - 绿色小点 */
.p-dot-7 {
    width: 3px; height: 3px;
    background: rgba(15, 118, 110, 0.65);
    box-shadow: 0 0 7px 2px rgba(15, 118, 110, 0.28);
    top: 35%; left: 85%;
    animation: pFloat7 20s ease-in-out infinite;
}

/* 光点8 - 白色，最慢 */
.p-dot-8 {
    width: 2px; height: 2px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.2);
    top: 75%; left: 50%;
    animation: pFloat8 24s ease-in-out infinite;
}

/* ========================================
   光点漂移动画 - 每个都有独特的路径
   ======================================== */
@keyframes pFloat1 {
    0%   { transform: translate(0, 0); opacity: 0.4; }
    25%  { transform: translate(80px, -60px); opacity: 0.9; }
    50%  { transform: translate(40px, -120px); opacity: 0.5; }
    75%  { transform: translate(-30px, -50px); opacity: 1; }
    100% { transform: translate(0, 0); opacity: 0.4; }
}

@keyframes pFloat2 {
    0%   { transform: translate(0, 0); opacity: 0.5; }
    30%  { transform: translate(-90px, -40px); opacity: 1; }
    60%  { transform: translate(-40px, -90px); opacity: 0.4; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

@keyframes pFloat3 {
    0%   { transform: translate(0, 0); opacity: 0.3; }
    20%  { transform: translate(100px, 50px); opacity: 0.8; }
    50%  { transform: translate(60px, 110px); opacity: 0.4; }
    80%  { transform: translate(-20px, 70px); opacity: 0.9; }
    100% { transform: translate(0, 0); opacity: 0.3; }
}

@keyframes pFloat4 {
    0%   { transform: translate(0, 0); opacity: 0.6; }
    40%  { transform: translate(60px, -80px); opacity: 1; }
    70%  { transform: translate(30px, -40px); opacity: 0.3; }
    100% { transform: translate(0, 0); opacity: 0.6; }
}

@keyframes pFloat5 {
    0%   { transform: translate(0, 0); opacity: 0.5; }
    35%  { transform: translate(-110px, 70px); opacity: 0.9; }
    65%  { transform: translate(-70px, 20px); opacity: 0.3; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

@keyframes pFloat6 {
    0%   { transform: translate(0, 0); opacity: 0.4; }
    25%  { transform: translate(50px, 80px); opacity: 0.85; }
    55%  { transform: translate(-30px, 50px); opacity: 0.5; }
    85%  { transform: translate(20px, 10px); opacity: 1; }
    100% { transform: translate(0, 0); opacity: 0.4; }
}

@keyframes pFloat7 {
    0%   { transform: translate(0, 0); opacity: 0.35; }
    30%  { transform: translate(-70px, -60px); opacity: 0.8; }
    60%  { transform: translate(-100px, -20px); opacity: 0.45; }
    100% { transform: translate(0, 0); opacity: 0.35; }
}

@keyframes pFloat8 {
    0%   { transform: translate(0, 0); opacity: 0.5; }
    50%  { transform: translate(80px, -70px); opacity: 0.9; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 48px 44px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0.94);
    animation: loginCardFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes loginCardFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.login-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FAFAFA;
    margin: 0;
    letter-spacing: 1.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.login-form .form-control {
    width: 100%;
    height: 48px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #FAFAFA;
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form .form-control:focus {
    outline: none;
    border-color: #0F766E;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.2),
        0 4px 16px rgba(15, 118, 110, 0.15);
    animation: inputRipple 0.35s ease;
}

@keyframes inputRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4), 0 0 0 3px rgba(15, 118, 110, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2), 0 4px 16px rgba(15, 118, 110, 0.15);
    }
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    background: #0F766E;
    border: none;
    border-radius: 12px;
    color: #FAFAFA;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #065F46;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.45);
}

.btn-login:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
    transition: all 0.1s ease;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn-login:hover::before {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.login-footer p {
    margin: 0;
}

/* 登录页警告框适配 */
.login-page .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FAFAFA;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 16px;
}

.login-page .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.login-page .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ========================================
   登录→工作台转场动画
   ======================================== */
.login-card.fading-out {
    animation: loginFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes loginFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

/* 登录按钮按压反馈 */
.btn-login.pressing {
    background: #065F46 !important;
    transform: scale(0.96) !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
    transition: all 0.12s ease !important;
}

/* ========================================
   手机端底部导航栏（仅手机端显示）
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--nav-border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: var(--nav-text-muted);
    transition: color 0.2s;
    position: relative;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-label {
    font-size: 11px;
    margin-top: 2px;
    line-height: 1;
}

/* ========================================
   平板端适配 (768px ~ 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .top-nav-inner {
        padding: 0 var(--spacing-md);
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .content-wrapper {
        padding: var(--spacing-md);
    }

    .card-body {
        padding: var(--spacing-md);
    }

    .filter-item {
        min-width: 140px;
    }
}

/* ========================================
   手机端全面适配 (<=768px)
   ======================================== */
@media (max-width: 768px) {
    /* 底部导航栏显示 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* 隐藏顶部导航菜单，只保留品牌 */
    .nav-menu {
        display: none;
    }

    .top-nav-inner {
        height: 52px;
        padding: 0 var(--spacing-md);
    }

    /* 主内容区占满宽度 */
    .main-content {
        margin-left: 0;
    }

    /* 底部留空给导航栏 */
    body {
        padding-bottom: 70px;
    }

    .user-info {
        display: none;
    }

    .user-arrow {
        display: none;
    }

    .user-dropdown-toggle {
        padding: 4px 8px;
    }

    .content-wrapper {
        padding: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .page-header h2 {
        font-size: 18px;
    }

    .page-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 8px 12px;
    }

    .card {
        border-radius: var(--radius-md);
    }

    .card-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .card-header h5,
    .card-header h6 {
        font-size: 15px;
    }

    .filter-section {
        padding: var(--spacing-md);
    }

    .filter-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .filter-item {
        width: 100%;
        min-width: unset;
    }

    .filter-actions {
        display: flex;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(var(--spacing-sm) * -1);
        padding: 0 var(--spacing-sm);
    }

    .table {
        min-width: 600px;
    }

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

    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .form-control,
    .form-select {
        height: 44px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 80px;
    }
    textarea[name="service_content"] {
        max-height: 180px;
        height: auto;
        overflow-y: auto;
    }
    .form-control.readonly.service-content {
        max-height: 180px;
        overflow-y: auto;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .empty-state {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .detail-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .detail-actions .btn {
        flex: 1;
        justify-content: center;
    }

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

    .btn-icon {
        width: 36px;
        height: 36px;
    }

    .login-page {
        padding: var(--spacing-md);
        align-items: center;
    }

    .login-card {
        padding: var(--spacing-lg);
    }

    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="display: flex"][style*="align-items: center"][style*="gap: 24px"] {
        flex-direction: column;
        text-align: center;
        gap: 16px !important;
    }

    [style*="display: flex"][style*="gap: 10px"] {
        flex-wrap: wrap;
    }

    .card-body [style*="display: flex"] {
        flex-wrap: wrap;
    }

    .page-item .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .badge {
        padding: 2px 8px;
        font-size: 11px;
    }
}

/* ========================================
   超小屏幕适配 (<=480px)
   ======================================== */
@media (max-width: 480px) {
    .content-wrapper {
        padding: var(--spacing-xs);
    }

    .filter-section {
        padding: var(--spacing-sm);
    }

    .stat-value {
        font-size: 20px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header h3 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .login-form .form-control {
        height: 44px;
        font-size: 16px;
    }

    .btn-login {
        height: 44px;
        font-size: 15px;
    }
}

/* ========================================
   空调遥控 - 房间选择页
   ======================================== */
.ac-page {
    max-width: 900px;
    margin: 0 auto;
}

.ac-page .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.ac-page .page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-page .page-header .page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.room-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    gap: 8px;
    min-height: 130px;
}

.room-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(15, 118, 110, 0.15);
}

.room-card:active {
    transform: translateY(-1px);
}

.room-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.room-card-icon .icon-svg {
    width: 38px;
    height: 38px;
    color: var(--primary);
}

.room-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.room-card-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   空调遥控 - 控制面板页
   ======================================== */
.ac-control-page {
    max-width: 480px;
    margin: 0 auto;
}

/* 顶部栏 */
.ac-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.ac-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ac-back-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.ac-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ac-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-header-icon .icon-svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.ac-status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.ac-status-badge.status-on {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.ac-status-badge.status-off {
    background: rgba(156, 163, 175, 0.12);
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-on .status-dot {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.status-off .status-dot {
    background: #9CA3AF;
}

/* 主卡片 */
.ac-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg);
}

/* 显示屏 */
.ac-display {
    background: rgba(15, 118, 110, 0.06);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.display-top {
    margin-bottom: 8px;
}

.power-indicator {
    font-size: 12px;
    font-weight: 500;
}

.power-indicator.power-on {
    color: #10B981;
}

.power-indicator.power-off {
    color: var(--text-muted);
}

.display-main {
    margin-bottom: 8px;
}

.display-mode-temp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.display-mode-icon {
    font-size: 24px;
}

.display-mode-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.display-temp {
    margin-left: auto;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.display-bottom {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 电源按钮 */
.ac-power-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: var(--spacing-md);
}

.ac-power-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.ac-power-btn.power-active {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ac-power-btn.power-active:hover {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
}

/* 通用区块 */
.ac-section {
    margin-bottom: var(--spacing-md);
}

.ac-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* 模式按钮组 */
.mode-btn-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.ac-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ac-mode-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.ac-mode-btn.active {
    background: var(--primary);
    color: #FAFAFA;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

/* 温度控制 */
.temp-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.temp-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    background: var(--bg-glass);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.temp-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #FAFAFA;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
    transform: scale(1.05);
}

.temp-btn:active {
    transform: scale(0.92);
}

.temp-display {
    text-align: center;
}

.temp-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.temp-unit {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: super;
}

/* 风速按钮组 */
.fan-btn-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ac-fan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-fan-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.ac-fan-btn.active {
    background: var(--primary);
    color: #FAFAFA;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

/* 摆动控制 */
.swing-control {
    display: flex;
    justify-content: center;
}

.ac-swing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ac-swing-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.ac-swing-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #FAFAFA;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.swing-icon {
    font-size: 18px;
}

/* 发送指令按钮 */
.send-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.ac-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #FAFAFA;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.ac-send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.45);
}

.ac-send-btn:active {
    transform: translateY(0) scale(0.97);
}

.ac-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Toast 提示 */
.ac-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: #FAFAFA;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .room-card {
        min-height: 110px;
        padding: var(--spacing-md);
    }

    .room-card-icon {
        width: 40px;
        height: 40px;
    }

    .room-card-icon .icon-svg {
        width: 32px;
        height: 32px;
    }

    .room-card-name {
        font-size: 14px;
    }

    .ac-card {
        padding: var(--spacing-md);
    }

    .ac-control-page {
        max-width: 100%;
    }

    .mode-btn-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .temp-value {
        font-size: 40px;
    }

    .temp-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .mode-btn-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .fan-btn-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-header-title {
        font-size: 14px;
    }

    .ac-status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .display-temp {
        font-size: 26px;
    }

    .temp-value {
        font-size: 36px;
    }
}
