:root {
  --nju-purple: #6d1557;
  --nju-purple-dark: #5a0846;
  --nju-purple-deep: #35002a;
  --gold: #c9a15f;
  --bg: #f5f0e9;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --text: #333333;
  --muted: #666666;
  --line: #dbdbdb;
  --max: 1200px;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

section[id] {
  scroll-margin-top: 132px;
}

.inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    url("assets/site/campus-greenery.png") center 42% / cover;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 136px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 18px;
  align-items: end;
}

.brand-mark {
  color: var(--nju-purple);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brand-title {
  color: #111;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 1px;
}

.header-note {
  padding-left: 30px;
  color: var(--nju-purple);
  font-size: 16px;
  font-weight: 700;
  border-left: 4px solid var(--nju-purple);
}

.menu-toggle {
  display: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nju-purple);
  box-shadow: 0 8px 20px rgba(53, 0, 42, 0.14);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 57px;
}

.nav-inner a {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.nav-inner a:hover,
.nav-inner a.is-active {
  background: var(--nju-purple-dark);
}

.page-banner {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #e7e2df;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(53, 0, 42, 0.78), rgba(109, 21, 87, 0.28), rgba(255, 255, 255, 0.06));
}

.banner-content {
  display: grid;
  height: 100%;
  align-content: center;
  color: #fff;
}

.banner-content p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.banner-content h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.2;
}

.banner-content span {
  margin-top: 16px;
  font-size: 18px;
}

.notice-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.notice-strip .inner {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 58px;
}

.notice-strip strong {
  color: var(--nju-purple);
  white-space: nowrap;
}

.notice-strip span {
  color: var(--muted);
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  padding: 36px 0 58px;
}

.side-menu {
  align-self: start;
  background: #fff;
}

.side-title {
  padding: 22px 26px;
  color: #fff;
  background: var(--nju-purple);
  font-size: 24px;
  font-weight: 800;
}

.side-menu a {
  display: block;
  padding: 16px 26px;
  color: #454545;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  font-size: 16px;
}

.side-menu a:hover,
.side-menu a.is-active {
  color: var(--nju-purple);
  font-weight: 800;
  background: #f7f2f7;
}

.content {
  min-width: 0;
  background: #fff;
  padding: 0 0 36px;
}

.content-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  order: 2;
  padding: 0 26px 12px 0;
  color: #666;
  font-size: 14px;
  text-align: right;
}

.content-head h2 {
  order: 1;
  margin: 0;
  padding: 17px 0 11px;
  color: var(--nju-purple);
  border-bottom: 3px solid #cbcbcb;
  font-size: 22px;
  font-weight: 500;
}

.content > section:not(.content-head) {
  margin: 26px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.intro-card {
  min-height: 178px;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid #eee;
}

.intro-main {
  background: #fff;
  border-top: 5px solid var(--nju-purple);
}

.intro-card.warning {
  background: #fbf5ed;
  border-top: 5px solid var(--gold);
}

.intro-card.stat-card {
  background: #f8f3f8;
  border-top: 5px solid var(--nju-purple);
}

.intro-card h3,
.image-news h3,
.list-panel h3,
.module-table h3,
.admission-grid h3,
.materials-box h3,
.feature-list strong,
.section-heading h2 {
  margin: 0;
  color: #222;
  font-size: 22px;
  line-height: 1.35;
}

.intro-card p,
.image-news p,
.list-panel p,
.module-table p,
.admission-grid p,
.feature-list p,
.qa-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--nju-purple);
  font-weight: 800;
}

.primary-link {
  color: #fff;
  background: var(--nju-purple);
}

.primary-link:hover {
  background: var(--nju-purple-dark);
}

.ghost-link {
  color: var(--nju-purple);
  background: #fff;
}

.ghost-link:hover {
  color: #fff;
  background: var(--nju-purple);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #e4dbe4;
}

.quick-facts div {
  min-height: 118px;
  padding: 24px;
  background: #fff;
}

.quick-facts strong,
.contact-box strong {
  display: block;
  color: var(--nju-purple);
  font-size: 18px;
  line-height: 1.4;
}

.quick-facts span,
.contact-box span {
  display: block;
  margin-top: 12px;
  color: #333;
  line-height: 1.65;
}

.image-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.image-news article {
  background: #fff;
  border: 1px solid #e7e7e7;
}

.image-news img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.image-news h3,
.image-news p {
  margin-right: 18px;
  margin-left: 18px;
}

.image-news h3 {
  margin-top: 18px;
}

.image-news p {
  margin-bottom: 22px;
}

.block-section {
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--nju-purple);
}

.section-heading h2 {
  color: var(--nju-purple);
  line-height: 48px;
}

.section-heading a,
.section-heading span {
  color: #888;
  font-size: 14px;
  font-weight: 700;
}

.list-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e4dbe4;
}

.list-panel article {
  min-height: 210px;
  padding: 26px;
  background: #fff;
}

.list-panel span {
  color: var(--nju-purple);
  font-size: 28px;
  font-weight: 800;
}

.advantage-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  overflow: hidden;
  background: #f8f3f8;
  border: 1px solid #e7dce8;
}

.advantage-lead > div {
  padding: 30px;
}

.advantage-kicker {
  margin: 0 0 10px;
  color: var(--nju-purple);
  font-size: 15px;
  font-weight: 800;
}

.advantage-lead h3 {
  margin: 0;
  color: #1d1d1d;
  font-size: 25px;
  line-height: 1.38;
}

.advantage-lead p:not(.advantage-kicker),
.advantage-grid p,
.advantage-path li,
.source-note {
  color: var(--muted);
  line-height: 1.78;
}

.advantage-lead p:not(.advantage-kicker) {
  margin: 16px 0 0;
}

.advantage-lead img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.advantage-grid article {
  min-height: 232px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e4e8;
  border-top: 4px solid var(--nju-purple);
}

.advantage-grid article:nth-child(2n) {
  background: #fbf8fb;
}

.advantage-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.advantage-grid h3 {
  margin: 0;
  color: var(--nju-purple);
  font-size: 21px;
  line-height: 1.36;
}

.advantage-grid p {
  margin: 12px 0 0;
}

.advantage-path {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  margin-top: 18px;
  border: 1px solid #e7dce8;
}

.advantage-path h3 {
  display: grid;
  margin: 0;
  padding: 24px;
  place-items: center;
  color: #fff;
  background: var(--nju-purple);
  font-size: 22px;
}

.advantage-path ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px 26px 22px 46px;
  background: #fff;
}

.advantage-path strong {
  color: #333;
}

.source-note {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: #fbf5ed;
  border-left: 4px solid var(--gold);
  font-size: 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-list div {
  min-height: 188px;
  padding: 24px;
  background: var(--surface-soft);
  border-left: 4px solid var(--nju-purple);
}

.feature-list strong {
  display: block;
  color: var(--nju-purple);
}

.module-table {
  display: grid;
  gap: 12px;
}

.module-table article {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-left: 5px solid var(--nju-purple);
}

.module-table article:nth-child(2n) {
  background: #fbf8fb;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px dashed #d6d6d6;
}

.news-list a {
  overflow: hidden;
  color: #111;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list a:hover {
  color: var(--nju-purple);
}

.news-list time {
  color: #8a8a8a;
  white-space: nowrap;
}

.split-section figure {
  margin: 0;
}

.split-section img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.student-tabs {
  background: #fff;
}

.student-tab-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: #e4dbe4;
}

.student-tab-menu button {
  min-height: 58px;
  color: #333;
  background: #fbf8fb;
  border: 0;
  border-top: 4px solid transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.student-tab-menu button:hover,
.student-tab-menu button.is-active {
  color: var(--nju-purple);
  background: #fff;
  border-top-color: var(--nju-purple);
}

.student-panel {
  border: 1px solid #e7e7e7;
}

.student-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1px;
  background: #e4dbe4;
}

.student-profile > div,
.student-profile dl {
  margin: 0;
  padding: 28px;
  background: #fff;
}

.student-profile dl {
  display: grid;
  gap: 14px;
  background: #fbf8fb;
}

.student-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.student-profile h3 {
  margin: 0;
  color: var(--nju-purple);
  font-size: 24px;
  line-height: 1.38;
}

.student-profile p:not(.student-eyebrow),
.student-profile dd,
.student-outcome p,
.student-source {
  color: var(--muted);
  line-height: 1.78;
}

.student-profile p:not(.student-eyebrow) {
  margin: 16px 0 0;
}

.student-profile dt {
  color: #333;
  font-weight: 900;
}

.student-profile dd {
  margin: 6px 0 0;
}

.student-outcome {
  padding: 24px 28px;
  background: #fbf5ed;
  border-top: 1px solid #eadcca;
}

.student-outcome h4 {
  margin: 0;
  color: #222;
  font-size: 20px;
}

.student-outcome p {
  margin: 12px 0 0;
}

.student-source {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: #f8f3f8;
  border-left: 4px solid var(--nju-purple);
  font-size: 14px;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.column-grid a {
  padding: 18px 20px;
  color: #333;
  background: #fbfbfb;
  border: 1px solid #e7e7e7;
  font-weight: 700;
}

.column-grid a:hover {
  color: #fff;
  background: var(--nju-purple);
}

.qa-list {
  display: grid;
  gap: 12px;
}

.qa-list details {
  padding: 18px 22px;
  background: #fbfbfb;
  border: 1px solid #e7e7e7;
}

.qa-list summary {
  color: #222;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.admission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admission-grid article {
  min-height: 230px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e7e7e7;
}

.admission-grid .primary-link {
  margin-top: 20px;
}

.materials-box {
  margin-top: 18px;
  padding: 24px;
  background: #fbf5ed;
  border: 1px solid #eadcca;
}

.materials-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.materials-box li {
  position: relative;
  padding-left: 18px;
  color: #444;
  line-height: 1.7;
}

.materials-box li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--nju-purple);
  content: "";
}

.register-section {
  margin-bottom: 0;
}

.contact-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: #e4dbe4;
}

.contact-box div {
  min-height: 116px;
  padding: 22px;
  background: #fff;
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  background: #fbfbfb;
  border: 1px solid #e7e7e7;
}

.register-form label {
  display: grid;
  gap: 8px;
  color: #333;
  font-weight: 800;
}

.register-form label.full,
.form-actions,
.register-form .form-message {
  grid-column: 1 / -1;
}

.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #333;
  background: #fff;
  border: 1px solid #d7d7d7;
  outline: none;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  border-color: var(--nju-purple);
}

.register-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-actions button {
  border: 0;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--nju-purple);
  font-weight: 800;
}

.site-footer {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(53, 0, 42, 0.96), rgba(109, 21, 87, 0.92)),
    url("assets/site/industrial-berlin-detail.png") center / cover;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0;
}

.footer-inner h2 {
  margin: 0;
  font-size: 26px;
}

.footer-inner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 56px;
  text-align: center;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 96px;
  }

  .header-note {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(109, 21, 87, 0.32);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--nju-purple);
  }

  .nav-inner {
    display: none;
    width: 100%;
  }

  .site-nav.is-open .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-inner a {
    justify-content: flex-start;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

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

  .side-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-title {
    grid-column: 1 / -1;
  }

  .intro-grid,
  .image-news,
  .list-panel,
  .advantage-lead,
  .advantage-grid,
  .advantage-path,
  .student-tab-menu,
  .student-profile,
  .feature-list,
  .quick-facts,
  .module-table,
  .admission-grid,
  .contact-box,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section figure {
    order: -1;
  }

  .advantage-lead img {
    order: -1;
    min-height: 220px;
  }

  .advantage-path h3 {
    place-items: start;
  }
}

@media (max-width: 640px) {
  .inner {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .brand-mark {
    font-size: 26px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .page-banner {
    height: 230px;
  }

  .banner-content h1 {
    font-size: 34px;
  }

  .banner-content span,
  .banner-content p {
    font-size: 15px;
  }

  .notice-strip .inner {
    display: grid;
    padding: 14px 0;
  }

  .layout {
    padding-top: 22px;
  }

  .side-menu {
    grid-template-columns: 1fr;
  }

  .content {
    padding-bottom: 22px;
    overflow: hidden;
  }

  .content-head {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    order: 1;
    padding: 16px 18px 0;
    text-align: left;
  }

  .content-head h2 {
    order: 2;
    padding-left: 18px;
  }

  .content > section:not(.content-head) {
    margin: 20px 18px;
  }

  .split-section {
    max-width: calc(100% - 36px);
    overflow: hidden;
  }

  .split-section > * {
    min-width: 0;
  }

  .news-list li {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .news-list a {
    white-space: normal;
  }

  .register-form,
  .column-grid,
  .materials-box ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }
}
