.variety_introduction{
    display: flex;
    min-height: 1000px;
    margin: 0 auto;
    width: 100%;
    max-width: 2000px;
    align-items: flex-start;
    padding: 10px 20px 0;
    box-sizing: border-box;
    gap: 20px;
}
/*侧边栏样式：sticky顶在菜单栏下方，到内容区底部自然停下*/
.sidebar {
    background: linear-gradient(180deg, #2a2a2e 0%, #38383d 55%, #45454b 100%);
    height: auto;
    width: 260px;
    text-align: center;
    flex-shrink: 0;
    align-self: flex-start;      /* 禁止stretch拉伸，sticky才有效 */
    position: sticky;
    top: 90px;                   /* 导航栏70px + 20px间距 */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

/* 侧边栏细滚动条（深色，内容超出屏幕时才显示） */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/*内容样式（中间主内容区）*/
.contents{
    flex: 1;
    min-width: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 20px;
}

/* 左侧主内容区：图表 + 季节数据 */
.main_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 数据看板标题：冻结在导航栏下方1px */
.dashboard_title {
    margin: 10px 10px 20px;
    padding: 24px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #3498db;
    position: sticky;
    top: 71px;                   /* 导航栏70px + 1px间隙 */
    z-index: 20;
}

.dashboard_title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.dashboard_title span {
    font-size: 14px;
    color: #7f8c8d;
    letter-spacing: 0.5px;
}

/* 右侧基础资料面板 */
.info_panel {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;                   /* 导航栏70px + 20px间距 */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
    box-sizing: border-box;
}

/* 品种图片 + 名称展示区 */
.variety_hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.variety_img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background-color: #f0f4f8;
    border: 2px dashed #d6e0ea;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.variety_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img_placeholder {
    font-size: 13px;
    color: #a0aec0;
}

.variety_name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: 1px;
    text-align: center;
}

.info_header {
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f4f8;
}

.info_header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: 1px;
}

.info_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info_list li {
    padding: 10px 12px;
    background-color: #fafbfc;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.info_list li:hover {
    background-color: #f0f4f8;
}

/* 短字段并排卡片（一行放两个） */
.info_list li.half {
    display: flex;
    gap: 12px;
}

/* 单个字段：字段名在上、值在下 */
.info_cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.info_label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 12px;
}

.info_value {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.6;
    word-break: break-all;
}

/* 该品种没有资料文件时的提示 */
.info_empty_item {
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
    padding: 18px 12px;
}

/*品种类下拉框容器*/
.variety_types_div {
    position: relative;
    padding: 20px 12px 0;
}

/*品种类下拉框*/
.variety_types {
    width: 100%;
    height: 40px;
    font-size: 14px;
    padding: 0 38px 0 16px;
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* 自定义箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ecf0f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.variety_types:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.variety_types:focus {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 下拉展开后的选项样式 */
.variety_types option {
    background-color: #f5f6fa;
    color: #2c3e50;
    padding: 10px 12px;
    font-size: 14px;
}

/* 鼠标经过选项（Firefox 等浏览器生效，Chrome/Edge 走系统高亮蓝色） */
.variety_types option:hover {
    background-color: #e8eaf0;
    color: #1a252f;
}

/* 选中项：蓝色高亮 */
.variety_types option:checked {
    background-color: #3498db;
    color: #ffffff;
}

.variety_content{
    width: 100%;
    display:flex;
    flex-wrap:wrap;

}

/*内容统一框*/
.chart {
    height: 400px;
    flex: 1 1 calc(50% - 20px);
    min-width: 320px;
    box-sizing: border-box;
    margin: 10px;
    border: none;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.chart:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}


/*品种事件时间线样式*/
:root {
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --border-color: #ebebeb;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --spring-color: #d4f1f4;
    --summer-color: #fff2cc;
    --autumn-color: #fce4d6;
    --winter-color: #d6eaf8;
}


.table-card {
    background-color: var(--card-bg);
    width: 100%;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    margin-top: 20px;
}

.table-header {
    text-align: center;
    margin-bottom: 25px;
}

.table-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: 1px;
}

.table-header p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.grid-table {
    display: grid;
    grid-template-columns: 1fr repeat(12, 1fr);
    grid-template-rows: auto auto minmax(60px, auto); /* 数据行高度随事件数量自适应 */
    gap: 6px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.season {
    font-weight: bold;
    font-size: 14px;
    height: 32px;
    letter-spacing: 1px;
    color: #444;
}

.season.spring {
    background-color: var(--spring-color);
    grid-column: span 3;
}

.season.summer {
    background-color: var(--summer-color);
    grid-column: span 3;
}

.season.autumn {
    background-color: var(--autumn-color);
    grid-column: span 3;
}

.season.winter {
    background-color: var(--winter-color);
    grid-column: span 3;
}

.month {
    color: var(--text-secondary);
    font-size: 13px;
    height: 28px;
}

.data-row {
    background-color: #fafbfc;
    border: 1px dashed var(--border-color);
    cursor: default;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px 5px;
    min-height: 60px;
}

.data-row.filled {
    border-style: solid;
    border-color: #d5dee8;
}

.data-row:hover {
    background-color: #f0f4f8;
    border-color: #cbd5e0;
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* 时间线事件标签 */
.tl_chip {
    width: 100%;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.5;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid #95a5a6;
    background: #eef2f7;
    color: #5d6d7e;
    cursor: default;
    transition: all 0.2s ease;
}

.tl_chip:hover {
    filter: brightness(0.97);
}

.tl_chip.neutral {
    border-left-color: #95a5a6;
    background: #eef2f7;
    color: #5d6d7e;
}

.tl_chip.t1 {  /* 产业供需 */
    border-left-color: #5dade2;
    background: #eaf3fd;
    color: #21618c;
}

.tl_chip.t2 {  /* 政策安监 */
    border-left-color: #f39c12;
    background: #fef5e7;
    color: #9c640c;
}

.tl_chip.t3 {  /* 天气风险 */
    border-left-color: #af7ac5;
    background: #f4ecf7;
    color: #6c3483;
}

.tl_chip.t4 {  /* 节日备货 */
    border-left-color: #27ae60;
    background: #e9f7ef;
    color: #1e8449;
}

/* 标签分类图例 */
.tl_legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.lg {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    border-left: 3px solid #95a5a6;
    background: #eef2f7;
    color: #5d6d7e;
}

.lg.t1 { border-left-color: #5dade2; background: #eaf3fd; color: #21618c; }
.lg.t2 { border-left-color: #f39c12; background: #fef5e7; color: #9c640c; }
.lg.t3 { border-left-color: #af7ac5; background: #f4ecf7; color: #6c3483; }
.lg.t4 { border-left-color: #27ae60; background: #e9f7ef; color: #1e8449; }

/* 该品种无事件数据时的提示 */
.timeline_empty {
    display: none;
    text-align: center;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   侧边栏品种列表 —— 气泡卡片样式
   ============================================================ */
.variety_list {
    padding: 18px 12px 24px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.variety_list::-webkit-scrollbar {
    width: 5px;
}
.variety_list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

.variety_list_ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;        /* 横向排列，放不下自动换行 */
    justify-content: center;
    gap: 7px;
}

/* 单个品种 —— 玻璃质感气泡卡片 */
.variety_list_ul li {
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ecf0f1;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    user-select: none;
    letter-spacing: 0.5px;
}

.variety_list_ul li:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* 选中状态：蓝色渐变气泡 + 发光 */
.variety_list_ul li.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
}