html,
body {
    min-height: 100%;
    background: #fff;
}

button,
input {
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    outline: none;
}

.universities-page {
    width: 10rem;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0.44rem 0.43rem 0.64rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fff0e8 0, #fff 2.25rem);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    height: 0.96rem;
    margin-bottom: 0.36rem;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 0.42rem;
    height: 0.96rem;
    padding: 0;
}

.back-icon {
    display: block;
    width: 0.24rem;
    height: 0.24rem;
    border-left: 0.07rem solid #151a23;
    border-bottom: 0.07rem solid #151a23;

    transform: rotate(45deg);
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    height: 0.92rem;
    padding: 0 0.38rem;
    box-sizing: border-box;
    border: 0.03rem solid #ffc5a6;
    border-radius: 0.18rem;
    background: rgba(255, 255, 255, 0.86);
}

.search-icon {
    position: relative;
    display: block;
    flex: 0 0 0.36rem;
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0.32rem;
    border: 0.06rem solid #c5c5c5;
    border-radius: 50%;
    box-sizing: border-box;
}

.search-icon::after {
    position: absolute;
    right: -0.12rem;
    bottom: -0.08rem;
    width: 0.17rem;
    height: 0.06rem;
    border-radius: 999px;
    background: #c5c5c5;
    content: "";
    transform: rotate(45deg);
}

.search-box input {
    width: 100%;
    min-width: 0;
    font-size: 0.36rem;
    line-height: 1;
    color: #2c2724;
}

.search-box input::placeholder {
    color: #bdb9b6;
}

.filter-bar {
    position: relative;
    z-index: 10;
    margin: 0 0 0.34rem;
}

.filter-bar .van-dropdown-menu__bar {
    height: 0.78rem;
    background: transparent;
    box-shadow: none;
}

.filter-bar .van-dropdown-menu__item {
    justify-content: center;
    min-width: 0;
}

.filter-bar .van-dropdown-menu__title {
    display: inline-flex;
    align-items: center;
    padding: 0 0.28rem 0 0;
    font-size: 0.34rem;
    font-weight: 700;
    line-height: 1;
    color: #2c2724;
}

.filter-bar .van-dropdown-menu__title::after {
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    margin-top: -0.02rem;
    border: 0;
    border-top: 0.12rem solid #a49d99;
    border-right: 0.1rem solid transparent;
    border-left: 0.1rem solid transparent;
    opacity: 1;
    transform: translateY(-50%);
}

.filter-bar .van-dropdown-menu__title--active::after {
    margin-top: 0.02rem;
    border-top: 0;
    border-bottom: 0.12rem solid #ff6a1a;
    transform: translateY(-50%);
}

.filter-bar .van-dropdown-item {
    left: 50%;
    width: 10rem;
    transform: translateX(-50%);
}

.filter-bar .van-dropdown-item__content {
    max-height: 10rem;
    overflow-y: auto;
    border-radius: 0 0 0.3rem 0.3rem;
}

.filter-bar .van-dropdown-item.type-dropdown-item .van-dropdown-item__content {
    height: 60vh;
    max-height: 60vh;
    overflow: hidden;
}

.filter-bar .type-filter-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    background: #fff;
}

.type-filter-scroll {
    flex: 1;
    min-height: 0;
    padding: 0.38rem 0.43rem 0.36rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.type-filter-group {
    margin-bottom: 0.62rem;
}

.type-filter-group h3 {
    margin: 0 0 0.38rem;
    font-size: 0.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2e3338;
}

.type-filter-options {
    display: grid;
    gap: 0.2rem 0.32rem;
}

.type-filter-options--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.type-filter-options--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-filter-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0.8rem;
    padding: 0.1rem 0.16rem;
    border: 0;
    border-radius: 0.06rem;
    box-sizing: border-box;
    background: #f4f4f5;
    font-size: 0.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: #686868;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.type-filter-option--active {
    background: #fff7f1;
    color: #ff6a1a;
}

.type-filter-options--3 .type-filter-option--wide {
    grid-column: span 2;
}

.type-filter-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
    padding: 0.12rem 0.43rem 0.18rem;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 -0.08rem 0.18rem rgba(255, 255, 255, 0.92);
}

.type-filter-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.94rem;
    border: 0;
    border-radius: 0.18rem;
    font-size: 0.36rem;
    font-weight: 600;
    line-height: 1;
}

.type-filter-action--reset {
    background: #f4f5f6;
    color: #969696;
}

.type-filter-action--confirm {
    background: #ff6a1a;
    color: #fff;
}

.filter-bar .van-cell {
    position: relative;
    align-items: center;
    min-height: 0.9rem;
    padding: 0 0.26rem;
    font-size: 0.35rem;
    line-height: 1;
    color: #2c2724;
}

.filter-bar .van-cell::after {
    display: none;
}

.filter-bar .van-cell__value {
    display: flex;
    position: absolute;
    top: 50%;
    right: 0.42rem;
    align-items: center;
    justify-content: center;
    width: 0.36rem;
    height: 0.36rem;
    min-width: 0;
    transform: translateY(-50%);
}

.filter-bar .van-dropdown-item__option--active {
    color: #ff6a1a;
}

.filter-bar .van-dropdown-item__icon {
    position: static;
    width: 0.22rem;
    height: 0.3rem;
    font-size: 0;
    color: transparent;
    transform: none;
}

.filter-bar .van-dropdown-item__icon::before {
    display: block;
    width: 0.12rem;
    height: 0.22rem;
    margin: 0 auto;
    border: solid #ff6a1a;
    border-width: 0 0.03rem 0.03rem 0;
    content: "";
    transform: rotate(45deg);
}

.summary {
    margin-bottom: 0.34rem;
    font-size: 0.29rem;
    line-height: 1;
    color: #aaa3a0;
}

.university-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.university-card {
    display: grid;
    grid-template-columns: 1.26rem 1fr;
    column-gap: 0.35rem;
    align-items: flex-start;
}

.university-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.12rem;
    height: 1.12rem;
    margin-top: 0.02rem;
    border: 1px solid #ece7e4;
    border-radius: 50%;
    box-sizing: border-box;
    background: #fff;
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 1.16;
    text-align: center;
    color: #6f6965;
}

.university-logo span {
    display: block;
    width: 0.74rem;
}

.university-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.university-info {
    min-width: 0;
}

.university-info h2 {
    margin: 0 0 0.2rem;
    font-size: 0.41rem;
    font-weight: 600;
    line-height: 1.16;
    color: #2c2724;
}

.university-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.14rem;
    font-size: 0.29rem;
    line-height: 1.34;
    color: #6f6965;
}

.university-meta span {
    display: flex;
    align-items: center;
}

.university-meta span + span::before {
    width: 0.02rem;
    height: 0.25rem;
    margin: 0 0.12rem;
    background: #847e7a;
    content: "";
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.12rem;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 0.38rem;
    padding: 0 0.1rem;
    border-radius: 0.06rem;
    background: #faf8f7;
    font-size: 0.27rem;
    line-height: 1;
    color: #6f747d;
    box-sizing: border-box;
}

.universities-page .van-list__finished-text,
.universities-page .van-list__loading {
    padding: 0.28rem 0 0;
    font-size: 0.28rem;
    line-height: 1.4;
    color: #aaa3a0;
}

.universities-page .van-empty {
    padding-top: 1.2rem;
}
