.phenotype-page {
    background: #fff;
    padding-bottom: 40px;
}

.phenotype-banner {
    width: 1200px;
    margin: 0 auto;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 70%, #059669 100%);
}

.phenotype-banner__content {
    color: #fff;
    padding: 38px 48px;
}

.phenotype-banner__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.phenotype-banner__desc {
    width: 620px;
    margin-top: 14px;
    line-height: 26px;
    font-size: 15px;
    opacity: .92;
}

.phenotype-banner__stats {
    margin-top: 28px;
    display: flex;
    gap: 24px;
}

.phenotype-banner__stat {
    min-width: 120px;
}

.phenotype-banner__stat strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.phenotype-banner__stat span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: .8;
}

.portal-bread {
    border-bottom: 1px solid #dedede;
    width: 1200px;
    margin: 0 auto 25px;
}

.portal-bread__inner {
    width: 1200px;
    margin: 0 auto;
    height: 36px;
    padding: 8px 0 8px 24px;
    font-size: 14px;
}

.portal-bread__inner a,
.portal-bread__inner span {
    color: #333;
}

.portal-filter {
    background: #f6f7fb;
    width: 1200px;
    margin: 0 auto 20px;
    padding: 20px;
    border-radius: 4px;
}

.portal-filter__row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.portal-filter__row:last-child {
    margin-bottom: 0;
}

.portal-filter__label {
    font-size: 14px;
    font-weight: bold;
    width: 90px;
    margin-right: 15px;
    flex-shrink: 0;
}

.portal-filter__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-filter__btn {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid #f6f7fb;
    background: #f6f7fb;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.portal-filter__btn:hover {
    border-color: #079158;
    color: #079158;
}

.portal-filter__btn.is-active {
    background: #079158;
    border-color: #079158;
    color: #fff;
}

.portal-filter__btn.is-disabled,
.portal-filter__btn:disabled {
    color: #9f9f9f;
    cursor: default;
}

.portal-filter__search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-filter__search input {
    width: 260px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    background: #fff;
    font-size: 14px;
}

.portal-filter__search-btn,
.phenotype-btn {
    border: 1px solid #079158;
    height: 30px;
    padding: 0 16px;
    border-radius: 5px;
    background: #fff;
    color: #079158;
    cursor: pointer;
    font-size: 14px;
}

.portal-filter__search-btn {
    background: #079158;
    color: #fff;
}

.portal-content {
    width: 1200px;
    margin: 0 auto;
    padding: 25px 0;
}

.portal-content__title {
    height: 55px;
    border-bottom: 3px solid #079158;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.portal-content__title .zh {
    font-size: 22px;
    color: #333;
}

.portal-content__title .en {
    margin-left: 8px;
    font-size: 16px;
    color: #989898;
}

.scale-group {
    margin-bottom: 30px;
}

.scale-group__title {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 16px;
}

.scale-group__title:before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #079158;
    margin-right: 10px;
}

.dataset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 10px;
}

.dataset-card {
    min-height: 158px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 22px 20px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.dataset-card:hover {
    border-color: #cfe9dc;
    box-shadow: 0 10px 24px rgba(6, 95, 70, .08);
    transform: translateY(-2px);
}

.dataset-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dataset-card__head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 26px;
    color: #333;
}

.dataset-card__tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.dataset-card__desc {
    margin-top: 14px;
    color: #666;
    font-size: 14px;
    line-height: 24px;
    min-height: 48px;
}

.dataset-card__footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
}

.dataset-card__link {
    color: #079158;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.model-card {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.model-card:hover {
    border-color: #b3e0cd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 95, 70, .08);
}

.model-card__img {
    height: 150px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 30px;
    overflow: hidden;
}

.model-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-card__body {
    padding: 14px 12px;
}

.model-card__meta {
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
}

.model-card__name {
    font-size: 14px;
    color: #303133;
    margin-bottom: 8px;
    font-weight: 600;
}

.model-card__desc {
    font-size: 12px;
    color: #909399;
    line-height: 20px;
    min-height: 40px;
}

.model-card__link {
    margin-top: 8px;
    color: #079158;
    font-size: 12px;
}

.back-btn {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    padding: 8px 14px;
    cursor: pointer;
}

.dataset-info-card {
    background: #f6f7fb;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.dataset-info-card h3 {
    margin: 0 0 16px;
    color: #333;
    font-size: 22px;
}

.dataset-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.dataset-info-grid span {
    color: #888;
}

.dataset-description {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6e6e6;
    line-height: 26px;
    color: #555;
}

.model-info-card__main {
    display: flex;
    gap: 20px;
}

.model-info-card__cover {
    width: 320px;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
}

.model-info-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info-card__content {
    flex: 1;
}

.model-detail__ops {
    margin-top: 16px;
}

.portal-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
}

.portal-list__item {
    height: 38px;
    line-height: 38px;
    padding: 0 10px 0 30px;
    position: relative;
    font-size: 14px;
    background: #f1f7f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-list__item:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #079158;
    transform: translateY(-50%);
}

.portal-list__item a {
    color: #666;
}

.portal-list__item .detail {
    color: #079158;
    cursor: pointer;
}

.germplasm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 10px;
}

.germplasm-card {
    border: 1px solid #e5efe8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    min-height: 180px;
}

.germplasm-card__image {
    width: 220px;
    background: #eef6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    overflow: hidden;
}

.germplasm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.germplasm-card__body {
    flex: 1;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
}

.germplasm-card__name {
    font-size: 17px;
    line-height: 24px;
    color: #1f2937;
    font-weight: 600;
}

.germplasm-card__meta {
    margin-top: 10px;
    color: #6b7280;
    line-height: 22px;
}

.germplasm-card__ops {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 16px;
}

.portal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 0 0;
    gap: 12px;
}

.portal-pagination__total {
    color: #666;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 36px 0;
    font-size: 15px;
}

.phenotype-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.phenotype-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.phenotype-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    background: #fff;
    border-radius: 6px;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.phenotype-modal__dialog--wide {
    width: 560px;
}

.phenotype-modal__dialog--germplasm {
    width: 880px;
}

.phenotype-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}

.phenotype-modal__header button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

.phenotype-modal__body {
    padding: 22px 18px;
    color: #555;
    line-height: 26px;
}

.phenotype-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 18px;
}

.phenotype-btn--primary {
    background: #079158;
    color: #fff;
}

.attachment-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.attachment-list__item:last-child {
    border-bottom: none;
}

.germplasm-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.germplasm-detail__viewport {
    position: relative;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    background: #edf7ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.germplasm-detail__viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.germplasm-detail__empty {
    color: #6b7280;
    font-size: 16px;
}

.germplasm-detail__arrow {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
}

.germplasm-detail__arrow--prev {
    left: 14px;
}

.germplasm-detail__arrow--next {
    right: 14px;
}

.germplasm-detail__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
}

.germplasm-detail__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.germplasm-detail__dot.is-active {
    background: #079158;
}

.germplasm-detail__info {
    background: #f7faf8;
    border-radius: 8px;
    padding: 18px 20px;
    color: #4b5563;
    line-height: 28px;
}

.germplasm-detail__info span {
    color: #111827;
    font-weight: 600;
}

.germplasm-detail__intro {
    margin-top: 8px;
}

@media screen and (max-width: 1280px) {
    .phenotype-banner,
    .portal-bread,
    .portal-filter,
    .portal-content,
    .portal-bread__inner {
        width: 94%;
    }
}

@media screen and (max-width: 768px) {
    .model-grid {
        grid-template-columns: 1fr;
    }

    .dataset-grid,
    .portal-list,
    .germplasm-grid {
        grid-template-columns: 1fr;
    }

    .dataset-info-grid {
        grid-template-columns: 1fr;
    }

    .model-info-card__main {
        flex-direction: column;
    }

    .model-info-card__cover {
        width: 100%;
    }

    .germplasm-card {
        flex-direction: column;
    }

    .germplasm-card__image {
        width: 100%;
        height: 220px;
    }

    .phenotype-modal__dialog--germplasm {
        width: 92%;
    }

    .germplasm-detail {
        grid-template-columns: 1fr;
    }

    .germplasm-detail__viewport {
        height: 240px;
    }
}
