:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #eef2f6;
}

.mobile-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #f5f7fb;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid #d7dde8;
  border-top-color: #19365f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mobile-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  color: #344054;
  text-align: center;
  background: #f6f7f9;
}

.mobile-error h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.mobile-error p {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.mobile-page {
  --bg: #eef3f8;
  --paper: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --hero: #102845;
  --hero-2: #19365f;
  --accent: #b4232b;
  --accent-2: #c9a24f;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

.mobile-page.template-nwpu-aero {
  --bg: #edf2f7;
  --paper: #fffdf8;
  --ink: #142033;
  --muted: #667085;
  --hero: #0e2747;
  --hero-2: #183a64;
  --accent: #b2212b;
  --accent-2: #c6a04f;
}

.mobile-page.template-jade-lab {
  --bg: #f1eee6;
  --paper: #fffdf7;
  --ink: #2b2925;
  --muted: #756f65;
  --hero: #2f5d57;
  --hero-2: #8b4a3b;
  --accent: #b08a4a;
  --accent-2: #d9c18a;
}

.mobile-page.template-sunrise-human {
  --bg: #eef8ff;
  --paper: #ffffff;
  --ink: #15304d;
  --muted: #5c7088;
  --hero: #087ee8;
  --hero-2: #5bc0ff;
  --accent: #0b63ce;
  --accent-2: #f0b64d;
}

.mobile-page.template-custom-image {
  --bg: #edf2f7;
  --paper: #ffffff;
  --ink: #142033;
  --muted: #667085;
  --hero: #102845;
  --hero-2: #324a67;
  --accent: #b2212b;
  --accent-2: #c6a04f;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: max(24px, env(safe-area-inset-top)) 22px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 72%, rgba(180, 35, 43, 0.46), transparent 30%),
    linear-gradient(128deg, var(--hero), var(--hero-2) 68%, color-mix(in srgb, var(--accent) 70%, #111827));
}

.template-nwpu-aero .page-hero {
  background:
    radial-gradient(ellipse at 78% 20%, rgba(255, 255, 255, 0.44), transparent 26%),
    radial-gradient(ellipse at 92% 42%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(ellipse at 18% 92%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(201, 162, 79, 0.24), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(178, 33, 43, 0.22), transparent 34%),
    linear-gradient(132deg, #061a3d 0%, #0b4a8f 48%, #0366ff 100%);
}

.template-jade-lab .page-hero {
  background:
    linear-gradient(90deg, rgba(45, 38, 31, 0.78), rgba(45, 38, 31, 0.38) 48%, rgba(45, 38, 31, 0.08)),
    url("../img/bg02.png") center center / cover no-repeat;
}

.template-sunrise-human .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 74, 143, 0.72), rgba(8, 74, 143, 0.3) 48%, rgba(8, 74, 143, 0.04)),
    url("../img/bg03-sky.png") center center / cover no-repeat;
}

.template-custom-image .page-hero {
  background:
    linear-gradient(90deg, rgba(6, 24, 52, 0.78), rgba(6, 24, 52, 0.32) 52%, rgba(6, 24, 52, 0.06)),
    linear-gradient(132deg, #102845 0%, #44566c 52%, #8a6d38 100%);
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  position: absolute;
  right: -54px;
  bottom: -58px;
  width: 210px;
  height: 150px;
  content: "";
  background:
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.22) 41%, transparent 43%),
    linear-gradient(22deg, transparent 46%, rgba(255, 255, 255, 0.16) 47%, transparent 49%);
  transform: skewX(-16deg);
}

.template-nwpu-aero .page-hero::before,
.template-jade-lab .page-hero::before,
.template-sunrise-human .page-hero::before,
.template-custom-image .page-hero::before {
  display: none;
}

.page-hero::after {
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 86px;
  height: 4px;
  content: "";
  background: var(--accent-2);
}

.mobile-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 24px;
  padding: 0;
}

.mobile-brand img {
  width: min(164px, 54vw);
  height: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.dept-line,
.view-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 26px;
  padding: 0 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(216, 190, 130, 0.46);
  border-radius: 999px;
}

.view-line {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.view-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 12em;
  margin: 0;
  font-size: clamp(22px, 7vw, 30px);
  line-height: 1.22;
  letter-spacing: 0;
}

.page-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-meta span {
  min-height: 26px;
  padding: 4px 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.article-wrap {
  padding: 18px 14px 28px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px 26px;
  line-height: 1.86;
  background: var(--paper);
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.08);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 10px auto 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  background: color-mix(in srgb, var(--paper) 72%, var(--bg));
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 8px;
}

.article-footer span {
  min-width: 0;
}

.article-footer span:last-child {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .article-footer {
    flex-wrap: wrap;
  }

  .article-footer span:last-child {
    margin-left: 0;
    text-align: left;
  }
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.3em 0 0.62em;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

.article-body h1:first-child,
.article-body h2:first-child,
.article-body h3:first-child,
.article-body h4:first-child {
  margin-top: 0;
}

.article-body h1 {
  font-size: 26px;
}

.article-body h2 {
  font-size: 22px;
}

.article-body h3 {
  font-size: 18px;
}

.article-body p {
  margin: 0 0 1em;
  color: var(--ink);
  font-size: 16px;
}

.article-body p:first-child {
  font-size: 17px;
  line-height: 1.78;
}

.article-body p:first-child strong {
  font-weight: 800;
}

.article-body p:last-child,
.article-body blockquote:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 35, 43, 0.35);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.article-body li {
  margin: 0.35em 0;
}

.article-body blockquote {
  margin: 1.2em 0;
  padding: 12px 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-2) 14%, #fff);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
}

.article-body div img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.article-body hr {
  height: 1px;
  margin: 22px 0;
  background: rgba(20, 32, 51, 0.12);
  border: 0;
}

@media (min-width: 720px) {
  .page-hero {
    min-height: 260px;
    padding-right: calc((100vw - 760px) / 2);
    padding-left: calc((100vw - 760px) / 2);
  }

  .article-wrap {
    padding-top: 24px;
  }

  .article-body {
    padding: 34px 38px 42px;
  }
}

.phone-screen .page-hero {
  min-height: 236px;
  padding: 24px 22px 26px;
}

.phone-screen .page-hero h1 {
  font-size: 26px;
}

.phone-screen .article-wrap {
  padding: 18px 14px 28px;
}

.phone-screen .article-body {
  padding: 22px 18px 26px;
}
