.module {
    background-color: white;
    border-radius: 6px;
    padding: 0px;
    line-height: 1.3;
    width: 100%;
    margin-top: 4px;
    min-width: 1260px
}

.mod_title {
    display: block;
    cursor: pointer;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border: 1px solid #97b0c8;
    font-weight: bold;
    font-size: 16px;
    padding: .5em .5em .5em 1em;
}

.mod_title a {
    color: #14376c;
    text-decoration: none;
}

.app-container {
    width: 99vw;
    height: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    position: relative;
}

/* 地图容器 */
.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 900px;
}

#map {
    width: 100%;
    height: 100%;
}

/* 地图控制工具栏 */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.tdt-bottom{
    transform: translateX(-60px);
}

.control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* 左侧可隐藏面板 - 在地图容器内部 */
.left-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    border-right: 1px solid #e8e8e8;
    z-index: 1000;
}

.left-panel.hidden {
    width: 0;
    opacity: 0;
}

.toggle-panel-btn {
    position: absolute;
    top: 20px;
    left: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 10px 5px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    color: #2c7c44;
    font-weight: bold;
}

.toggle-panel-btn.hidden {
    left: 0;
}

.panel-header {
    background: linear-gradient(135deg, #2c7c44, #4caf50);
    color: white;
    padding: 5px;
    text-align: center;
}

.panel-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.panel-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.panel-content {
    padding: 10px;
    height: 90%;
    overflow-y: auto;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #f8f9fa;
}

.category-filter {
    margin-bottom: 20px;
}

.category-filter h3 {
    margin-bottom: 10px;
    color: #2c7c44;
    font-size: 1rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 6px 12px;
    background: #f0f7f0;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    color: #2c7c44;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    color: white;
}

.germplasm-list {
    margin-top: 20px;
}

.germplasm-list h3 {
    margin-bottom: 15px;
    color: #2c7c44;
    font-size: 1rem;
}

.germplasm-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    /*cursor: pointer;*/
    transition: all 0.2s;
}

.germplasm-item:hover {
    background: #f0f7f0;
    border-color: #c8e6c9;
    transform: translateX(5px);
}

.germplasm-item.selected {
    background: #e8f5e8;
    border-color: #2c7c44;
}

.germplasm-item a {
    cursor: pointer;
    text-decoration:underline;
    color: #00a2d4;
}

.germplasm-name {
    font-weight: bold;
    color: #2c7c44;
    margin-bottom: 5px;
}

.germplasm-details {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
}

.germplasm-details span {
    margin-bottom: 3px;
}

/* 全屏按钮 */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 100px;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* 信息窗口 */
.info-window {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-window.hidden {
    display: none;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-info {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

/* 全屏模式样式 */
.app-container.fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.fullscreen .map-container {
    width: 100%;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 98vw) {
    .app-container {
        width: 100%;
        height: 680px;
    }

    .map-container {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 98vw) {
    .app-container {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .left-panel {
        width: 100%;
        height: 80px;
    }

    .map-container {
        width: 100%;
        height: 400px;
    }

    .toggle-panel-btn {
        top: 20px;
        left: calc(100% - 20px);
    }

    .toggle-panel-btn.hidden {
        left: 0;
    }
}

/* chart 响应式布局规则 */
@media (min-width: 1600px) {
    .chart-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .chart-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .chart-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .chart-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .chart-container {
        grid-template-columns: 1fr;
    }

    .chart-item {
        height: 350px;
    }

    h1 {
        font-size: 24px;
    }
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(100% / 4 - 20px), 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.chart-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 400px;
    min-width: 280px; /* 最小宽度保证图表不挤压 */
}

.footer {
    width: 100%;
    background-color: rgba(204, 204, 204, 0.5);
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer p {
    line-height: 3.125rem;
    text-align: center;
    color: #FFFFFF;
}

.footer p a {
    display: inline-block;
    text-align: center;
    color: #FFFFFF;
}

.display {
    font-size: 12px;
}

.display a {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    color: #007ab8;
}

.button {
  background-color: #2b91af;
  border-radius: 10px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  padding: 10px 10px;
  text-align: center;
  text-decoration: none;
}

.button.b-close {
  border-radius: 7px 7px 7px 7px;
  box-shadow: none;
  font: bold 90% sans-serif;
  padding: 0 6px 2px;
  position: absolute;
  right: -7px;
  top: -7px;
}

.button:hover{
  background-color: black;
}

.germ_detail_tb tb{
    padding:20px;
    vertical-align:center;
    border: 1px solid #4b9500;
}

#pop_div {
    display: none; /* 初始隐藏 */
    position: fixed;
    width: 800px;
    min-height: 200px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999; /* 确保在最上层 */
    place-items: center; /* 同时实现水平和垂直居中 */
}
