/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部通知栏 */
.top-notice {
    background-color: #f0f0f0;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 68px;
    max-width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

span.exp{
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-link:hover {
    color: #1890ff;
}

.login-btn {
    background-color: #1890ff;
    color: white;
    padding: 5px 15px;
}

.login-btn:hover {
    background-color: #40a9ff;
    color: white;
}

/* 导航栏 */
.main-nav {
    background-color: #1890ff;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background-color: #40a9ff;
}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    padding: 36px 0;
    color: white;
    text-align: center;
}

.search-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.search-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.search-select {
    padding: 15px 15px;
    border: none;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    border-right: 1px solid #f0f0f0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' 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 10px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.search-select:hover {
    background-color: #fafafa;
}

.search-select:focus {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: #f5222d;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #ff4d4f;
}

.hot-keywords {
    margin-top: 20px;
    font-size: 14px;
}

.hot-keywords a {
    color: white;
    margin: 0 10px;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hot-keywords a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid #888;
    width: 360px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    background-color: #1890ff;
    color: white;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.forgot-password {
    text-decoration: none;
    color: #1890ff;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #40a9ff;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a,
.login-link a {
    color: #1890ff;
    text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* 数据统计 */
.stats-section {
    background-color: white;
    padding: 50px 0;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #1890ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1890ff;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* 数据专题 */
.topics-section {
    padding: 40px 0;
    background-color: white;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}


.more-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #40a9ff;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.topic-card {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.topic-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.topic-content {
    padding: 20px;
}

.topic-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.topic-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 种质地图 */
.map-section {
    padding: 40px 0;
    background-color: white;
    margin-bottom: 30px;
}

.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-img {
    width: 100%;
    height: auto;
    display: block;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    width: 90px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.high {
    background-color: #f5222d;
}

.legend-color.medium {
    background-color: #faad14;
}

.legend-color.low {
    background-color: #52c41a;
}

/* 主要内容区 */
.main-content {
    padding: 40px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.content-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-list .project-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.project-list .project-item:last-child {
    border-bottom: none;
}

.project-item h4 {
    margin-bottom: 5px;
}

.project-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-item h4 a:hover {
    color: #1890ff;
    font-size: 18px;
}

.project-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.project-date {
    font-size: 12px;
    color: #999;
}

.news-list,
.article-list {
    list-style: none;
}

.news-list li,
.article-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-list li:last-child,
.article-list li:last-child {
    border-bottom: none;
}

.news-list a,
.article-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
}

.news-list a:hover,
.article-list a:hover {
    color: #1890ff;
    font-size: 18px;
}

.news-list span,
.article-list span {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.article-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* 右侧边栏 */
.sidebar-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.db-list,
.service-list {
    list-style: none;
}

.db-list li,
.service-list li {
    margin-bottom: 10px;
}

.db-list a,
.service-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.db-list a:hover,
.service-list a:hover {
    color: #1890ff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-item:hover {
    background-color: #e6f7ff;
    color: #1890ff;
    transform: translateY(-2px);
}

.tool-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.api-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.api-btn:hover {
    background-color: #40a9ff;
}

.api-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 底部 */
.footer {
    background-color: #262626;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    color: #bfbfbf;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #bfbfbf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #1890ff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1890ff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bfbfbf;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .search-box h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-list {
        flex-direction: column;
        display: none;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 20px;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .search-section {
        padding: 40px 0;
    }
    
    .search-box h2 {
        font-size: 24px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .map-legend {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hot-keywords {
        font-size: 12px;
    }
    
    .hot-keywords a {
        margin: 0 5px;
        display: inline-block;
        margin-bottom: 5px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

#tooltip {
    position: absolute;
    z-index: 100;
    font-size: 10px;
    width: auto;
    height: auto;
    padding: 2px;
    background-color: white;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    display: none;
}

.crop-selector-container {
    background: white;
    padding: 2px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    margin: 5px;
}

.crop-selector-container select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.crop-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.legend {
    position: absolute;
    bottom: 160px;
    right: 2px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 12px;
}

.esri-popup__main-container {
    width: 300px;
}

.chart-container {
    width: 100%;
    height: 200px;
    margin-top: 10px;
}

/* 添加种质数量信息的样式 */
.germplasm-count {
    text-align: left;
    padding: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.esri-popup__footer {
  padding: 0 0
}

.esri-feature-media__chart {
  height:200px
}