* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.dashboard {
    padding: 5px;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #0f1428 50%, #1a1f3a 75%, #0a0e27 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 191, 255, 0.1) 50%, transparent 70%);
    animation: headerShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00bfff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 191, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #00bfff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 191, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #00bfff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}



.menu-icon {
    font-size: 28px;
    color: #00bfff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
    display: none;
}

.menu-icon:hover {
    color: #ffffff;
    transform: scale(1.05);
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: 10px 30px;
    position: relative;
    z-index: 10;
}

.title {
    font-size:36px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #00bfff, #0080ff, #00d4ff, #0080ff, #00bfff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 123, 255, 0.8);
    letter-spacing: 3px;
    position: relative;
    z-index: 10;
    animation: titleGlow 3s ease-in-out infinite;
    text-transform: uppercase;
    margin: 0 20px;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    border-radius: 2px;
    position: relative;
    animation: decorationPulse 2s ease-in-out infinite;
}

.title-decoration::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

.left-decoration {
    transform: rotate(-45deg);
}

.right-decoration {
    transform: rotate(45deg);
}

@keyframes decorationPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
    }
}

/* 添加粒子效果 */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00bfff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 191, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #00bfff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 191, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #00bfff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes titleGlow {
    0%, 100% {
        background-position: 0% 50%;
        text-shadow: 0 0 40px rgba(0, 123, 255, 0.8);
    }
    50% {
        background-position: 100% 50%;
        text-shadow: 0 0 60px rgba(0, 191, 255, 1);
    }
}

.datetime {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 191, 255, 0.1) 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    animation: timeGlow 3s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
}

.datetime::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 191, 255, 0.1) 50%, transparent 70%);
    border-radius: 13px;
    animation: timeShine 4s ease-in-out infinite;
    pointer-events: none;
}

.datetime .date-info {
    font-size: 1.3rem;
    color: #00bfff;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
    letter-spacing: 1px;
}

.datetime .time-info {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.9);
    margin-bottom: 4px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.datetime .weekday-info {
    font-size: 1.3rem;
    color: #87ceeb;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(135, 206, 235, 0.5);
    letter-spacing: 1px;
}

.datetime .datetime-content {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.9);
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.datetime .datetime-content::before {
    content: '📅';
    margin-right: 5px;
    font-size: 1.4rem;
}

@keyframes timeGlow {
    0% {
        box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
        border-color: rgba(0, 191, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 50px rgba(0, 191, 255, 0.8);
        border-color: rgba(0, 191, 255, 0.8);
    }
}

@keyframes timeShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* 主要内容区域 - 三列布局 */
.main-content {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr;
    gap: 20px;
    min-height: calc(100vh - 150px);
}

/* 左侧列 */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 左侧列面板高度分配 */
.left-column .market-overview-panel {
    min-height: 200px;
}

.left-column .grain-oil-panel {
    min-height: 200px;
}

/* 中间列 */
.center-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 中间列面板高度分配 */
.center-column .market-scene-panel {
    min-height: 400px;
}

.center-column .supply-overview-panel {
    min-height: 300px;
}

/* 右侧列 */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右侧列面板高度分配 - 与中间版块完全对齐 */
.right-column .supply-overview-panel {
    min-height: 400px;
}

.right-column .retail-prices-panel {
    height: 585px;
}

/* 面板基础样式 */
.panel {
    background: #001428;
    border: 1px solid #007bff;
    border-radius: 15px;
    padding:10px 20px;
    box-shadow: 0 0 30px #007bff;
    animation: glow 3s ease-in-out infinite;
    overflow: hidden;
}

.panel h3 {
    color: #00bfff;
    font-size: 1.4rem;
    margin-bottom: 0px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 14px rgba(0, 123, 255, 0.5);
}

/* 市场总体情况面板 */
.market-overview-panel .overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:5px 0px;
    background: #001428;
    border-radius: 14px;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
}

.overview-item:hover {
    background: #002856;
    transform: translateY(-2px);
}

.overview-item .label {
    font-size: 1.3rem;
    color: #b0c4de;
    margin-bottom: 8px;
    text-align: center;
}

.overview-item .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00bfff;
    text-shadow: 0 0 14px rgba(0, 123, 255, 0.5);
}

/* 供应总体情况面板 */
.supply-overview-panel .supply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 5px;
}

.supply-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
}

/* ECharts图表容器样式 */
.chart-container {
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supply-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 图表百分比文字样式 */
.chart-percentage {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
    z-index: 10;
    pointer-events: none;
}

/* 图表底部百分比文字样式 */
.chart-percentage-bottom {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    text-align: center;
    margin: 8px 0 4px 0;
    pointer-events: none;
}

.supply-item p {
    font-size: 1.3rem;
    color: #b0c4de;
    text-align: center;
    line-height: 1.3;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    background: #001428;
    border-radius: 8px;
    border: 1px solid #007bff;
}

.transaction-item .label {
    font-size: 1.3rem;
    color: #b0c4de;
}

.transaction-item .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00bfff;
}

/* 水波形容器样式 */
.water-wave-container {
    width: 120px;
    height: 150px; /* 增加高度以容纳底部标签 */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 交易信息容器改为水平布局 */
.transaction-info {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 15px;
    justify-content: space-around;
    align-items: flex-start;
}

.transaction-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 改为顶部对齐 */
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.water-wave {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00bfff;
    position: relative;
    overflow: hidden;
    background: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 确保是完美的圆形 */
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.wave-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #00bfff 0%, #007bff 100%);
    border-radius: 50% 50% 0 0;
    animation: waveRise 2s ease-out forwards, waveFloat 3s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.7);
}

/* 水波上升动画 */
@keyframes waveRise {
    0% {
        height: 0%;
    }
    100% {
        height: var(--wave-height, 75%); /* 使用CSS变量动态调整高度 */
    }
}

/* 水波浮动动画 */
@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 水波文字样式 */
.wave-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wave-value {
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

.wave-label {
    font-size: 10px;
    color: #b0c4de;
    text-shadow: none;
}

/* 水波图底部标签样式 */
.wave-label-bottom {
    margin-top: 10px;
    font-size: 1.3rem;
    color: #b0c4de;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 0 4px rgba(0, 191, 255, 0.3);
}

/* 为不同数据设置不同的水波高度 */
#volume-wave .wave-fill {
    animation: waveRise 2s ease-out forwards, waveFloat 3s ease-in-out infinite;
}

#amount-wave .wave-fill {
    animation: waveRise 2s ease-out 0.5s forwards, waveFloat 3s ease-in-out infinite 0.5s;
}

/* 水波涟漪效果 */
.water-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 191, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

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

/* 水波粒子浮动动画 */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* 水波粒子样式 */
.wave-particle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* 生鲜产品面板 */
.fresh-products-panel .chart {
    flex: 1;
    min-height: 200px;
}

/* 粮油供应面板 */
.grain-oil-panel .chart {
    flex: 1;
    min-height: 300px;
    height: 350px;
    width: 100%;
}

/* 图表控制按钮样式 */
.chart-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.height-btn {
    padding: 6px 12px;
    border: 1px solid #00bfff;
    background: rgba(0, 123, 255, 0.1);
    color: #00bfff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.height-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.height-btn.active {
    background: #00bfff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.height-input {
    padding: 6px 8px;
    border: 1px solid #00bfff;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 4px;
    width: 80px;
    font-size: 1.3rem;
    text-align: center;
}

.height-input::placeholder {
    color: #b0c4de;
}

.height-input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

.grain-oil-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 14px;
    background: #001428;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-item .label {
    font-size: 1.3rem;
    color: #b0c4de;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00bfff;
}

/* 零售价格面板 - 精致风格 */
.retail-prices-panel {
    background: #001428;
    border: 1px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #00bfff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.retail-prices-panel h3 {
    color: #00bfff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 14px rgba(0, 123, 255, 0.5);
}

/* 零售价格表格容器 - 滚动版本 */
.retail-prices-table-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 42px);
    overflow: hidden;
    position: relative;
}

.retail-prices-table-container .scroll-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 固定表头 */
#retail-prices-header {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: transparent;
    flex-shrink: 0;
    table-layout: fixed;
}

#retail-prices-header th {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    font-weight: 600;
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    font-size: 1.3rem;
    letter-spacing: 0.3px;
}

/* 表头对齐 */
#retail-prices-header th:first-child {
    text-align: center;
    padding-left: 12px;
    width: 33.33%;
}

#retail-prices-header th:nth-child(2) {
    text-align: center;
    width: 33.33%;
}

#retail-prices-header th:last-child {
    text-align: center;
    padding-right: 12px;
    width: 33.33%;
}

/* 零售价格表格 */
#retail-prices-table,
#retail-prices-table-duplicate {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: transparent;
    table-layout: fixed;
}

.prices-table-container::-webkit-scrollbar-track {
    background: rgba(0, 191, 255, 0.1);
    border-radius: 3px;
}

.prices-table-container::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 3px;
}

.prices-table-container::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}



/* 零售价格表格样式优化 */

#inspection-table-duplicate {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

#fresh-products-table-duplicate {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

#retail-prices-table td {
    color: #ffffff;
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 1.3rem;
    height: 28px;
}

/* 第一列：商品名称 */
#retail-prices-table td:first-child {
    text-align: center;
    padding-left: 12px;
    font-weight: 500;
    font-size: 1.3rem;
    height: 43px;
}

/* 第二列：规格 */
#retail-prices-table td:nth-child(2) {
    text-align: center;
    font-size: 1.3rem;
    color: #b0c4de;
}

/* 第三列：价格 */
#retail-prices-table td:last-child {
    text-align: center;
    padding-right: 12px;
    font-weight: 600;
    color: #00ff00;
    font-size: 1.3rem;
}

/* 重复表格样式 */
#retail-prices-table-duplicate td {
    color: #ffffff;
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 1.3rem;
    height: 28px;
}

#retail-prices-table-duplicate td:first-child {
    text-align: center;
    padding-left: 12px;
    font-weight: 500;
    font-size: 1.3rem;
}

#retail-prices-table-duplicate td:nth-child(2) {
    text-align: center;
    font-size: 1.3rem;
    color: #b0c4de;
}

#retail-prices-table-duplicate td:last-child {
    text-align: center;
    padding-right: 12px;
    font-weight: 600;
    color: #00ff00;
    font-size: 1.3rem;
}

/* 零售价格表格行样式 */
#retail-prices-table tr,
#retail-prices-table-duplicate tr {
    height: 28px;
}

#retail-prices-table tr:nth-child(even),
#retail-prices-table-duplicate tr:nth-child(even) {
    background: rgba(0, 191, 255, 0.05);
}

#retail-prices-table tr:nth-child(odd),
#retail-prices-table-duplicate tr:nth-child(odd) {
    background: transparent;
}

#retail-prices-table tr:hover,
#retail-prices-table-duplicate tr:hover {
    background: rgba(0, 191, 255, 0.12) !important;
    transition: background-color 0.2s ease;
}

/* 生鲜产品面板 - 精致风格 */
.fresh-products-panel {
    background: #001428;
    border: 1px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #00bfff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fresh-products-panel h3 {
    color: #00bfff;
    font-size: 1.4rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 14px rgba(0, 123, 255, 0.5);
}

/* 生鲜产品表格 - 静态显示，无滚动 */
#fresh-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    table-layout: fixed;
    margin-top: 10px;
}

#fresh-products-table th {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    font-weight: 600;
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    font-size: 1.3rem;
    letter-spacing: 0.3px;
}

/* 生鲜产品表格列宽度 - 去掉序号列 */
#fresh-products-table th:nth-child(1) { width: 30%; } /* 品种 */
#fresh-products-table th:nth-child(2) { width: 20%; } /* 单位 */
#fresh-products-table th:nth-child(3) { width: 25%; } /* 上市量 */
#fresh-products-table th:nth-child(4) { width: 25%; } /* 批发价 */

/* 生鲜产品表格 */
#fresh-products-table,
#fresh-products-table-duplicate {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    table-layout: fixed;
}

#fresh-products-table td {
    color: #ffffff;
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 1.3rem;
    height: 28px;
}

/* 生鲜产品表格列样式 - 去掉序号列 */
#fresh-products-table td:nth-child(1) {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
}

#fresh-products-table td:nth-child(2) {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
}

#fresh-products-table td:nth-child(3) {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #91cc75;
}

#fresh-products-table td:nth-child(4) {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fac858;
}

/* 生鲜产品表格行高度 */
#fresh-products-table tr {
    height: 43px;
}

/* 生鲜产品表格行交替背景色 */
#fresh-products-table tr:nth-child(even) {
    background: rgba(0, 191, 255, 0.05);
}

#fresh-products-table tr:nth-child(odd) {
    background: transparent;
}

/* 生鲜产品表格悬停效果 */
#fresh-products-table tr:hover {
    background: rgba(0, 191, 255, 0.1) !important;
    transition: background-color 0.2s ease;
}

/* 快检信息面板 - 精致风格 */
.inspection-panel {
    background: #001428;
    border: 1px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #00bfff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 710px;
}

.inspection-panel h3 {
    background: linear-gradient(90deg, #001428, #002856);
    color: #00bfff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #00bfff;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.inspection-panel .inspection-table-container {
    height: calc(100% - 42px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 快检固定表头 */
#inspection-header {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    flex-shrink: 0;
    table-layout: fixed;
}

#inspection-header th {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    font-weight: 600;
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    font-size: 1.3rem;
    letter-spacing: 0.3px;
    text-align: center;
}

/* 快检表头对齐 */
#inspection-header th:first-child {
    text-align: center;
    width: 6.66%;
}

#inspection-header th:nth-child(2) {
    text-align: center;
    padding-left: 8px;
    width: 19.66%;
}

#inspection-header th:nth-child(3) {
    text-align: center;
    width: 13.66%;
}

#inspection-header th:nth-child(4) {
    text-align: center;
    width: 16.66%;
}

#inspection-header th:nth-child(5) {
    text-align: center;
    width: 26.66%;
}

#inspection-header th:last-child {
    text-align: center;
    width: 16.66%;
}

/* 快检滚动内容区域 */
.inspection-table-container .scroll-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 隐藏重复表格，只在滚动时显示 */
#inspection-table-duplicate {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

#inspection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    table-layout: fixed;
}

#inspection-table td {
    color: #ffffff;
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 1.3rem;
    height: 44px;
}

/* 第一列：序号 */
#inspection-table td:first-child {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    width: 6.66%;
}

/* 第二列：商户 */
#inspection-table td:nth-child(2) {
    text-align: center;
    padding-left: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    width: 19.66%;
}

/* 第三列：样品 */
#inspection-table td:nth-child(3) {
    text-align: center;
    font-size: 1.3rem;
    width: 13.66%;
}

/* 第四列：日期 */
#inspection-table td:nth-child(4) {
    text-align: center;
    font-size: 1.3rem;
    width: 16.66%;
}

/* 第五列：检测项目 */
#inspection-table td:nth-child(5) {
    text-align: center;
    font-size: 1.3rem;
    color: #b0c4de;
    width: 26.66%;
}

/* 第六列：检测结果 */
#inspection-table td:last-child {
    text-align: center;
    font-weight: 600;
    color: #00ff00;
    font-size: 1.3rem;
    width: 16.66%;
}

#inspection-table tr:hover {
    background: rgba(0, 191, 255, 0.08);
}

.inspection-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 14px;
    background: rgba(0, 123, 255);
    border-radius: 8px;
}

/* 图表容器样式 */
.chart {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* 动画效果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.4);
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .top-section,
    .bottom-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .main-content {
        height: auto;
    }
    
    .panel {
        height: auto;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 14px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .title {
        font-size: 20px;
        margin: 0;
    }
    
    .overview-grid {
        grid-template-columns: 1fr !important;
    }
    
    .supply-grid {
        grid-template-columns: 1fr !important;
    }
    
    .panel h3 {
        font-size: 1.3rem;
    }
}

/* 数据更新提示 */
.data-update-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 14px 15px;
    border-radius: 8px;
    border: 1px solid #00ff00;
    font-size: 1.3rem;
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out;
}

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

/* 视频直播面板样式 */
.live-video-panel {
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

#live-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    pointer-events: none;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    align-self: flex-start;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.video-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.3rem;
    align-self: flex-end;
}

/* 响应式设计更新 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .left-column,
    .center-column,
    .right-column {
        gap: 15px;
    }
    
    .video-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .video-container {
        height: 200px;
    }
    
    .live-indicator {
        font-size: 1.3rem;
        padding: 3px 8px;
    }
    
    .video-info {
        font-size: 1.3rem;
        padding: 6px 14px;
    }
}

/* 表格重复部分样式 */
#retail-prices-table-duplicate {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: transparent;
    table-layout: fixed;
}

#retail-prices-table-duplicate td {
    color: #ffffff;
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 11px;
    height: 28px;
}

/* 重复表格第一列：商品名称 */
#retail-prices-table-duplicate td:first-child {
    text-align: center;
    padding-left: 12px;
    font-weight: 500;
}

/* 重复表格第二列：规格 */
#retail-prices-table-duplicate td:nth-child(2) {
    text-align: center;
    font-size: 1.3rem;
    color: #b0c4de;
}

/* 重复表格第三列：价格 */
#retail-prices-table-duplicate td:last-child {
    text-align: center;
    padding-right: 12px;
    font-weight: 600;
    color: #00ff00;
}

#retail-prices-table-duplicate tr:hover {
    background: rgba(0, 191, 255, 0.08);
}

/* 快检信息表格重复部分样式 */
#inspection-table-duplicate {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    table-layout: fixed;
}

#inspection-table-duplicate td {
    color: #ffffff;
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.15);
    background: transparent;
    vertical-align: middle;
    line-height: 1.3;
    font-size: 1.3rem;
    height: 26px;
}

/* 重复快检表格第一列：序号 */
#inspection-table-duplicate td:first-child {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
}

/* 重复快检表格第二列：商户 */
#inspection-table-duplicate td:nth-child(2) {
    text-align: center;
    padding-left: 8px;
    font-size: 1.3rem;
    font-weight: 500;
}

/* 重复快检表格第三列：样品 */
#inspection-table-duplicate td:nth-child(3) {
    text-align: center;
    font-size: 1.3rem;
}

/* 重复快检表格第四列：日期 */
#inspection-table-duplicate td:nth-child(4) {
    text-align: center;
    font-size: 1.3rem;
}

/* 重复快检表格第五列：检测项目 */
#inspection-table-duplicate td:nth-child(5) {
    text-align: center;
    font-size: 1.3rem;
    color: #b0c4de;
}

/* 重复快检表格第六列：检测结果 */
#inspection-table-duplicate td:last-child {
    text-align: center;
    font-weight: 600;
    color: #00ff00;
    font-size: 1.3rem;
}

#inspection-table-duplicate tr:hover {
    background: rgba(0, 191, 255, 0.08);
}

/* 滚动内容容器样式 */
.scroll-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 表格行交替背景色 */
#retail-prices-table tr:nth-child(even),
#retail-prices-table-duplicate tr:nth-child(even),
#inspection-table tr:nth-child(even),
#inspection-table-duplicate tr:nth-child(even) {
    background: rgba(0, 191, 255, 0.03);
}

#retail-prices-table tr:nth-child(odd),
#retail-prices-table-duplicate tr:nth-child(odd),
#inspection-table tr:nth-child(odd),
#inspection-table-duplicate tr:nth-child(odd) {
    background: transparent;
}

/* 表格行高度统一 */
#retail-prices-table tr,
#retail-prices-table-duplicate tr {
    height: 28px;
}

#inspection-table tr,
#inspection-table-duplicate tr {
    height: 26px;
}

/* 确保两个表格样式完全一致 */
#retail-prices-table,
#retail-prices-table-duplicate,
#inspection-table,
#inspection-table-duplicate {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* 鼠标悬停效果 */
#retail-prices-table tr:hover,
#retail-prices-table-duplicate tr:hover,
#inspection-table tr:hover,
#inspection-table-duplicate tr:hover {
    background: rgba(0, 191, 255, 0.08) !important;
    transition: background-color 0.2s ease;
}

/* 市场实景面板样式 */
.market-scene-panel {
    position: relative;
    overflow: hidden;
}

.scene-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

/* iframe 直播样式 */
#liveStream {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    background: #000;
}

.scene-image {
    position: relative;
    width: 100%;
    height: 100%;
}

#market-scene {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    pointer-events: none;
}

.scene-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.3rem;
    align-self: flex-end;
}

/* 播放按钮样式 */
.play-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(0, 191, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    z-index: 10;
}

.play-button:hover {
    background: rgba(0, 191, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
}

.play-button svg {
    color: white;
    margin-left: 2px;
}

.play-button:active {
    transform: scale(0.95);
}

/* 底部面板样式 */
.bottom-panels {
    display: flex;
    gap: 20px;
    height: 50%;
}

.sales-analysis-panel,
.delivery-panel {
    flex: 1;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(14px);
}

.sales-analysis-panel h3,
.delivery-panel h3 {
    color: #00bfff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.sales-table-container,
.delivery-table-container {
    height: calc(100% - 50px);
    overflow: auto;
}

.sales-table-container table,
.delivery-table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.sales-table-container th,
.delivery-table-container th {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.sales-table-container td,
.delivery-table-container td {
    color: #ffffff;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.sales-table-container tr:hover,
.delivery-table-container tr:hover {
    background: rgba(0, 191, 255, 0.1);
}
