:root {
  color-scheme: light;
  --bg: #0e0709;
  --bg-alt: #1a0f12;
  --accent: #b12d2d;
  --accent-bright: #e7b154;
  --text: #f6f0e6;
  --muted: #d7c9b0;
  --card: rgba(20, 12, 14, 0.9);
  --border: rgba(241, 200, 111, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #3a1a1f 0%, #0e0709 45%, #0b0607 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 6, 8, 0.75);
  border-bottom: 1px solid rgba(231, 177, 84, 0.12);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.brand-mark {
  background: linear-gradient(140deg, #f1c86f, #c0392b);
  color: #1a0f12;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.brand-text span {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-bright);
}

.nav-cta {
  border: 1px solid rgba(231, 177, 84, 0.4);
  background: transparent;
  color: var(--accent-bright);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: rgba(231, 177, 84, 0.1);
}

.hero {
  position: relative;
  padding: 120px 24px 90px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 7, 9, 0.9) 30%, rgba(26, 15, 18, 0.8) 70%),
    url("assets/xjtu_main_gate.jpg") center/cover no-repeat;
  opacity: 0.35;
  filter: saturate(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% 50% auto -20%;
  height: 420px;
  background: radial-gradient(circle, rgba(231, 177, 84, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.hero-kicker {
  color: var(--accent-bright);
  letter-spacing: 4px;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  display: block;
  color: var(--accent-bright);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.primary,
.ghost {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary {
  background: linear-gradient(120deg, #e7b154, #c0392b);
  border: none;
  color: #1a0f12;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(231, 177, 84, 0.3);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(231, 177, 84, 0.45);
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(241, 200, 111, 0.3);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.hero-highlights h3 {
  font-size: 22px;
  color: var(--accent-bright);
}

.hero-highlights p {
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  background: var(--card);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-header span {
  color: var(--accent-bright);
  font-size: 12px;
  letter-spacing: 3px;
}

.card-header h2 {
  font-size: 20px;
  margin-top: 12px;
}

.card-body {
  display: grid;
  gap: 12px;
}

.card-info p {
  color: var(--muted);
  font-size: 12px;
}

.card-info strong {
  font-size: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(241, 200, 111, 0.08);
  padding: 12px;
  border-radius: 16px;
}

.card-footer img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.section {
  padding: 90px 24px;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header p {
  color: var(--accent-bright);
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.history {
  background: linear-gradient(180deg, rgba(26, 15, 18, 0.7), rgba(10, 6, 8, 0.95));
}

.history-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.history-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.history-quote {
  background: rgba(231, 177, 84, 0.1);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(231, 177, 84, 0.2);
}

.history-quote span {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 18px;
}

.history-quote small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.history-media {
  text-align: center;
}

.media-caption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(15, 9, 12, 0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.timeline-year {
  font-size: 20px;
  color: var(--accent-bright);
  font-weight: 700;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 14px;
}

.campus {
  background: linear-gradient(180deg, rgba(10, 6, 8, 0.95), rgba(26, 15, 18, 0.8));
}

.campus-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.campus-map {
  background: rgba(15, 9, 12, 0.8);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
}

.campus-map p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 14px;
}

.campus-photos {
  display: grid;
  gap: 16px;
}

.contact {
  background: linear-gradient(180deg, rgba(26, 15, 18, 0.85), rgba(14, 7, 9, 0.95));
}

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: rgba(15, 9, 12, 0.8);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.footer {
  padding: 40px 24px 60px;
  border-top: 1px solid rgba(231, 177, 84, 0.2);
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
}

.footer h3 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-meta ul {
  list-style: none;
  font-size: 12px;
  display: grid;
  gap: 8px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
