:root {
  --ink: #1c2148;
  --muted: #3d4570;
  --nav: #4a5bbf;
  --nav-deep: #3c4ca8;
  --lilac: #9999ff;
  --paper: #f7f7fd;
  --gold: #ffcc33;
  --line: #d5d8f2;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: #2a3d9f; }
a:hover { color: #1a2780; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav);
  box-shadow: 0 2px 10px rgba(40, 48, 110, 0.18);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 0 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 108px;
  height: auto;
  display: block;
  background: #fff;
}
.brand-title {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 26px 16px;
  font-weight: 600;
  font-size: 16px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:focus-within > a,
.main-nav > ul > li.is-active > a {
  background: rgba(255, 255, 255, 0.12);
}
.main-nav > ul > li.is-active > a {
  box-shadow: inset 0 -3px 0 var(--gold);
}
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  opacity: 0.85;
}
.main-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 6px 0;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(36, 42, 100, 0.16);
  flex-direction: column;
  z-index: 50;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: flex; }
.main-nav li ul a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.main-nav li ul a:hover,
.main-nav li ul a:focus,
.main-nav li ul a[aria-current="page"] {
  background: #eceeff;
  color: var(--nav-deep);
}

.hero {
  background: linear-gradient(180deg, #d9def8 0%, #c9d0f6 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}
.hero-banner {
  display: block;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(48, 56, 120, 0.12);
}
.hero-note {
  margin: 18px 0 0;
  background: #fff;
  border-left: 4px solid var(--lilac);
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(48, 56, 120, 0.08);
}
.hero-note a { font-weight: 650; }
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  background: #c23b3b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
}
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 28px 28px;
}
.panel h2 {
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nav);
  color: #241a6e;
  font-size: 26px;
  font-weight: 650;
}
.panel h3 {
  margin: 22px 0 8px;
  color: #241a6e;
  font-size: 18px;
}
.panel { overflow-x: auto; }
.panel ul { padding-left: 1.2em; }
.panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 28px;
  font-size: 14px;
}
.panel td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.panel tr:first-child td {
  background: #eceeff;
  font-weight: 650;
}
.back-link { margin-top: 28px; }

.history-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 28px 0 8px;
}
.history-item {
  background: #fff;
  padding: 28px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(40, 48, 110, 0.08);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}
.history-item:hover { transform: translateY(-3px); color: inherit; }
.history-year {
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--nav-deep);
  background: rgba(74, 91, 191, 0.12);
  padding: 8px 20px;
  border-radius: 25px;
}
.history-theme {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.history-galleries { margin-top: 48px; }
.gallery-section {
  margin-bottom: 56px;
  scroll-margin-top: 110px;
}
.gallery-year {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  color: #241a6e;
  font-size: 1.6rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(40, 48, 110, 0.12);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(40, 48, 110, 0.18);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.history-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 24px;
  background: rgba(20, 24, 48, 0.88);
}
.history-lightbox.is-open { display: flex; }
.history-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.history-lightbox-close {
  position: absolute;
  top: 88px;
  right: 24px;
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
@media (max-width: 980px) {
  .history-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .history-content { grid-template-columns: 1fr; }
}
.panel li { margin: 0.35em 0; }
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--nav);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 650;
}
.btn:hover { background: var(--nav-deep); color: #fff; }
.news-item { margin: 0 0 16px; }
.news-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #241a6e;
}
.signoff {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.link-list {
  list-style: none;
  padding-left: 0;
}
.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fee-list { list-style: none; padding-left: 0; }
.fee-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
  margin-top: 12px;
}
.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #eceeff;
}
.gallery figcaption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.contact-photo {
  float: right;
  width: 235px;
  margin: 8px 0 16px 20px;
}

.site-footer {
  background: var(--nav);
  color: #fff;
  clear: both;
}
.site-footer a { color: #fff; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 26px;
  font-size: 14px;
}
.footer-inner p { margin: 4px 0; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 14px; min-height: 0; }
  .brand img { width: 84px; }
  .brand-title { font-size: 16px; }
  .brand-sub { display: none; }
  .nav-burger { display: inline-block; }
  .main-nav { display: none; width: 100%; margin-left: 0; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul > li > a { padding: 12px 16px; }
  .main-nav ul,
  .main-nav li ul {
    display: flex;
    position: static;
    flex-direction: column;
    min-width: 0;
    box-shadow: none;
    border-top: 0;
    background: transparent;
    padding: 0;
  }
  .main-nav li ul { background: var(--nav-deep); }
  .main-nav li ul a { color: #fff; padding-left: 32px; }
  .main-nav li ul a:hover,
  .main-nav li ul a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .wrap, .gallery { grid-template-columns: 1fr; }
  .wrap { padding-top: 24px; }
  .contact-photo { float: none; display: block; margin: 0 auto 16px; }
}
