/* 乐通系统 - 主样式文件 */
/* 创建时间: 2025-12-11 */

/* 基础重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: visible;
    z-index: 1000;
    gap: 40px;
}

.header-left-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: fit-content;
    flex-basis: auto;
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.header-right-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    flex-basis: auto;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    padding-top: 0;
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    padding: 14px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* 底部彩色下划线 - 平滑渐变 */
h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        #ff1744 0%, 
        #ff1744 8%, 
        #ff6d00 16%, 
        #ff6d00 24%, 
        #ffd600 32%, 
        #ffd600 40%, 
        #00e676 48%, 
        #00e676 56%, 
        #00bcd4 64%, 
        #00bcd4 72%, 
        #2196f3 80%, 
        #2196f3 88%, 
        #9c27b0 96%, 
        #9c27b0 100%);
    background-size: 200% 100%;
    background-position: 0% 0;
    border-radius: 0 0 12px 12px;
    animation: borderColorShift 6s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4);
}

/* Logo图标容器 */
.logo-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.logo-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, 
        #ff6b35 0%, 
        #f7931e 20%, 
        #ffd23f 40%, 
        #06ffa5 60%, 
        #4facfe 80%, 
        #9c27b0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
    position: relative;
    z-index: 3;
    transition: filter 0.2s ease, brightness 0.2s ease;
}

.logo-glow {
    display: none; /* 移除光圈效果 */
}

/* 标题文字容器 */
.title-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.title-main {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, 
        #ff1744 0%, 
        #ff6d00 20%, 
        #ffab00 40%, 
        #00e676 60%, 
        #00bcd4 80%, 
        #2196f3 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: 
        0 0 20px rgba(255, 23, 68, 0.5),
        0 0 40px rgba(0, 230, 118, 0.3);
    position: relative;
    z-index: 3;
    transition: filter 0.2s ease, brightness 0.2s ease;
}

.title-sub {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    letter-spacing: 1.5px;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

/* 动画效果 */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes borderColorShift {
    0% {
        background-position: 0% 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        padding: 8px 18px;
        gap: 15px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .logo-glow {
        width: 55px;
        height: 55px;
    }
    
    .title-main {
        font-size: 1.6rem;
    }
    
    .title-sub {
        font-size: 0.9rem;
    }
}

/* 控制面板：仅两行，禁止第三行，避免压缩下方生产数据 */
.control-panel {
    display: grid;
    gap: 12px;
    row-gap: 10px;
    column-gap: 12px;
    position: relative;
    z-index: 1001;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    grid-auto-flow: row;
    overflow: visible;
    grid-template-rows: repeat(2, auto);
    grid-template-columns: repeat(6, minmax(0, 130px));
    grid-auto-rows: 0;
}

/* 大屏 / 中屏 / 平板：一律 6 列 2 行，禁止第三行 */
@media (min-width: 1600px) {
    .control-panel {
        grid-template-columns: repeat(6, 130px);
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .control-panel {
        grid-template-columns: repeat(6, 130px);
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .control-panel {
        grid-template-columns: repeat(6, minmax(0, 110px));
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
        justify-content: center;
    }
}

.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* 统一按钮宽度，允许文字换行 */
    width: 130px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
    vertical-align: top;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

/* 按钮主图标 - 在顶部居中，单独一行 */
.control-btn > i:not(.fa-caret-down) {
    font-size: 1.1rem;
    flex-shrink: 0;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
    width: 100%;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.control-btn:hover > i:not(.fa-caret-down) {
    transform: scale(1.1) translateY(-2px);
}

/* 下拉箭头图标 - 与文字同一行，右侧居中对齐 */
.control-btn .fa-caret-down {
    font-size: 0.7rem;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    margin-left: 4px;
    align-self: center;
}

/* 针对有下拉箭头的按钮，使用flex布局 */
.control-btn:has(.fa-caret-down) {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 8px 10px; /* 保持左右对称的padding */
    position: relative;
    width: 130px;
    box-sizing: border-box;
}

/* 主图标在第一行，居中 */
.control-btn:has(.fa-caret-down) > i:not(.fa-caret-down) {
    display: block;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    flex-shrink: 0;
    align-self: center;
}

/* 下拉箭头绝对定位在右侧，垂直居中，加大并高亮显示 */
.control-btn:has(.fa-caret-down) .fa-caret-down {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    font-size: 1.7rem; /* 加大一倍 */
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
    /* 高亮效果 */
    color: rgba(255, 255, 255, 0.95); /* 更亮的白色 */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8), /* 白色发光 */
        0 0 12px rgba(255, 255, 255, 0.6), /* 外层发光 */
        0 2px 4px rgba(0, 0, 0, 0.3); /* 阴影增强立体感 */
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)); /* 额外的发光效果 */
    font-weight: 600; /* 稍微加粗 */
    transition: all 0.3s ease; /* 平滑过渡 */
}

/* 鼠标悬停时箭头更亮 */
.control-btn:has(.fa-caret-down):hover .fa-caret-down {
    color: rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 1), 
        0 0 18px rgba(255, 255, 255, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    transform: translateY(-50%) scale(1.1); /* 悬停时稍微放大 */
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* 添加顶部高光效果 */
.control-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
    z-index: 2;
}

.control-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.control-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s;
}

/* 现代化按钮颜色方案 - 每个按钮独特的配色 */
/* 1. 当前订单 - 蓝紫色渐变 */
.orders-dropdown .control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.orders-dropdown .control-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 2. 订单录入 - 青绿色渐变 */
.control-btn:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 
        0 8px 24px rgba(17, 153, 142, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 
        0 12px 32px rgba(17, 153, 142, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 3. 基础数据 - 深蓝灰色渐变 */
.control-btn:nth-child(3) {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
    box-shadow: 
        0 8px 24px rgba(44, 62, 80, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #4a6741 0%, #2c3e50 100%);
    box-shadow: 
        0 12px 32px rgba(44, 62, 80, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 4. 备份与恢复 - 橙红色渐变 */
.backup-dropdown .control-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 
        0 8px 24px rgba(245, 87, 108, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.backup-dropdown .control-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 
        0 12px 32px rgba(245, 87, 108, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 5. 下载数据 - 蓝绿色渐变 */
.excel-dropdown .control-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 
        0 8px 24px rgba(79, 172, 254, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.excel-dropdown .control-btn:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 
        0 12px 32px rgba(79, 172, 254, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 6. 实时监控 - 紫红色渐变 */
.control-btn:nth-child(6) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 
        0 8px 24px rgba(250, 112, 154, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn:nth-child(6):hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    box-shadow: 
        0 12px 32px rgba(250, 112, 154, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 7. 工作指令 - 深紫色渐变 */
.control-btn:nth-child(7) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 
        0 8px 24px rgba(168, 237, 234, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn:nth-child(7):hover {
    background: linear-gradient(135deg, #fed6e3 0%, #a8edea 100%);
    box-shadow: 
        0 12px 32px rgba(168, 237, 234, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 8. 消息通知 - 金色渐变 */
.notifications-dropdown .control-btn {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    box-shadow: 
        0 8px 24px rgba(252, 182, 159, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notifications-dropdown .control-btn:hover {
    background: linear-gradient(135deg, #fcb69f 0%, #ffecd2 100%);
    box-shadow: 
        0 12px 32px rgba(252, 182, 159, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 9. 设备协议配置 - 深蓝渐变 */
.control-btn:nth-child(9) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    box-shadow: 
        0 8px 24px rgba(48, 207, 208, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.control-btn:nth-child(9):hover {
    background: linear-gradient(135deg, #330867 0%, #30cfd0 100%);
    box-shadow: 
        0 12px 32px rgba(48, 207, 208, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 10. 模拟器 - 绿色渐变 */
.simulator-dropdown .control-btn {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    box-shadow: 
        0 8px 24px rgba(132, 250, 176, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.simulator-dropdown .control-btn:hover {
    background: linear-gradient(135deg, #8fd3f4 0%, #84fab0 100%);
    box-shadow: 
        0 12px 32px rgba(132, 250, 176, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 主内容区域 */
.main-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.dashboard-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 表格样式 */
.production-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid #eef2f7;
    background: white;
    /* 优化渲染性能 */
    will-change: contents;
    transform: translateZ(0);
}

.production-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    font-size: 0.9rem;
    min-width: 1300px;
    /* 优化渲染性能 */
    will-change: contents;
}

.production-table th,
.production-table td {
    padding: 16px 15px;
    text-align: center;
    border-bottom: 3px solid #f1f5f9;
    /* 优化过渡效果，只对特定属性进行过渡 */
    transition: background-color 0.2s ease-out, opacity 0.2s ease-out;
}

.production-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-weight: 700;
    position: sticky;
    top: 0;
    font-size: 0.95rem;
    border-bottom: 4px solid #2c3e50;
    padding: 18px 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-right: 2px solid rgba(255,255,255,0.1);
    /* 表头不需要过渡动画 */
    transition: none;
}

.production-table th:last-child {
    border-right: none;
}

.production-table tr {
    /* 优化过渡效果，减少动画时间 */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    /* 首次渲染时才使用动画 */
    animation: fadeInUp 0.3s ease-out;
}

/* 优化进度条和容量条的过渡效果 */
.production-table .progress-fill,
.production-table .capacity-fill {
    transition: width 0.3s ease-out !important;
    will-change: width;
}

/* 减少重排和重绘 */
.production-table tbody {
    will-change: contents;
}

.production-table tr:nth-child(even) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.production-table tr:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.production-table tr:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 状态标签 */
.status-cell {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    min-width: 90px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid;
}

.status-idle {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.status-working {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-color: #64b5f6;
}

.status-maintenance {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-color: #ef9a9a;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 25px;
    border-radius: 16px;
    width: 98%;
    max-width: 1600px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid #e1e8ed;
}

/* 模具数据表：各列固定宽度，数字列确保完全可见，兼容机器列可截断 */
#moldDataTable input,
#moldDataTable td {
    white-space: nowrap;
}
#dataModal .data-table {
    table-layout: fixed;
    width: 100%;
}
#dataModal .data-table th:nth-child(1),
#dataModal .data-table td:nth-child(1)  { width: 110px; }  /* 模具编号 */
#dataModal .data-table th:nth-child(2),
#dataModal .data-table td:nth-child(2)  { width: 100px; }  /* 产品名称 */
#dataModal .data-table th:nth-child(3),
#dataModal .data-table td:nth-child(3)  { width: 110px; }  /* 产品编码 */
#dataModal .data-table th:nth-child(4),
#dataModal .data-table td:nth-child(4)  { width: 110px; }  /* 所需锁模力 */
#dataModal .data-table th:nth-child(5),
#dataModal .data-table td:nth-child(5)  { width: 100px; }  /* 产品克重 */
#dataModal .data-table th:nth-child(6),
#dataModal .data-table td:nth-child(6)  { width: 90px;  }  /* 用料 */
#dataModal .data-table th:nth-child(7),
#dataModal .data-table td:nth-child(7)  { width: 90px;  }  /* 成型周期 */
#dataModal .data-table th:nth-child(8),
#dataModal .data-table td:nth-child(8)  { width: 100px; }  /* 小时产能 */
#dataModal .data-table th:nth-child(9),
#dataModal .data-table td:nth-child(9)  { width: 120px; }  /* 模具尺寸 */
#dataModal .data-table th:nth-child(10),
#dataModal .data-table td:nth-child(10) { width: 100px; overflow: hidden; }  /* 兼容机器（可截断） */
#dataModal .data-table th:nth-child(11),
#dataModal .data-table td:nth-child(11) { width: 50px;  }  /* 操作 */
/* 兼容机器列 input 超出时截断，不换行 */
#dataModal .data-table td:nth-child(10) input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 当前订单下拉菜单样式 - 修复显示不完整问题 */
.orders-dropdown {
    position: relative;
    display: inline-block;
}

/* 在按钮和下拉菜单之间保留很小连接区域，避免误触提前展开 */
.orders-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 9998;
    background: transparent;
    pointer-events: none;
}

.orders-dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: fixed; /* 改为fixed定位，相对于视口 */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    width: calc(100vw - 40px);
    max-width: 1600px;
    min-width: 1400px;
    max-height: 80vh;
    overflow-x: auto;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 12px;
    padding: 20px;
    top: 95px;
    left: 20px;
    right: 20px;
    margin: 0;
    border: 2px solid #e1e8ed;
    /* 隐藏时延迟 0.5s 再开始淡出，方便鼠标移入面板 */
    transition: opacity 0.25s ease 0.5s, visibility 0.25s ease 0.5s;
    pointer-events: none;
}

/* 备用规则：仅按钮 hover 时才展开，避免鼠标接近容器就误触 */
.orders-dropdown > .control-btn:hover + .orders-dropdown-content,
.orders-dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.current-orders-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.current-orders-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.current-orders-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.current-orders-table input {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: center;
}

.current-orders-table input[type="number"] {
    width: auto;
    min-width: 70px;
    max-width: 110px;
}

.current-orders-table input[type="date"] {
    width: auto;
    min-width: 120px;
    max-width: 150px;
}

.current-orders-table input:focus {
    border-color: #3498db;
    outline: none;
}

.save-order-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.save-order-btn:hover {
    background: linear-gradient(135deg, #219955 0%, #1e8449 100%);
    transform: translateY(-2px);
}

/* 备份下拉菜单 */
.backup-dropdown {
    position: relative;
    display: inline-block;
}

.backup-dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%; /* 菜单上边缘与按钮下边框对齐 */
    left: 0;
    margin-top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* 在按钮和下拉菜单之间创建连接区域（覆盖按钮底部到菜单顶部的小间隙） */
.backup-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px; /* 很小的连接区域，确保hover不会断开 */
    z-index: 1001;
    background: transparent;
}

.backup-dropdown:hover .backup-dropdown-content,
.backup-dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.backup-dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 60px;
    box-sizing: border-box;
    text-align: left;
}

.backup-dropdown-content a:hover {
    background: #f8fafc;
    color: #3498db;
}

.backup-dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    flex-shrink: 0;
}

/* Excel下载下拉菜单 */
.excel-dropdown {
    position: relative;
    display: inline-block;
}

.excel-dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%; /* 菜单上边缘与按钮下边框对齐 */
    left: 0;
    margin-top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.excel-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px; /* 很小的连接区域，确保hover不会断开 */
    z-index: 1001;
    background: transparent;
}

.excel-dropdown:hover .excel-dropdown-content,
.excel-dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.excel-dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 60px;
    box-sizing: border-box;
    text-align: left;
}

.excel-dropdown-content a:hover {
    background: #f8fafc;
    color: #3498db;
}

.excel-dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    flex-shrink: 0;
}

/* 模拟器下拉菜单 */
.simulator-dropdown {
    position: relative;
    display: inline-block;
}

.simulator-dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%; /* 菜单上边缘与按钮下边框对齐 */
    right: 0;
    margin-top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* 在按钮和下拉菜单之间创建连接区域（覆盖按钮底部到菜单顶部的小间隙） */
.simulator-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px; /* 很小的连接区域，确保hover不会断开 */
    z-index: 1001;
    background: transparent;
}

.simulator-dropdown:hover .simulator-dropdown-content,
.simulator-dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.simulator-dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 60px;
    box-sizing: border-box;
    text-align: left;
}

.simulator-dropdown-content a:hover {
    background: #f8fafc;
    color: #3498db;
}

.simulator-dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    flex-shrink: 0;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    margin-top: 2px;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
}

.api-status.online {
    color: #2ecc71;
}

.api-status.offline {
    color: #e74c3c;
}

.logout-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* 订单编辑器样式 */
.order-editor {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 2px solid #f1f5f9;
}

.editor-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.editor-field {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
}

.editor-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.editor-field input,
.editor-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
    box-sizing: border-box;
    min-width: 0;
}

.editor-field input:focus,
.editor-field select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 140px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 140px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.3);
}

/* 小按钮样式 */
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    width: auto;
    min-height: auto;
    border-radius: 6px;
    margin: 0 2px;
}

/* 成功按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 140px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}

.btn-success:hover {
    background: linear-gradient(135deg, #219955 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-success.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    width: auto;
    min-height: auto;
}

/* 警告按钮样式 */
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 140px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.btn-warning.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    width: auto;
    min-height: auto;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid #eef2f7;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 5px;
}

.stat-icon {
    font-size: 2.2rem;
    color: #3498db;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-card:nth-child(2) .stat-icon {
    color: #2ecc71;
}

.stat-card:nth-child(3) .stat-icon {
    color: #e74c3c;
}

.stat-card:nth-child(4) .stat-icon {
    color: #f39c12;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 2px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9b59b6, #3498db, #2ecc71);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .header-left-section {
        min-width: auto;
        flex-basis: auto;
    }
    
    .header-right-section {
        flex: 1 1 auto;
        align-items: flex-end;
        max-width: 100%;
    }
    
    .control-panel {
        justify-content: flex-end;
        width: 100%;
        grid-template-columns: repeat(6, 130px);
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
    }
    
    .control-btn {
        width: 130px;
        min-width: 130px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 140px;
        min-width: 140px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .orders-dropdown-content {
        min-width: 95vw;
        left: 2.5vw;
        transform: none;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left-section {
        width: 100%;
        justify-content: center;
    }
    
    .header-right-section {
        width: 100%;
        align-items: center;
    }
    
    .control-panel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
        justify-content: stretch;
        gap: 8px;
    }
    
    .control-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: 100%;
    }
    
    .search-box {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .editor-row {
        flex-direction: column;
    }
    
    .editor-field {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-dropdown-content {
        position: fixed;
        width: calc(100vw - 20px);
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        left: 10px !important;
        right: 10px;
        top: 120px !important; /* 增加top值，确保在header下方不遮挡控件 */
        max-height: 70vh;
        transform: none !important;
    }
}

/* 打印样式 */
@media print {
    .control-panel,
    .editor-actions,
    .backup-dropdown {
        display: none;
    }
    
    .dashboard-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 表单验证样式 */
input:invalid {
    border-color: #e74c3c;
}

input:valid {
    border-color: #2ecc71;
}

.validation-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input:invalid + .validation-message {
    display: block;
}

/* 自定义日期选择器样式 */
/* 新的日期时间选择器样式 */
/* 自定义日期选择器样式 */
.custom-date-picker-wrapper {
    position: relative;
    width: 100%;
}

.custom-date-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 4px;
}

.custom-date-input:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.date-part {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.date-part:hover {
    background: #e3f2fd;
    color: #3498db;
}

.date-part.selected {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.date-separator {
    color: #95a5a6;
    font-weight: 400;
    user-select: none;
}

.custom-date-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e1e8ed;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    text-align: center;
}

.dropdown-options {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.dropdown-option {
    padding: 10px 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
    user-select: none;
}

.dropdown-option:hover {
    background: #e3f2fd;
    color: #3498db;
    transform: scale(1.05);
}

.dropdown-option.selected {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-weight: 600;
}

/* 日期选择器特殊样式 - 网格布局 */
#dayDropdown .dropdown-options {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* 兼容旧的日期选择器样式 */
.date-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.date-input:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.date-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.date-picker-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.date-picker-btn:active {
    transform: translateY(0);
}

.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    overflow: hidden;
    border: 2px solid #e1e8ed;
    animation: datePickerSlideDown 0.3s ease-out;
}

.date-picker-dropdown.show {
    display: block;
}

@keyframes datePickerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-picker-quick-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e1e8ed;
}

.quick-date-btn {
    padding: 10px 12px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-date-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.quick-date-btn:active {
    transform: translateY(0);
}

.date-picker-calendar {
    padding: 16px;
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.date-picker-month-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.date-nav-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 8px 4px;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    background: white;
}

.date-day:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #3498db;
    transform: scale(1.1);
}

.date-day.other-month {
    color: #bdc3c7;
    opacity: 0.5;
}

.date-day.today {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    font-weight: 700;
}

.date-day.selected {
    background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
    color: white;
    border-color: #27ae60;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.date-day.disabled {
    color: #e0e0e0;
    cursor: not-allowed;
    background: #f5f5f5;
}

.date-day.disabled:hover {
    transform: none;
    background: #f5f5f5;
    border-color: transparent;
}

/* 推荐结果区域格式优化 */
.recommendation-results {
    padding: 20px;
    margin: 15px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recommendation-item {
    padding: 10px;
    margin: 8px 0;
    border-left: 4px solid #007bff;
    background-color: white;
    border-radius: 4px;
}/* 推荐结果区域格式优化 - 增强版 */
.recommendation-results {
    padding: 25px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #dee2e6;
}

.recommendation-item {
    padding: 15px 20px;
    margin: 12px 0;
    border-left: 5px solid #007bff;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: #0056b3;
}

/* 如果推荐结果是表格形式 */
.recommendation-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.recommendation-table th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px;
    text-align: left;
}

.recommendation-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

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

/* 如果没有使用标准类名，尝试通用选择器 */
div[class*="recommendation"],
div[class*="result"],
div[class*="suggestion"] {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ==================== 补充样式 - 从内联样式迁移 ==================== */
/* 主内容区域补充样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

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

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    min-width: fit-content;
}

.search-box {
    position: relative;
    width: 320px;
    min-width: 280px;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #3498db;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

/* 推荐结果区域 */
.results-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.result-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.result-card p {
    margin: 12px 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-card .label {
    font-weight: 600;
    color: #34495e;
    margin-right: 8px;
}

/* 匹配度颜色样式 */
.match-high {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1rem;
}

.match-medium {
    color: #f39c12;
    font-weight: 700;
    font-size: 1.1rem;
}

.match-low {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 选择机器按钮 */
.select-machine-btn {
    width: 100%;
    padding: 8px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    box-sizing: border-box;
    min-height: 60px;
    text-align: center;
}

.select-machine-btn:hover {
    background: linear-gradient(135deg, #219955 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.select-machine-btn:active {
    transform: translateY(0);
}

.select-machine-btn i {
    font-size: 1rem;
}

/* 警告/提示框样式 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffeaa7;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #bee5eb;
}

.alert i {
    font-size: 1.2rem;
}

/* 标签页样式 */
.tab-container {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.tab-button {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 160px;
    min-height: 60px;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}

.tab-button.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-right: 2px solid #3498db;
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #9b59b6 100%) 1;
    text-align: center;
    vertical-align: middle;
}

/* 模具表格：相邻列之间加彩色竖向分隔线 */
.data-table td + td,
.data-table th + th {
    border-left: 1px solid rgba(52, 152, 219, 0.25);
}

/* 带单位的 input 容器：单位叠在 input 框内右侧，input 文字居中对齐列名 */
.mold-input-unit-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.mold-input-unit-wrap input {
    width: 100%;
    padding-right: 28px;   /* 右侧留给单位标签 */
    padding-left: 6px;
    text-align: center;
    box-sizing: border-box;
}

.mold-input-unit {
    position: absolute;
    right: 6px;
    pointer-events: none;
    color: #3498db;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.data-table input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

/* 表单样式补充 */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea,
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    min-width: 0;
}

.form-group textarea,
.form-control[type="textarea"] {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 统一所有输入控件的样式 */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
    box-sizing: border-box;
    min-width: 0;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.form-buttons .btn-primary,
.form-buttons .btn-secondary {
    flex: 0 0 auto;
    width: 140px;
    min-width: 140px;
}

/* 模态框样式补充 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.modal-title {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 响应式设计补充 */
@media (max-width: 1200px) {
    .orders-dropdown-content {
        width: calc(100vw - 40px);
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        top: 110px; /* 增加top值，确保在header下方不遮挡控件 */
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .orders-dropdown-content {
        width: calc(100vw - 20px);
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        top: 120px;
        max-height: 60vh;
    }
    
    .current-orders-table th,
    .current-orders-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    header {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .control-panel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        grid-auto-rows: 0;
        justify-content: stretch;
    }
    
    .control-btn {
        width: 100%;
        min-width: 0;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        min-width: 100%;
    }
    
    .current-orders-table th,
    .current-orders-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
    }
    
    .current-orders-table input {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-width: 60px;
    }
}

/* ==================== 实时数据样式 ==================== */
.realtime-data-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.realtime-data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.realtime-card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.realtime-machine-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.realtime-machine-info i {
    font-size: 1.5rem;
}

.realtime-machine-id {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.realtime-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.realtime-card-time {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.realtime-card-body {
    padding: 15px 18px;
}

/* 实时数据 / 工艺数据 两大板块（按点位表区分） */
.realtime-data-section,
.process-data-section {
    margin-bottom: 24px;
    padding: 14px 0;
    border-radius: 8px;
}
.realtime-data-section {
    border-left: 4px solid #3498db;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.06), transparent);
    padding-left: 14px;
}
.process-data-section {
    border-left: 4px solid #16a085;
    background: linear-gradient(to right, rgba(22, 160, 133, 0.06), transparent);
    padding-left: 14px;
}
.realtime-data-section:last-child,
.process-data-section:last-child {
    margin-bottom: 0;
}
.realtime-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.realtime-data-section .realtime-section-title i {
    color: #3498db;
}
.process-data-section .realtime-section-title i {
    color: #16a085;
}

/* 实时数据机器列表卡片样式 */
.realtime-machine-card {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.realtime-machine-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.realtime-machine-card:active {
    transform: translateY(-2px);
}

.realtime-param-group {
    margin-bottom: 18px;
}

.realtime-param-group:last-child {
    margin-bottom: 0;
}

.realtime-param-group h4 {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.realtime-param-group h4 i {
    color: #3498db;
    font-size: 0.9rem;
}

.realtime-param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.realtime-param-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
    transition: background 0.2s;
    min-height: 40px;
}

.realtime-param-item:hover {
    background: #e9ecef;
}

.realtime-param-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 数值与单位保持同一行，不拆开；显示不下时整段换行 */
.realtime-param-value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    flex: 1;
    min-width: 0;
    word-break: keep-all;
    white-space: nowrap;
}

.realtime-error-info {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* 开关样式（如果还没有） */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 实时数据模态框特殊样式 */
#realtimeModal .modal-content {
    padding: 0;
}

#realtimeModal .modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    margin: 0;
    border-radius: 0;
}

#realtimeModal .modal-header .close {
    color: white;
    font-size: 2rem;
}

#realtimeModal .modal-header .close:hover {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .realtime-param-grid {
        grid-template-columns: 1fr;
    }
    
    .realtime-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #realtimeDataGrid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 移动端对接相关样式 ==================== */

/* 未读消息徽章 */
.unread-badge {
    position: absolute;
    top: -5px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 通知下拉菜单 */
.notifications-dropdown {
    position: relative;
    display: inline-block;
}

.notifications-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 350px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1002;
    border-radius: 12px;
    margin-top: 5px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.notifications-dropdown:hover .notifications-dropdown-content {
    display: block;
}

.notifications-dropdown-content a {
    color: #2c3e50;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: background 0.3s;
}

.notifications-dropdown-content a:hover {
    background-color: #f8f9fa;
}

/* 通知项样式 */
.notification-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e8f4f8;
    font-weight: 500;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-item-content {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.notification-item-time {
    color: #95a5a6;
    font-size: 0.8rem;
}

.notification-type-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.notification-type-info {
    background: #3498db;
    color: white;
}

.notification-type-warning {
    background: #f39c12;
    color: white;
}

.notification-type-error {
    background: #e74c3c;
    color: white;
}

.notification-type-success {
    background: #27ae60;
    color: white;
}

/* 工作指令优先级标签 */
.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.priority-low {
    background: #95a5a6;
    color: white;
}

.priority-normal {
    background: #3498db;
    color: white;
}

.priority-high {
    background: #f39c12;
    color: white;
}

.priority-urgent {
    background: #e74c3c;
    color: white;
}

/* 工作指令状态标签 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-in-progress {
    background: #3498db;
    color: white;
}

.status-completed {
    background: #27ae60;
    color: white;
}

.status-cancelled {
    background: #95a5a6;
    color: white;
}

.status-paused {
    background: #9b59b6;
    color: white;
}

/* ==================== 登录界面样式 ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

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

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-box .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #c33;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.login-footer p {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 5px 0;
}

.login-footer i {
    margin-right: 5px;
    color: #667eea;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ==================== 玻璃拟物风 2.0 — 通透科技 · 磨砂质感 · 工业物联网 ==================== */
:root {
    --g-bg-from: #0b1628;
    --g-bg-to: #132744;
    --g-brand: #3b82f6;
    --g-brand-light: #60a5fa;
    --g-teal: #14b8a6;
    --g-teal-light: #2dd4bf;
    --g-green: #10b981;
    --g-amber: #f59e0b;
    --g-rose: #f43f5e;
    --g-purple: #8b5cf6;
    /* 产品名称专用色：与深色背景对比强，不混色 */
    --g-product-name: #67e8f9;
    --g-glass-white: rgba(255,255,255,0.08);
    --g-glass-white-2: rgba(255,255,255,0.12);
    --g-glass-white-3: rgba(255,255,255,0.18);
    --g-glass-border: rgba(255,255,255,0.12);
    --g-glass-border-2: rgba(255,255,255,0.18);
    --g-text: #f1f5f9;
    --g-text2: #cbd5e1;
    --g-text3: #94a3b8;
    --g-text-strong: #f8fbff;
    --g-number-strong: #fde68a;
    --g-option-bg: #12243f;
    --g-option-hover: #173154;
    --g-text-dark: #0f172a;
    --g-text-dark2: #334155;
    --g-shadow: 0 8px 32px rgba(0,0,0,0.25);
    --g-shadow-sm: 0 4px 16px rgba(0,0,0,0.18);
    --g-blur: blur(20px);
    --g-blur-md: blur(15px);
    --g-blur-sm: blur(10px);
    --g-radius: 16px;
    --g-radius-sm: 12px;
}

/* ── 背景 ── */
body {
    background:
        radial-gradient(ellipse 70% 55% at 15% 5%, rgba(59,130,246,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 8%, rgba(20,184,166,0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(139,92,246,0.10) 0%, transparent 50%),
        linear-gradient(165deg, var(--g-bg-from) 0%, #0e2040 40%, var(--g-bg-to) 100%);
    color: var(--g-text);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.3), transparent 65%);
}

/* ── 主容器 ── */
.container {
    background: rgba(15,25,45,0.55);
    backdrop-filter: var(--g-blur-sm);
    border: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow);
    position: relative;
    z-index: 1;
}

/* ── 头部 — 磨砂玻璃导航 ── */
header {
    background: linear-gradient(135deg, rgba(11,22,40,0.88) 0%, rgba(19,39,68,0.85) 100%);
    backdrop-filter: var(--g-blur-md);
    -webkit-backdrop-filter: var(--g-blur-md);
    padding: 20px 28px;
    align-items: center;
    gap: 28px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.07) 0%, transparent 35%),
        radial-gradient(circle at 92% 15%, rgba(59,130,246,0.15), transparent 28%),
        radial-gradient(circle at 8% 85%, rgba(20,184,166,0.10), transparent 25%);
    pointer-events: none;
}

header::before {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--g-brand) 0%, var(--g-teal) 33%, var(--g-amber) 66%, var(--g-rose) 100%);
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

h1::after { display: none; }

header h1 {
    margin: 0;
    padding: 14px 20px;
    gap: 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 20px rgba(0,0,0,0.15);
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 2;
}

.header-left-section { align-items: center; }
.header-right-section { align-items: flex-end; }

/* Logo — 品牌色 + 内发光 */
.logo-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--g-brand) 0%, var(--g-teal) 100%);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        inset 0 0 16px rgba(96,165,250,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 8px 24px rgba(59,130,246,0.35);
}

.logo-icon-wrapper::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
}

.logo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
    text-shadow: 0 0 12px rgba(255,255,255,0.25);
}

/* 标题 */
.title-text { gap: 5px; position: relative; }

.title-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
    text-shadow: 0 0 28px rgba(96,165,250,0.35), 0 2px 4px rgba(0,0,0,0.25);
}

.title-main::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--g-brand-light), var(--g-teal));
    box-shadow: 0 0 14px rgba(96,165,250,0.5);
}

.title-sub {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(148,163,184,0.85);
    opacity: 1;
    text-shadow: none;
}

/* ── 按钮 — 半透明白色玻璃 ── */
.control-panel { gap: 10px; }

@media (min-width: 1200px) { .control-panel { grid-template-columns: repeat(6, 132px); grid-template-rows: repeat(2, auto); grid-auto-rows: 0; } }
@media (min-width: 1600px) { .control-panel { grid-template-columns: repeat(6, 132px); grid-template-rows: repeat(2, auto); grid-auto-rows: 0; } }
@media (min-width: 768px) and (max-width: 1199px) { .control-panel { grid-template-columns: repeat(6, minmax(0, 110px)); grid-template-rows: repeat(2, auto); grid-auto-rows: 0; } }

.control-panel .control-btn {
    background: rgba(255,255,255,0.08);
    color: var(--g-text2);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 10px 12px;
    border-radius: var(--g-radius-sm);
    min-height: 46px;
    width: 132px;
    font-size: 0.82rem;
    font-weight: 600;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.control-panel .control-btn::before,
.control-panel .control-btn::after { display: none; }

.control-panel .control-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(20,184,166,0.35);
    box-shadow:
        0 0 0 3px rgba(20,184,166,0.18),
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
    color: #fff;
}

.control-panel .control-btn > i:not(.fa-caret-down) {
    width: auto;
    margin-bottom: 0;
    font-size: 0.95rem;
    filter: none;
    color: var(--g-brand-light);
    transition: all 0.25s ease;
}

.control-panel .control-btn:hover > i:not(.fa-caret-down) {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(96,165,250,0.5));
    transform: scale(1.1);
}

/* ISIOW 入口按钮 - 颜色突出，与其它控件区分 */
.control-panel .control-btn.isiow-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    text-decoration: none;
    font-weight: 700;
}
.control-panel .control-btn.isiow-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff !important;
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.control-panel .control-btn.isiow-btn > i:not(.fa-caret-down) {
    color: #fff !important;
}

.control-panel .control-btn .fa-caret-down {
    margin-left: 4px; font-size: 0.7rem; opacity: 0.6;
}

.control-panel .control-btn:has(.fa-caret-down) {
    flex-direction: row; gap: 8px; padding: 10px 12px;
}
.control-panel .control-btn:has(.fa-caret-down) > i:not(.fa-caret-down) {
    display: inline-flex; width: auto; text-align: center; align-self: center;
}
.control-panel .control-btn:has(.fa-caret-down) .fa-caret-down {
    position: static; transform: none; font-size: 0.7rem;
    color: inherit; text-shadow: none; filter: none; font-weight: 600;
}
.control-panel .control-btn:has(.fa-caret-down):hover .fa-caret-down {
    color: inherit; text-shadow: none; filter: none; transform: none;
}

.unread-badge {
    top: 6px; right: 10px;
    border: 2px solid rgba(11,22,40,0.6);
    box-shadow: 0 0 8px rgba(244,63,94,0.4);
    background: var(--g-rose);
}

/* ── 主内容区 — 带微弱光斑 ── */
.main-content {
    padding: 28px;
    background:
        radial-gradient(ellipse 40% 30% at 5% 15%, rgba(59,130,246,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 35% 25% at 95% 85%, rgba(20,184,166,0.04) 0%, transparent 45%),
        linear-gradient(180deg, rgba(15,25,45,0.3) 0%, rgba(19,39,68,0.15) 100%);
}

/* ── 卡片和区块 — 磨砂玻璃面板 ── */
.dashboard-section,
.results-section,
.chart-container {
    background: rgba(255,255,255,0.06);
    backdrop-filter: var(--g-blur-md);
    -webkit-backdrop-filter: var(--g-blur-md);
    border: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.10);
    border-radius: var(--g-radius);
}

.modal-content {
    background: rgba(20,35,60,0.92);
    backdrop-filter: var(--g-blur-md);
    -webkit-backdrop-filter: var(--g-blur-md);
    border: 1px solid var(--g-glass-border-2);
    box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255,255,255,0.10);
    border-radius: 20px;
}

/* 协议配置弹窗：覆盖旧的浅色内联块，避免“白色盖住文字” */
#protocolConfigModal .modal-content {
    background: rgba(15, 28, 48, 0.96);
}

#protocolConfigModal .modal-header {
    background: rgba(11, 22, 40, 0.82);
    border-bottom: 1px solid rgba(96, 165, 250, 0.18);
}

#protocolConfigModal .form-group label,
#protocolConfigModal .form-group label[for],
#protocolConfigModal .form-group small {
    color: #eaf2fb !important;
}

#protocolConfigModal .form-group div .form-group label {
    color: #f3f8ff !important;
    font-weight: 600;
}

#protocolConfigModal .form-group small {
    display: block;
    margin-top: 8px;
    color: #b9c9db !important;
}

#protocolConfigModal .form-group > div[style*="background: #f8f9fa"] {
    background: rgba(14, 28, 48, 0.76) !important;
    border: 1px solid rgba(96, 165, 250, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#protocolConfigModal .alert[style] {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #d9ffee !important;
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

#protocolConfigModal .alert[style] i {
    color: #6ee7b7 !important;
}

#protocolConfigModal .form-control,
#protocolConfigModal .form-group input,
#protocolConfigModal .form-group select,
#protocolConfigModal .form-group textarea {
    background: rgba(255,255,255,0.08) !important;
    color: #f8fbff !important;
    border-color: rgba(103, 232, 249, 0.20) !important;
}

#protocolConfigModal .form-control::placeholder,
#protocolConfigModal .form-group input::placeholder,
#protocolConfigModal .form-group textarea::placeholder {
    color: #c8d5e4 !important;
    opacity: 1;
}

#protocolConfigModal .form-group select option {
    background: #132746;
    color: #f8fbff;
}

.result-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: var(--g-blur-md);
    -webkit-backdrop-filter: var(--g-blur-md);
    border: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.10);
    border-radius: var(--g-radius-sm);
    padding: 20px;
    transition: all 0.3s ease;
}

.dashboard-section::before,
.chart-container::before {
    height: 3px;
    background: linear-gradient(90deg, var(--g-brand), var(--g-teal), var(--g-brand-light));
    box-shadow: 0 0 16px rgba(59,130,246,0.3);
    border-radius: var(--g-radius) var(--g-radius) 0 0;
}

.result-card::before {
    height: 3px;
    background: linear-gradient(90deg, var(--g-teal), var(--g-brand));
    box-shadow: 0 0 12px rgba(20,184,166,0.25);
}

.result-card::after { display: none; }

.result-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
    border-color: rgba(96,165,250,0.3);
}

/* ── 区块标题 ── */
.section-header {
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-left h2,
.results-section h3,
.modal-title {
    color: var(--g-text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.header-left h2 i { color: var(--g-brand-light); }
.results-section h3 i { color: var(--g-teal-light); }
.modal-title i { color: var(--g-brand-light); }

.results-section h3,
.header-left h2 { letter-spacing: 0.5px; }

/* ── 时间和搜索 — 半透明玻璃 ── */
.time-display {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(20,184,166,0.25);
    color: var(--g-text2);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    font-variant-numeric: tabular-nums;
}

#currentDateTime {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    color: var(--g-teal-light);
    font-weight: 800;
    font-size: 1.05em;
    text-shadow: 0 0 10px rgba(45,212,191,0.3);
}

/* ── 输入框 — 玻璃质感 ── */
.search-input,
.form-group input,
.form-group select,
.form-group textarea,
.form-control,
.current-orders-table input,
.data-table input {
    border: 1px solid rgba(20,184,166,0.2);
    border-radius: var(--g-radius-sm);
    background: rgba(255,255,255,0.10);
    color: var(--g-text-strong);
    transition: all 0.2s ease;
    font-weight: 600;
}

.search-input:focus,
.form-group input:focus,
.form-group select:focus,
.current-orders-table input:focus,
.data-table input:focus {
    border-color: var(--g-teal);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(20,184,166,0.12), 0 0 16px rgba(20,184,166,0.08);
    outline: none;
}

.search-icon { color: #d7e6f5; }

.search-input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder {
    color: #b8c8d9;
    opacity: 1;
}

/* 原生下拉选项：避免文字与系统默认背景混色 */
.form-group select,
.form-control,
.current-orders-table select {
    color: var(--g-text-strong);
    background-color: rgba(255,255,255,0.10);
}

.form-group select option,
.form-control option,
.current-orders-table select option,
#moldId option {
    background: var(--g-option-bg);
    color: var(--g-text-strong);
    font-weight: 600;
}

.form-group select option:checked,
.form-control option:checked,
.current-orders-table select option:checked,
#moldId option:checked {
    background: var(--g-option-hover);
    color: #ffffff;
}

/* ── 下拉面板 ── */
.production-table-container,
.orders-dropdown-content,
.backup-dropdown-content,
.excel-dropdown-content,
.notifications-dropdown-content {
    background: rgba(15,25,45,0.92);
    backdrop-filter: var(--g-blur);
    border: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow);
}

/* ── 表格 — 透明交替行 ── */
.production-table,
.current-orders-table,
.data-table {
    background: transparent;
}

.production-table th,
.current-orders-table th,
.data-table th {
    background: rgba(19,39,68,0.70);
    backdrop-filter: blur(10px);
    color: #e0e6ed;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-right: 1px solid rgba(255,255,255,0.05);
    text-shadow: none;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.production-table th:last-child,
.current-orders-table th:last-child,
.data-table th:last-child {
    border-right: none;
}

/* 当前订单表：去掉表头底线，仅用间距区分，避免横线遮挡第一行 */
.orders-dropdown-content .current-orders-table thead th {
    border-bottom: none !important;
    padding-bottom: 14px;
    box-shadow: none !important;
}
.orders-dropdown-content .current-orders-table tbody tr:first-child td {
    padding-top: 14px;
    border-top: none;
}

.production-table td,
.current-orders-table td,
.data-table td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e0e6ed;
    transition: all 0.18s ease;
}

/* 关键数字统一再亮一档，保证一眼能看清 */
.production-table td:nth-child(1),
.production-table td:nth-child(6),
.production-table td:nth-child(7),
.production-table td:nth-child(10),
.current-orders-table td:nth-child(1),
.current-orders-table td:nth-child(4),
.current-orders-table td:nth-child(5),
.current-orders-table td:nth-child(6),
.current-orders-table td:nth-child(7),
.current-orders-table td:nth-child(8) {
    font-variant-numeric: tabular-nums;
}

/* 机器编号列 */
.production-table td:nth-child(1) {
    color: var(--g-brand-light);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(96,165,250,0.2);
}

/* 模具表格删除按钮：小尺寸，文字上下排列 */
.mold-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    padding: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mold-delete-btn:hover { opacity: 0.85; }
.production-table td:nth-child(3) {
    color: var(--g-teal-light);
    font-weight: 700;
}

/* 产品名称 — 使用专用亮青色，与深色背景区分明显、不混色 */
.production-table td:nth-child(4) {
    color: var(--g-product-name);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 8px rgba(103,232,249,0.25);
}

/* 当前订单表单独高对比配色：以近白色为主，少量明确强调色 */
.orders-dropdown-content .current-orders-table td {
    color: #f2f6fb;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}

.orders-dropdown-content .current-orders-table td:nth-child(1) {
    color: #fda4af;
    font-weight: 700;
}

.orders-dropdown-content .current-orders-table td:nth-child(2) {
    color: #bfdbfe;
    font-weight: 700;
}

.orders-dropdown-content .current-orders-table td:nth-child(3) {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.36);
}

.orders-dropdown-content .current-orders-table td:nth-child(4) {
    color: #bbf7d0;
    font-weight: 700;
}

.orders-dropdown-content .current-orders-table td:nth-child(7) {
    color: #fde68a;
    font-weight: 700;
}

.orders-dropdown-content .current-orders-table td:nth-child(8),
.orders-dropdown-content .current-orders-table .completion-time {
    color: #f5f3ff;
    font-weight: 700;
}

.orders-dropdown-content .current-orders-table .completion-time.completed {
    color: #86efac;
}

/* 订单量 */
.production-table td:nth-child(6) {
    color: var(--g-purple);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 交期 */
.production-table td:nth-child(7) {
    color: var(--g-amber);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 开始时间 */
.production-table td:nth-child(8) {
    color: var(--g-text2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

/* 进度列 */
.production-table td:nth-child(9) {
    min-width: 160px;
}

/* 预计完成 */
.production-table td:nth-child(10) {
    color: var(--g-teal-light);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* 进度条 — 发光效果 */
.production-table .progress-bar,
.production-table .capacity-bar {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.production-table .progress-fill,
.production-table .capacity-fill {
    background: linear-gradient(90deg, var(--g-teal) 0%, var(--g-teal-light) 50%, var(--g-green) 100%);
    box-shadow: 0 0 16px rgba(20,184,166,0.35);
    border-radius: 999px;
    transition: background 0.4s ease;
}

.production-table .progress-fill.deadline-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 0 14px rgba(245,158,11,0.35);
}

.production-table .progress-fill.deadline-overdue {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    box-shadow: 0 0 14px rgba(239,68,68,0.40);
}

/* 表格行 — 透明交替 */
.production-table tr,
.production-table tbody tr {
    animation: none;
    transition: all 0.2s ease;
}

.production-table tr:nth-child(even),
.data-table tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

.production-table tr:nth-child(odd),
.data-table tr:nth-child(odd) {
    background: transparent;
}

.production-table tr:hover,
.data-table tr:hover,
.current-orders-table tr:hover {
    background: #2a3b52;
    transform: none;
    outline: 1px solid var(--g-teal);
    outline-offset: -1px;
    box-shadow: 0 2px 14px rgba(20,184,166,0.12);
}

/* ── 状态标签 — 半透明玻璃质感 ── */
.status-cell {
    border-radius: 999px;
    border-width: 1px;
    text-shadow: none;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.status-cell::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-idle {
    background: rgba(16,185,129,0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16,185,129,0.35) !important;
}
.status-idle::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.5); }

.status-working {
    background: rgba(59,130,246,0.18) !important;
    color: #93c5fd !important;
    border-color: rgba(59,130,246,0.35) !important;
}
.status-working::before { background: #60a5fa; box-shadow: 0 0 8px rgba(96,165,250,0.5); }

.status-disconnected {
    background: rgba(245,158,11,0.18) !important;
    color: #fcd34d !important;
    border-color: rgba(245,158,11,0.35) !important;
}
.status-disconnected::before { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.5); }

.status-maintenance {
    background: rgba(244,63,94,0.18) !important;
    color: #fda4af !important;
    border-color: rgba(244,63,94,0.35) !important;
}
.status-maintenance::before { background: #fb7185; box-shadow: 0 0 8px rgba(251,113,133,0.5); }

.status-cell:hover {
    transform: scale(1.06);
    outline: 1px solid rgba(255,255,255,0.35);
    outline-offset: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.status-working::before {
    animation: pulseDotGlass 1.8s ease-in-out infinite;
}

@keyframes pulseDotGlass {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px rgba(96,165,250,0.6); }
}

/* ── 统计卡片 — 玻璃面板 ── */
.stat-card {
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: var(--g-blur-md);
    -webkit-backdrop-filter: var(--g-blur-md);
    border: 1px solid var(--g-glass-border) !important;
    box-shadow: var(--g-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.10);
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.09) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.stat-card::before {
    top: 16px;
    left: 0;
    right: auto;
    width: 4px;
    height: calc(100% - 32px);
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, var(--g-brand) 0%, var(--g-brand-light) 100%);
    box-shadow: 2px 0 14px rgba(59,130,246,0.3);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(180deg, var(--g-teal) 0%, var(--g-teal-light) 100%);
    box-shadow: 2px 0 14px rgba(20,184,166,0.3);
}
.stat-card:nth-child(3)::before {
    background: linear-gradient(180deg, var(--g-amber) 0%, #fbbf24 100%);
    box-shadow: 2px 0 14px rgba(245,158,11,0.3);
}
.stat-card:nth-child(4)::before {
    background: linear-gradient(180deg, var(--g-purple) 0%, #a78bfa 100%);
    box-shadow: 2px 0 14px rgba(139,92,246,0.3);
}
.stat-card:nth-child(5)::before {
    background: linear-gradient(180deg, var(--g-rose) 0%, #fb7185 100%);
    box-shadow: 2px 0 14px rgba(244,63,94,0.3);
}

.stat-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(96,165,250,0.4);
    background: none;
    -webkit-text-fill-color: initial;
}

.stat-label {
    color: var(--g-text3);
    letter-spacing: 0.4px;
    font-weight: 600;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(59,130,246,0.15);
    color: var(--g-brand-light);
    margin-bottom: 16px;
    opacity: 1;
    box-shadow: 0 0 16px rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.15);
}

/* ── 功能按钮 — 玻璃质感 ── */
.btn-primary,
.btn-secondary,
.save-order-btn {
    min-height: 44px;
    width: auto;
    padding: 10px 18px;
    border-radius: var(--g-radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.btn-primary,
.save-order-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.85) 0%, rgba(29,78,216,0.9) 100%);
    color: #fff;
    border: 1px solid rgba(96,165,250,0.3);
    box-shadow: 0 4px 18px rgba(59,130,246,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.select-machine-btn {
    background: linear-gradient(135deg, rgba(16,185,129,0.85) 0%, rgba(5,150,105,0.9) 100%);
    color: #fff;
    border: 1px solid rgba(52,211,153,0.3);
    box-shadow: 0 4px 18px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover,
.save-order-btn:hover {
    background: linear-gradient(135deg, rgba(29,78,216,0.95) 0%, rgba(30,58,138,0.95) 100%);
    box-shadow: 0 0 0 3px rgba(96,165,250,0.15), 0 8px 24px rgba(59,130,246,0.35);
    transform: translateY(-1px);
}

.select-machine-btn:hover {
    background: linear-gradient(135deg, rgba(5,150,105,0.95) 0%, rgba(6,95,70,0.95) 100%);
    box-shadow: 0 0 0 3px rgba(52,211,153,0.15), 0 8px 24px rgba(16,185,129,0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--g-text2);
    border: 1px solid var(--g-glass-border-2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: var(--g-brand-light);
    border-color: rgba(96,165,250,0.3);
    box-shadow: 0 0 0 3px rgba(96,165,250,0.08), 0 8px 20px rgba(0,0,0,0.2);
}

/* ── 模态框 ── */
.modal {
    background-color: rgba(8,16,32,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── 推荐区域 ── */
.results-section {
    position: relative;
    overflow: hidden;
}

.results-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.04) 100%);
    pointer-events: none;
}

/* ── 日期选择器 — 玻璃质感，文字与图标更醒目 ── */
.custom-date-input {
    border: 1px solid rgba(20,184,166,0.35);
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    color: #f0f4f9;
}

.custom-date-input:hover {
    border-color: rgba(20,184,166,0.5);
    box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
}

/* 交期要求旁的日历图标 — 提高对比度 */
label[for="deliveryDate"] i.fa-calendar-alt,
.custom-date-picker-wrapper ~ label i.fa-calendar-alt,
#orderModal .form-group label[for="deliveryDate"] i {
    color: var(--g-teal-light);
    text-shadow: 0 0 10px rgba(45,212,191,0.4);
    opacity: 1;
}

.date-separator {
    color: rgba(224,230,237,0.9) !important;
}

.date-part {
    min-width: 66px;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #f0f4f9;
}

.date-part.selected {
    background: linear-gradient(135deg, var(--g-brand) 0%, rgba(29,78,216,0.9) 100%);
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
    color: #fff;
}

.custom-date-dropdown {
    border: 1px solid var(--g-glass-border);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
    overflow: hidden;
    background: rgba(15,25,45,0.95);
    backdrop-filter: var(--g-blur);
}

.dropdown-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--g-text-strong);
    font-weight: 700;
}

.dropdown-option {
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.15s ease;
    color: var(--g-text-strong);
    font-weight: 600;
}

.dropdown-option:hover {
    background: rgba(59,130,246,0.12);
    color: var(--g-brand-light);
    transform: translateY(-1px);
}

.dropdown-option.selected {
    background: linear-gradient(135deg, var(--g-brand) 0%, rgba(29,78,216,0.9) 100%);
    box-shadow: 0 6px 16px rgba(59,130,246,0.3);
    color: #fff;
}

/* ── 模态框头部 ── */
.modal-header {
    margin: -25px -25px 24px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#realtimeModal .modal-header {
    background: rgba(11,22,40,0.8);
    color: #fff;
    border-bottom: 2px solid rgba(59,130,246,0.4);
}

#realtimeModal .modal-title,
#realtimeModal .modal-title i {
    color: #fff;
}

.close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: var(--g-text3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    color: #fff;
    background: rgba(244,63,94,0.6);
    border-color: rgba(244,63,94,0.5);
    box-shadow: 0 0 14px rgba(244,63,94,0.3);
}

#realtimeModal .modal-header .close {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

#realtimeModal .modal-header .close:hover {
    background: rgba(244,63,94,0.5);
    border-color: rgba(244,63,94,0.6);
}

/* ── 图标 hover 缩放光晕 ── */
.control-panel .control-btn > i,
.stat-icon,
.header-left h2 i,
.results-section h3 i {
    transition: all 0.25s ease;
}
.stat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(96,165,250,0.3);
}

/* ── 当前订单表格暗色适配 ── */
.current-orders-table input[type="number"],
.current-orders-table input[type="date"],
.current-orders-table input[type="text"],
.current-orders-table select {
    background: rgba(255,255,255,0.08);
    color: var(--g-text-strong);
    border-color: rgba(20,184,166,0.25);
}
/* 当前订单表格内日期输入框更醒目（含原生日历图标区域） */
.current-orders-table input[type="date"] {
    border-color: rgba(20,184,166,0.35);
    color: #f0f4f9;
}
.current-orders-table input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) brightness(1.2);
    opacity: 0.9;
    cursor: pointer;
}

/* ── form-group labels ── */
.form-group label {
    color: var(--g-text-strong);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.form-group label i,
.modal-title i,
.header-left h2 i,
.results-section h3 i {
    filter: drop-shadow(0 0 6px rgba(96,165,250,0.25));
}

/* ── 通知 / 提示文字 ── */
.empty-state, .no-data {
    color: var(--g-text3);
}

/* ── 进度条文字 / 剩余数适配 ── */
.production-info .production-progress {
    color: #e0e6ed;
}

/* ── 交期列动态颜色适配 ── */
.production-table td.deadline-near {
    color: var(--g-amber) !important;
}
.production-table td.deadline-over {
    color: var(--g-rose) !important;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    header {
        padding: 18px 14px;
        gap: 14px;
        align-items: flex-start;
    }
    header h1 { gap: 12px; }
    .logo-icon-wrapper { width: 46px; height: 46px; border-radius: 13px; }
    .title-main { font-size: 1.4rem; }
    .title-sub { font-size: 0.68rem; letter-spacing: 1.2px; }
    .main-content { padding: 16px; }
    .control-panel .control-btn { width: 100%; }
}