/* HMCC & HHME 2026 — Mobile Homepage · mirrors desktop home */
:root {
  --fg-from: #4614b0;
  --fg-to: #1f288f;
  --fg-accent: #5736eb;
  --fg-accent-2: #7751e0;
  --fg-card: #f6f7ff;
  --fg-card-2: #f5f6ff;
  --fg-white: #ffffff;
  --fg-body: #454f73;
  --fg-name: #0f142e;
  --fg-muted: #7a84a8;
  --fg-line: #dde1f5;
  --fg-soft: #ebe8ff;
  --fg-radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.m-hub {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, var(--fg-from) 0%, var(--fg-to) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-break: strict;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}

.m-hub-wrap {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
}

/* ===== Top brand ===== */
.m-home-top {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.m-hub-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.m-hub-brands img {
  display: block;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 4, 48, 0.22);
  object-fit: contain;
}
.m-logo-ccf {
  height: 40px;
  width: auto;
  max-width: 68px;
  padding: 5px 10px;
  border-radius: 999px;
}
.m-logo-hnu {
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 50%;
}
.m-home-brand-title {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Hero ===== */
.m-home-hero {
  position: relative;
  margin: 8px 14px 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(12, 4, 48, 0.28);
  min-height: 220px;
}
.m-home-hero-media {
  position: absolute;
  inset: 0;
}
.m-home-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.m-home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 16, 90, 0.35) 0%, rgba(20, 18, 80, 0.72) 55%, rgba(15, 20, 70, 0.88) 100%);
}
.m-home-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 20px 24px;
  text-align: center;
}
.m-home-hero-dates {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}
.m-home-hero-location {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}
.m-home-hero-divider {
  width: 48px;
  height: 2px;
  margin: 14px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c8b6ff, transparent);
}
.m-home-hero-slogan {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-wrap: balance;
  line-break: strict;
}
.m-home-hero-slogan-en {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
.m-home-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fg-accent-2), var(--fg-accent));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(87, 54, 235, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.m-home-hero-cta:active { transform: scale(0.98); }

/* ===== Quick nav chips ===== */
.m-home-quick {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-home-quick::-webkit-scrollbar { display: none; }
.m-home-quick a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(246, 247, 255, 0.16);
  border: 1px solid rgba(246, 247, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.m-home-quick a:active {
  background: rgba(246, 247, 255, 0.26);
}

/* ===== Content cards ===== */
.m-home-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 14px 0;
}
.m-home-card {
  background: var(--fg-card-2);
  border-radius: var(--fg-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px rgba(12, 4, 48, 0.2);
  overflow: hidden;
  color: var(--fg-body);
}
.m-home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}
.m-home-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.m-home-card-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fg-soft);
}
.m-home-card-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.m-home-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--fg-accent);
  letter-spacing: 0.02em;
}
.m-home-card-more {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-accent);
  text-decoration: none;
}
.m-home-card-body {
  padding: 12px 16px 16px;
}
.m-home-card-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-body);
  text-align: justify;
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}
.m-hub .no-orphan { white-space: nowrap; }
.m-home-card-body p:last-child { margin-bottom: 0; }

.m-home-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-home-news li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fg-line);
}
.m-home-news li:first-child { padding-top: 2px; }
.m-home-news li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.m-home-news a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--fg-name);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
}
.m-home-news a:active { color: var(--fg-accent); }
.m-home-news span {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.m-home-dates {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-home-dates li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--fg-line);
}
.m-home-dates li:first-child { padding-top: 2px; }
.m-home-dates li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.m-home-dates .label {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--fg-body);
  line-height: 1.45;
}
.m-home-dates .val {
  flex: 0 0 auto;
  max-width: 46%;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-accent);
  line-height: 1.4;
}

/* ===== More links ===== */
.m-home-more {
  margin: 18px 14px 0;
}
.m-home-more-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}
.m-home-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-home-more-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: var(--fg-card);
  color: var(--fg-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(12, 4, 48, 0.16);
}
.m-home-more-grid a:active { transform: scale(0.98); }

/* ===== Footer ===== */
.m-home-footer {
  margin: 22px 14px 0;
  padding: 18px 16px;
  border-radius: var(--fg-radius);
  background: rgba(246, 247, 255, 0.1);
  border: 1px solid rgba(246, 247, 255, 0.22);
  text-align: center;
}
.m-home-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fg-accent-2), var(--fg-accent));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(87, 54, 235, 0.3);
}
.m-home-footer-meta {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}
.m-home-footer-meta a {
  color: #d7cbff;
  text-decoration: none;
}
.m-home-history {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}
.m-home-history a {
  color: rgba(215, 203, 255, 0.95);
  text-decoration: none;
}
.m-home-history span {
  margin: 0 4px;
  opacity: 0.5;
}
.m-hub-desktop {
  display: inline-block;
  margin: 14px auto 0;
  padding: 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== 会云通「返回首页」浮窗 ===== */
.m-hyterp-home-fab {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: #4614b0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 40, 143, 0.28);
  border: 1px solid rgba(70, 20, 176, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.m-hyterp-home-fab:active {
  transform: scale(0.98);
  background: #f3f0ff;
}
.m-hyterp-home-fab-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7751e0, #4614b0);
  position: relative;
  flex: 0 0 auto;
}
.m-hyterp-home-fab-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 9px;
  height: 9px;
  margin: -6px 0 0 -4.5px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(-45deg);
  box-sizing: border-box;
}
.m-hyterp-home-fab-text {
  white-space: nowrap;
}
