/**
 * 频道首页 / 列表
 * 布局对齐设计稿
 */
.portal-site {
  --fs-24: 24px;
  --fs-20: 20px;
  --fs-18: 18px;
  --fs-16: 16px;
  --fs-14: 14px;
  --fs-12: 12px;
  --ch-brand: #4498ee;
  --ch-brand-2: #3d89d5;
  --ch-brand-soft: #eef5fc;
  --ch-brand-border: #c5ddf7;
  --ch-text: #23364e;
  --ch-title: #16384c;
  --ch-muted: #7b8ba1;
  --ch-aux: #99a5b7;
  --ch-line: #e6eaf1;
  --ch-bg: #f1f4f8;
  --ch-card: #fff;
  --ch-width: 1200px;
  --ch-radius: 4px;
}

.portal-site .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-site a:hover {
  color: var(--ch-brand);
}

.portal-site>main.container {
  width: min(var(--ch-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.portal-site .ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.portal-site svg.ui-icon {
  overflow: visible;
}

.portal-site .panel {
  background: var(--ch-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  box-sizing: border-box;
}

.portal-site .tag {
  display: inline-block;
  font-size: var(--fs-12);
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--ch-brand-soft);
  color: var(--ch-brand);
}

.portal-site .more {
  font-size: var(--fs-14);
  color: var(--ch-aux);
  white-space: nowrap;
}

.portal-site .more:hover {
  color: var(--ch-brand);
}

.portal-site .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--ch-brand-border);
  border-radius: 3px;
  background: #fff;
  color: var(--ch-brand);
  font-size: var(--fs-12);
  line-height: 1.4;
  white-space: nowrap;
  box-sizing: border-box;
}

.portal-site .button:hover {
  background: var(--ch-brand-soft);
  color: var(--ch-brand);
}

.portal-site .button.outline.small {
  padding: 7px 11px;
}

.portal-site .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 16px;
  color: var(--ch-aux);
  font-size: var(--fs-12);
}

.portal-site .breadcrumb a {
  color: var(--ch-muted);
}

.portal-site .breadcrumb-span {
  color: #c7cfda;
}

.portal-site .page-heading {
  margin: 0 0 20px;
}

.portal-site .page-heading h1 {
  margin: 0;
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ch-title);
}

/* ========== Hero ========== */
.portal-home .home-hero {
  display: flex;
  gap: 16px;
  height: 356px;
  margin-bottom: 26px;
}

.portal-home .category-menu {
  position: relative;
  z-index: 5;
  flex: 0 0 218px;
  width: 218px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ch-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  overflow: visible;
}

.portal-home .category-menu-h2 {
  margin: 0;
  flex-shrink: 0;
  height: 46px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  background: var(--ch-brand);
  color: #fff;
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--ch-radius) var(--ch-radius) 0 0;
}

/* item 不参与拉伸；flyout 相对整个 menu 定位，避免 expanded 错位 */
.portal-home .category-item {
  position: static;
  flex: 0 0 auto;
}

.portal-home .category-item-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 43px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #3d4f65;
  font-size: var(--fs-14);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.18s, color 0.18s;
}

.portal-home .category-item:hover>.category-item-button,
.portal-home .category-item.expanded>.category-item-button,
.portal-home .category-item:focus-within>.category-item-button {
  background: var(--ch-brand-soft);
  color: var(--ch-brand);
}

.portal-home .category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin: 0;
  flex-shrink: 0;
  color: var(--ch-brand);
}

.portal-home .category-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.portal-home .quick-school-h2 .ui-icon,
.portal-home .home-guide-articles .home-article-heading-h2 .ui-icon {
  color: var(--ch-brand);
}

.portal-home .category-chevron {
  margin-left: auto;
  color: #97a9bf;
  font-size: var(--fs-12);
}

.portal-home .category-item:hover .category-chevron,
.portal-home .category-item.expanded .category-chevron {
  color: var(--ch-brand);
}

.portal-home .category-flyout {
  display: none;
  position: absolute;
  left: calc(100% - 1px);
  top: 0;
  width: 530px;
  height: 100%;
  min-height: 100%;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--ch-line);
  border-left: 3px solid var(--ch-brand-soft);
  box-shadow: 12px 8px 25px rgba(19, 51, 89, 0.08);
  box-sizing: border-box;
  z-index: 20;
  overflow: auto;
}

.portal-home .category-item:hover .category-flyout,
.portal-home .category-item.expanded .category-flyout,
.portal-home .category-item:focus-within .category-flyout {
  display: block;
}

.portal-home .category-flyout-title {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--ch-title);
  line-height: 1.5;
}

.portal-home .category-flyout-div {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 16px 18px;
  padding: 22px 0;
}

.portal-home .category-flyout-div-a {
  padding: 6px 11px;
  border-radius: 4px;
  font-size: var(--fs-14);
  color: #647792;
  background: transparent;
}

.portal-home .category-flyout-div-a:hover {
  background: var(--ch-brand-soft);
  color: var(--ch-brand);
}

.portal-home .category-all {
  display: block;
  flex-shrink: 0;
  margin-top: auto;
  height: 49px;
  line-height: 49px;
  text-align: center;
  border-top: 1px solid #f1f3f7;
  background: var(--ch-brand-soft);
  font-size: var(--fs-14);
  letter-spacing: 0.2px;
  color: #8194ad;
  border-radius: 0 0 var(--ch-radius) var(--ch-radius);
}

.portal-home .category-all:hover {
  color: var(--ch-brand);
  background: var(--ch-brand-soft);
}

.portal-home .home-banner-artwork {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ch-radius);
  background: #eef4f8;
  border: 1px solid var(--ch-line);
  box-sizing: border-box;
}

.portal-home .home-banner-artwork>[carousel-item]>*,
.portal-home .home-banner-artwork .layui-carousel-item {
  height: 100%;
  background: #eef4f8;
}

.portal-home .home-banner-artwork a {
  display: block;
  height: 100%;
}

.portal-home .home-banner-artwork-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-home .quick-school {
  flex: 0 0 218px;
  width: 218px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 16px 15px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, var(--ch-brand-soft) 0%, #fff 75%);
  border: 1px solid var(--ch-brand-border);
  border-radius: 6px;
}

.portal-home .quick-school-h2 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ch-title);
  line-height: 1.4;
}

.portal-home .quick-school-h2 .ui-icon {
  width: 22px;
  height: 22px;
}

.portal-home .quick-school-p {
  margin: 0 0 12px;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--ch-muted);
}

.portal-home .quick-school-form-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  border-radius: 5px;
  background: var(--ch-brand);
  color: #fff !important;
  font-size: var(--fs-14);
  font-weight: 600;
}

.portal-home .quick-school-form-button:hover {
  background: var(--ch-brand-2);
  color: #fff !important;
}

.portal-home .quick-school-shortcuts {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ch-brand-border);
}

.portal-home .quick-school-shortcuts-a {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 50%;
  gap: 5px;
  padding: 8px 4px;
  font-size: var(--fs-12);
  color: var(--ch-muted);
  line-height: 1.3;
  border-right: 1px solid var(--ch-brand-border);
}

.portal-home .quick-school-shortcuts-a:nth-child(2n) {
  border-right: 0;
}

.portal-home .quick-school-shortcuts-a .ui-icon {
  width: 18px;
  height: 18px;
}

.portal-home .quick-school-shortcuts-a:hover {
  color: var(--ch-brand);
}

/* ========== 推荐 ========== */
.portal-home .featured-section {
  padding: 24px;
  margin-bottom: 25px;
}

.portal-home .featured-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.portal-home .featured-heading-h2 {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--ch-title);
  line-height: 1.3;
}

.portal-home .featured-heading-p {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--ch-muted);
  line-height: 1.4;
}

.portal-home .featured-heading-a {
  margin-left: auto;
  flex-shrink: 0;
  font-size: var(--fs-14);
  line-height: 1.4;
  color: var(--ch-aux);
  white-space: nowrap;
}

.portal-home .featured-heading-a:hover {
  color: var(--ch-brand);
}

.portal-home .featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-home .featured-school {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: calc((100% - 80px) / 6);
  min-width: 0;
  text-align: center;
  min-width: 0;
  padding: 17px 8px 13px;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: #fff;
  box-sizing: border-box;
}

.portal-home .featured-school:hover {
  border-color: var(--ch-brand-border);
}

.portal-home .school-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 116px;
  height: 70px;
  padding: 8px;
  box-sizing: border-box;
}

.portal-home .featured-school .school-logo {
  width: 100%;
  max-width: 152px;
  height: 66px;
}

.portal-home .school-logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.portal-home .featured-school-strong {
  margin-top: 10px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ch-text);
  line-height: 1.4;
}

.portal-home .featured-school-span {
  margin-top: 4px;
  font-size: var(--fs-12);
  color: var(--ch-aux);
}

/* ========== 发现 + 侧栏 ========== */
.portal-home .home-discovery {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 25px;
}

.portal-home .home-schools {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
}

.portal-home .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.portal-home .section-heading-h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--ch-title);
  line-height: 1.3;
}

.portal-home .section-heading-h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--ch-brand);
  border-radius: 2px;
}

.portal-home .school-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ch-line);
}

.portal-home .school-row:last-child {
  border-bottom: 0;
}

.portal-home .school-row .school-logo {
  width: 110px;
  height: 74px;
  padding: 8px 5px;
  background: var(--ch-brand-soft);
  border-radius: var(--ch-radius);
}

.portal-home .school-row-info {
  flex: 1;
  min-width: 0;
}

.portal-home .school-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.portal-home .school-row-name {
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--ch-title);
  line-height: 1.5;
}

.portal-home .school-row-name:hover {
  color: var(--ch-brand);
}

.portal-home .school-row-p {
  margin: 0;
  font-size: var(--fs-12);
  color: var(--ch-muted);
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-home .separator {
  margin: 0 8px;
  color: #c7cfda;
}

.portal-home .school-row-course {
  color: var(--ch-brand);
}

.portal-home .school-row>.button {
  margin-left: auto;
  flex-shrink: 0;
}

.portal-home .home-editorial-aside {
  display: flex;
  flex-direction: column;
  flex: 0 0 274px;
  gap: 20px;
  width: 274px;
  max-width: 274px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.portal-home .home-article-panel {
  padding: 22px 21px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.portal-home .home-article-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ch-line);
}

.portal-home .home-article-heading-h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--ch-title);
  line-height: 1.3;
}

.portal-home .home-article-heading-a {
  font-size: var(--fs-12);
  color: var(--ch-aux);
  white-space: nowrap;
}

.portal-home .home-article-heading-a:hover {
  color: var(--ch-brand);
}

.portal-home .home-article-panel-ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-evenly;
}

.portal-home .home-article-panel-li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  min-width: 0;
}

.portal-home .home-article-panel-li-a {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-14);
  color: #4a607e;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-home .home-article-panel-li-a:hover {
  color: var(--ch-brand);
}

/* 指南列表：圆点 */
.portal-home .home-guide-articles .home-article-panel-li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9db4d0;
  flex-shrink: 0;
}

/* 热门序号徽章（对齐设计稿 .hot-article-number） */
.portal-home .hot-article-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: #eef2f6;
  color: #8490a2;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1;
}

.portal-home .home-hot-articles-li:nth-child(1)>.hot-article-number {
  background: #ff713e;
  color: #fff;
}

.portal-home .home-hot-articles-li:nth-child(2)>.hot-article-number {
  background: #ff8b19;
  color: #fff;
}

.portal-home .home-hot-articles-li:nth-child(3)>.hot-article-number {
  background: #ffad00;
  color: #fff;
}


.portal-home .empty-state {
  padding: 40px 0;
  text-align: center;
  font-size: var(--fs-14);
  color: var(--ch-muted);
}

.portal-home .empty-state a {
  color: var(--ch-brand);
}

/* ========== 列表页 ========== */
.list-main .school-filters {
  padding: 20px 24px;
  margin-bottom: 20px;
}

.list-main .filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.list-main .filter-row-strong {
  flex-shrink: 0;
  width: 72px;
  padding-top: 6px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ch-text);
}

.list-main .filter-row-div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.list-main .filter-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: var(--fs-14);
  color: var(--ch-muted);
  background: #f5f7fa;
}

.list-main .filter-chip:hover,
.list-main .filter-chip.active {
  background: var(--ch-brand);
  color: #fff;
}

.list-main .school-list-search {
  margin-top: 4px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ch-line);
}

.list-main .school-list-search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
}

.list-main .school-list-search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ch-line);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: #fff;
  color: #334155;
  font-size: var(--fs-14);
  box-sizing: border-box;
  outline: none;
}

.list-main .school-list-search-button {
  flex: 0 0 auto;
  height: 40px;
  min-width: 88px;
  padding: 0 22px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--ch-brand);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.list-main .list-results {
  padding: 24px;
  margin-bottom: 32px;
}

.list-main .section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.list-main .section-heading-h2 {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--ch-title);
}

.list-main .section-heading-em {
  margin-left: 8px;
  font-style: normal;
  color: var(--ch-brand);
}

.list-main .school-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ch-line);
}

.list-main .school-row:last-of-type {
  border-bottom: 0;
}

.list-main .school-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 74px;
  padding: 8px;
  background: var(--ch-brand-soft);
  border-radius: var(--ch-radius);
  box-sizing: border-box;
}

.list-main .school-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.list-main .school-row-info {
  flex: 1;
  min-width: 0;
}

.list-main .school-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.list-main .school-row-name {
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--ch-title);
}

.list-main .school-row-name:hover {
  color: var(--ch-brand);
}

.list-main .school-row-p {
  margin: 0;
  font-size: var(--fs-12);
  color: var(--ch-muted);
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-main .separator {
  margin: 0 8px;
  color: #c7cfda;
}

.list-main .school-row-course {
  color: var(--ch-brand);
}

.list-main .school-row>.button {
  margin-left: auto;
  flex-shrink: 0;
}

.list-main .empty-state {
  padding: 40px 0;
  text-align: center;
  color: var(--ch-muted);
  font-size: var(--fs-14);
}

.portal-site .pages,
.portal-site .pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
}

.portal-site .pages a,
.portal-site .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ch-line);
  border-radius: 3px;
  font-size: var(--fs-14);
  color: var(--ch-muted);
  box-sizing: border-box;
}

.portal-site .pages a.cur,
.portal-site .pages a.active,
.portal-site .pagination a.active,
.portal-site .pagination a.cur,
.portal-site .pages a:hover,
.portal-site .pagination a:hover {
  background: var(--ch-brand);
  border-color: var(--ch-brand);
  color: #fff;
}

@media (max-width: 1024px) {
  .portal-home .home-hero {
    height: 320px;
  }

  .portal-home .category-menu {
    flex-basis: 200px;
    width: 200px;
  }

  .portal-home .quick-school {
    display: none;
  }

  .portal-home .featured-school {
    width: calc((100% - 32px) / 3);
  }

  .portal-home .home-discovery {
    gap: 18px;
  }

  .portal-home .home-editorial-aside {
    flex-basis: 250px;
    width: 250px;
    max-width: 250px;
  }

  .portal-home .school-row>.button,
  .list-main .school-row>.button {
    display: none;
  }
}

@media (max-width: 850px) {
  .portal-home .home-discovery {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-home .home-schools {
    width: 100%;
    max-width: none;
  }

  .portal-home .home-editorial-aside {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  html,
  body.portal-site {
    overflow-x: clip;
    max-width: 100%;
  }

  .portal-site > main.container {
    width: calc(100% - 24px);
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 0 28px;
    box-sizing: border-box;
  }

  /* Hero：Banner → 分类 → 快速找学校 */
  .portal-home .home-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 14px;
    margin-bottom: 18px;
  }

  .portal-home .home-banner-artwork {
    order: 1;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .portal-home .home-banner-artwork:not(:has(img)) {
    display: none;
  }

  .portal-home .home-banner-artwork-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .portal-home .category-menu {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 12px;
    box-sizing: border-box;
  }

  .portal-home .category-menu-h2 {
    width: 100%;
    height: auto;
    min-height: 40px;
    margin: 0 0 4px;
    padding: 10px 12px;
    font-size: var(--fs-14);
    border-radius: 6px;
  }

  .portal-home .category-item {
    flex: 0 0 calc((100% - 8px) / 2);
    width: calc((100% - 8px) / 2);
    min-width: 0;
  }

  .portal-home .category-item.expanded {
    flex-basis: 100%;
    width: 100%;
  }

  .portal-home .category-item-button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 10px;
    gap: 8px;
    justify-content: flex-start;
    border-radius: 8px;
    background: var(--ch-brand-soft);
    font-size: var(--fs-14);
    box-sizing: border-box;
  }

  .portal-home .category-chevron {
    display: none;
  }

  .portal-home .category-flyout {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin-top: 8px;
    box-shadow: none;
    border: 0;
    border-left: 0;
    border-radius: 8px;
    padding: 12px;
  }

  .portal-home .category-item:hover .category-flyout,
  .portal-home .category-item:focus-within .category-flyout {
    display: none;
  }

  .portal-home .category-item.expanded .category-flyout {
    display: block;
  }

  .portal-home .category-all {
    display: none;
  }

  .portal-home .quick-school {
    order: 3;
    display: flex;
    flex-direction: column;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 14px 12px 12px;
    gap: 8px;
    box-sizing: border-box;
  }

  .portal-home .quick-school-h2 {
    margin: 0;
    font-size: var(--fs-18);
  }

  .portal-home .quick-school-p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .portal-home .quick-school-form-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    justify-content: center;
    font-size: 15px;
  }

  .portal-home .quick-school-shortcuts {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
  }

  .portal-home .quick-school-shortcuts-a {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 70px;
    padding: 10px 2px;
    border-right: 0;
    border-radius: 8px;
    background: var(--ch-brand-soft);
    font-size: 12px;
    gap: 6px;
  }

  .portal-home .quick-school-shortcuts-a:nth-child(2n) {
    border-right: 0;
  }

  .portal-home .quick-school-shortcuts-a .ui-icon {
    width: 26px;
    height: 26px;
  }

  /* 推荐学校 */
  .portal-home .featured-section {
    padding: 16px 12px;
    margin-bottom: 16px;
  }

  .portal-home .featured-heading {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }

  .portal-home .featured-heading-h2,
  .portal-home .featured-heading-p {
    width: 100%;
    margin: 0;
  }

  .portal-home .featured-heading-p {
    order: unset;
    font-size: 13px;
  }

  .portal-home .featured-heading-a {
    position: absolute;
    right: 0;
    top: 2px;
    margin-left: 0;
    font-size: 13px;
  }

  .portal-home .featured-school {
    width: calc((100% - 12px) / 2);
    min-width: 0;
    padding: 14px 10px;
  }

  .portal-home .featured-school .school-logo {
    width: 100%;
    height: 56px;
  }

  .portal-home .featured-school-strong {
    font-size: 13px;
  }

  /* 发现好学校 + 侧栏 */
  .portal-home .home-discovery {
    align-items: stretch;
    gap: 16px;
  }

  .portal-home .home-schools {
    width: 100%;
    max-width: none;
    padding: 16px 12px;
  }

  .portal-home .section-heading {
    margin-bottom: 12px;
  }

  .portal-home .school-row,
  .list-main .school-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 0;
  }

  .portal-home .school-row > a:first-child,
  .list-main .school-row > a:first-child {
    flex: 0 0 108px;
    width: 108px;
  }

  .portal-home .school-row .school-logo,
  .list-main .school-logo {
    width: 108px;
    height: 78px;
    padding: 6px;
  }

  .portal-home .school-row-info,
  .list-main .school-row-info {
    flex: 1 1 0;
    min-width: 0;
  }

  .portal-home .school-row-name,
  .list-main .school-row-name {
    font-size: var(--fs-16);
  }

  .portal-home .school-row-p,
  .list-main .school-row-p {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .portal-home .school-row > .button,
  .list-main .school-row > .button {
    display: inline-flex;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    min-height: 44px;
    justify-content: center;
    font-size: 15px;
  }

  .portal-home .home-editorial-aside {
    width: 100%;
    max-width: none;
  }

  .portal-home .home-article-panel-li-a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 列表页 */
  .list-main .school-filters {
    padding: 12px;
  }

  .list-main .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .list-main .filter-row-strong {
    width: auto;
    padding-top: 0;
    font-size: var(--fs-14);
  }

  .list-main .filter-chip {
    height: 36px;
    padding: 0 12px;
    font-size: var(--fs-14);
  }

  .list-main .list-results {
    padding: 14px 12px;
  }

  .list-main .school-list-search-bar {
    max-width: none;
  }

  .list-main .page-heading h1 {
    font-size: var(--fs-20);
  }
}
