:root {
  --brand: #8b0000;
  --brand-deep: #992923;
  --brand-gradient: linear-gradient(145deg, #7a1c18 0%, var(--brand-deep) 52%, #b3453c 100%);
  --bg: #f5f5f5;
  --text: #222;
  --muted: #666;
  --card: #fff;
  --line: #e5e5e5;
  --footer: #333;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }

.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.page-main { min-height: 50vh; background: #f3f3f3; }
.section { padding: 3rem 0; }
.section-title {
  text-align: center;
  font-size: 1.65rem;
  color: var(--brand-deep);
  font-weight: 700;
  margin: 0 0 1.75rem;
  letter-spacing: 0.06em;
}
.section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--brand-deep);
  margin: 0.65rem auto 0;
  border-radius: 2px;
}
.section-head {
  text-align: center;
  margin-bottom: 1.85rem;
}
.section-head .section-title { margin-bottom: 0; }
.section-desc {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  color: #7a6f6a;
  font-size: 0.95rem;
  line-height: 1.65;
}
.section-cta {
  text-align: center;
  margin: 1.75rem 0 0;
}
.section-cta .btn-ghost {
  border-color: #d7b8b2;
  color: var(--brand-deep);
  border-radius: 8px;
  background: #fff;
}
.section-cta .btn-ghost:hover {
  background: #f8eeee;
  border-color: var(--brand-deep);
}
.section-cta .btn-primary {
  min-width: 12rem;
  box-shadow: 0 8px 18px rgba(153, 41, 35, 0.18);
}
.muted { color: var(--muted); }
.error-text { color: #c0392b; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-accent {
  background: var(--brand);
  color: #fff;
  border: 1px solid #ccc;
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-primary {
  background: var(--brand-deep);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Header — logo 靠左，登录/完善信息靠右 */
.topbar {
  background: var(--brand);
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem 1.5rem;
  box-sizing: border-box;
}
.brand {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.brand img {
  height: 3.2rem;
  width: auto;
  display: block;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}
.hotline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  white-space: nowrap;
}
.hotline img { width: 1.8rem; }
.hotline strong { display: block; font-size: 1rem; }
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-height: 2.2rem;
  min-width: 5.5rem;
}
.auth-btn-primary {
  background: #fff !important;
  color: var(--brand-deep) !important;
  border: 1px solid #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.auth-btn-primary:hover {
  background: #fff7f6 !important;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.auth-label-short { display: none; }
.auth-label-full { display: inline; }
.nav-account { display: none; }
.nav-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  color: #222;
  font: inherit;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.nav-logout-btn:hover {
  background: #faf3f2;
  color: var(--brand);
  border-left-color: var(--brand);
}
.auth-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 600;
}
.auth-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  filter: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 0.48rem;
  right: 0.48rem;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  pointer-events: none;
}
.nav-toggle span:nth-child(1) { top: 0.58rem; }
.nav-toggle span:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-toggle span:nth-child(3) { bottom: 0.58rem; }
.nav-toggle.open span:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) {
  top: 50%;
  bottom: auto;
  margin-top: -1px;
  transform: rotate(-45deg);
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-list {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.nav-list a,
.nav-list a:link,
.nav-list a:visited {
  display: block;
  padding: 0.85rem 0.7rem;
  font-size: 1.05rem;
  color: #222 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-list li.active a,
.nav-list li.active a:link,
.nav-list li.active a:visited,
.nav-list a:hover {
  color: var(--brand) !important;
  border-bottom-color: var(--brand);
}

/* 防止 CMS 正文样式污染头尾 */
#site-header,
#site-header * {
  text-indent: 0 !important;
  line-height: inherit;
}
#site-header a:link,
#site-header a:visited {
  text-decoration: none !important;
}
#site-footer a:link,
#site-footer a:visited,
#site-footer a:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Banner — 按图片原始比例完整展示，不裁切 */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
}
.banner-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.banner-slide {
  min-width: 100%;
  line-height: 0;
}
.banner-slide a { display: block; }
.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.28);
  backdrop-filter: blur(4px);
}
.banner-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.banner-dots button.active {
  width: 1.35rem;
  background: #fff;
}
.banner-qr {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
}
.banner-qr-panel {
  padding: 0.85rem 0.95rem 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}
.banner-qr-heading {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.banner-qr-list {
  display: flex;
  gap: 0.85rem;
}
.banner-qr-item {
  margin: 0;
  text-align: center;
}
.banner-qr-item img {
  width: 7.75rem;
  height: 7.75rem;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #efe6e3;
  background: #fff;
  display: block;
}
.banner-qr-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5c504b;
  letter-spacing: 0.04em;
}

/* 首页报名流程：底图 + 六步横排（与线上站点一致） */
.home-flow {
  position: relative;
  background: #f3f6f8;
}
.home-flow-bg {
  display: block;
  width: 100%;
  height: auto;
}
.home-flow-panel {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1180px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-flow-title {
  margin: 0 0 2.4rem;
  padding: 0 0.9rem 0.55rem;
  color: #992923;
  font-size: 1.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #992923;
}
.home-flow-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.home-flow-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #992923;
  padding: 0 0.35rem;
}
.home-flow-item:last-child { border-right: 0; }
.home-flow-item img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}
.home-flow-item p {
  margin: 0.55rem 0 0.2rem;
  color: #992923;
  font-size: 1.08rem;
  font-weight: 700;
}
.home-flow-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-flow-item li { line-height: 1.65; }
.home-flow-item a,
.home-flow-item button.linkish {
  display: inline;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.home-flow-item a:hover,
.home-flow-item button.linkish:hover {
  color: #992923;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .home-flow {
    background: #f6f1ef;
    padding: 1.35rem 0 1.6rem;
  }
  .home-flow-bg { display: none; }
  .home-flow-panel {
    position: static;
    transform: none;
    width: min(100% - 1.5rem, 40rem);
    margin: 0 auto;
    align-items: stretch;
  }
  .home-flow-title {
    align-self: center;
    margin-bottom: 0.95rem;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 1.28rem;
  }
  .home-flow-title::after {
    content: "";
    display: block;
    width: 2rem;
    height: 2px;
    margin: 0.4rem auto 0;
    background: #992923;
  }
  .home-flow-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .home-flow-item {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.28rem;
    align-items: center;
    max-width: none;
    text-align: left;
    border: 1px solid #efe3df;
    border-right: 1px solid #efe3df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(80, 30, 24, 0.04);
    padding: 0.75rem 0.85rem 0.8rem;
  }
  .home-flow-item img {
    grid-row: 1 / span 2;
    width: 2.5rem;
    height: 2.5rem;
    align-self: start;
    margin-top: 0.1rem;
  }
  .home-flow-item p {
    margin: 0;
    font-size: 1rem;
  }
  .home-flow-item ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .home-flow-item li { line-height: 1.2; }
  .home-flow-item a,
  .home-flow-item button.linkish {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #f8f1ef;
    color: #5c332f;
    font-size: 0.8rem;
    line-height: 1.45;
    text-decoration: none;
  }
  .home-flow-item a:hover,
  .home-flow-item button.linkish:hover {
    background: #f0e2de;
    color: #992923;
    text-decoration: none;
  }
}

/* Process page — 导航「报名流程」独立页 */
.process-page-body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(153, 41, 35, 0.05), transparent 55%),
    #f3f0ee;
}
.process-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.82fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 auto;
  padding-bottom: 0.5rem;
}
.process-diagram {
  background: #fff;
  border: 1px solid #efe6e3;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(60, 30, 24, 0.05);
  overflow: hidden;
}
.process-diagram-head {
  padding: 1.15rem 1.25rem 0.95rem;
  border-bottom: 1px solid #f3ece9;
  text-align: center;
}
.process-diagram-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  color: #2f2825;
  font-weight: 700;
}
.process-diagram-head p {
  margin: 0;
  color: #8a7f7a;
  font-size: 0.86rem;
}
.process-diagram-zoom {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.1rem 1rem 1.25rem;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}
.process-diagram-zoom:hover .process-diagram-hint,
.process-diagram-zoom:focus-visible .process-diagram-hint {
  opacity: 1;
  transform: translateY(0);
}
.process-diagram-zoom:focus-visible {
  outline: 2px solid rgba(153, 41, 35, 0.35);
  outline-offset: -2px;
}
.process-diagram-hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.process-diagram-body {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  min-height: 10rem;
}
.process-diagram-body.cms-content.cms-ready,
.process-diagram-body.cms-content {
  padding: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}
.process-diagram-body img,
.process-diagram-body .cms-media img,
#process-cms img {
  width: min(100%, 440px) !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 6px;
}
.process-diagram-body .cms-loading,
.process-diagram-body .error-text,
.process-diagram-body .muted {
  margin: 2rem 1rem;
  text-align: center;
}
.process-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.process-side-card {
  background: #fff;
  border: 1px solid #efe6e3;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(60, 30, 24, 0.05);
  padding: 1.2rem 1.2rem 1.25rem;
}
.process-side-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  color: #2f2825;
  font-weight: 700;
}
.process-side-card > p {
  margin: 0 0 0.85rem;
  color: #7a6f6a;
  font-size: 0.9rem;
  line-height: 1.65;
}
.process-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-side-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 0.95rem;
  border-top: 1px dashed #efe6e3;
  color: #5c534f;
  font-size: 0.88rem;
  line-height: 1.55;
}
.process-side-list li:first-child { border-top: 0; padding-top: 0; }
.process-side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #d46a62;
}
.process-side-list li:first-child::before { top: 0.55em; }
.process-side-list strong { color: var(--brand-deep); }
.process-side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.process-page-links a,
.process-page-links button.linkish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #efe6e3;
  background: #f7f4f2;
  color: #5c534f;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.process-page-links a:hover,
.process-page-links button.linkish:hover {
  color: var(--brand-deep);
  background: #f8eeee;
  border-color: #e0c6c0;
}
.process-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.45rem 1.5rem;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 14px 32px rgba(120, 30, 24, 0.22);
}
.process-page-cta--side {
  flex-direction: column;
  align-items: stretch;
  padding: 1.25rem 1.2rem 1.3rem;
}
.process-page-cta--side .process-page-cta-actions {
  width: 100%;
}
.process-page-cta--side .process-page-cta-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}
.process-page-cta-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  font-weight: 700;
}
.process-page-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}
.process-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.process-page-cta-actions .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  border-radius: 8px;
  font-weight: 700;
}
.process-page-cta-actions .btn-primary:hover {
  background: #fff7f6;
  filter: none;
}
.process-page-cta-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
  border-radius: 8px;
}
.process-page-cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.modal-card--figure {
  width: min(100%, 860px);
  padding: 1.15rem 1.15rem 1rem;
}
.modal-card--figure .modal-body {
  padding: 0.25rem 0 0.35rem;
}
.modal-card--figure .modal-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #faf7f5;
}

/* Home entries — 不展示专业列表时的双入口 */
.section-entries {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(153, 41, 35, 0.06), transparent 55%),
    #f3f0ee;
  padding: 3.25rem 0 3.75rem;
}
.home-entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.6rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #efe6e3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(60, 30, 24, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
  overflow: hidden;
}
.home-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(60, 30, 24, 0.12);
}
.home-entry-index {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(153, 41, 35, 0.1);
  pointer-events: none;
}
.home-entry-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 2.5rem;
}
.home-entry-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a89088;
}
.home-entry-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2f2825;
  letter-spacing: 0.03em;
}
.home-entry-desc {
  color: #7a6f6a;
  font-size: 0.94rem;
  line-height: 1.65;
}
.home-entry-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: #f8eeee;
  transition: background 0.2s ease, transform 0.2s ease;
}
.home-entry-action::after {
  content: "→";
  transition: transform 0.2s ease;
}
.home-entry:hover .home-entry-action {
  background: #f1dfdc;
}
.home-entry:hover .home-entry-action::after {
  transform: translateX(3px);
}
.home-entry--majors:hover {
  border-color: #d7b8b2;
}
.home-entry--enroll {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}
.home-entry--enroll .home-entry-index {
  color: rgba(255, 255, 255, 0.16);
}
.home-entry--enroll .home-entry-kicker {
  color: rgba(255, 255, 255, 0.72);
}
.home-entry--enroll .home-entry-title {
  color: #fff;
}
.home-entry--enroll .home-entry-desc {
  color: rgba(255, 255, 255, 0.86);
}
.home-entry--enroll .home-entry-action {
  color: var(--brand-deep);
  background: #fff;
}
.home-entry--enroll:hover {
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(120, 30, 24, 0.3);
}
.home-entry--enroll:hover .home-entry-action {
  background: #fff7f6;
}

/* Majors grid styles retained for potential reuse / other pages */
.majors-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.major-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #efe6e3;
  box-shadow: 0 6px 18px rgba(60, 30, 24, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
}
.major-card:hover {
  transform: translateY(-4px);
  border-color: #d7b8b2;
  box-shadow: 0 14px 28px rgba(60, 30, 24, 0.12);
}
.major-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: #f5f0ee;
}
.major-card:hover img { transform: scale(1.04); }
.major-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.8rem 1rem;
  border-top: 1px solid #f3ece9;
  background: #fff;
  flex: 1;
}
.major-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2f2825;
  line-height: 1.35;
}
.major-card-meta {
  font-size: 0.78rem;
  color: #8a7f7a;
  line-height: 1.4;
}
.majors-row .muted,
.majors-row .majors-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 0;
}

/* Legacy register form styles（独立预报名页仍会用到） */
.registration-box {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(153, 41, 35, 0.07), transparent 55%),
    #f3f0ee;
  padding: 3rem 0 3.5rem;
}
.registration-box .inner {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #efe6e3;
  border-top: 3px solid var(--brand-deep);
  padding: 1.85rem 1.65rem 2.1rem;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 36px rgba(60, 30, 24, 0.07);
}
.registration-box .section-head { margin-bottom: 1.5rem; }
.registration-box .section-title { font-size: 1.45rem; }
.form-row {
  margin-bottom: 1.15rem;
}
.form-row > label.field-label,
.form-row > .field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #4a403c;
  font-weight: 600;
  font-size: 0.92rem;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  min-width: 0;
  width: 100%;
}
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  color: #3a312e;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.check-item:hover {
  border-color: #d7b8b2;
  background: #fbf6f5;
}
.check-item:has(input:checked) {
  background: #f8eeee;
  border-color: var(--brand-deep);
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(153, 41, 35, 0.08);
}
.check-item input {
  accent-color: var(--brand-deep);
  margin: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.check-item:focus-within {
  border-color: var(--brand-deep);
}
.checks > .muted,
.checks > .error-text {
  width: 100%;
  margin: 0;
}
.registration-box input[type="text"],
.registration-box input[type="tel"] {
  border-color: #ddd4cf;
  border-radius: 8px;
  background: #fbf9f8;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.registration-box input:hover { border-color: #cbbab4; }
.registration-box input:focus {
  outline: none;
  border-color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(153, 41, 35, 0.12);
}
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="month"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(153, 41, 35, 0.25);
  border-color: var(--brand-deep);
}
.hint { font-size: 0.8rem; color: #9a4a3e; margin-top: 0.35rem; }
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.75rem;
}
.code-img {
  height: 2.75rem;
  width: auto;
  min-width: 6.5rem;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #ddd4cf;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f1ef;
}
.submit-wrap { text-align: center; margin-top: 1.45rem; }
.submit-wrap .btn-primary {
  min-width: 42%;
  height: 2.85rem;
  border-radius: 8px;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 18px rgba(153, 41, 35, 0.2);
}

/* Dedicated register page */
.register-page {
  padding: 1.75rem 0 3.25rem;
  background:
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(153, 41, 35, 0.06), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 12%, rgba(139, 0, 0, 0.04), transparent 50%),
    #f3f3f3;
}
.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.78fr);
  gap: 1.5rem;
  align-items: start;
}
.register-main {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ece4e0;
  box-shadow: 0 10px 28px rgba(60, 20, 16, 0.06);
  overflow: hidden;
  min-width: 0;
}
.register-card-head {
  padding: 1.55rem 1.6rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(153, 41, 35, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid #f0e6e2;
}
.register-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  font-weight: 700;
}
.register-card-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: #2a1f1c;
  font-weight: 700;
  line-height: 1.35;
}
.register-card-head p {
  margin: 0;
  color: #6b5e58;
  font-size: 0.92rem;
  line-height: 1.6;
}
.register-logged-tip {
  margin: 0 1.5rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8eeee;
  border: 1px solid #e8cfc9;
  color: #5c403c;
  font-size: 0.9rem;
  line-height: 1.55;
}
.register-logged-tip a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: underline;
}
.register-logged-tip.is-hidden,
.register-logged-tip[hidden] {
  display: none !important;
}
.register-page .register-form {
  padding: 0.35rem 1.6rem 1.65rem;
}
.form-block {
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px dashed #eadfd9;
}
.form-block--last {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}
.form-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.form-block-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  color: #2a1f1c;
  font-weight: 700;
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-extra {
  font-size: 0.82rem;
  color: var(--brand-deep);
  font-weight: 600;
}
.form-help {
  margin: -0.2rem 0 0.85rem;
  font-size: 0.86rem;
  color: #7a6d67;
}
.form-help a {
  color: var(--brand-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(153, 41, 35, 0.35);
}
.register-page .checks {
  min-height: 2.4rem;
}
.req {
  color: var(--brand-deep);
  margin-left: 0.2rem;
  font-weight: 700;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.register-page .form-row { margin-bottom: 0; }
.register-page .code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}
.register-page .form-grid .form-row { min-width: 0; }
.register-page .hint {
  margin: 0.4rem 0 0;
  color: #8a6a52;
  background: #faf6f1;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  line-height: 1.45;
}
.code-refresh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #8a7a74;
  font-size: 0.72rem;
}
.code-refresh .code-img {
  height: 44px;
  min-width: 108px;
  border-radius: 6px;
  background: #f7f7f7;
}
.code-refresh:hover { color: var(--brand-deep); }
.register-page .submit-wrap {
  margin-top: 1.15rem;
  text-align: left;
}
.register-page .submit-wrap .btn-primary {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
}
.register-login {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #7a6d67;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid rgba(153, 41, 35, 0.35);
}
.text-link:hover { border-bottom-color: var(--brand-deep); }

.register-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.register-aside-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ece4e0;
  box-shadow: 0 10px 28px rgba(60, 20, 16, 0.06);
  padding: 1.25rem 1.2rem 1.3rem;
}
.register-aside-card h3 {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  color: #2a1f1c;
  font-weight: 700;
}
.register-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reg-step;
}
.register-steps li {
  position: relative;
  padding: 0 0 1rem 2.1rem;
  counter-increment: reg-step;
}
.register-steps li:last-child { padding-bottom: 0.15rem; }
.register-steps li::before {
  content: counter(reg-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #f3e8e5;
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.register-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 1.55rem;
  bottom: 0.15rem;
  width: 1px;
  background: #eadfd9;
}
.register-steps li.is-current::before {
  background: var(--brand-deep);
  color: #fff;
}
.register-steps strong {
  display: block;
  font-size: 0.95rem;
  color: #2a1f1c;
  margin-bottom: 0.15rem;
}
.register-steps .is-current strong { color: var(--brand-deep); }
.register-steps span {
  display: block;
  font-size: 0.82rem;
  color: #7a6d67;
  line-height: 1.5;
}
.register-aside-link {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.register-aside-link::after { content: " →"; }
.register-trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.register-trust li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5c524e;
}
.register-trust li:last-child { margin-bottom: 0; }
.register-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #d46a62;
}
.register-hotline {
  background: var(--brand-gradient);
  color: #f5ece8;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.register-hotline > span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}
.register-hotline > a:first-of-type {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.register-hotline small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.register-hotline .register-aside-link {
  color: #f0c2bc;
  margin-top: 0.45rem;
}
.register-hotline .register-aside-link:hover { color: #fff; }
.register-steps li.is-done::before {
  content: "✓";
  background: #e8f4ec;
  color: #2d7a45;
}
.register-steps li.is-done strong { color: #2d7a45; }

/* Improve info page */
.improve-page [hidden],
.improve-page .is-hidden {
  display: none !important;
}
.improve-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem 1.05rem;
  margin: 1.05rem 0 0.35rem;
  padding: 0.95rem 1.05rem;
  background: linear-gradient(180deg, #fbf6f5 0%, #fff 100%);
  border: 1px solid #f0e6e2;
  border-radius: 12px;
}
.improve-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}
.improve-identity-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  gap: 0.35rem 1.5rem;
}
.improve-identity-meta > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.improve-identity-meta > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid #eadfd9;
}
.improve-label {
  font-size: 0.74rem;
  color: #8a7a74;
  letter-spacing: 0.04em;
}
.improve-identity-meta strong {
  font-size: 1.02rem;
  color: #2a1f1c;
  font-weight: 700;
  word-break: break-all;
}
.improve-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2d7a45;
  background: #e8f4ec;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}
.improve-other { margin-top: 1rem; }
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.choice-row .choice-item { min-height: 4.4rem; align-items: center; }
.choice-row--compact .choice-item {
  justify-content: center;
  min-height: 0;
  padding: 0.7rem 0.75rem;
}
.choice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  color: #3a312e;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.choice-item:hover {
  border-color: #d7b8b2;
  background: #fbf6f5;
}
.choice-item:has(input:checked) {
  background: #f8eeee;
  border-color: var(--brand-deep);
  color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(153, 41, 35, 0.08);
}
.choice-item input {
  accent-color: var(--brand-deep);
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}
.choice-item small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: #7a6d67;
  line-height: 1.45;
}
.choice-item:has(input:checked) small { color: #9a6b66; }
.improve-panel {
  margin-top: 1rem;
  padding: 0.95rem 1rem 1.05rem;
  background: #faf7f5;
  border: 1px dashed #eadfd9;
  border-radius: 12px;
}
.improve-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.form-grid-span { grid-column: 1 / -1; }
.improve-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 220px;
  padding: 2rem 1.4rem 2.4rem;
  text-align: center;
  color: #7a6d67;
}
.improve-state-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2a1f1c;
}
.improve-state .btn { min-width: 8.5rem; }
.improve-spinner {
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid #eadfd9;
  border-top-color: var(--brand-deep);
  border-radius: 50%;
  animation: improve-spin 0.7s linear infinite;
}
@keyframes improve-spin {
  to { transform: rotate(360deg); }
}
.improve-page .register-form { padding-top: 0.15rem; }
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="month"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(153, 41, 35, 0.25);
  border-color: var(--brand-deep);
}
.hint { font-size: 0.8rem; color: #d52e52; margin-top: 0.35rem; }
.code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.code-img {
  height: 38px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.submit-wrap { text-align: center; margin-top: 1.25rem; }
.submit-wrap .btn-primary { min-width: 40%; }

/* Content pages — 轻量页头，避免大块红色色带 */
.page-hero {
  background: #f7f4f2;
  color: var(--text);
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid #ebe3df;
}
.page-hero .container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.page-hero .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
  color: #8a7a74;
}
.page-hero .breadcrumb a {
  color: #8a7a74;
  text-decoration: none;
}
.page-hero .breadcrumb a:hover {
  color: var(--brand-deep);
}
.page-hero .breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.6;
}
.page-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #2a1f1c;
  padding-left: 0.75rem;
  border-left: 4px solid var(--brand-deep);
  line-height: 1.35;
}
.page-hero p,
.page-hero .page-desc {
  margin: 0.15rem 0 0;
  padding-left: 0.95rem;
  color: #6b5e58;
  font-size: 0.92rem;
  opacity: 1;
  text-indent: 0 !important;
}
.article-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  margin: 1.5rem auto;
  max-width: none;
}
.article-card h2 {
  color: var(--brand-deep);
  font-size: 1.15rem;
  border-left: 4px solid var(--brand-deep);
  padding-left: 0.6rem;
  margin: 1.4rem 0 0.7rem;
}
.article-card h2:first-child { margin-top: 0; }
.article-card p { text-indent: 2em; margin: 0.55rem 0; }
.article-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}
.article-card th,
.article-card td {
  border: 1px solid #ddd;
  padding: 0.45rem 0.4rem;
  text-align: center;
}
.article-card th { background: #f8eeee; color: var(--brand-deep); }

.list-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.list-item:hover .list-title { color: var(--brand); }
.list-title { font-size: 1.08rem; font-weight: 700; margin: 0 0 0.35rem; }
.list-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.35rem; }
.list-summary { color: #444; margin: 0; font-size: 0.95rem; }

/* 专业介绍列表 */
.majors-page {
  padding: 1.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(153, 41, 35, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(139, 0, 0, 0.035), transparent 50%),
    #f3f3f3;
}
.majors-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.15rem;
}
.majors-count {
  margin: 0;
  color: #6b5e58;
  font-size: 0.92rem;
}
.majors-count strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
  font-weight: 700;
}
.majors-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.majors-item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0 1.15rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ece4e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(60, 20, 16, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: majors-rise 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.majors-item:hover {
  transform: translateY(-2px);
  border-color: #e0cfc8;
  box-shadow: 0 14px 32px rgba(60, 20, 16, 0.09);
}
.majors-item:hover .majors-item-title { color: var(--brand-deep); }
.majors-item:hover .majors-item-more { color: var(--brand-deep); }
.majors-item:hover .majors-item-more::after { transform: translateX(3px); }
.majors-item-media {
  position: relative;
  min-height: 118px;
  background: linear-gradient(145deg, #f4ebe8, #e8d5cf);
  overflow: hidden;
}
.majors-item-cover {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.majors-item:hover .majors-item-cover { transform: scale(1.04); }
.majors-item-cover--empty { display: block; min-height: 118px; }
.majors-item--plain { grid-template-columns: minmax(0, 1fr); }
.majors-item--plain .majors-item-body { padding-left: 1.15rem; }
.majors-item-body {
  position: relative;
  padding: 1rem 1.15rem 1rem 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.majors-item-date {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: #a09088;
}
.majors-item-date .d-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}
.majors-item-date .d-ym {
  font-size: 0.72rem;
  margin-top: 0.1rem;
}
.majors-item-title {
  margin: 0 4.5rem 0.45rem 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2a1f1c;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.majors-item-summary {
  margin: 0;
  color: #6b5e58;
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.majors-item-more {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a7a74;
  transition: color 0.2s ease;
}
.majors-item-more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease;
}
.majors-foot-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
@keyframes majors-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: #333;
  background: #fafafa;
}
.faq-item[open] summary { color: var(--brand-deep); }
.faq-item .faq-body { padding: 0.85rem 1rem 1rem; color: #444; }

/* CMS 正文（官网/Word 导出 HTML）— 站点统一排版，覆盖 Word 内联脏样式 */
.cms-wrap {
  padding: 1.35rem 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(153, 41, 35, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(139, 0, 0, 0.03), transparent 50%),
    #f3f3f3;
}
.cms-actions { text-align: center; margin: 1.35rem 0 0; }
.cms-content.article-card {
  margin: 0 auto;
  max-width: none;
  padding: 1.85rem 1.75rem 2.1rem;
  border: 1px solid #ece4e0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(60, 20, 16, 0.06);
}
.cms-content {
  overflow-x: auto;
  isolation: isolate;
  color: #2f2623;
  font-size: 0.98rem;
  line-height: 1.85;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
.cms-content.cms-ready {
  animation: cms-fade 0.35s ease both;
}
@keyframes cms-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.cms-content .Section1,
.cms-content #vsb_content {
  max-width: 100%;
}
.cms-content *,
.cms-content *::before,
.cms-content *::after {
  box-sizing: border-box;
  max-width: 100%;
}
.cms-content p,
.cms-content .MsoNormal,
.cms-content li,
.cms-content div,
.cms-content span,
.cms-content strong,
.cms-content b,
.cms-content font {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  text-indent: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.cms-content p,
.cms-content .MsoNormal {
  margin: 0.65rem 0;
  text-align: justify;
  text-justify: inter-ideograph;
}
.cms-content p:first-child,
.cms-content .Section1 > p:first-child {
  margin-top: 0;
}
.cms-content .cms-heading {
  margin: 1.55rem 0 0.75rem !important;
  padding: 0.35rem 0 0.35rem 0.75rem;
  border-left: 4px solid var(--brand-deep);
  color: var(--brand-deep) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}
.cms-content .cms-heading:first-child {
  margin-top: 0 !important;
}
.cms-content .cms-heading span,
.cms-content .cms-heading strong {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
}
.cms-content .cms-note,
.cms-content .cms-note span,
.cms-content .cms-note strong {
  color: #b42318 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}
.cms-content p.cms-note,
.cms-content p:has(> .cms-note):not(.cms-heading) {
  margin: 0.35rem 0 0.9rem;
  padding: 0.55rem 0.75rem;
  background: #fff6f4 !important;
  border: 1px solid #f0d7d2;
  border-radius: 8px;
  text-align: left !important;
}
.cms-content h1,
.cms-content h2,
.cms-content h3 {
  color: var(--brand-deep);
  font-weight: 700;
  margin: 1.35rem 0 0.65rem;
  line-height: 1.4;
}
.cms-content h1 { font-size: 1.25rem; }
.cms-content h2 { font-size: 1.12rem; }
.cms-content h3 { font-size: 1.02rem; }
.cms-content table {
  width: 100% !important;
  max-width: none;
  height: auto !important;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  border: 0;
  background: #fff;
}
.cms-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.9rem 0 1.35rem;
  border: 1px solid #e8ddd8;
  border-radius: 10px;
  background: #fff;
}
.cms-table-scroll table {
  margin: 0;
  min-width: 640px;
  width: max-content;
  max-width: none;
  border-radius: 0;
}
.cms-content table tbody,
.cms-content table thead {
  display: table-row-group;
  width: auto;
  min-width: 0;
}
.cms-content table td,
.cms-content table th {
  border: 1px solid #eadfdb;
  padding: 0.55rem 0.45rem;
  vertical-align: middle;
  text-align: center;
  word-break: break-word;
  background: transparent !important;
  color: #333 !important;
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
}
.cms-content table tr.cms-thead td,
.cms-content table tr.cms-thead th,
.cms-content table thead td,
.cms-content table thead th,
.cms-content table tr.firstRow td {
  background: #f8eeee !important;
  color: var(--brand-deep) !important;
  font-weight: 700 !important;
}
.cms-content table tr:nth-child(even):not(.cms-thead):not(.firstRow) td {
  background: #fcfbfa !important;
}
.cms-content img {
  display: block;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  margin: 0.75rem auto;
  border-radius: 8px;
}
.cms-content .cms-figure,
.cms-content .cms-media {
  text-align: center !important;
  margin: 1rem 0 1.25rem;
}
.cms-content .cms-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #faf7f5;
  border: 1px dashed #e5d8d2;
  border-radius: 12px;
}
.cms-content .cms-media img {
  margin: 0;
  max-width: min(100%, 240px);
  box-shadow: 0 6px 18px rgba(60, 20, 16, 0.08);
  background: #fff;
}
.cms-content .cms-media a,
.cms-content a:has(img) {
  display: inline-block;
  border-bottom: 0;
  line-height: 0;
}
.cms-content .cms-media a.cms-video-link img {
  max-width: min(100%, 360px);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cms-content .cms-media a.cms-video-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(60, 20, 16, 0.14);
}
.cms-content table.cms-gallery {
  width: 100% !important;
  table-layout: fixed;
  border: 0;
  background: transparent;
  margin: 0.35rem 0 1.15rem;
}
.cms-content table.cms-gallery td,
.cms-content table.cms-gallery th,
.cms-content table.cms-gallery tr.firstRow td,
.cms-content table.cms-gallery tr.cms-thead td,
.cms-content table.cms-gallery tr:nth-child(even) td {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-weight: 400 !important;
  vertical-align: top;
  text-align: center;
  padding: 0 0.6rem 0.2rem;
}
.cms-content table.cms-gallery p {
  margin: 0 !important;
  text-align: center !important;
}
.cms-content table.cms-gallery img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 0.45rem !important;
  border-radius: 6px;
  box-shadow: none;
}
.cms-content table.cms-gallery a,
.cms-content table.cms-gallery a:link,
.cms-content table.cms-gallery a:visited,
.cms-content table.cms-gallery a:has(img) {
  display: block;
  border-bottom: 0;
  line-height: 0;
}
.cms-content table.cms-gallery a.cms-video-link img {
  cursor: pointer;
}
.cms-content a,
.cms-content a:link,
.cms-content a:visited {
  color: var(--brand-deep) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 41, 35, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cms-content a:hover,
.cms-content a:active {
  color: var(--brand) !important;
  border-bottom-color: var(--brand);
}
.cms-content a span {
  color: inherit !important;
  text-decoration: none !important;
}
.cms-content a img {
  border: 0;
  border-bottom: 0;
}
.cms-loading {
  text-align: center;
  padding: 2.5rem 0;
  color: #8a7a74;
}

/* 常见问题页：工具栏 + 手风琴 */
.faq-page {
  padding-top: 1.1rem;
}
.faq-layout {
  max-width: none;
}
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.faq-search {
  position: relative;
  flex: 1 1 280px;
  display: block;
  max-width: 100%;
}
.faq-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid #9a8a84;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.faq-search-icon::after {
  content: "";
  position: absolute;
  right: -0.28rem;
  bottom: -0.22rem;
  width: 0.4rem;
  height: 1.5px;
  background: #9a8a84;
  transform: rotate(45deg);
  transform-origin: left center;
}
.faq-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5d8d2;
  border-radius: 999px;
  background: #fff;
  padding: 0.72rem 1rem 0.72rem 2.35rem;
  color: #2a1f1c;
  box-shadow: 0 6px 18px rgba(60, 20, 16, 0.04);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.faq-search input::placeholder { color: #a09088; }
.faq-search input:focus {
  border-color: #d4b4ad;
  box-shadow: 0 0 0 3px rgba(153, 41, 35, 0.1);
}
.faq-toolbar-meta {
  margin: 0;
  color: #8a7a74;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cms-content.faq-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: visible;
}
.cms-content.cms-faq {
  font-size: 0.96rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.faq-block {
  background: #fff;
  border: 1px solid #ece4e0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(60, 20, 16, 0.04);
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-block[open] {
  border-color: #e0cfc8;
  box-shadow: 0 12px 28px rgba(60, 20, 16, 0.07);
}
.faq-block-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.05rem;
  user-select: none;
  border-radius: 12px;
  background: #fff;
}
.faq-block[open] .faq-block-summary {
  border-radius: 12px 12px 0 0;
}
.faq-block-body .cms-table-scroll {
  margin: 0.75rem 0 0.35rem;
  border-radius: 8px;
}
.faq-block-static .faq-block-chevron { display: none; }
.faq-block-static .faq-block-summary { cursor: default; }
.faq-block-summary::-webkit-details-marker { display: none; }
.faq-block-summary::marker { content: ""; }
.faq-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: #f6ecea;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.05rem;
}
.faq-block[open] .faq-block-num {
  background: var(--brand-deep);
  color: #fff;
}
.faq-block-title {
  color: #2a1f1c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  padding-top: 0.15rem;
}
.faq-block[open] .faq-block-title { color: var(--brand-deep); }
.faq-block-chevron {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-right: 2px solid #b5a59e;
  border-bottom: 2px solid #b5a59e;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-block[open] .faq-block-chevron {
  margin-top: 0.7rem;
  border-color: var(--brand-deep);
  transform: rotate(225deg);
}
.faq-block-body {
  padding: 0 1.05rem 1.15rem 1.05rem;
  margin-left: calc(1.85rem + 0.75rem);
  border-top: 1px solid #f0e8e4;
  color: #4a3f3a;
  animation: faq-body-in 0.22s ease both;
}
@keyframes faq-body-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.faq-block-body > :first-child { margin-top: 0.85rem !important; }
.cms-content.cms-faq .faq-block-body h2,
.cms-content.cms-faq .faq-block-body h3,
.cms-content.cms-faq .faq-block-body .faq-as-p {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  margin: 0.55rem 0 !important;
  line-height: 1.8 !important;
  border: 0 !important;
  padding: 0 !important;
}
.cms-content.cms-faq .faq-block-body p,
.cms-content.cms-faq .faq-block-body .MsoNormal {
  text-align: left;
  margin: 0.55rem 0;
}
.cms-content.cms-faq .faq-block-body table {
  margin: 0.75rem 0 0.35rem;
}
.cms-content.cms-faq .faq-block-body img {
  max-width: min(100%, 420px);
}
.faq-empty {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px dashed #e5d8d2;
  border-radius: 12px;
}
.faq-footer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: 1.35rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #fff 0%, #faf5f3 100%);
  border: 1px solid #ece4e0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(60, 20, 16, 0.04);
}
.faq-footer-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: #2a1f1c;
}
.faq-footer-copy p {
  margin: 0;
  color: #6b5e58;
  font-size: 0.92rem;
  line-height: 1.55;
}
.faq-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Contact page */
.contact-page {
  padding: 1.75rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(153, 41, 35, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(139, 0, 0, 0.04), transparent 50%),
    #f3f3f3;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}
.contact-main {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(60, 20, 16, 0.06);
  border: 1px solid #ece4e0;
  padding: 1.75rem 1.6rem 1.85rem;
  height: 100%;
  box-sizing: border-box;
}
.contact-lead {
  margin: 0 0 1.35rem;
  color: #5c524e;
  font-size: 0.98rem;
  line-height: 1.7;
  padding-bottom: 1.15rem;
  border-bottom: 1px dashed #e5d9d4;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf8f7 0%, #f7f2f0 100%);
  border: 1px solid #efe6e2;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.contact-channel:hover {
  border-color: #d7b8b2;
  box-shadow: 0 8px 18px rgba(139, 0, 0, 0.08);
  transform: translateY(-1px);
}
.channel-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon img {
  width: 1.35rem;
  height: 1.35rem;
  filter: brightness(0) invert(1);
}
.channel-icon-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.channel-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.channel-label {
  font-size: 0.82rem;
  color: #8a7a74;
  letter-spacing: 0.04em;
}
.channel-value {
  font-size: 1.2rem;
  color: #2a1f1c;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}
.contact-channel:first-child .channel-value {
  color: var(--brand-deep);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.channel-hint {
  font-size: 0.85rem;
  color: #7a6d67;
  line-height: 1.45;
}
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #efe6e2;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  min-height: 0;
}
.contact-qr-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ece4e0;
  box-shadow: 0 10px 28px rgba(60, 20, 16, 0.06);
  padding: 1.4rem 1.25rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.contact-qr-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #2a1f1c;
  font-weight: 700;
}
.contact-qr-card > p {
  margin: 0 0 1rem;
  color: #7a6d67;
  font-size: 0.88rem;
  line-height: 1.55;
}
.contact-qr-frame {
  width: min(100%, 220px);
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #c45a52, #8b0000, #d4a59a) border-box;
  border: 2px solid transparent;
}
.contact-qr-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.contact-qr-caption {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--brand-deep);
  font-weight: 600;
}
.contact-note {
  background: var(--brand-gradient);
  color: #f5ece8;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.contact-note h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.contact-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-note li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.contact-note li:last-child { margin-bottom: 0; }
.contact-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #d46a62;
}

/* legacy contact-panel kept for safety */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}
.contact-panel .phones {
  font-size: 1.35rem;
  color: var(--brand-deep);
  font-weight: 700;
}
.contact-panel img { width: 220px; margin: 0 auto; }

/* Footer — 官网布局，黑底改为品牌红 */
#site-footer { background: var(--brand); }
.friend-links {
  background: var(--brand);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1rem;
}
.friend-links-left {
  flex: 60%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-width: 0;
}
.friend-logo { width: 22.3125rem; flex: 0 0 auto; }
.friend-logo img { width: 100%; height: auto; }
.friend-links-text > p { margin: 0 0 0.35rem; }
.links-container {
  display: flex;
  justify-content: space-between;
}
.links-list { margin: 0; padding: 0; }
.links-list:first-child { margin-right: 50px; }
.links-list li { margin: 0; line-height: 1.7; }
.links-list a { white-space: nowrap; }
.friend-links-right {
  flex: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.img-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1.875rem;
}
.img-box .img {
  width: 7.5rem;
  height: auto;
  margin-bottom: 0.625rem;
  background: #fff;
}
.footer-contact { margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 0.625rem;
}
.footer-contact li:last-child { margin-bottom: 0; }
.footer-contact img {
  width: 1.25rem;
  margin-right: 0.625rem;
  flex: 0 0 auto;
}
.copyright {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 0.625rem 0;
  border-top: 0.0625rem solid #fff;
  font-size: 1rem;
}
.copyright p { margin: 0; }

/* Modal / Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 14, 0.48);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: modal-fade-in 0.22s ease;
}
.modal-overlay.show { display: flex; }
.modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 18px 48px rgba(40, 18, 14, 0.22);
  animation: modal-rise 0.28s ease;
}
.modal-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
  line-height: 1;
  color: #8a7f7b;
  transition: background 0.18s ease, color 0.18s ease;
}
.modal-close:hover {
  background: #f3eeec;
  color: #444;
}
.modal-title { margin: 0 1.5rem 0.85rem 0; text-align: center; }
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Login modal */
.modal-card--login {
  width: min(100%, 400px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #efe6e3;
}
.modal-card--login .modal-title {
  margin: 0;
  padding: 1.35rem 1.5rem 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2a1f1c;
  text-align: center;
}
.modal-card--login .modal-close {
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}
.modal-card--login .modal-body {
  padding: 0 1.5rem 1.55rem;
}
.modal-card--login .modal-actions { display: none; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-lead {
  margin: 0 0 0.15rem;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #7a6f6a;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.login-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #4a403c;
  letter-spacing: 0.02em;
}
.login-form input[type="text"],
.login-form input[type="tel"] {
  width: 100%;
  height: 2.75rem;
  border: 1px solid #ddd4cf;
  border-radius: 8px;
  padding: 0 0.9rem;
  background: #fbf9f8;
  color: #2a1f1c;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.login-form input::placeholder {
  color: #a39994;
}
.login-form input:hover {
  border-color: #cbbab4;
}
.login-form input:focus {
  outline: none;
  border-color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(153, 41, 35, 0.12);
}
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.25rem;
  gap: 0.65rem;
  align-items: stretch;
}
.login-captcha {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #ddd4cf;
  border-radius: 8px;
  background: #f3f1ef;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.login-captcha:hover {
  border-color: #c4aaa3;
}
.login-captcha .code-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  display: block;
}
.login-captcha-tip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.1rem 0;
  font-size: 0.65rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: rgba(42, 31, 28, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.login-captcha:hover .login-captcha-tip,
.login-captcha:focus-visible .login-captcha-tip {
  opacity: 1;
}
.login-sms-btn {
  height: 2.75rem;
  padding: 0 0.55rem;
  border: 1px solid #d7b8b2;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.login-sms-btn:hover:not(:disabled) {
  background: #f8eeee;
  border-color: var(--brand-deep);
}
.login-sms-btn:disabled {
  color: #9a8f8a;
  border-color: #e2d9d5;
  background: #f5f2f0;
  cursor: not-allowed;
}
.login-submit {
  margin-top: 0.35rem;
  height: 2.85rem;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  box-shadow: 0 8px 18px rgba(153, 41, 35, 0.22);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.login-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(153, 41, 35, 0.28);
}
.login-submit:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .modal-card--login {
    width: min(100%, 360px);
  }
  .modal-card--login .modal-body {
    padding: 0 1.15rem 1.25rem;
  }
  .login-split {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    gap: 0.5rem;
  }
  .login-sms-btn { font-size: 0.78rem; }
}

.tip-list { padding-left: 1.1rem; list-style: disc; }
.tip-list li { margin-bottom: 0.5rem; text-indent: 0; }
.tip-qr { text-align: center; margin-top: 0.75rem; }
.tip-qr img { width: 140px; margin: 0 auto; }

.modal-overlay--alert {
  z-index: 1200;
  background: rgba(0, 0, 0, 0.35);
}
.modal-card--alert {
  width: min(100%, 380px);
  padding: 1.2rem 1.25rem 1rem;
}
.modal-card--alert .modal-title {
  text-align: center;
  margin-right: 1.5rem;
}
.modal-card--alert .modal-body {
  text-align: center;
  color: #4a403c;
  line-height: 1.65;
  word-break: break-word;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--brand-gradient);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 1100;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: rgba(176, 40, 40, 0.92); }
.toast-success { background: rgba(30, 120, 70, 0.92); }

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 50;
}
.back-top.show { display: inline-flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 992px) {
  .process-page-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .process-side { position: static; }
  .process-diagram-head { padding: 1.05rem 1rem 0.85rem; }
  .process-diagram-zoom { padding: 0.9rem 0.75rem 1.05rem; }
  .process-diagram-hint { opacity: 1; transform: none; }
  .friend-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
  }
  .friend-links-left,
  .friend-links-right {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .friend-logo { width: min(100%, 22.3125rem); }
  .img-box { margin-right: 1rem; }
  .contact-panel { grid-template-columns: 1fr; text-align: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { height: auto; }
  .contact-note { flex: none; }
  .contact-main { padding: 1.35rem 1.1rem 1.45rem; height: auto; }
  .contact-channel:first-child .channel-value { font-size: 1.15rem; }
  .contact-cta { justify-content: stretch; }
  .contact-cta .btn { flex: 1 1 auto; min-width: 140px; }
  .banner-qr {
    top: 0.85rem;
    right: 0.85rem;
  }
  .banner-qr-panel { padding: 0.65rem 0.7rem 0.75rem; }
  .banner-qr-item img {
    width: 6.25rem;
    height: 6.25rem;
  }
  .home-entries { grid-template-columns: 1fr; max-width: 520px; }
  .majors-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .register-layout { grid-template-columns: 1fr; }
  .register-card-head,
  .register-page .register-form { padding-left: 1.2rem; padding-right: 1.2rem; }
}

@media (max-width: 768px) {
  .hotline { display: none; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .banner-qr { display: none; }
  .topbar-inner {
    padding: 0.45rem 0.85rem;
    gap: 0.55rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  .brand img {
    height: 1.8rem;
    max-width: min(100%, 11.2rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
  .topbar-right {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-left: 0;
  }
  .auth-actions {
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    min-height: 0;
  }
  .auth-actions .btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.76rem;
    white-space: nowrap;
    line-height: 1.2;
  }
  .auth-btn-primary {
    padding: 0.32rem 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
  .auth-btn-icon { display: none; }
  .auth-label-full { display: inline; }
  .auth-label-short { display: none; }
  /* 手机端顶栏只保留主操作，退出放到菜单里，避免竖排撑高 */
  .auth-btn-ghost { display: none !important; }
  .nav-account { display: list-item; }
  .nav-account-improve { display: none; } /* 顶栏已有入口 */
  .nav-toggle {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
  }
  .nav-toggle span {
    left: 0.42rem;
    right: 0.42rem;
  }
  .nav-toggle span:nth-child(1) { top: 0.5rem; }
  .nav-toggle span:nth-child(3) { bottom: 0.5rem; }
  .main-nav {
    display: none;
    border-bottom: 0;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    padding: 0.5rem 0 0.85rem;
  }
  .nav-list a,
  .nav-list a:link,
  .nav-list a:visited {
    padding: 0.75rem 1rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
    color: #222 !important;
  }
  .nav-list li.active a,
  .nav-list li.active a:link,
  .nav-list li.active a:visited,
  .nav-list a:hover {
    background: #faf3f2;
    border-left-color: var(--brand);
    border-bottom-color: transparent;
    color: var(--brand) !important;
  }
  .nav-account-logout {
    border-top: 1px solid #efe6e3;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }
  .nav-account-logout .nav-logout-btn { color: var(--brand-deep); font-weight: 600; }
  .process-page-cta {
    justify-content: center;
    text-align: center;
  }
  .process-page-cta-actions {
    width: 100%;
    justify-content: center;
  }
  .registration-box .inner { padding: 1.45rem 1.15rem 1.75rem; }
  .majors-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card { margin: 1rem; padding: 1.1rem; }
  .article-card table { display: block; overflow-x: auto; }
  .cms-content.article-card {
    margin: 0 0.15rem;
    padding: 1.2rem 1rem 1.4rem;
    border-radius: 12px;
  }
  .cms-content {
    font-size: 0.94rem;
    line-height: 1.8;
  }
  .cms-content .cms-heading {
    font-size: 1.05rem !important;
    margin-top: 1.25rem !important;
  }
  .cms-content table tbody,
  .cms-content table thead {
    min-width: 0;
  }
  .cms-content .cms-media img {
    max-width: min(100%, 200px);
  }
  .cms-content table.cms-gallery,
  .cms-content table.cms-gallery tbody,
  .cms-content table.cms-gallery tr,
  .cms-content table.cms-gallery td {
    display: block;
    width: 100% !important;
  }
  .cms-content table.cms-gallery td { padding: 0 0 0.85rem; }
  .cms-wrap { padding: 1rem 0 2rem; }
  .page-hero { padding: 1.15rem 0 1.25rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .page-hero .page-desc { font-size: 0.9rem; }
  .banner-slide img {
    width: 100%;
    height: clamp(9.5rem, 38vw, 14rem);
    object-fit: cover;
    object-position: center;
  }
  .faq-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .faq-search {
    flex: 0 0 auto;
    width: 100%;
  }
  .faq-search-icon {
    top: 1.12rem;
  }
  .faq-search input {
    padding: 0.7rem 1rem 0.7rem 2.3rem;
    font-size: 0.92rem;
  }
  .faq-toolbar-meta {
    white-space: normal;
    font-size: 0.84rem;
  }
  .faq-block-summary {
    padding: 0.9rem 0.85rem;
    gap: 0.6rem;
  }
  .faq-block-body {
    margin-left: 0;
    padding: 0 0.7rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .faq-block-body .cms-table-scroll {
    margin-left: 0;
    margin-right: 0;
  }
  .cms-table-scroll table,
  .cms-content.cms-faq .faq-block-body .cms-table-scroll table {
    min-width: 520px;
    font-size: 0.8rem;
  }
  .cms-content table td,
  .cms-content table th {
    padding: 0.45rem 0.35rem;
    font-size: 0.8rem !important;
  }
  .faq-block-title { font-size: 0.95rem; }
  .faq-footer-card {
    padding: 1.1rem 1rem;
    align-items: stretch;
  }
  .faq-footer-actions { width: 100%; }
  .faq-footer-actions .btn { flex: 1 1 auto; }
  .contact-page { padding: 1.25rem 0 2rem; }
  .contact-main { padding: 1.15rem 1rem 1.25rem; }
  .contact-channel { padding: 0.85rem 0.75rem; }
  .channel-value { font-size: 1.02rem; word-break: break-all; }
  .submit-wrap .btn-primary { min-width: 80%; width: 100%; }
  .majors-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0 0.85rem;
  }
  .majors-item-body { padding: 0.85rem 0.85rem 0.85rem 0; }
  .majors-item-title {
    margin-right: 3.6rem;
    font-size: 1rem;
  }
  .majors-item-date { right: 0.75rem; top: 0.8rem; }
  .majors-item-date .d-day { font-size: 1.05rem; }
  .majors-item-summary { -webkit-line-clamp: 3; font-size: 0.84rem; }
  .majors-toolbar { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .register-card-head { padding: 1.2rem 1.05rem 1rem; }
  .register-page .register-form { padding: 0.15rem 1.05rem 1.3rem; }
  .register-card-head h2 { font-size: 1.2rem; }
  .register-page .code-row { grid-template-columns: 1fr; }
  .register-page .code-refresh {
    flex-direction: row;
    align-self: start;
    gap: 0.45rem;
  }
  .improve-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .improve-identity-meta {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .improve-identity-meta > div + div {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.45rem;
    border-top: 1px solid #eadfd9;
  }
  .improve-badge { grid-column: 2; justify-self: start; }
  .choice-row:not(.choice-row--compact) {
    grid-template-columns: 1fr;
  }
  .checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .check-item {
    white-space: normal;
    border-radius: 10px;
    width: 100%;
    min-height: 2.45rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .process-diagram-head h2 { font-size: 1.12rem; }
  .process-diagram-zoom { border-radius: 12px; }
  .majors-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .links-container { flex-direction: column; gap: 0.25rem; }
  .links-list:first-child { margin-right: 0; }
  .majors-item {
    grid-template-columns: 1fr;
  }
  .majors-item-media { min-height: 0; }
  .majors-item-cover {
    min-height: 0;
    height: 150px;
  }
  .majors-item-body { padding: 0.9rem 1rem 1rem; }
  .majors-item--plain .majors-item-body { padding: 0.9rem 1rem 1rem; }
  .majors-item-title { margin-right: 3.8rem; }
}
