/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: #f0f4f8;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============ Top Banner ============ */
.top-banner {
  background: url('../images/banner.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 82, 118, 0.3);
}
.banner-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.banner-content h1 {
  font-size: 42px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-style: italic;
}
.banner-content .subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  letter-spacing: 2px;
}
.banner-school {
  position: absolute;
  top: 12px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ============ Navigation ============ */
.main-nav {
  background: linear-gradient(180deg, #2471a3 0%, #1a5276 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.main-nav li a {
  display: block;
  padding: 12px 22px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.25s;
  position: relative;
}
.main-nav li a:hover,
.main-nav li a.active {
  background: rgba(255,255,255,0.15);
}
.main-nav li a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px;
  background: #f1c40f;
  border-radius: 2px;
}

/* ============ Container & Layout ============ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  flex: 1;
}
.section-title {
  font-size: 18px;
  color: #1a5276;
  border-left: 4px solid #2980b9;
  padding-left: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ============ Homepage Grid ============ */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.col-wide { grid-column: span 2; }

/* ============ Card Styles ============ */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.card-header {
  background: linear-gradient(135deg, #2471a3, #2980b9);
  color: #fff;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header a.more-link {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 400;
}
.card-header a.more-link:hover { color: #fff; }
.card-body { padding: 14px 16px; }

/* ============ News List (Homepage) ============ */
.news-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.news-list li:last-child { border-bottom: none; }
.news-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: #2980b9;
  border-radius: 50%;
  flex-shrink: 0;
}
.news-list li a:hover { color: #2980b9; }
.news-list .source {
  color: #2980b9;
  font-size: 12px;
  flex-shrink: 0;
}
.news-list .date {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
}

/* ============ Photo Grid ============ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.photo-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e8e8;
  cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
}

/* ============ Activity List ============ */
.activity-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 14px;
}
.activity-list li:last-child { border-bottom: none; }
.activity-list li::before {
  content: '●';
  color: #2980b9;
  margin-right: 8px;
  font-size: 10px;
}
.activity-list li a:hover { color: #2980b9; }

/* ============ Exam Schedule ============ */
.exam-item {
  background: #f8fbff;
  border: 1px solid #e0eaf5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
}
.exam-item:last-child { margin-bottom: 0; }
.exam-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a5276;
  margin-bottom: 8px;
}
.exam-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.exam-info span {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* ============ Star Cards ============ */
.star-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.star-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.star-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.star-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 16px auto 8px;
  background: linear-gradient(135deg, #2980b9, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  font-weight: 700;
}
.star-card h3 {
  font-size: 15px;
  margin: 8px 0 4px;
  color: #1a5276;
}
.star-card .role {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.star-card .awards {
  font-size: 12px;
  color: #e67e22;
  padding: 0 12px 14px;
}
.star-card .awards span {
  display: inline-block;
  background: #fef5e7;
  border: 1px solid #f0d9a0;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 11px;
}

/* ============ Message Form ============ */
.message-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #2980b9;
  box-shadow: 0 0 0 2px rgba(41,128,185,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }

/* ============ Message List ============ */
.message-list { margin-top: 24px; }
.message-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.message-item .msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.message-item .msg-name {
  font-weight: 600;
  color: #1a5276;
}
.message-item .msg-time {
  font-size: 12px;
  color: #999;
}
.message-item .msg-content {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ============ Detail Page ============ */
.detail-header {
  text-align: center;
  padding: 30px 0 20px;
}
.detail-header h1 {
  font-size: 24px;
  color: #1a5276;
  margin-bottom: 8px;
}
.detail-meta {
  font-size: 13px;
  color: #999;
}
.detail-body {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 30px;
  margin: 16px 0;
  line-height: 1.9;
  font-size: 15px;
  color: #444;
}
.detail-body p { margin-bottom: 16px; }
.detail-body img {
  border-radius: 6px;
  margin: 16px 0;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2980b9;
  font-size: 14px;
  margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }

/* ============ Page Header ============ */
.page-header {
  background: linear-gradient(135deg, #1a5276, #2980b9);
  color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin: -20px -20px 20px;
}
.page-header h1 {
  font-size: 26px;
  letter-spacing: 3px;
}
.page-header p {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

/* ============ List Page ============ */
.list-page { max-width: 900px; margin: 0 auto; }
.list-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.list-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.list-item h3 {
  font-size: 16px;
  color: #1a5276;
  margin-bottom: 4px;
}
.list-item p {
  font-size: 13px;
  color: #888;
}
.list-item .item-date {
  color: #aaa;
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* ============ News Items ============ */
.news-item {
  padding: 18px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.news-item:hover {
  background: #f8f8f8;
}
.news-item:last-child { border-bottom: none; }
.news-arrow {
  color: #999;
  font-size: 14px;
  flex-shrink: 0;
}
.news-title {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.news-date {
  color: #bbb;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============ Footer ============ */
.footer {
  background: #1a5276;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: 30px;
}

/* ============ Placeholder Images ============ */
.placeholder-img {
  background: linear-gradient(135deg, #d5e8f0, #a8c8dc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a8fa8;
  font-size: 13px;
}

/* ============ Lightbox ============ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox-caption {
  color: #fff;
  font-size: 16px;
  margin-top: 16px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}
.lightbox-close:hover {
  color: #f1c40f;
  transform: scale(1.1);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  padding: 20px;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #f1c40f;
  transform: translateY(-50%) scale(1.1);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .col-wide { grid-column: span 1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .star-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav li a { padding: 10px 14px; font-size: 13px; }
  .banner-content h1 { font-size: 28px; }
  .container { padding: 15px; }
  .lightbox-prev,
  .lightbox-next {
    font-size: 28px;
    padding: 10px;
  }
  .lightbox-close {
    font-size: 32px;
    top: 10px;
    right: 15px;
  }
}
