body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

header {
    background-color: white;
    color: black;
    padding: 10px 0;
    text-align: left;
}

.header-content {
    max-width: 1200px;
    margin: 0 0 0 30px;
    padding: 0;
}

header h1 {
    margin: 0;
    font-size: 68px;
    line-height: 1;
    font-weight: bold;
}

header h1 .plan,
header h1 .richome {
    color: #e63946;
}

header h1 .T {
    color: #2a9d8f;
    font-size: 68px;
    vertical-align: bottom;
}

header .tagline {
    font-size: 1.5em;
    color: #2a9d8f;
    margin-top: 10px;
    font-weight: bold;
}

nav {
    background-color: #2a9d8f;
    padding: 10px 0;
    width: 100%;
}

.nav-content {
    max-width: 1400px;
    margin: 0 0 0 30px;
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
}

nav ul li {
    margin: 0 20px 0 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
}

nav ul li a i {
    margin-right: 8px;
}

.intro-section {
    padding: 30px 30px;
    background-color: #f1faee;
    margin-top: -10px;
}

.intro-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.intro-text {
    flex: none;
    width: 800px;
    margin-left: 20px;
}

.intro-text h2 {
    font-size: 2.2em;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
}

.intro-image {
    flex: none;
    width: 600px;
}

.slideshow-container {
    width: 600px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides.active {
    display: block;
}

.mySlides img {
    width: 600px;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    transition: opacity 1s ease-in-out;
}

.mySlides img {
    opacity: 0;
}

.mySlides.active img {
    opacity: 1;
}

.stats-section {
    padding: 60px 30px;
    background-color: #c2f8cb;
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.stat {
    flex: 1;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

.stat:first-child {
    background-color: #c2f8cb;
}

.stat:nth-child(2) {
    background-color: #ffd166;
}

.stat:nth-child(3) {
    background-color: #06d6a0;
}

.stat:nth-child(4) {
    background-color: #118ab2;
}

.stat .number {
    font-size: 3em;
    font-weight: bold;
    display: block;
}

.consortium-title {
    font-size: 2em; /* 可按需调整字体大小 */
}

.stat .label {
    font-size: 1.5em;
    margin-top: 10px;
}

.footer-section {
    padding: 15px 0;
    background-color: #f1faee;
    width: 100%;
}

.embedded-page-container {
    text-align: center;           /* 关键：让子元素（iframe）水平居中 */
    padding: 20px 20px;
    margin-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.embedded-page-container iframe {
    display: block;               /* 块级元素 */
    width: 90%;                   /* 宽度 90% */
    max-width: 1600px;            /* 可选：限制最大宽度，避免超大屏拉伸 */
    height: 900px;                /* 高度 900px */
    border: none;
    margin: 0 auto;               /* 关键：水平居中（配合 display:block） */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式：小屏幕自动占满 */
@media (max-width: 768px) {
    .embedded-page-container iframe {
        width: 100%;
        height: 600px;
    }
}

.footer-content {
    max-width: 100%;
    margin: 0;
    padding: 0 15px 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-info {
    flex: 1;
    text-align: left;
    padding-left: 30px;
}

.cite-info {
    flex: 1;
    text-align: left;
    white-space: normal;
}

.visitors-content {
    flex: 1;
    text-align: left;
}

.contact-info h2, .cite-info h2, .visitors-content h2 {
    font-size: 1.5em;
    color: #2a9d8f;
    margin-bottom: 15px;
}

.contact-info p, .cite-info p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

.visitors-content h2 {
    color: #2a9d8f;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.mapmyvisitors-container {
    text-align: left;
    transform: scale(0.6);
    transform-origin: left top;
    max-height: 150px;
   /* overflow: hidden; */
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a9d8f;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 1.1em;
}

.dropdown-menu a:hover {
    background-color: #21867a;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.search-section {
    background-color: #fff0f0;
    padding: 30px 30px;
}

.search-content {
    text-align: center;
}

.search-content h2 {
    color: #e63946;
    font-size: 2em;
    margin-bottom: 10px;
}

.search-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.search-forms {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
    flex-direction: row;
}

.search-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.search-form-container h3 {
    color: #2a9d8f;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.search-form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form-container input[type="text"] {
    padding: 12px 20px;
    width: 100%;
    max-width: 500px;
    font-size: 1em;
    border: 2px solid #e63946;
    border-radius: 8px;
    margin-bottom: 10px;
}

.search-form-container button {
    padding: 12px 25px;
    font-size: 1em;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-form-container button:hover {
    background-color: #d32f3b;
}

/* Database Links Section */
.database-links-section {
    padding: 20px;
    background-color: #e6f7fa;
}

.database-links-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.database-links-content h2 {
    font-size: 2em;
    color: #2a9d8f;
    margin-bottom: 15px;
}

.database-links-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 30px;
}

.database-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.database-group {
    flex: 1;
    min-width: 800px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
}

.database-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.marker-gene-databases .database-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 100%
}

.database-links a {
    display: block;
    padding: 20px 12px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    max-width: 200px;
}

.database-links a:hover {
    transform: scale(1.3);
}


.database-links a[href*="plantscrnadb"] {
    background-color: #ef476f;
}

.database-links a[href*="plantscrnadb"]:hover {
    background-color: #ef476f;
}

.database-links a[href*="scplantdb"] {
    background-color: #edae49;
}

.database-links a[href*="scplantdb"]:hover {
    background-color: #edae49;
}

.database-links a[href*="pcmdb"] {
    background-color: #26547c;
}

.database-links a[href*="pcmdb"]:hover {
    background-color: #26547c;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-forms {
        flex-direction: column;
        align-items: center;
    }

    .search-form-container {
        width: 100%;
        max-width: 500px;
    }

    .intro-content {
        flex-direction: column;
        gap: 22px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .contact-info,
    .cite-info,
    visitors-content {
        flex: none;
        width: Accepting;
        padding-left: 0;
        text-align: center;
    }

    .intro-image {
        width: 100%;
    }

    .slideshow-container {
        width: 100%;
        height: auto;
    }

    .mySlides img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .database-container {
        flex-direction: column;
        align-items: center;
    }

    .database-group {
        min-width: 100%;
        min-height: auto;
    }

    .cell-type-databases .database-links {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .marker-gene-databases .database-links {
        grid-template-columns: 1fr;
    }

    .database-links a {
        max-width: 300px;
    }
}

.tree-section {
    padding: 20px;
    background-color: #f1faee;
    margin: 20px auto;
    max-width: 1600px;
}

.search-container {
    margin-bottom: 20px;
}

.search-form-container input[type="text"] {
    padding: 18px 45px; 
    width: 100%;
    max-width: 1000px; 
    font-size: 1.2em; 
    border: 2px solid #e63946;
    border-radius: 8px;
    margin-bottom: 10px;
}

#treeSearch {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #003049;
    border-radius: 4px;
}

.tree {
    list-style: none;
    padding: 10px;
    width: 100%;
}

.tree-node {
    margin: 5px 0;
}

.toggle {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    text-align: center;
    color: #e63946;
    font-weight: bold;
}

.node-label {
    cursor: pointer;
    color: #003049;
}

.node-label:hover {
    text-decoration: underline;
}

.nested {
    display: none;
    padding-left: 20px;
}

.active {
    display: block;
}

.definition {
    margin-left: 40px;
    color: #457b9d;
    font-style: italic;
}

.highlight {
    background-color: #ffd60a;
}

.details {
    margin-left: 40px;
    color: #333;
    display: none;
    font-size: 0.95em;
}

.details.active {
    display: block;
}


/* Release Notes Section */
.release-notes-section {
    padding: 30px 30px;
    background-color: #f1faee;
    max-width: 1200px;
    margin: 0 auto;
}

.release-notes-section h2 {
    font-size: 2.2em;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.release-notes-section h3 {
    font-size: 1.8em;
    color: #e63946;
    margin-top: 20px;
    margin-bottom: 15px;
}

.release-notes-section h4 {
    font-size: 1.4em;
    color: #2a9d8f;
    margin-top: 15px;
    margin-bottom: 10px;
}

.release-notes-section p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.release-notes-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.release-notes-section table th,
.release-notes-section table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.release-notes-section table th {
    background-color: #2a9d8f;
    color: white;
}

.release-notes-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.release-notes-section ul li {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.toggle-button {
    padding: 12px 25px;
    font-size: 1em;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.toggle-button:hover {
    background-color: #d32f3b;
}

.english-content {
    display: block;
}

.chinese-content {
    display: none;
}

/* Fixes to existing styles */
.stats-content {
    max-width: 1200px; /* Corrected from max-width: 120 Patent: 1200px */
}

.node-label {
    color: #003049; /* Corrected from affect: #003049 */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    ..marker-gene-databases .database-links {
        flex-direction: column;
        gap: 16px;
        padding: 0 10px;
    }

    .marker-gene-databases .database-links a {
        max-width: 300px;
        width: 100%;
        text-align: center;
    }

    /* 确保在小屏幕下整个组居中 */
    .database-group.marker-gene-databases {
        min-width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}


