@font-face {
  font-family: "BxgPingFang";
  src: url("./assets/SourceHanSansCN-Regular.11c302d.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BxgPingFang";
  src: url("./assets/PingFang-Medium.1597485.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BxgPingFang";
  src: url("./assets/PingFang-Bold.dd25b35.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-red: #a32638;
  --brand-red-dark: #8e1d2f;
  --gold: #ffc72c;
  --copy: #272020;
  --muted: #675f5f;
  --paper: #ffffff;
  --soft: #fafafd;
  --soft-gray: #f4f4fb;
  --line: #e5e6eb;
  --page-pad: 0.28rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 750px;
  margin-inline: auto;
  font-family: "BxgPingFang", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--copy);
  background: #fff;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  overflow: hidden;
  background: #fff;
}

.section-inner,
.section-title {
  width: calc(100% - var(--page-pad) * 2);
  margin-inline: auto;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  position: relative;
  margin: 0;
  padding-bottom: 0.2rem;
  color: var(--copy);
  font-size: 0.52rem;
  line-height: 0.72rem;
  font-weight: 500;
}

.section-title h2::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.64rem;
  height: 0.06rem;
  transform: translateX(-50%);
  border-radius: 0.03rem;
  background: var(--brand-red);
  content: "";
}

.section-title .en {
  margin: 0.08rem 0 0;
  color: #fff;
  font-size: 0.36rem;
  line-height: 0.56rem;
  font-weight: 400;
}

/* Hero */
.hero {
  position: relative;
  background: #fff;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.admission-card {
  position: relative;
  width: calc(100% - var(--page-pad) * 2);
  margin: -1.48rem auto 0;
  padding: 0.44rem 0.32rem;
  border-radius: 0.16rem;
  background: #fff;
  box-shadow: 0 0.04rem 0.24rem rgba(0, 0, 0, 0.08);
  text-align: center;
}

.admission-card .main-copy {
  margin: 0;
  font-size: 0.32rem;
  line-height: 0.5rem;
  font-weight: 400;
}

.admission-card .notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.16rem;
  padding: 0.12rem 0.24rem;
  border-radius: 0.08rem;
  background: #faf3f3;
  color: #cc0001;
  font-size: 0.28rem;
  line-height: 0.4rem;
  font-weight: 500;
}

/* Advantage */
.advantage {
  padding: 0.72rem 0 0.8rem;
  background: #fff;
}

.advantage h2 {
  font-weight: 400;
}

.advantage h2 strong {
  display: block;
  margin-top: 0.04rem;
  font-weight: 700;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
  margin-top: 0.48rem;
}

.advantage-card {
  padding: 0.32rem 0.24rem 0.28rem;
  border-radius: 0.12rem;
  background: #fff;
  box-shadow: 0 0.04rem 0.16rem rgba(93, 74, 83, 0.1);
  text-align: center;
}

.advantage-card img {
  width: 1em;
  height: 1rem;
  margin: 0 auto;
}

.advantage-card h3 {
  margin: 0.16rem 0 0.08rem;
  color: #231d1d;
  font-size: 0.3rem;
  line-height: 0.44rem;
  font-weight: 700;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.24rem;
  line-height: 0.36rem;
}
header{
  height: 1.2rem!important;
}
/* Certificate */
.certificate {
  padding: .8rem 0 0.64rem;
  background: #f7f7f7;
}

.certificate-layout {
  margin-top: 0.48rem;
}

.certificate-top {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.certificate-pic {
  width: 100%;
  border-radius: 0.12rem;
}

.certificate-copy {
  padding: 0.32rem 0.28rem;
  border-radius: 0.12rem;
  background: #fff;
}

.certificate-copy article + article {
  margin-top: 0.32rem;
  padding-top: 0.32rem;
  border-top: 1px solid var(--line);
}

.certificate-copy h3 {
  margin: 0;
  font-size: 0.38rem;
  line-height: 0.52rem;
  font-weight: 500;
}

.certificate-copy p {
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-size: 0.3rem;
  line-height: 0.44rem;
}

.certificate-strip-wrap {
  margin-top: 0.32rem;
  overflow: hidden;
}

.certificate-strip-track {
  display: flex;
  width: max-content;
  animation: certificate-scroll 20s linear infinite;
}

.certificate-strip {
  width: 15rem;
  flex-shrink: 0;
}

@keyframes certificate-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-15rem);
  }
}

/* School */
.school {
  padding: 0.64rem 0;
  background: #fafafd;
}

.school-copy p {
  margin: 0.48rem 0 0;
  font-size: 0.3rem;
  line-height: 0.58rem;
  text-align: justify;
}

.school-copy img {
  width: 100%;
  margin-top: 0.4rem;
  border-radius: 0.12rem;
}

/* Major */
.major {
  position: relative;
  padding-bottom: 0.8rem;
  background: #fff;
}

.major-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 4.8rem;
  background: url("./assets/major-bg.e8fac22.png") center top / cover no-repeat;
}

.major .section-title {
  position: relative;
  z-index: 1;
  padding-top: 0.8rem;
}

.major .section-title h2 {
  color: #fff;
}

.major .section-title h2::after {
  background: var(--gold);
}

.major-shell {
  position: relative;
  z-index: 2;
  margin-top: 0.48rem;
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
  overflow: visible;
}

/* 区块卡片：专业详情 / 课程内容 / 学习模式 / 名师风采 */
.detail-block,
.curriculum,
.mode,
.faculty {
  position: relative;
  padding: 0.14rem 0.28rem 0.36rem;
  border-radius: 0.16rem;
  background: #f5f6fa;
  overflow: visible;
}

.block-title {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: -0.64rem 0 0.32rem -0.4rem;
  min-width: 1.84rem;
  height: 0.64rem;
  padding: 0 0.56rem 0 0.36rem;
  color: var(--brand-red);
  font-size: 0.36rem;
  line-height: 0.64rem;
  font-weight: 700;
  background: url("./assets/title-bg.6d4325d.png") left center / 100% 100% no-repeat;
}


.detail-block {
  margin-top: 0;
}

.program-detail {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.intro-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.32rem;
  border-radius: 0.12rem;
  background: url("./assets/left-bg-pic.9707e02.png") center / cover no-repeat;
  overflow: hidden;
}

.intro-card p {
  margin: 0;
  color: #fff;
  font-size: 0.3rem;
  line-height: 0.58rem;
  text-align: justify;
}

.salary-table {
  min-width: 0;
  padding: 0.08rem 0.16rem;
  border-radius: 0.12rem;
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  align-items: center;
  gap: 0.08rem;
  min-height: 0.88rem;
  padding: 0.12rem 0.08rem;
  border-bottom: 1px solid #dbdbeb;
  font-size: 0.26rem;
  line-height: 0.36rem;
}

.table-row.head {
  min-height: 0.64rem;
  border-bottom: 0;
  color: var(--brand-red);
  font-size: 0.28rem;
  line-height: 0.4rem;
  font-weight: 500;
}

.table-row span:nth-child(2),
.table-row span:nth-child(3) {
  text-align: right;
}

.curriculum {
  margin-top: 0;
}

.curriculum-note {
  margin: 0 0 0.24rem;
  font-size: 0.28rem;
  line-height: 0.44rem;
  color: var(--copy);
}

.course-columns {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  margin-top: 0;
}

.course-group {
  padding: 0.24rem 0.24rem 0.12rem;
  border-radius: 0.12rem;
  background: #fff;
}

.course-group h4 {
  margin: 0 auto 0.12rem;
  height: 0.64rem;
  border-radius: 0.08rem;
  background: #f0f0f8;
  text-align: center;
  font-size: 0.32rem;
  line-height: 0.64rem;
  font-weight: 700;
}

.course-item {
  width: 100%;
  padding: 0.16rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.course-item:last-child {
  border-bottom: 0;
}

.course-main {
  display: grid;
  grid-template-columns: 0.96rem 1fr;
  align-items: start;
}

.course-code {
  font-size: 0.28rem;
  line-height: 0.4rem;
  font-weight: 700;
}

.course-name {
  display: block;
  font-size: 0.28rem;
  line-height: 0.4rem;
}

.course-en {
  display: block;
  margin-top: 0.02rem;
  color: #bc5f5f;
  font-size: 0.24rem;
  line-height: 0.36rem;
}

.course-desc {
  display: none;
  grid-column: 1 / -1;
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-size: 0.24rem;
  line-height: 0.36rem;
}

.course-item.active .course-desc {
  display: block;
}

.course-item.active .course-code,
.course-item.active .course-name {
  color: var(--brand-red);
}

/* Mode */
.mode {
  margin-top: 0;
}

.mode-grid {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  margin-top: 0;
}

.mode-card {
  display: grid;
  grid-template-columns: 0.56rem 1fr;
  gap: 0.2rem;
  align-items: start;
  padding: 0.28rem 0.24rem;
  border-radius: 0.12rem;
  background: #fff;
}

.mode-card img {
  width: 0.56rem;
  height: 0.56rem;
}

.mode-card h4 {
  margin: 0 0 0.12rem;
  font-size: 0.32rem;
  line-height: 0.44rem;
  font-weight: 700;
}

.mode-card p {
  margin: 0;
  color: #847d7d;
  font-size: 0.28rem;
  line-height: 0.44rem;
}

/* Faculty */
.faculty {
  margin-top: 0;
}

.faculty-list {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  margin-top: 0;
}

.teacher-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.16rem 0.24rem;
  padding: 0.28rem 0.24rem;
  border-radius: 0.12rem;
  background: #fff;
  overflow: hidden;
}


.teacher-card img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.08rem;
  object-fit: cover;
  grid-row: 1 / 3;
}

.teacher-card > div {
  display: contents;
}

.teacher-card .job {
  margin: 0;
  color: var(--brand-red);
  font-size: 0.26rem;
  line-height: 0.38rem;
  font-weight: 700;
}

.teacher-card h4 {
  margin: 0;
  font-size: 0.36rem;
  line-height: 0.48rem;
  font-weight: 700;
}

.teacher-card .bio {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.28rem;
  line-height: 0.44rem;
  font-weight: 400;
  color: var(--muted);
}

/* Alumni */
.alumni {
  padding: 0.8rem 0;
  background: #fafafa;
}

.alumni-rows {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-top: 0.48rem;
}

.alumni-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--page-pad);
  padding: 0 var(--page-pad);
  scrollbar-width: none;
}

.alumni-scroll::-webkit-scrollbar {
  display: none;
}

.alumni-track {
  display: flex;
  gap: 0.24rem;
  width: max-content;
}

.alumni-card {
  flex-shrink: 0;
  width: 4.6rem;
  border-radius: 0.12rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.04rem 0.16rem rgba(93, 74, 83, 0.08);
  scroll-snap-align: start;
}

.alumni-card img {
  width: 100%;
}

.alumni-card p {
  margin: 0;
  padding: 0.2rem 0.24rem 0.24rem;
  font-size: 0.26rem;
  line-height: 0.42rem;
  color: var(--copy);
}

/* Footer banner */
.advisor-banner {
  padding-bottom: 0.8rem;
  background: #fff;
}

.advisor-banner img {
  width: 100%;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(0.3rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.admission-card.fade-in {
  transform: translateY(0.3rem);
}

.admission-card.fade-in.visible {
  transform: translateY(0);
}

/* Back to top */
.zxdh-btn-box {
  position: fixed;
  right: var(--page-pad);
  bottom: 1.6rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zxdh-btn-box.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zxdhbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 0.12rem;
  background: rgba(80, 80, 80, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.zxdhbtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.18rem;
  height: 0.18rem;
  margin: 0.02rem 0 0 -0.09rem;
  border-top: 0.04rem solid #fff;
  border-right: 0.04rem solid #fff;
  transform: rotate(-45deg);
}

.zxdhbtn::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.28rem;
  height: 0.04rem;
  margin-left: -0.14rem;
  background: #fff;
  border-radius: 0.02rem;
}
