/* ============================================
   重庆复旦中学官方网站 - 主样式表 (V2)
   风格：正式 | 庄重 | 学术 | 无emoji
   ============================================ */

:root {
  --fudan-red: #8B1A2B;
  --fudan-red-light: #A51C30;
  --fudan-red-dark: #6B0F1E;
  --gold: #B8963E;
  --gold-light: #C9AA5A;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --bg-warm: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-gray: #F2F0EC;
  --border-color: #E0DBD2;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --max-width: 1200px;
  --nav-height: 72px;
  --font-serif: "Noto Serif SC", "STSong", "SimSun", "Songti SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-warm);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

/* ========== 滚动入场动画系统 ========== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fudan-red);
  letter-spacing: 2px;
  line-height: 1.2;
}

.navbar-logo-subtitle {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  background: var(--fudan-red);
  transition: transform 0.25s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--fudan-red);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 轮播区 ========== */
.hero {
  margin-top: var(--nav-height);
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  letter-spacing: 8px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.3;
}

.hero-slogan-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--fudan-red);
  border-color: var(--fudan-red);
  transform: scale(1.3);
}

.hero-arrows {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: var(--fudan-red);
  border-color: var(--fudan-red);
}

/* ========== 通用区块 ========== */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fudan-red);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-divider-icon {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ========== 学校简介 ========== */
.intro {
  background: var(--bg-white);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.intro-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.intro-image-wrapper:hover img {
  transform: scale(1.04);
}

.intro-image-border {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.5;
  pointer-events: none;
}

.intro-text h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--fudan-red);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.intro-text p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 2;
  text-align: justify;
}

.highlight {
  color: var(--fudan-red);
  font-weight: 600;
}

.intro-text blockquote {
  margin-top: 24px;
  padding: 16px 24px;
  border-left: 3px solid var(--gold);
  background: var(--bg-warm);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--fudan-red-dark);
  letter-spacing: 1px;
  line-height: 1.8;
}

/* ========== 数字亮点 ========== */
.stats {
  background: var(--fudan-red);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.stats .section-title {
  color: #FFFFFF;
}

.stats .section-divider::before,
.stats .section-divider::after {
  background: var(--gold-light);
}

.stats .section-divider-icon {
  background: var(--gold-light);
}

.stats .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 36px 16px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.stat-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 1px;
  line-height: 1.5;
}

/* ========== 新闻 & 公告 ========== */
.news-section {
  background: var(--bg-warm);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.news-column,
.notice-column {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.column-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--fudan-red);
  letter-spacing: 2px;
}

.column-more {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.column-more:hover {
  color: var(--fudan-red);
}

.news-list-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-color);
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover {
  padding-left: 10px;
}

.news-list-item h4 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.news-list-item:hover h4 {
  color: var(--fudan-red);
}

.news-list-item .news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-list-item .news-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 6px;
}

.notice-list-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.notice-list-item:last-child {
  border-bottom: none;
}

.notice-list-item:hover {
  padding-left: 8px;
}

.notice-dot {
  width: 6px;
  height: 6px;
  background: var(--fudan-red);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.notice-list-item .notice-content {
  flex: 1;
}

.notice-list-item h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.notice-list-item:hover h4 {
  color: var(--fudan-red);
}

.notice-list-item .notice-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ========== 招生快讯 ========== */
.admission {
  background: linear-gradient(135deg, var(--fudan-red-dark) 0%, var(--fudan-red) 100%);
  position: relative;
  overflow: hidden;
}

.admission::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.admission::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.admission-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.admission-text {
  flex: 1;
}

.admission-text h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #FFFFFF;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.admission-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  letter-spacing: 1px;
}

.admission-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.admission-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== 页脚 ========== */
.footer {
  background: #1C1C1C;
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.83rem;
  line-height: 2;
}

.footer-links h5 {
  font-size: 0.9rem;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
}

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fudan-red);
  color: #FFF;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--fudan-red-light);
  transform: translateY(-2px);
}

/* ========== 内页横幅 ========== */
.page-banner {
  margin-top: var(--nav-height);
  height: 240px;
  background: linear-gradient(135deg, var(--fudan-red-dark) 0%, var(--fudan-red) 60%, var(--fudan-red-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-banner-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 8px;
  margin-bottom: 10px;
}

.page-banner-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--fudan-red);
}

.breadcrumb span {
  margin: 0 5px;
}

.breadcrumb .current {
  color: var(--fudan-red);
}

/* ========== 基本信息表 ========== */
.basic-info {
  background: var(--bg-white);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 14px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  vertical-align: top;
}

.info-table td:first-child {
  width: 130px;
  font-weight: 600;
  color: var(--fudan-red);
  white-space: nowrap;
  padding-right: 20px;
}

/* ========== 时间线 ========== */
.history {
  background: var(--bg-white);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--fudan-red));
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--bg-white);
  border: 3px solid var(--fudan-red);
  border-radius: 50%;
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fudan-red);
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== 办学理念 ========== */
.philosophy {
  background: var(--bg-warm);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.philosophy-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--fudan-red);
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.philosophy-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--fudan-red);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--fudan-red);
  margin-bottom: 16px;
}

.philosophy-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--fudan-red);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.philosophy-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== 学校荣誉 ========== */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.honor-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.honor-item:hover {
  background: var(--bg-white);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.honor-marker {
  width: 8px;
  height: 8px;
  background: var(--fudan-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.honor-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========== 师资力量 ========== */
.faculty-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.faculty-stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faculty-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.faculty-stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fudan-red);
  line-height: 1;
  margin-bottom: 8px;
}

.faculty-stat-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.faculty-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ========== 校友 ========== */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.alumni-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.alumni-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fudan-red-dark), var(--fudan-red));
  color: #FFF;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.alumni-card h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.alumni-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== 新闻公告列表页 ========== */
.page-content {
  background: var(--bg-white);
  min-height: 60vh;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card:hover {
  padding-left: 14px;
}

.article-card:hover .article-title {
  color: var(--fudan-red);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.article-meta .category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-warm);
  color: var(--fudan-red);
  font-size: 0.76rem;
  border-radius: 2px;
}

.article-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-more {
  font-size: 0.81rem;
  color: var(--fudan-red);
  white-space: nowrap;
  align-self: center;
  transition: letter-spacing 0.3s ease;
}

.article-card:hover .article-more {
  letter-spacing: 2px;
}

.article-thumb {
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--bg-warm);
  color: var(--fudan-red);
}

.pagination .active {
  background: var(--fudan-red);
  color: #FFF;
}

/* ========== 招生专栏 ========== */
.admission-banner {
  background: linear-gradient(135deg, var(--fudan-red-dark) 0%, var(--fudan-red) 100%);
  padding: 40px 24px;
}

.admission-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.admission-banner-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #FFFFFF;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.admission-banner-inner p.sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.anchor-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.anchor-nav a {
  padding: 8px 20px;
  background: var(--bg-warm);
  border-radius: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.anchor-nav a:hover {
  background: var(--fudan-red);
  color: #FFF;
}

.overview-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.plan-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.plan-table th,
.plan-table td {
  padding: 14px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.plan-table th {
  background: var(--fudan-red);
  color: #FFF;
  font-weight: 600;
  letter-spacing: 1px;
}

.plan-table tbody tr:nth-child(even) {
  background: var(--bg-warm);
}

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

.plan-note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.campus-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--fudan-red);
  transition: all 0.3s ease;
}

.campus-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.campus-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fudan-red);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.campus-card ul {
  list-style: none;
}

.campus-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-bottom: 1px dashed var(--border-color);
}

.campus-card li:last-child {
  border-bottom: none;
}

.campus-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.campus-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-warm);
  color: var(--fudan-red);
  font-size: 0.78rem;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.advantage-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.advantage-card-num {
  width: 40px;
  height: 40px;
  background: var(--fudan-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.advantage-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--fudan-red);
  letter-spacing: 1px;
}

.advantage-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-card h5 {
  font-size: 0.92rem;
  color: var(--fudan-red);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.download-list {
  max-width: 600px;
  margin: 0 auto;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.download-item:hover {
  background: #FDF5EA;
}

.download-item .dl-name {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.download-item .dl-type {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.download-item .dl-btn {
  padding: 6px 18px;
  background: var(--fudan-red);
  color: #FFF;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
  transition: all 0.3s ease;
}

.download-item .dl-btn:hover {
  background: var(--fudan-red-light);
}

/* ========== 校园风光 ========== */
.gallery-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 48px;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 8px 22px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-tab.active,
.gallery-tab:hover {
  background: var(--fudan-red);
  color: #FFF;
  border-color: var(--fudan-red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: #FFF;
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 联系我们 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-campus-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--fudan-red);
  transition: all 0.3s ease;
}

.contact-campus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-campus-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fudan-red);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.contact-campus-card .campus-addr {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-campus-card .campus-info {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 2;
}

.contact-campus-card .campus-info strong {
  color: var(--fudan-red);
  font-weight: 600;
}

.transport-list {
  max-width: 700px;
  margin: 0 auto;
}

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.transport-label {
  width: 72px;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--fudan-red);
  font-weight: 600;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.transport-text h5 {
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.transport-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.message-guide {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.message-guide h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fudan-red);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.message-guide p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 20px;
}

.message-guide .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--fudan-red);
  color: var(--fudan-red);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.message-guide .btn-outline:hover {
  background: var(--fudan-red);
  color: #FFF;
}

.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.qr-card {
  text-align: center;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 1px solid var(--border-color);
}

.qr-placeholder span {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.qr-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ========== 新闻详情页 ========== */
.news-detail {
  background: var(--bg-white);
}

.news-detail-header {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.news-detail-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.news-detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-detail-meta span {
  margin: 0 8px;
}

.news-detail-meta .nd-category {
  color: var(--fudan-red);
  font-weight: 600;
}

.news-detail-featured {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 36px;
}

.news-detail-featured img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.news-detail-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2.1;
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.news-detail-body .lead {
  font-size: 1.05rem;
  color: var(--text-primary);
  text-indent: 0;
  font-weight: 500;
}

.news-detail-back {
  text-align: center;
  padding: 32px 0;
}

.news-detail-back a {
  color: var(--fudan-red);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.news-detail-back a:hover {
  letter-spacing: 3px;
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 1.3rem;
  }

  .news-detail-body {
    font-size: 0.9rem;
  }

  .news-detail-featured img {
    max-height: 280px;
  }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
  }

  .hero {
    height: 420px;
  }

  .hero-slogan {
    font-size: 2rem;
    letter-spacing: 5px;
  }

  .hero-slogan-sub {
    font-size: 0.95rem;
    letter-spacing: 4px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-image-wrapper {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 60px 24px;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner-title {
    font-size: 2rem;
    letter-spacing: 6px;
  }

  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.35s ease;
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }

  .navbar-links a::after {
    display: none;
  }

  .hero {
    height: 300px;
  }

  .hero-slogan {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .hero-slogan-sub {
    font-size: 0.82rem;
    letter-spacing: 3px;
  }

  .hero-arrows {
    padding: 0 10px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-dots {
    bottom: 20px;
    gap: 8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .intro-content {
    gap: 32px;
  }

  .intro-image-wrapper {
    aspect-ratio: 3 / 2;
  }

  .intro-image-border {
    display: none;
  }

  .intro-text h3 {
    font-size: 1.2rem;
  }

  .intro-text p {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 24px 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .news-grid {
    gap: 24px;
  }

  .news-column,
  .notice-column {
    padding: 24px 20px;
  }

  .admission-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .admission-text h3 {
    font-size: 1.3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .page-banner {
    height: 160px;
  }

  .page-banner-title {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .page-banner-sub {
    font-size: 0.82rem;
    letter-spacing: 2px;
  }

  .info-table td:first-child {
    width: 100px;
    font-size: 0.84rem;
  }

  .info-table td {
    font-size: 0.84rem;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -25px;
    width: 14px;
    height: 14px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .philosophy-card {
    padding: 24px 16px;
  }

  .honors-grid {
    grid-template-columns: 1fr;
  }

  .faculty-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .alumni-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-thumb {
    width: 100%;
    height: 160px;
    order: -1;
  }

  .article-more {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    aspect-ratio: 3 / 2;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .campus-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .plan-table th,
  .plan-table td {
    padding: 10px 12px;
    font-size: 0.81rem;
  }

  .qr-section {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 240px;
  }

  .hero-slogan {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .hero-slogan-sub {
    font-size: 0.72rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .page-banner {
    height: 140px;
  }

  .page-banner-title {
    font-size: 1.25rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .faculty-stats {
    grid-template-columns: 1fr 1fr;
  }

  .alumni-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    height: 130px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .message-guide {
    padding: 24px 18px;
  }
}