* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部状态栏 */
.header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.header-title h1 {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.admin-link {
    padding: 10px 20px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.header-alerts {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.alert-item {
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-item.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.alert-icon {
    font-size: 20px;
}

.header-status {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    color: #94a3b8;
}

.status-value {
    font-weight: bold;
}

.status-value.normal {
    color: #10b981;
}

/* KPI 指标卡片 */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.kpi-card {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 25px 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.kpi-title {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1.2;
}

.kpi-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.kpi-status.normal {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-status.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.kpi-status.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    align-items: stretch;
    padding: 0 5px;
}

/* 面板通用样式 */
.left-panel, .center-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.01) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}

.panel-section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.panel-title {
    font-size: 17px;
    font-weight: 700;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-left: 5px solid #3b82f6;
    border-radius: 0 10px 10px 0;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.chart-container {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 15px;
    height: 280px;
    margin-bottom: 10px;
}

/* 中部数字孪生产线 */
.digital-twin {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 15px;
}

.kiln-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.kiln-section {
    flex: 1;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.kiln-section.active {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.section-title {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.kiln-section.active .section-title {
    color: #fbbf24;
    font-weight: bold;
}

.section-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    border: 3px solid rgba(59, 130, 246, 0.5);
    margin: 0 auto;
}

.section-indicator.glowing {
    background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0.5) 50%, transparent 70%);
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px #f59e0b, 0 0 40px rgba(245, 158, 11, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.temperature-display {
    margin-top: 20px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.temp-value {
    font-size: 28px;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 5px;
}

.temp-zone {
    font-size: 12px;
    color: #94a3b8;
}

/* 车间实时进度 */
.progress-section {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 15px;
}

.progress-card {
    text-align: center;
    padding: 15px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.progress-card:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.circular-progress {
    position: relative;
    width: 95px;
    height: 95px;
    margin: 0 auto 10px;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.progress-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.progress-bg {
    fill: none;
    stroke: rgba(59, 130, 246, 0.15);
    stroke-width: 9;
}

.progress-bar {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

/* 不同颜色的进度条 */
.circular-progress.color-1 .progress-bar {
    stroke: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.circular-progress.color-2 .progress-bar {
    stroke: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.circular-progress.color-3 .progress-bar {
    stroke: #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.circular-progress.color-4 .progress-bar {
    stroke: #6366f1;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.circular-progress.color-5 .progress-bar {
    stroke: #ec4899;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

.circular-progress.color-6 .progress-bar {
    stroke: #f43f5e;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

.circular-progress.color-7 .progress-bar {
    stroke: #f97316;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
}

.circular-progress.color-8 .progress-bar {
    stroke: #eab308;
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

.circular-progress.color-9 .progress-bar {
    stroke: #84cc16;
    filter: drop-shadow(0 0 8px rgba(132, 204, 22, 0.6));
}

.circular-progress.color-10 .progress-bar {
    stroke: #14b8a6;
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.6));
}

.circular-progress.color-11 .progress-bar {
    stroke: #0ea5e9;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
}

.circular-progress.color-12 .progress-bar {
    stroke: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.progress-bar.warning {
    stroke: #f59e0b;
}

.progress-text {
    font-size: 15px;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.progress-text.warning {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.progress-label {
    font-size: 13px;
    color: #cbd5e1;
    word-wrap: break-word;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 设备状态按钮 */
.equipment-section {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.equipment-buttons {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    justify-content: space-between;
    align-items: stretch;
}

.equipment-btn {
    flex: 1;
    padding: 18px 12px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 110px;
    justify-content: center;
}

.equipment-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.equipment-btn.blue {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);
    border: 2px solid rgba(59, 130, 246, 0.35);
}

.equipment-btn.blue.active {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.28) 0%, rgba(59, 130, 246, 0.18) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), inset 0 0 15px rgba(59, 130, 246, 0.1);
}

.equipment-btn.green {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
    border: 2px solid rgba(16, 185, 129, 0.35);
}

.equipment-btn.green.active {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0.18) 100%);
    border: 2px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5), inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.equipment-btn.yellow {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
    border: 2px solid rgba(245, 158, 11, 0.35);
}

.equipment-btn.yellow.active {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.28) 0%, rgba(245, 158, 11, 0.18) 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), inset 0 0 15px rgba(245, 158, 11, 0.1);
}

.btn-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-text {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-status {
    font-size: 12px;
    color: #10b981;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(59, 130, 246, 0.1);
}

/* 隐藏滚动条但保留滚动功能 - 最终解决方案 */
.inventory-alerts, .color-table, .supplier-table {
    /* 核心：外部容器隐藏溢出 */
    overflow: hidden;
    position: relative;
}

/* 内部滚动容器 - 关键实现 */
.scroll-content {
    /* 内部容器允许滚动 */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* 核心：内部容器比外部宽，隐藏滚动条 */
    width: calc(100% + 17px);
    
    /* 确保内容高度足够时可以滚动 */
    max-height: 100%;
    
    /* 隐藏所有浏览器的滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow: -moz-scrollbars-none; /* Old Firefox */
}

/* 确保表格内容适应容器 */
.color-table table, .supplier-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* 移除所有可能的滚动条样式 */
.scroll-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 底部横向供应商管理 */
.supplier-section {
    margin-top: 30px;
    width: 100%;
}

.supplier-table-horizontal {
    /* 横向供应商表格容器 */
    overflow: hidden;
    position: relative;
    max-height: 400px; /* 控制表格高度 */
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.supplier-table-horizontal .scroll-content {
    /* 内部滚动容器 */
    overflow-y: auto;
    overflow-x: hidden;
    width: calc(100% + 17px);
    max-height: 350px; /* 确保内部容器有固定高度可以滚动 */
}

/* 确保表格内容可以滚动，同时隐藏滚动条 */
.supplier-table-horizontal .scroll-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.supplier-table-horizontal .scroll-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 确保表格在横向布局中正常显示 */
.supplier-table-horizontal table {
    width: 100%;
    table-layout: auto; /* 自动列宽 */
    border-collapse: collapse;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 表格列宽度调整 */
.supplier-table-horizontal th:nth-child(1),
.supplier-table-horizontal td:nth-child(1) {
    width: 25%; /* 供应商名称 */
}

.supplier-table-horizontal th:nth-child(2),
.supplier-table-horizontal td:nth-child(2) {
    width: 15%; /* 供货类型 */
}

.supplier-table-horizontal th:nth-child(3),
.supplier-table-horizontal td:nth-child(3) {
    width: 10%; /* 评分 */
    text-align: center;
}

.supplier-table-horizontal th:nth-child(4),
.supplier-table-horizontal td:nth-child(4) {
    width: 15%; /* 交货率 */
    text-align: center;
}

.supplier-table-horizontal th:nth-child(5),
.supplier-table-horizontal td:nth-child(5) {
    width: 15%; /* 合格率 */
    text-align: center;
}

.supplier-table-horizontal th:nth-child(6),
.supplier-table-horizontal td:nth-child(6) {
    width: 15%; /* 状态 */
    text-align: center;
}

/* 表格头部样式优化 */
.supplier-table-horizontal th {
    white-space: nowrap;
    font-weight: 700;
    padding: 18px 20px;
    text-align: left;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #cbd5e1;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.supplier-table-horizontal th:nth-child(3),
.supplier-table-horizontal th:nth-child(4),
.supplier-table-horizontal th:nth-child(5),
.supplier-table-horizontal th:nth-child(6) {
    text-align: center;
}

/* 表格行样式优化 */
.supplier-table-horizontal td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 14px;
    transition: all 0.3s ease;
    color: #e2e8f0;
    text-shadow: 0 0 3px rgba(59, 130, 246, 0.15);
    line-height: 1.6;
}

/* 优化字体颜色层次感 */
.supplier-table-horizontal td:nth-child(1) {
    color: #60a5fa;
    font-weight: 600;
}

.supplier-table-horizontal td:nth-child(2) {
    color: #93c5fd;
    font-weight: 500;
}

.supplier-table-horizontal td:nth-child(3) {
    color: #fbbf24;
    font-weight: bold;
    font-size: 15px;
}

.supplier-table-horizontal td:nth-child(4),
.supplier-table-horizontal td:nth-child(5) {
    color: #34d399;
    font-weight: 600;
}

.supplier-table-horizontal td:nth-child(6) {
    font-weight: 700;
}

/* 表格行悬停效果 */
.supplier-table-horizontal tr:hover td {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 表格行间距 */
.supplier-table-horizontal tr {
    transition: all 0.3s ease;
}

.supplier-table-horizontal tr:last-child td {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .supplier-table-horizontal th:nth-child(1),
    .supplier-table-horizontal td:nth-child(1) {
        width: 20%;
    }
    
    .supplier-table-horizontal th:nth-child(2),
    .supplier-table-horizontal td:nth-child(2) {
        width: 15%;
    }
    
    .supplier-table-horizontal th:nth-child(3),
    .supplier-table-horizontal td:nth-child(3) {
        width: 12%;
    }
    
    .supplier-table-horizontal th:nth-child(4),
    .supplier-table-horizontal td:nth-child(4) {
        width: 15%;
    }
    
    .supplier-table-horizontal th:nth-child(5),
    .supplier-table-horizontal td:nth-child(5) {
        width: 15%;
    }
    
    .supplier-table-horizontal th:nth-child(6),
    .supplier-table-horizontal td:nth-child(6) {
        width: 18%;
    }
    
    .supplier-table-horizontal th,
    .supplier-table-horizontal td {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .supplier-section {
        margin-top: 20px;
    }
    
    .supplier-table-horizontal {
        max-height: 400px;
        padding: 15px;
    }
    
    /* 在小屏幕上自动调整列宽 */
    .supplier-table-horizontal th,
    .supplier-table-horizontal td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .supplier-table-horizontal th {
        font-size: 11px;
    }
}

/* 库存告警 */
.inventory-alerts {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.inventory-alerts:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.alert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-row:last-child {
    margin-bottom: 0;
}

.alert-row:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-row.critical {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-left: 5px solid #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.alert-row.warning {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-left: 5px solid #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.alert-row.critical:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.alert-row.warning:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.alert-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
}

.alert-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0 20px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.alert-status {
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.alert-status.critical {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.2) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-status.warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* 色号表格 */
.color-table {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.color-table:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.color-table table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.color-table th {
    padding: 16px 18px;
    text-align: left;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.color-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 14px;
    transition: all 0.3s ease;
    color: #e2e8f0;
    text-shadow: 0 0 3px rgba(59, 130, 246, 0.15);
}

.color-table tr:last-child td {
    border-bottom: none;
}

.color-table tr:hover td {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 供应商表格 */
.supplier-table {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.supplier-table:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.supplier-table table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.supplier-table th {
    padding: 16px 18px;
    text-align: left;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.supplier-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 13px;
    transition: all 0.3s ease;
    color: #e2e8f0;
    text-shadow: 0 0 3px rgba(59, 130, 246, 0.15);
}

.supplier-table tr:last-child td {
    border-bottom: none;
}

.supplier-table tr:hover td {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-badge.normal {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* 供应商图表 */
.supplier-chart {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 15px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.supplier-doughnut-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    position: relative;
    flex-shrink: 0;
}

.supplier-doughnut {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.doughnut-segment {
    fill: none;
    stroke-width: 25;
    transition: all 0.3s ease;
    cursor: pointer;
}

.doughnut-segment:hover {
    stroke-width: 30;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.segment-1 {
    stroke: #3b82f6;
}

.segment-2 {
    stroke: #10b981;
}

.segment-3 {
    stroke: #f59e0b;
}

.supplier-center {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.supplier-percentage {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 5px;
}

.supplier-label {
    font-size: 12px;
    color: #94a3b8;
}

.supplier-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.03);
    transition: background 0.3s;
}

.legend-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.legend-color {
    width: 40px;
    height: 8px;
    border-radius: 4px;
}

.legend-color.color-1 {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.legend-color.color-2 {
    background: linear-gradient(90deg, #10b981, #34d399);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.legend-color.color-3 {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.legend-value {
    font-weight: bold;
    color: #60a5fa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .kpi-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .progress-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1400px) {
    .progress-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-buttons {
        flex-wrap: wrap;
    }

    .supplier-legend {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .kiln-container {
        flex-direction: column;
    }

    .kiln-section {
        width: 100%;
    }

    .supplier-legend {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .supplier-chart {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .header-title h1 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .header-actions {
        justify-content: center;
        margin-bottom: 10px;
    }

    .admin-link {
        padding: 8px 16px;
        font-size: 12px;
    }

    .header-alerts {
        margin-bottom: 10px;
    }

    .alert-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .header-status {
        gap: 20px;
        font-size: 12px;
    }

    .kpi-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 15px 10px;
    }

    .kpi-title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .kpi-value {
        font-size: 18px;
    }

    .kpi-status {
        font-size: 10px;
        padding: 4px 8px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .panel-title {
        font-size: 14px;
        padding: 10px 12px;
    }

    .chart-container {
        height: 200px;
        padding: 10px;
    }

    .digital-twin {
        padding: 15px;
    }

    .kiln-container {
        flex-direction: column;
        gap: 8px;
    }

    .kiln-section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 10px;
    }

    .temperature-display {
        padding: 10px;
    }

    .temp-value {
        font-size: 20px;
    }

    .progress-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .progress-card {
        padding: 8px 4px;
    }

    .circular-progress {
        width: 70px;
        height: 70px;
    }

    .progress-icon {
        font-size: 14px;
    }

    .progress-text {
        font-size: 11px;
    }

    .progress-label {
        font-size: 10px;
    }

    .equipment-buttons {
        flex-direction: column;
    }

    .equipment-btn {
        padding: 12px 15px;
    }

    .btn-icon {
        font-size: 20px;
    }

    .btn-text {
        font-size: 12px;
    }

    .btn-status {
        font-size: 10px;
    }

    .inventory-alerts {
        padding: 10px;
    }

    .alert-row {
        padding: 8px;
        margin-bottom: 6px;
    }

    .alert-name {
        font-size: 12px;
    }

    .alert-value {
        font-size: 14px;
        margin: 0 10px;
    }

    .alert-status {
        font-size: 10px;
        padding: 3px 8px;
    }

    .color-table {
        overflow-x: auto;
    }

    .color-table table {
        font-size: 12px;
    }

    .color-table th,
    .color-table td {
        padding: 8px 6px;
    }

    .supplier-chart {
        height: 200px;
        padding: 10px;
    }

    .supplier-legend {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .legend-item {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .header-title h1 {
        font-size: 14px;
    }

    .kpi-value {
        font-size: 16px;
    }

    .circular-progress {
        width: 60px;
        height: 60px;
    }

    .progress-icon {
        font-size: 12px;
    }

    .chart-container {
        height: 180px;
    }

    .supplier-chart {
        height: 180px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 10px;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .progress-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .chart-container {
        height: 220px;
    }

    .supplier-chart {
        height: 220px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .main-content {
        grid-template-columns: 1fr 1.5fr;
    }

    .right-panel {
        grid-column: span 2;
    }

    .kpi-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .progress-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1400px) and (min-width: 1025px) {
    .main-content {
        grid-template-columns: 1fr 1.8fr 1fr;
    }

    .kpi-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1600px) and (min-width: 1401px) {
    .kpi-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .header {
        padding: 10px 20px;
    }

    .header-title h1 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .kpi-card {
        padding: 12px 10px;
    }

    .kpi-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .kpi-value {
        font-size: 18px;
    }

    .chart-container {
        height: 180px;
    }

    .progress-cards {
        grid-template-columns: repeat(6, 1fr);
    }

    .circular-progress {
        width: 60px;
        height: 60px;
    }
}
