﻿:root {
  --color-primary: #0068b7;
  --color-primary-deep: #00589d;
  --color-primary-dark: #003f73;
  --color-primary-soft: #d8ebfa;
  --color-primary-pale: #eef6fd;
  --color-ink: #18344d;
  --color-muted: #59738b;
  --color-line: #d4e4f2;
  --color-surface: #ffffff;
  --color-surface-soft: #f6fbff;
  --color-bg: #edf5fb;
  --shadow-soft: 0 18px 38px rgba(0, 54, 95, 0.08);
  --shadow-card: 0 24px 48px rgba(0, 54, 95, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-title: "STSong", "Songti SC", "SimSun", "Noto Serif SC", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(0, 104, 183, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, var(--color-bg) 100%);
}

body.home-page {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-section {
  position: relative;
  padding: 5rem 0;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.home-section-head h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font: 700 clamp(1.9rem, 2.6vw, 2.5rem) / 1.15 var(--font-title);
  letter-spacing: 0.04em;
}

.home-section-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-section-more::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-section-more:hover,
.home-section-more:focus-visible {
  color: var(--color-primary-deep);
  transform: translateX(2px);
}

.home-dual-section {
  overflow: hidden;
}

.home-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.home-news-section .home-section-head,
.home-notice-section .home-section-head,
.home-academic-section .home-section-head,
.home-student-section .home-section-head,
.home-links-section .home-section-head {
  position: relative;
  align-items: center;
  margin-bottom: 2.2rem;
}

.home-news-section .home-section-head h2,
.home-notice-section .home-section-head h2,
.home-academic-section .home-section-head h2,
.home-student-section .home-section-head h2,
.home-links-section .home-section-head h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.home-news-section .home-section-head h2::before,
.home-news-section .home-section-head h2::after,
.home-notice-section .home-section-head h2::before,
.home-notice-section .home-section-head h2::after,
.home-academic-section .home-section-head h2::before,
.home-academic-section .home-section-head h2::after,
.home-student-section .home-section-head h2::before,
.home-student-section .home-section-head h2::after,
.home-links-section .home-section-head h2::before,
.home-links-section .home-section-head h2::after {
  content: "";
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 104, 183, 0.7), transparent);
}

.home-text-list,
.home-notice-list,
.home-student-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767.98px) {
  .container {
    width: min(1180px, calc(100% - 24px));
  }

  .home-section {
    padding: 4rem 0;
  }

  .home-dual-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .home-news-section .home-section-head h2,
  .home-notice-section .home-section-head h2,
  .home-academic-section .home-section-head h2,
  .home-student-section .home-section-head h2,
  .home-links-section .home-section-head h2 {
    gap: 0.7rem;
  }

  .home-news-section .home-section-head h2::before,
  .home-news-section .home-section-head h2::after,
  .home-notice-section .home-section-head h2::before,
  .home-notice-section .home-section-head h2::after,
  .home-academic-section .home-section-head h2::before,
  .home-academic-section .home-section-head h2::after,
  .home-student-section .home-section-head h2::before,
  .home-student-section .home-section-head h2::after,
  .home-links-section .home-section-head h2::before,
  .home-links-section .home-section-head h2::after {
    width: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}