/* 贵州师范大学体育学院 - 首页 1:1 还原 */

@font-face {
  font-family: "PuHui";
  src: local("Alibaba PuHuiTi"), local("Source Han Sans CN");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PuHui";
  src: local("Alibaba PuHuiTi Medium"), local("Source Han Sans CN Medium");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "PuHui";
  src: local("Alibaba PuHuiTi Medium"), local("Source Han Sans CN Medium");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "PuHui";
  src: local("Alibaba PuHuiTi Bold"), local("Alibaba PuHuiTi"), local("Source Han Sans CN Bold");
  font-weight: 700;
  font-style: normal;
}

:root {
  --red: #d82129;
  --red-deep: #c41a22;
  --red-line: #e45c64;
  --pink: #fbe8e9;
  --pink-btn: #fce9ea;
  --text: #333333;
  --text-nav: #343434;
  --text-muted: #8d8d8d;
  --text-date: #b0b0b0;
  --search-bg: #f5f5f5;
  --page: 1920px;
  --wrap: 1752px;
  --side: clamp(16px, 4.375vw, 84px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: "PuHui", "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  background: #fff;
  overflow-x: hidden;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-left: var(--side);
  padding-right: var(--side);
}

.main,
.hero,
.bottom,
.panel {
  min-width: 0;
}

/* ========== Header ========== */
.site-header {
  width: 100%;
  aspect-ratio: 3840 / 523;
  max-height: 262px;
  overflow: hidden;
}

.site-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ========== Nav ========== */
.site-nav {
  min-height: 77px;
  position: relative;
  z-index: 30;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 77px;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #222;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-links,
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 32px);
}

.nav-links > li {
  position: static;
}

.nav-links > li > a {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover {
  color: var(--red);
}

.nav-links > li > a.nav-home,
.nav-links > li > a.active {
  min-width: 90px;
  height: 40px;
  padding: 0 22px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-links > li > a.nav-home:hover,
.nav-links > li > a.active:hover {
  color: #fff;
  background: var(--red-deep);
}

/* 只显示当前一级栏目自己的二级，并按页面高亮 */
.nav-links > li > .subnav {
  display: none;
}

.nav-links > li:has(> a.active) > .subnav,
.nav-links > li:has(> .subnav a.is-current) > .subnav {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
  margin: 0;
  padding: 0 24px;
  background: var(--red);
}

.site-nav:has(.nav-links > li > a.active),
.site-nav:has(.nav-links > li > .subnav a.is-current) {
  padding-bottom: 52px;
}

.nav-links > li > .subnav a {
  display: block;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 16px;
}

.nav-links > li > .subnav a:hover {
  color: #fff;
}

.nav-links > li > .subnav a.is-current {
  color: var(--red);
  background: #fff;
  font-weight: 600;
}

@media (min-width: 901px) {
  .nav-links {
    width: 100%;
    justify-content: center;
    padding-right: 230px;
  }
}

.search {
  position: absolute;
  right: var(--side);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 204px;
  max-width: 40%;
  height: 42px;
  padding: 0 16px 0 18px;
  background: var(--search-bg);
  border-radius: 21px;
}

.search img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

.search input {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  height: 100%;
  font-size: 14px;
  color: var(--text);
}

.search input::placeholder {
  color: #b5b5b5;
}

/* ========== Main ========== */
.main {
  padding-bottom: 64px;
  overflow-x: hidden;
}

/* Hero: quick entries + banner */
.hero {
  display: grid;
  grid-template-columns: minmax(220px, 349px) minmax(0, 1fr);
  column-gap: clamp(10px, 1vw, 19px);
  align-items: stretch;
  min-width: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 0.9vw, 17px);
  min-width: 0;
  width: 100%;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1.5px solid var(--red-line);
  border-radius: clamp(12px, 1vw, 18px);
  background: #fff;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.quick-card img {
  width: clamp(40px, 4.6vw, 88px);
  height: clamp(40px, 4.6vw, 88px);
  object-fit: contain;
  transition: filter 0.2s;
}

.quick-card span {
  font-size: clamp(12px, 1vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quick-card.active,
.quick-card:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.quick-card:hover img {
  filter: brightness(0) invert(1);
}

.quick-card.active img {
  filter: none;
}

.quick-card.active:hover img {
  filter: none;
}

/* Banner carousel */
.banner {
  position: relative;
  min-height: 180px;
  height: 100%;
  border-radius: clamp(12px, 1.1vw, 20px);
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.pager {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.pager-dot.active {
  width: 18px;
  background: #fff;
}

/* Bottom row */
.bottom {
  display: grid;
  grid-template-columns: minmax(220px, 349px) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 1vw, 18px);
  margin-top: clamp(12px, 0.9vw, 16px);
  align-items: stretch;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sys-panel,
.qr-panel {
  border: 1.5px solid var(--red-line);
  border-radius: 20px;
  background: #fff;
}

.sys-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
}

.sys-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 14px;
  background: var(--pink-btn);
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.sys-btn img {
  width: 24px;
  height: 24px;
}

.sys-btn:hover {
  background: #f8dfe0;
}

.sys-btn-primary {
  background: var(--red);
  color: #fff;
}

.sys-btn-primary:hover {
  background: var(--red-deep);
  color: #fff;
}

.qr-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 14px 12px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-item img {
  width: min(132px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-item span {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.02em;
}

/* Pink content panels */
.panel {
  min-width: 0;
  background: var(--pink);
  border-radius: clamp(12px, 1.1vw, 20px);
  padding: 16px 22px 12px;
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 14px;
  border-bottom: 1px solid #f3d4d6;
}

.panel-head h2 {
  margin: 0;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.panel-head .more {
  font-size: 15px;
  color: #e14a52;
  font-weight: 400;
  padding-right: 6px;
}

.panel-head .more:hover {
  opacity: 0.8;
}

/* Notices */
.notice-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6px 0 4px;
}

.notice-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  font-size: 11px;
  text-align: center;
  word-break: break-all;
  position: relative;
}

.date-badge[data-day] {
  color: transparent;
  font-size: 0;
  word-break: normal;
}

.date-badge[data-day]::before,
.date-badge[data-day]::after {
  color: #fff;
  display: block;
  text-align: center;
}

.date-badge[data-day]::before {
  content: attr(data-day);
  font-size: 28px;
  font-weight: 700;
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.05;
}

.date-badge[data-day]::after {
  content: attr(data-ym);
  font-size: 12px;
  font-weight: 400;
  margin-top: 1px;
  opacity: 0.95;
  line-height: 1.1;
}

.notice-body {
  min-width: 0;
  flex: 1;
}

.notice-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-title:hover {
  color: var(--red);
}

.notice-excerpt {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* News */
.news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 4px 0 2px;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.news-list a {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list a:hover {
  color: var(--red);
}

.news-list .emphasis a {
  font-weight: 700;
  color: #2a2a2a;
}

.news-list time {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-date);
  letter-spacing: 0.02em;
}

.pin {
  flex-shrink: 0;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
}

.news-bullet {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: 0 6px 0 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ========== Footer ========== */
.site-footer {
  width: 100%;
  aspect-ratio: 3840 / 126;
  max-height: 63px;
  overflow: hidden;
}

.site-footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========== Responsive ========== */
@media (max-width: 1440px) {
  .nav-links {
    gap: 28px;
  }

  .nav-links > li > a {
    font-size: 16px;
  }

  .quick-card {
    gap: 8px;
  }
}

@media (max-width: 1200px) {
  .nav-inner {
    justify-content: flex-start;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links > li > a {
    font-size: 15px;
  }

  .nav-links > li > a.nav-home,
  .nav-links > li > a.active {
    min-width: 72px;
    padding: 0 16px;
    height: 36px;
    line-height: 36px;
    letter-spacing: 0.12em;
  }

  .search {
    width: 180px;
  }

  .hero {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  }

  .bottom {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) minmax(0, 1fr);
  }

  .sys-btn {
    height: 44px;
    font-size: 14px;
  }

  .notice-title,
  .news-list a {
    font-size: 15px;
  }

  .date-badge {
    width: 56px;
    height: 56px;
  }

  .date-badge::before {
    font-size: 24px;
  }
}

@media (max-width: 900px) {
  .site-header {
    aspect-ratio: auto;
    height: 96px;
    max-height: none;
  }

  .site-header img {
    object-position: left center;
  }

  .site-nav {
    min-height: 60px;
  }

  .nav-inner {
    position: static;
    min-height: 60px;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .site-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-top: none;
    pointer-events: none;
  }

  .nav-links > li > a {
    display: none;
    font-size: 16px;
    padding: 12px 4px;
    border-bottom: 1px solid #f3f3f3;
  }

  .nav-links > li:has(> a.active) > .subnav,
  .nav-links > li:has(> .subnav a.is-current) > .subnav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    justify-content: flex-start;
    margin-top: 8px;
    pointer-events: auto;
  }

  .site-nav.is-open .nav-links > li > .subnav {
    display: none;
  }

  .site-nav.is-open .nav-links {
    padding: 8px var(--side) 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f0f0f0;
    pointer-events: auto;
    z-index: 40;
  }

  .site-nav.is-open .nav-links > li > a {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links > li > a.nav-home,
  .nav-links > li > a.active {
    width: 100%;
    min-width: 0;
    margin: 4px 0 8px;
    border-radius: 8px;
  }

  .search {
    position: static;
    transform: none;
    order: 2;
    width: min(200px, 58%);
    max-width: none;
    height: 38px;
    margin-left: auto;
  }

  .main {
    padding-bottom: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .quick-grid {
    order: 2;
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .quick-card {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    gap: 6px;
  }

  .quick-card img {
    width: clamp(32px, 8vw, 56px);
    height: clamp(32px, 8vw, 56px);
  }

  .quick-card span {
    font-size: clamp(11px, 2.6vw, 14px);
  }

  .banner {
    order: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 6;
    border-radius: 16px;
  }

  .bottom {
    grid-template-columns: 1fr;
  }

  .bottom-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sys-panel {
    padding: 16px 14px;
    gap: 10px;
  }

  .qr-panel {
    padding: 14px 10px;
    gap: 12px;
  }

  .qr-item img {
    width: min(110px, 38vw);
  }

  .qr-item span {
    font-size: 13px;
  }

  .panel {
    min-height: 0;
    padding: 14px 16px 10px;
  }

  .notice-list,
  .news-list {
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 0 8px;
  }

  .site-footer {
    aspect-ratio: auto;
    height: 48px;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    height: 72px;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
  }

  .quick-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .quick-card {
    aspect-ratio: auto;
    height: 112px;
    padding: 12px 6px 10px;
    min-width: 0;
    letter-spacing: 0;
  }

  .quick-card img {
    width: 44px;
    height: 44px;
  }

  .quick-card span {
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .banner {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .bottom-left {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    min-height: 180px;
  }

  .qr-item img {
    width: 112px;
  }

  .news-list time {
    font-size: 12px;
  }

  .notice-excerpt {
    display: none;
  }

  .notice-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .date-badge {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .date-badge::before {
    font-size: 20px;
  }

  .date-badge::after {
    font-size: 10px;
  }

  .sys-btn {
    height: 44px;
  }

  .search {
    width: 160px;
    min-width: 160px;
    max-width: none;
    height: 36px;
    flex-shrink: 0;
    padding: 0 12px;
  }
}

@media (max-width: 380px) {
  .nav-links > li > a {
    font-size: 15px;
  }

  .panel-head h2 {
    font-size: 14px;
    padding: 6px 12px;
  }
}

