/* ============================================================
   安职招生网 2026 优化样式（zs-2026.css）
   覆盖页面：首页 main.htm / 招生计划 plan.htm / 联系我们 contact.htm
   说明：本站 html { font-size: 1vw }，1rem = 1vw，与 index.css 口径一致
   ============================================================ */

/* ---------- 一、首页：右侧二维码浮动侧边栏 ---------- */
.side-tools {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 5.6rem;
  background: #fff;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: -0.1rem 0.3rem 1rem rgba(11, 96, 217, 0.18);
  overflow: visible;
}

.side-tools-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.3rem;
  cursor: pointer;
  border-bottom: 1px solid #F0F4FA;
  transition: background 0.25s;
}

.side-tools-item:last-child {
  border-bottom: none;
}

.side-tools-item:hover {
  background: rgba(0, 115, 228, 0.08);
}

.side-tools-icon {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  transition: transform 0.25s;
}

.side-tools-item:hover .side-tools-icon {
  transform: scale(1.12);
}

.side-tools-label {
  margin-top: 0.45rem;
  font-size: 0.65rem;
  line-height: 1.3;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
}

.side-tools-item:hover .side-tools-label {
  color: #0073E4;
}

/* 悬停展开的二维码面板 */
.side-tools-panel {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%) translateX(0.8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8.6rem;
  padding: 0.8rem 0.6rem 0.7rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.3rem 1.2rem rgba(11, 96, 217, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  white-space: nowrap;
}

.side-tools-panel::after {
  content: '';
  position: absolute;
  right: -0.3rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.6rem;
  height: 0.6rem;
  background: #fff;
}

.side-tools-panel img {
  width: 6.8rem;
  height: 6.8rem;
  object-fit: contain;
}

.side-tools-panel span {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.88);
}

.side-tools-item:hover .side-tools-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ---------- 二、首页：学院专业卡片重排 ---------- */
/* 蓝色渐变卡片：学院名称居中 + 「点击查看 ›」胶囊按钮 + UTA 水印 */
.card-box.major .card-content {
  padding-top: 3rem;
  padding-bottom: 2.4rem;
}

.major-list .major-item {
  width: 17.97rem;
  height: 14.06rem;
  background: linear-gradient(135deg, #0B60D9 0%, #04A6FF 100%) !important;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.major-list .major-item:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.6rem 1.6rem rgba(11, 96, 217, 0.35);
}

/* CMS 输出的学院配图不再作为卡片主体，隐藏 */
.major-list .major-item .img {
  display: none !important;
}

/* UTA 字母水印 */
.major-list .major-item::before {
  content: 'UTA';
  position: absolute;
  right: 0.4rem;
  bottom: -1.6rem;
  font-size: 5.2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.1rem;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.major-list .major-item .major-name {
  position: static;
  height: auto;
  background: none !important;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: #FFFFFF;
}

.major-list .major-item .major-btn {
  margin-top: 1.9rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  padding: 0.35rem 1.35rem;
  font-size: 0.8rem;
  color: #FFFFFF;
  transition: all 0.25s;
}

.major-list .major-item:hover .major-btn {
  background: #FFFFFF;
  color: #0073E4;
}

/* 分页圆点：PC 端启用、隐藏左右箭头 */
.swiper-container-1 .swiper-pagination {
  display: block;
}

.swiper-container-1 .swiper-button-next-1,
.swiper-container-1 .swiper-button-prev-1 {
  display: none;
}

.swiper-pagination-1 .swiper-pagination-bullet {
  width: 0.65rem;
  height: 0.65rem;
  background: #9AA7B8;
  opacity: 0.45;
}

.swiper-pagination-1 .swiper-pagination-bullet-active {
  background: #0073E4;
  opacity: 1;
}

/* ---------- 三、页脚：三张二维码布局 ---------- */
.qr-code-list .qr-code-item {
  margin-right: 2.6rem;
}

.qr-code-list .qr-code-item:last-child {
  margin-right: 0;
}

.qr-code-list .qr-code-item img {
  width: 5.2rem;
  height: 5.2rem;
}

/* ---------- 四、招生计划页 plan.htm ---------- */
.plan-breadcrumb {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #EBEFF5;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
}

.plan-breadcrumb a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
}

.plan-breadcrumb a:hover {
  color: #0073E4;
}

.plan-breadcrumb .current {
  color: #0073E4;
}

/* 筛选器 */
.plan-filter-wrap {
  width: 100%;
  display: grid;
  gap: 0.7rem;
  padding: 1.6rem 0 0.4rem;
}

.plan-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.plan-filter-label {
  flex-shrink: 0;
  min-width: 4.2rem;
  line-height: 1.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}

.plan-filter-options {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plan-chip {
  border: none;
  background: transparent;
  min-width: 3.6rem;
  height: 1.9rem;
  border-radius: 0.25rem;
  padding: 0 0.7rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: all 0.2s;
}

.plan-chip:hover {
  color: #0073E4;
}

.plan-chip.active {
  background: #0073E4;
  color: #fff;
}

/* 标题 + 搜索 */
.plan-table-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0 0.9rem;
}

.plan-table-title {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.88);
  margin: 0;
}

.plan-table-title::before {
  content: '';
  display: block;
  width: 0.55rem;
  height: 1.25rem;
  margin-right: 0.7rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #0B60D9 0%, #04A6FF 100%);
}

.plan-search-box {
  display: flex;
  align-items: center;
  flex: 0 1 15rem;
  gap: 0.3rem;
  border: 1px solid #D9DFE8;
  border-radius: 2rem;
  background: #fff;
  padding: 0.15rem 0.7rem;
}

.plan-search-box svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #0073E4;
}

.plan-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.2rem;
  color: rgba(0, 0, 0, 0.88);
}

.plan-search-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.plan-search-clear {
  border: none;
  background: transparent;
  color: #999;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

/* 表格 */
.plan-table-card {
  width: 100%;
  background: #fff;
}

.plan-state-text {
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
}

.plan-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.plan-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

.plan-table th,
.plan-table td {
  border: 1px solid #D8E7F7;
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  color: rgba(0, 0, 0, 0.88);
}

.plan-table th {
  background: #0073E4;
  color: #fff;
  font-weight: 600;
}

.plan-table tbody tr:nth-child(even) {
  background: #F5FAFF;
}

.plan-table tbody tr:hover {
  background: #EAF4FF;
}

.plan-sortable-th {
  cursor: pointer;
  user-select: none;
}

.plan-sortable-th:hover {
  background: #0B60D9;
}

.plan-th-content {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.plan-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.plan-sort-arrows i {
  font-style: normal;
  font-size: 0.5rem;
  opacity: 0.4;
}

.plan-sort-arrows i.active {
  opacity: 1;
}

.plan-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 10rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-table td.sticky-col {
  background: #fff;
  z-index: 2;
  text-align: left;
}

.plan-table tbody tr:nth-child(even) td.sticky-col {
  background: #F5FAFF;
}

.plan-table tbody tr:hover td.sticky-col {
  background: #EAF4FF;
}

.plan-major-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  color: #0B60D9;
  text-decoration: none;
}

.plan-major-link:hover {
  text-decoration: underline;
}

.plan-major-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-major-link-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.plan-summary {
  width: 100%;
  padding: 0.7rem 0.2rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
  text-align: right;
}

/* ---------- 五、联系我们页 contact.htm ---------- */
.contact-page-box {
  width: 75rem;
  min-height: 10rem;
  margin-bottom: 3.5rem;
  display: flex;
}

/* 左侧菜单：与列表页侧边栏同款 */
.contact-page-box .list-column-navs {
  display: block;
  transform: translateY(-20px);
  width: 13.8rem;
  margin-right: 4rem;
  flex-shrink: 0;
}

.contact-page-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 蓝色渐变联系卡片 */
.contact-hero-card {
  position: relative;
  width: 100%;
  margin-top: 1.4rem;
  background: linear-gradient(135deg, #0B60D9 0%, #04A6FF 100%);
  border-radius: 0.6rem;
  box-shadow: 0 0.8rem 2rem rgba(11, 96, 217, 0.25);
  padding: 3.2rem 3.6rem 4.4rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero-card::before {
  content: 'UTA';
  position: absolute;
  top: -1.2rem;
  right: 1rem;
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.2rem;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.contact-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 3.4rem;
  pointer-events: none;
}

.contact-info-list {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-info-item {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05rem;
}

.contact-info-item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  margin-right: 0.9rem;
}

.contact-info-item a {
  color: #fff;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-qr-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3.4rem;
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

.contact-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-qr-frame {
  background: rgba(255, 255, 255, 0.12);
  border: 0.15rem solid rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 0.45rem;
  transition: transform 0.25s;
}

.contact-qr-item:hover .contact-qr-frame {
  transform: scale(1.05);
}

.contact-qr-frame img {
  display: block;
  width: 6.3rem;
  height: 6.3rem;
  background: #fff;
}

.contact-qr-item span {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #fff;
}

/* ---------- 六、统一入场动画（配合 js/zs-animate.js） ----------
   采用 keyframes 动画而非 transition：不受元素自身 hover 过渡
   （transition 属性）覆盖影响；backwards 填充保证延迟期间保持隐藏，
   实现 stagger 逐个显示；结束后动画不驻留，hover 过渡正常工作。 */
[data-animate] {
  opacity: 0;
}

[data-animate].zs-in {
  opacity: 1;
  animation: zs-reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: var(--zs-delay, 0ms);
}

[data-animate="left"].zs-in {
  animation-name: zs-reveal-left;
}

[data-animate="right"].zs-in {
  animation-name: zs-reveal-right;
}

[data-animate="zoom"].zs-in {
  animation-name: zs-reveal-zoom;
}

/* 纯淡入：用于自带 transform 定位的元素（如侧边栏 translateY(-20px)） */
[data-animate="fade"].zs-in {
  animation-name: zs-reveal-fade;
}

@keyframes zs-reveal-up {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zs-reveal-left {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zs-reveal-right {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zs-reveal-zoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zs-reveal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 右侧二维码浮动栏：载入时从右滑入 */
@keyframes side-tools-in {
  from {
    transform: translateY(-50%) translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

.side-tools {
  animation: side-tools-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s backwards;
}

/* 系统“减少动态效果”时不播放任何入场动画 */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
  }

  [data-animate].zs-in {
    animation: none;
  }

  .side-tools {
    animation: none;
  }
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 1000px) {
  .side-tools {
    display: none;
  }

  /* 学院专业卡片（移动端沿用新卡片样式） */
  .card-box.major .card-content {
    padding-bottom: 3.2rem;
  }

  .major-list .major-item {
    width: 42.53rem !important;
    height: 26rem !important;
    background: linear-gradient(135deg, #0B60D9 0%, #04A6FF 100%) !important;
  }

  .major-list .major-item .img {
    display: none !important;
  }

  .major-list .major-item::before {
    right: 1rem;
    bottom: -3rem;
    font-size: 12rem;
  }

  .major-list .major-item .major-name {
    position: static !important;
    height: auto !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 3rem;
    font-size: 3.73rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.45 !important;
    margin-top: 0 !important;
  }

  .major-list .major-item .major-btn {
    margin-top: 2.6rem;
    font-size: 2.5rem;
    padding: 0.8rem 3.4rem;
    border-width: 0.15rem;
  }

  /* 页脚三张二维码 */
  .qr-code-item {
    margin-right: 8rem !important;
  }

  .qr-code-item:last-child {
    margin-right: 0 !important;
  }

  .qr-code-item img {
    width: 20rem !important;
    height: 20rem !important;
  }

  /* 招生计划页 */
  .plan-chip {
    height: 5rem;
    min-width: 10rem;
    font-size: 2.9rem;
    border-radius: 0.6rem;
    padding: 0 2rem;
  }

  .plan-filter-label {
    min-width: 12rem;
    line-height: 5rem;
    font-size: 2.9rem;
  }

  .plan-table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
  }

  .plan-table-title {
    font-size: 4rem;
  }

  .plan-table-title::before {
    width: 1.4rem;
    height: 3.6rem;
    margin-right: 1.8rem;
  }

  .plan-search-box {
    flex: 1 1 auto;
    padding: 0.6rem 2rem;
    border-radius: 6rem;
  }

  .plan-search-input {
    font-size: 2.9rem;
    padding: 0.8rem 0.4rem;
  }

  .plan-search-box svg {
    width: 3rem;
    height: 3rem;
  }

  .plan-search-clear {
    font-size: 2.9rem;
  }

  .plan-table-scroll {
    --plan-major-width: 30rem;
  }

  .plan-table {
    min-width: 0;
    width: max-content;
    table-layout: fixed;
  }

  .plan-table th,
  .plan-table td {
    font-size: 2.9rem;
    padding: 1.6rem 1.8rem;
    border-width: 0.15rem;
  }

  .plan-table .sticky-col,
  .plan-table col.col-major {
    width: var(--plan-major-width) !important;
    min-width: var(--plan-major-width) !important;
    max-width: var(--plan-major-width) !important;
  }

  .plan-table th.sticky-col,
  .plan-table td.sticky-col {
    box-shadow: -0.8rem 0 1.4rem -1rem rgba(0, 0, 0, 0.22);
  }

  .plan-major-link-icon {
    width: 2.9rem;
    height: 2.9rem;
  }

  .plan-summary {
    font-size: 2.4rem;
  }

  .plan-breadcrumb {
    font-size: 2.8rem;
    padding: 3rem 0;
  }

  /* 联系我们页 */
  .contact-page-box {
    width: 93.6rem;
    flex-direction: column;
  }

  .contact-page-box .list-column-navs {
    width: 100%;
    margin-right: 0;
    transform: none;
  }

  .contact-hero-card {
    padding: 6rem 4rem 8rem;
    border-radius: 1.6rem;
  }

  .contact-hero-card::before {
    font-size: 20rem;
    top: -2rem;
    right: 2rem;
  }

  .contact-hero-wave {
    height: 7rem;
  }

  .contact-info-list {
    gap: 3.6rem;
    max-width: none;
  }

  .contact-info-item {
    font-size: 3.4rem;
  }

  .contact-info-item svg {
    width: 4rem;
    height: 4rem;
    margin-right: 2.6rem;
  }

  .contact-qr-row {
    gap: 6rem;
    margin-top: 7rem;
  }

  .contact-qr-frame {
    padding: 1.2rem;
    border-width: 0.3rem;
    border-radius: 1.2rem;
  }

  .contact-qr-frame img {
    width: 17rem;
    height: 17rem;
  }

  .contact-qr-item span {
    margin-top: 2rem;
    font-size: 2.9rem;
  }
}
