:root {
  --navy: #17283e;
  --navy-deep: #101d2e;
  --ivory: #f7f3ea;
  --paper: #fffcf6;
  --gold: #bd9a61;
  --gold-light: #dcc394;
  --ink: #1b2b3f;
  --muted: #647083;
  --line: #dfd9cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--navy); }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header { min-height: 94px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 clamp(24px, 5vw, 80px); background: var(--paper); border-bottom: 1px solid rgba(23, 40, 62, .1); }
.brand { width: min(200px, 100%); }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.main-nav a { padding: 12px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:hover { color: #9a7441; border-color: var(--gold); }
.home-header-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.site-header .home-header-tools .peony-language { min-height: 44px; min-width: 84px; padding-inline: 9px; }
.site-header .home-header-tools a.peony-account-link[data-signed-in="false"],
.site-header .home-header-tools a.peony-account-link:not([data-signed-in]) { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.site-header .home-header-tools a.peony-account-link:hover { background: #263c57; color: var(--paper); }

.hero { min-height: min(760px, calc(100svh - 94px)); position: relative; isolation: isolate; display: grid; overflow: hidden; background: var(--navy-deep); color: var(--ivory); }
.hero-grid { position: absolute; z-index: 0; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(90deg, transparent calc(100% - 1px), #e3d6bc 100%), linear-gradient(0deg, transparent calc(100% - 1px), #e3d6bc 100%); background-size: 95px 95px; mask-image: linear-gradient(90deg, #000, transparent 48%); }
.hero-content { padding: clamp(72px, 8vw, 130px) 20px 100px clamp(24px, 7.7vw, 125px); max-width: 760px; align-self: center; z-index: 2; }
.eyebrow { font-family: Georgia, serif; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; color: var(--gold-light); }
.eyebrow-line { width: 42px; height: 1px; background: var(--gold); }
.hero h1, .intro-section h2 { font-family: 'Noto Serif SC', 'SimSun', serif; font-weight: 500; letter-spacing: -.045em; }
.hero h1 { margin: 0; font-size: clamp(42px, 4.35vw, 66px); line-height: 1.34; }
.hero h1 em { font-style: normal; color: #e5cb9b; }
.hero-intro { max-width: 525px; font-size: clamp(15px, 1.3vw, 18px); line-height: 2; color: #d5dde5; margin: 28px 0 37px; }
.hero-action-group { display: grid; width: fit-content; max-width: 100%; gap: 10px; }
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 12px; }
.button { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; padding: 0 23px; text-align: center; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button-gold { background: var(--gold-light); color: var(--navy); }
.button-gold:hover { background: #eed8ad; }
.button-outline { color: var(--ivory); border: 1px solid rgba(247, 243, 234, .65); }
.button-outline:hover { background: rgba(255,255,255,.08); }
.hero-score-link { min-height: 62px; justify-content: space-between; gap: 10px 16px; padding-block: 10px;
  border: 1px solid #b89b6b; background: #1d3047; color: var(--paper); text-align: start; }
.hero-score-link:hover { background: #283c54; }
.hero-score-link strong { font-size: 16px; line-height: 1.35; }
.hero-score-link span { color: var(--gold-light); font-size: 12px; font-weight: 600; text-align: end; }
.hero-score-link[hidden] { display: none; }
.service-status { min-height: 1.5em; margin: 20px 0 0; color: #c7d0da; font-size: 12px; }

.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 78%; animation: campus-reveal .85s ease-out both; }
.hero-campus { width: 100%; height: 100%; object-fit: cover; object-position: 65% 54%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(16,29,46,.92) 17%, rgba(16,29,46,.52) 38%, transparent 68%), linear-gradient(0deg, rgba(16,29,46,.38), transparent 35%); }
.flower-medallion { position: absolute; z-index: 1; right: clamp(20px, 4vw, 70px); bottom: clamp(22px, 4vw, 68px); width: clamp(65px, 6.2vw, 112px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(249,244,232,.95); border: 1px solid #c6ad82; box-shadow: 0 8px 25px rgba(23,29,35,.2); animation: bloom-in .9s .12s ease-out both; }
.flower-medallion::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(150, 117, 70, .4); border-radius: 50%; }
.flower-medallion img { width: 70%; height: 70%; }

.section-wrap { width: min(100% - 48px, 1300px); margin-inline: auto; }
.home-main { --gallery-divider-gap: clamp(16px, 1.55vw, 22px); }
.home-main > .notice-section { border-block-end: 1px solid var(--line); }
.home-main > .campus-figure { border-block-start: 1px solid var(--line); }
.home-quick-bar { position: sticky; top: 0; z-index: 10; background: #f7f4ee; border-bottom: 1px solid var(--line); }
.home-quick-bar-row { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.home-quick-bar-row nav { flex: 1; min-width: 0; }
.home-quick-bar-row .peony-topic-entry { position: static; flex: 0 0 auto; padding: 0; border: 0; background: transparent; }
.student-route-links { display: flex; margin: 0; padding: 0; list-style: none; border: 1px solid var(--navy);
  background: var(--navy); border-radius: 5px; overflow-x: auto; overscroll-behavior-inline: contain;
  scrollbar-width: thin; scrollbar-color: #bb9b67 var(--navy); }
.student-route-links li { position: relative; display: flex; flex: 1 0 auto; }
.student-route-links li + li::before { content: ''; position: absolute; inset-block: 13px; inset-inline-start: 0;
  width: 1px; background: #ffffff26; pointer-events: none; }
.student-route-links li[hidden] { display: none; }
.student-route-links :is(a, button) { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1;
  min-height: 44px; padding: 8px clamp(11px, 1.45vw, 21px); white-space: nowrap; color: var(--paper);
  font: 700 14px/1.35 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
.student-route-links button { margin: 0; border: 0; background: transparent; cursor: pointer; }
.student-route-links button::after { content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.student-route-links button[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.student-route-links :is(a[href], button):active,
.student-route-links button[aria-expanded="true"],
.home-quick-bar-row .peony-topic-launch:active { background: var(--gold-light); color: var(--navy); }
.student-route-links :is(a, button):focus-visible,
.home-quick-bar-row .peony-topic-launch:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.student-route-links button[aria-expanded="true"]:focus-visible { outline-color: var(--navy); }
@media (hover: hover) {
  .student-route-links a[href]:is(:hover, :focus-visible),
  .student-route-links button:is(:hover, :focus-visible),
  .home-quick-bar-row .peony-topic-launch:is(:hover, :focus-visible) { background: var(--gold-light); color: var(--navy); outline-color: var(--navy); }
}
.thesis-guide { position: absolute; inset: 100% 0 auto; max-height: min(50dvh, 420px); overflow-y: auto;
  overscroll-behavior: contain; padding: clamp(19px, 3vw, 34px); background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 12px 26px #17283e26; }
.thesis-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thesis-guide-head button { flex: none; min-height: 44px; padding: 6px 12px; cursor: pointer;
  background: var(--paper); color: var(--navy); border: 1px solid #bdb3a0; border-radius: 4px; }
.thesis-guide-head button:hover { background: #eee4d4; }
.thesis-guide h2 { margin: 0; font: 500 clamp(23px, 2.5vw, 32px)/1.3 'Noto Serif SC', 'SimSun', Georgia, serif; }
.thesis-guide p { margin: 8px 0 15px; color: #596677; font-size: 14px; line-height: 1.7; }
.thesis-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 37px; margin: 0;
  padding-inline-start: 21px; font-size: 14px; line-height: 1.65; }
.thesis-steps span { display: block; color: #4e5e70; margin-top: 3px; }
.intro-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
  gap: 90px; padding-block: 32px 19px; }
.intro-section h2 { margin: 0; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.43; }
.intro-section p { max-width: 470px; margin: 0; color: #596677; font-size: 16px; line-height: 2.1; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: var(--gallery-divider-gap); }
.service-card { display: flex; flex-direction: column; padding: 29px 32px; background: var(--paper);
  border: 1px solid var(--line); scroll-margin-block-start: 68px; }
.service-card-photo { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: #e9e2d5; }
.service-card h3 { margin: 20px 0 13px; font: 600 23px/1.43 'Noto Serif SC', 'SimSun', serif; }
.service-card p { margin: 0; color: #647083; font-size: 13px; line-height: 1.95; }
.card-tag { align-self: flex-start; margin-top: auto; padding-top: 23px; color: #8d6330; font-size: 12px; font-weight: 700; }
.card-tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-unavailable { opacity: .7; cursor: default; pointer-events: none; }
.campus-figure { margin-block: 0 clamp(28px, 5vw, 60px); padding-block-start: var(--gallery-divider-gap); }
.campus-figure img { width: 100%; aspect-ratio: 2.5 / 1; height: auto; object-fit: cover; object-position: center 65%; }
.site-footer { padding: 55px 0; background: var(--paper); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 170px; }
.footer-brand p, .footer-inner > p { margin: 13px 0 0; color: #8993a0; font-size: 12px; }

@keyframes campus-reveal { from { opacity: .45; } to { opacity: 1; } }
@keyframes bloom-in { from { opacity: 0; transform: scale(.78) rotate(-15deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@media (max-width: 1100px) {
  .hero-content { padding-left: 5vw; }
  .hero h1 { font-size: clamp(38px, 4vw, 58px); }
}

@media (max-width: 960px) {
  .site-header { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 12px clamp(14px, 4vw, 28px) 6px; }
  .site-header .brand { width: min(132px, 100%); }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; }
}

@media (max-width: 760px) {
  .main-nav { font-size: 12px; }
  .main-nav a { padding: 10px 0; }
  .home-header-tools { gap: 8px; }
  .site-header .home-header-tools .peony-language { min-width: 78px; padding-inline: 7px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-content { padding: 25px 24px 32px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(34px, 7.2vw, 54px); }
  .hero-intro { font-size: 14px; line-height: 1.75; margin: 17px 0 23px; }
  .hero-action-group { width: min(100%, 430px); }
  .hero-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hero-actions .button { min-height: 50px; padding: 5px 7px; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .hero-score-link { min-height: 58px; padding-inline: 12px; }
  .hero-score-link strong { font-size: 15px; }
  .hero-art { position: relative; z-index: 1; width: 100%; height: clamp(170px, 48vw, 350px); order: -1; }
  .hero-campus { object-position: 64% 55%; }
  .hero-art::after { background: linear-gradient(0deg, var(--navy-deep) 0%, rgba(16,29,46,.16) 22%, transparent 42%); }
  .flower-medallion { right: 21px; bottom: 10px; width: 58px; }
  .home-quick-bar-row { width: calc(100% - 24px); gap: 7px; }
  .home-quick-bar-row .peony-topic-launch { padding-inline: 9px; font-size: 12px; white-space: nowrap; }
  .student-route-links :is(a, button) { font-size: 13px; }
  .thesis-guide { width: calc(100% - 24px); }
  .thesis-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-main > #notices { padding-bottom: 17px; }
  .intro-section { display: block; padding-block: 24px 16px; }
  .intro-section p { margin-top: 5px; font-size: 14px; line-height: 1.8; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 20px; }
  .campus-figure img { aspect-ratio: 1.45; }
  .footer-inner { display: block; }
  .footer-inner > p { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
