/* ============ Banner 轮播 ============ */
.banner {
  position: relative;
  width: 100%;
  height: 54rem;
  overflow: hidden;
  background: #ccc;
}

.banner .slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.banner .slide {
  min-width: 100%;
  height: 100%;
}

.banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner .dots {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.banner .dots span {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.banner .dots span.active {
  background: #8a1c0e;
}

/* ============ 通用标题 ============ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.8rem;
}

.section-head h2 {
  font-size: 4rem;
  font-weight: bold;
  color: #8a1c0e;
  letter-spacing: 0.2rem;
}

.more-btn {
  border: 1px solid #8a1c0e;
  color: #8a1c0e;
  font-size: 1.3rem;
  padding: 0.4rem 1.4rem;
  border-radius: 0.3rem;
  transition: all 0.25s;
}

.more-btn:hover {
  background: #8a1c0e;
  color: #fff;
}

/* ============ 教务动态 ============ */
.news-section {
  padding: 5.6rem 0 4rem;
}

.news-content {
  display: flex;
  gap: 2.8rem;
}

/* 左侧大图卡片 */
.news-feature {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.news-feature .feature-img {
  width: 100%;
  height: 43rem;
  object-fit: cover;
}

.news-feature .feature-slide img {
  width: 100%;
  height: 43rem;
  -o-object-fit: cover;
  object-fit: cover;
}

.news-feature .feature-caption {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.08);
}

.feature-caption .date-block {
  background: #8a1c0e;
  color: #fff;
  text-align: center;
  padding: 1.6rem 1.8rem;
  flex-shrink: 0;
}

.feature-caption .date-block .day {
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1;
}

.feature-caption .date-block .ym {
  font-size: 1.2rem;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.feature-caption .caption-title {
  padding: 0 2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-dots {
  position: absolute;
  bottom: 9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.feature-dots span {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.3s;
}

.feature-dots span.active {
  background: #8a1c0e;
}

/* 右侧列表 */
.news-list {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 0.4rem rgba(0, 0, 0, 0.04);
  padding: 1.4rem 1.8rem;
  transition: all 0.25s;
  cursor: pointer;
}

.news-item:hover {
  box-shadow: 0 0.4rem 1.4rem rgba(138, 28, 14, 0.18);
  transform: translateX(0.4rem);
}

.news-item .date-block {
  text-align: center;
  flex-shrink: 0;
  color: #8a1c0e;
}

.news-item .date-block .day {
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1;
}

.news-item .date-block .ym {
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

.news-item .item-text {
  overflow: hidden;
}

.news-item .item-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.news-item:hover .item-title {
  color: #8a1c0e;
}

.news-item .item-desc {
  font-size: 1.3rem;
  color: #888;
  margin-top: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 快捷入口按钮 ============ */
.quick-links {
  padding: 1rem 0 5.6rem;
}

.quick-links .links-row {
  display: flex;
  gap: 2.2rem;
}

.quick-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  height: 8rem;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  border-radius: 0.4rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.quick-link:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.2);
}

.quick-link .icon {
  font-size: 2.4rem;
}

.links-row .n-1 {
  background: #c0392b;
}

.links-row .n-2 {
  background: #e2a31a;
}

.links-row .n-3 {
  background: #2a9d8f;
}

.links-row .n-4 {
  background: #5a8fb5;
}

.links-row .n-5 {
  background: #2e8b3d;
}

/* ============ 规章制度（红色纹理区） ============ */
.rules-section {
  background-color: #8a1c0e;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.04) 75%, transparent 75%, transparent);
  background-size: 6rem 6rem;
  padding: 5rem 0 5.6rem;
}

.rules-section .section-head h2 {
  color: #fff;
}

.rules-section .more-btn {
  border-color: #fff;
  color: #fff;
}

.rules-section .more-btn:hover {
  background: #fff;
  color: #8a1c0e;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.rule-card {
  background: #fff;
  padding: 2.6rem 2.2rem 6rem;
  min-height: 18rem;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.rule-card:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.25);
}

.rule-card .rule-date {
  font-size: 1.4rem;
  color: #888;
  margin-bottom: 2.2rem;
}

.rule-card .rule-title {
  font-size: 1.8rem;
  color: #333;
  font-weight: bold;
  line-height: 1.7;
  transition: color 0.2s;
}

.rule-card:hover .rule-title {
  color: #8a1c0e;
}

/* ============ 质量工程 / 教学科研 ============ */
.two-col-section {
  padding: 5.6rem 0;
}

.two-col {
  display: flex;
  gap: 6rem;
}

.col {
  flex: 1;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.doc-card {
  background: #f7f7f7;
  border-top: 3px solid #8a1c0e;
  padding: 1.8rem 1.8rem 2.2rem;
  transition: all 0.25s;
  cursor: pointer;
}

.doc-card:hover {
  background: #fff;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.3rem);
}

.doc-card .doc-date {
  font-size: 1.4rem;
  color: #888;
  margin-bottom: 1.2rem;
}

.doc-card .doc-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  line-height: 1.7;
  transition: color 0.2s;
}

.doc-card:hover .doc-title {
  color: #8a1c0e;
}

/* ============ 友情链接 ============ */
.friend-section {
  padding: 0 0 5.6rem;
}

.friend-grid {
  display: flex;
  gap: 2.8rem;
}

.friend-grid a {
  flex: 1;
    max-width: max-content;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.25s, transform 0.25s;
}

.friend-grid a:hover {
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.15);
  transform: translateY(-0.3rem);
}

.friend-grid img {
    width: auto;
    height: 8rem;
    object-fit: cover;
}

/* ============ 首页响应式 ============ */
@media (max-width: 1024px) {
  .banner { height: 38rem; }
  .news-feature .feature-img { height: 32rem; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links .links-row { flex-wrap: wrap; }
  .quick-link { flex: 1 1 40%; }
}

@media (max-width: 768px) {
  .news-content { flex-direction: column; }
  .news-feature, .news-list { width: 100%; }
  .news-feature .feature-img { height: 24rem; }
  .news-list { gap: 1.2rem; }
  .two-col { flex-direction: column; gap: 4rem; }
  .friend-grid { flex-direction: column; }
  .friend-grid a { max-width: 100%; }
  .section-head h2 { font-size: 2.2rem; }
  .banner { height: 24rem; }
}

@media (max-width: 480px) {
  .rules-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .quick-link { flex: 1 1 100%; }
  .banner { height: 18rem; }
}