html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f7f9fc;
  color: #1f2d3d;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: #0b5ed7;
}

header {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: white;
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo h1 {
  margin: 0;
  font-size: 28px;
}

.logo p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.95;
}

nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.25s;
  font-size: 15px;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  padding: 64px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 16px;
  color: #0d47a1;
  line-height: 1.25;
}

.hero p {
  font-size: 18px;
  color: #445;
  max-width: 850px;
}

.home-visual {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  padding: 30px;
  color: white;
  box-shadow: 0 18px 40px rgba(13, 71, 161, 0.18);
  background:
    linear-gradient(135deg, rgba(13, 71, 161, 0.94), rgba(25, 118, 210, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-visual::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -58px;
  top: -58px;
  border: 42px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.home-visual::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: -64px;
  bottom: -64px;
  border: 34px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.visual-title,
.focus-grid,
.feature-panel {
  position: relative;
  z-index: 1;
}

.visual-title span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-title h3 {
  margin: 0;
  max-width: 360px;
  font-size: 28px;
  line-height: 1.35;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.focus-grid span {
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  font-size: 15px;
}

.feature-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feature-panel p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15.5px;
  line-height: 1.8;
}

.section {
  padding: 48px 0;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 22px;
}

.card h3 {
  margin-top: 0;
  color: #0d47a1;
}

.news-card {
  background: white;
  border-radius: 8px;
  padding: 30px 34px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading span {
  display: block;
  color: #0d47a1;
  font-size: 15px;
  font-weight: bold;
}

.section-heading h3 {
  margin: 2px 0 0;
  color: #1f2d3d;
  font-size: 26px;
}

.news-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #e8eef5;
}

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

.news-date {
  color: #0d47a1;
  font-weight: bold;
}

.news-text {
  color: #334;
}

.news-item strong {
  color: #c62828;
  white-space: nowrap;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tag {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin: 4px 8px 4px 0;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.button {
  display: inline-block;
  background: #1976d2;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  margin-top: 10px;
  transition: 0.25s;
}

.button:hover {
  background: #0d47a1;
}

.footer {
  background: #0d1b2a;
  color: #dce6f2;
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
}

.notice {
  background: #fff8e1;
  border-left: 5px solid #ffb300;
  padding: 16px;
  border-radius: 10px;
}

.timeline-item {
  padding: 14px 0;
  border-bottom: 1px solid #e8eef5;
}

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

.small {
  color: #667;
  font-size: 14px;
}

.student-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.student-card h3 {
  margin-top: 0;
  color: #0d47a1;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: bold;
}

.highlight {
  color: #d32f2f;
  font-weight: bold;

}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 32px;
  }

  .home-visual {
    min-height: auto;
  }

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

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.professor-profile {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.professor-photo img {
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: block;
}

.professor-info {
  flex: 1;
  min-width: 260px;
}

/* ── Student grid ── */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.stu-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.stu-photo-wrap {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
}

.stu-photo-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.stu-info {
  padding: 16px 20px 20px;
  flex: 1;
}

.stu-name {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0d47a1;
}

.stu-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
}

.badge-master {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-undergrad {
  background: #fff3e0;
  color: #e65100;
}

.stu-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
  font-size: 13.5px;
  color: #334;
}

.stu-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f4fa;
  margin-bottom: 0;
  line-height: 1.5;
}

.stu-list li:last-child {
  border-bottom: none;
}
