:root {
  --blue-900: #0a2a72;
  --blue-800: #0f47a9;
  --blue-700: #1f69d9;
  --bg-light: #f4f7fc;
  --line: #dce5f6;
  --ink: #15263f;
  --muted: #5f708b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

a { text-decoration: none; color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-800));
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: #e9f2ff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  height: clamp(260px, 42vw, 500px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0b347e center/contain no-repeat;
  transition: background-image 0.8s ease;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(5, 19, 50, 0.66) 8%, rgba(8, 44, 106, 0.28) 68%, rgba(18, 90, 186, 0.15) 100%),
    radial-gradient(circle at 78% 18%, rgba(81, 197, 255, 0.2), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(30px, 5.4vw, 72px) 24px;
  color: #fff;
}

.sub {
  margin: 0;
  letter-spacing: 2px;
  font-size: 14px;
}

.hero h1 {
  margin: 10px 0 12px;
  line-height: 1;
  font-size: clamp(38px, 7.2vw, 84px);
}

.desc {
  margin: 0;
  max-width: 720px;
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.6;
}

.hero-dots {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dots button.on { background: #fff; }

.section { padding: 44px 0; }
.section.light { background: var(--bg-light); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  margin: 0 0 20px;
  font-size: 44px;
  line-height: 1.1;
}

.section-sub {
  margin-top: -10px;
  margin-bottom: 22px;
  color: var(--muted);
}

.news-list {
  min-height: 40px;
}

.news-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 52, 109, 0.08);
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.news-card .news-empty-cover {
  width: 100%;
  height: 150px;
  aspect-ratio: auto;
  border-radius: 0;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.news-card-body {
  padding: 11px 12px 12px;
}

.news-date { color: #2a63c9; font-weight: 800; }
.news-title { font-weight: 800; margin-bottom: 6px; }
.news-summary {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1b63d0;
  background: #eef5ff;
  border: 1px solid #cfe0fb;
}

.news-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 10px 22px rgba(20, 52, 109, 0.08);
}

.news-back {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2a63c9;
  font-weight: 700;
}

.news-detail h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
}

.news-detail-meta {
  color: var(--muted);
  margin-bottom: 10px;
}

.news-detail-summary {
  color: #314565;
  line-height: 1.7;
  margin-bottom: 12px;
}

.news-detail-cover {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #f7fbff;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: zoom-in;
}

.news-detail-content p {
  margin: 0 0 10px;
  color: #223654;
  line-height: 1.95;
}

.news-rich-paragraph {
  margin: 0 0 14px;
  color: #1d3253;
  line-height: 2;
  white-space: pre-wrap;
  text-align: justify;
}

.news-rich-paragraph strong,
.news-rich-list strong,
.news-rich-quote strong,
.news-rich-heading strong {
  color: #791628;
  font-weight: 800;
}

.news-rich-heading {
  margin: 24px 0 12px;
  color: #112843;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.news-rich-heading.level-1 {
  font-size: clamp(28px, 4vw, 42px);
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe7f8;
}

.news-rich-heading.level-2 {
  font-size: clamp(22px, 3vw, 30px);
}

.news-rich-heading.level-3 {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #24486f;
}

.news-rich-quote {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid #b0182f;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(176, 24, 47, 0.08), rgba(255, 255, 255, 0.72));
  color: #314565;
  line-height: 1.9;
}

.news-rich-list {
  margin: 0 0 16px 22px;
  padding-left: 18px;
  color: #1d3253;
  line-height: 1.95;
}

.news-rich-list li {
  margin: 4px 0;
}

.news-rich-divider {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #d9e5f7;
}

.news-rich-image-wrap {
  margin: 16px auto 18px;
  max-width: min(920px, 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9e5f7;
  background: #f7fbff;
}

.news-rich-image {
  width: 100%;
  max-height: min(72vh, 860px);
  display: block;
  object-fit: contain;
  background: #f7fbff;
  cursor: zoom-in;
}

.news-rich-caption {
  padding: 8px 12px 10px;
  margin: 0;
  text-align: center;
  color: #51688b;
  font-size: 14px;
  border-top: 1px solid #e2ebfb;
}

.news-detail-images {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.news-detail-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9e5f7;
  object-fit: contain;
  background: #f9fcff;
  cursor: zoom-in;
}

.review-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 22px rgba(20, 52, 109, 0.08);
}

.review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.review-body {
  padding: 10px 12px 12px;
}

.review-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #173360;
}

.review-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}


.award-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 22px;
}

.award-switch-card {
  position: relative;
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(39, 98, 197, 0.72), rgba(97, 30, 78, 0.66));
  box-shadow: 0 20px 44px rgba(18, 43, 92, 0.22);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.award-switch-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(149, 54, 86, 0.76), rgba(21, 75, 144, 0.66));
}

.award-switch-card:hover,
.award-switch-card.active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 58px rgba(18, 43, 92, 0.32);
}

.award-switch-card.active::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.86);
}

.award-switch-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

.award-switch-card strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.award-switch-card small {
  display: block;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.award-switch-count {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.award-type-hint {
  margin: -4px 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.award-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.award-type-badge,
.award-level-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.award-type-badge {
  color: #1452ad;
  background: rgba(40, 121, 255, 0.1);
  border: 1px solid rgba(40, 121, 255, 0.18);
}

.award-level-badge.national {
  color: #955400;
  background: rgba(255, 187, 51, 0.16);
  border: 1px solid rgba(255, 187, 51, 0.32);
}

.award-level-badge.provincial {
  color: #087568;
  background: rgba(20, 184, 166, 0.13);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.award-grid,
.senior-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(20, 52, 109, 0.08);
}

.card img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  padding: 10px;
  min-height: 220px;
}

.award-media {
  min-height: auto;
  padding: 0;
  background: #eff4ff;
}

.senior-media {
  min-height: auto;
  padding: 0;
}

.award-media .award-image {
  width: 100%;
  height: 170px;
  max-height: 170px;
  object-fit: cover;
}

.award-media .award-empty-cover {
  width: 100%;
  height: 170px;
  aspect-ratio: auto;
  border-radius: 0;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.senior-media .senior-image {
  width: 100%;
  height: 290px;
  max-height: 290px;
  object-fit: cover;
  object-position: center 18%;
}

.card-media .card-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  background: #f8fbff;
}

/* Flyteamers photo cards: keep every portrait/banner in one fixed visual box. */
.senior-media,
.flyteamers-page .senior-media {
  width: 100%;
  height: clamp(320px, 27vw, 430px);
  min-height: 320px;
  max-height: 430px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, rgba(238, 246, 255, .9), rgba(255, 255, 255, .76));
}

.senior-media .card-image.senior-image,
.senior-media .senior-image,
.flyteamers-page .senior-media .card-image.senior-image,
.flyteamers-page .senior-media .senior-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 24%;
  background: #f8fbff;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.card-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.card-desc {
  color: #334764;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
  display: block;
  overflow: visible;
}

.card-desc.advice {
  color: #25508f;
  background: #f1f6ff;
  border: 1px solid #d8e7ff;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  display: block;
  overflow: visible;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.9;
}

.flyteamers-page .senior-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  justify-content: stretch;
  align-items: stretch;
}

.flyteamers-page .senior-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: none;
  min-height: 700px;
}

.flyteamers-page .senior-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flyteamers-page .senior-card .card-meta,
.flyteamers-page .senior-card .card-desc {
  font-size: 16px;
  line-height: 1.8;
}

.flyteamers-page .senior-card .card-desc.advice {
  font-size: 17px;
  line-height: 1.95;
  white-space: pre-line;
  word-break: normal;
  overflow-wrap: normal;
  max-height: 250px;
  overflow: auto;
}

.flyteamers-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.primary-link {
  border-radius: 12px;
  background: linear-gradient(135deg, #1d6fe3, #3ea9ff);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(23, 89, 186, 0.25);
}

.flyteamers-hero {
  padding-bottom: 24px;
}

.grade-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grade-btn {
  border: 1px solid #c9d9f7;
  background: #fff;
  color: #234577;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.grade-btn.on {
  background: linear-gradient(135deg, #1a66d6, #2e97ff);
  border-color: #1a66d6;
  color: #fff;
}

.grade-badge {
  margin-left: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 12px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(8, 32, 79, 0.09);
}

.grade-btn.on .grade-badge {
  background: rgba(255, 255, 255, 0.24);
}

.recruit-page-wrap {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 52, 109, 0.08);
  padding: 18px;
}

.recruit-page-wrap h3 {
  margin: 0 0 14px;
  font-size: 30px;
}

.recruit-hint {
  margin-top: 12px;
  margin-bottom: 0;
}

.recruit-form input[readonly] {
  background: #f1f6ff;
  color: #163b70;
  font-weight: 700;
}

.zoomable-image,
.news-card > img,
.review-card img,
.award-image,
.senior-image,
.news-detail-cover,
.news-rich-image,
.news-images img,
.review-photo-card img {
  cursor: zoom-in;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 12, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.img-lightbox.open {
  display: flex;
}

.img-lightbox figure {
  margin: 0;
  max-width: min(1400px, 96vw);
  max-height: 92vh;
}

.img-lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.img-lightbox figcaption {
  margin-top: 8px;
  color: #e8f1ff;
  font-size: 14px;
  text-align: center;
}

.lightbox-actions {
  margin-top: 10px;
  text-align: center;
}

.lightbox-actions button {
  border: 1px solid #7ea8f5;
  background: #1f69d9;
  color: #fff;
  border-radius: 10px;
  padding: 8px 20px;
  font: inherit;
  cursor: pointer;
}

.recruit-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.recruit-form input,
.recruit-form textarea,
.recruit-form select {
  width: 100%;
  border: 1px solid #ccdcf7;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.recruit-form textarea {
  resize: vertical;
}

.recruit-form button,
.recruit-form textarea,
.captcha-row {
  grid-column: 1 / -1;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, .65fr);
  gap: 10px;
  align-items: stretch;
}

.captcha-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(40, 121, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(234, 243, 255, 0.92), rgba(255, 255, 255, 0.78));
}

.captcha-label {
  color: #55729b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.captcha-code {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(40, 121, 255, 0.14);
  border-radius: 12px;
  color: #102b54;
  background: rgba(255, 255, 255, 0.72);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.captcha-refresh {
  grid-column: auto !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  color: #1759b6 !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 8px 18px rgba(31,105,217,.12);
  cursor: pointer;
  font-weight: 800;
}

.captcha-refresh:hover {
  transform: translateY(-1px);
}

.captcha-box .captcha-refresh {
  align-self: start;
}


/* Polished recruit submit button. */
.recruit-form button[type="submit"] {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: 58px;
  margin-top: 8px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 15px 30px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(135deg, #b0182f 0%, #1f69d9 55%, #41a7ff 100%);
  box-shadow:
    0 18px 36px rgba(24, 82, 178, 0.28),
    0 8px 18px rgba(176, 24, 47, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.32);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.recruit-form button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.recruit-form button[type="submit"]::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 12px;
  border-radius: 999px;
  color: #1452ad;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  transition: transform 0.22s ease, background 0.22s ease;
}

.recruit-form button[type="submit"]:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 24px 48px rgba(24, 82, 178, 0.36),
    0 12px 24px rgba(176, 24, 47, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.recruit-form button[type="submit"]:hover::after {
  transform: translateX(4px);
  background: #fff;
}

.recruit-form button[type="submit"]:active {
  transform: translateY(0) scale(0.99);
}

.recruit-form button[type="submit"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(65, 167, 255, 0.24),
    0 22px 44px rgba(24, 82, 178, 0.34);
}

.recruit-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.78;
  filter: grayscale(0.1);
  transform: none;
}

.module-page .recruit-form button[type="submit"] {
  border-color: rgba(255,255,255,0.68);
  backdrop-filter: blur(12px);
}

.recruit-message {
  position: relative;
  z-index: 2;
  clear: both;
  display: block;
  min-height: 0;
  margin: 18px 0 0 !important;
  padding: 13px 16px;
  border: 1px solid rgba(40, 121, 255, 0.22);
  border-radius: 16px;
  color: #17365f;
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.92), rgba(255, 255, 255, 0.76));
  box-shadow: 0 10px 24px rgba(24, 82, 178, 0.10);
  line-height: 1.75;
  white-space: pre-line;
}

.recruit-message:empty {
  display: none;
}

.recruit-message:not(:empty)::before {
  content: "提示";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f69d9, #41a7ff);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.module-page .recruit-message {
  border-color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(12px) saturate(1.12);
}

.intro-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.intro-text {
  margin: 0;
  color: #243653;
  line-height: 1.95;
  font-size: 18px;
  white-space: pre-wrap;
}

.intro-side img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(19, 57, 118, 0.18);
  background: #fff;
  display: block;
}

.intro-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer {
  background: #101f37;
  color: #d9e8ff;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.chat-fab {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  background: linear-gradient(135deg, #1a67da, #2ea4ff);
  box-shadow: 0 14px 28px rgba(24, 89, 188, 0.4);
  z-index: 80;
}

.chat-panel {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  width: min(410px, calc(100vw - 24px));
  height: min(64vh, calc(100vh - 132px));
  max-height: 640px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 38px rgba(20, 63, 127, 0.25);
  display: none;
  flex-direction: column;
  z-index: 79;
}

.chat-panel.open { display: flex; }

.chat-head {
  padding: 12px;
  border-bottom: 1px solid #e2eafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-head button {
  border: none;
  background: #eaf2ff;
  color: #245399;
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow: auto;
  background: #f7fbff;
}

.bubble {
  margin-bottom: 8px;
  padding: 8px 10px;
  line-height: 1.7;
  border-radius: 10px;
  border: 1px solid #dce7fb;
  background: #fff;
}

.bubble.user {
  border-color: #bfd8ff;
  background: #eaf3ff;
}

.chat-input {
  border-top: 1px solid #e2eafb;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.chat-input textarea {
  width: 100%;
  border: 1px solid #ccdcf7;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.chat-input button {
  border: none;
  background: linear-gradient(135deg, #1a66d7, #2a8fff);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 960px) {
  h2 { font-size: 34px; }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-wrap { grid-template-columns: 1fr; }
  .intro-side img {
    width: 100%;
    max-width: 520px;
    max-height: min(62vh, 620px);
  }
  .recruit-page-wrap h3 { font-size: 25px; }
  .recruit-form { grid-template-columns: 1fr 1fr; }
  .recruit-form button,
  .recruit-form textarea,
  .captcha-row { grid-column: span 2; }
  .captcha-row { grid-template-columns: 1fr; }
  .award-media .award-image,
  .award-media .award-empty-cover {
    height: 150px;
    max-height: 150px;
  }
  .senior-media,
  .flyteamers-page .senior-media {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    min-height: auto;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand { font-size: 22px; }

  .nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  h2 { font-size: 30px; }

  .hero { height: clamp(220px, 55vw, 340px); }
  .hero-content { padding: 26px 16px; }

  .container { padding: 0 14px; }
  .flyteamers-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  .recruit-form { grid-template-columns: 1fr; }
  .recruit-form button,
  .recruit-form textarea,
  .captcha-row { grid-column: span 1; }
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-box { grid-template-columns: 1fr; }
  .captcha-label, .captcha-box .captcha-refresh { justify-self: start; }
  .award-switch {
    grid-template-columns: 1fr;
  }
  .award-grid,
  .review-grid,
  .senior-grid,
  .news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flyteamers-page .senior-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .flyteamers-page .senior-card {
    min-height: 620px;
  }
  .award-media .award-image,
  .award-media .award-empty-cover {
    height: 130px;
    max-height: 130px;
  }
  .senior-media,
  .flyteamers-page .senior-media {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

@media (max-width: 520px) {
  .award-grid,
  .review-grid,
  .senior-grid,
  .news-cards {
    grid-template-columns: 1fr;
  }
  .flyteamers-page .senior-grid {
    grid-template-columns: 1fr;
  }
  .flyteamers-page .senior-card {
    min-height: auto;
  }
  .senior-media,
  .flyteamers-page .senior-media {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}


/* Minimal homepage: full-screen flowing photo carousel. */
html.home-root,
html.home-root body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.home-root::-webkit-scrollbar,
html.home-root body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-only {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #061735;
}

.home-only .topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(90deg, rgba(4, 16, 44, 0.78), rgba(8, 40, 92, 0.46));
  backdrop-filter: blur(12px);
}

.home-only .brand { letter-spacing: 0.5px; }

.home-only .hero {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
}

.home-only .hero-bg {
  background-size: cover;
  background-position: center;
  animation: flyteamPhotoDrift 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.home-only .home-mask {
  background:
    linear-gradient(90deg, rgba(2, 9, 25, 0.66) 0%, rgba(4, 28, 72, 0.30) 46%, rgba(3, 12, 32, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent 42%);
}

.home-only .home-hero-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 110px;
  padding-bottom: clamp(70px, 9vw, 120px);
}

.home-only .hero h1 {
  font-size: clamp(56px, 10vw, 138px);
  letter-spacing: -0.06em;
  text-shadow: 0 20px 56px rgba(0,0,0,0.42);
}

.home-only .desc {
  max-width: 560px;
  color: rgba(255,255,255,0.88);
}

.scroll-hint {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-main { min-height: calc(100vh - 68px); }
.page-title-bar { margin-bottom: 24px; }
.page-sub { color: #2a63c9; font-weight: 800; }
.page-intro { align-items: center; }

@keyframes flyteamPhotoDrift {
  from { transform: scale(1.03) translate3d(-1.5%, -1%, 0); filter: saturate(1.02); }
  to { transform: scale(1.12) translate3d(1.8%, 1%, 0); filter: saturate(1.12); }
}

@media (max-width: 760px) {
  .home-only .hero { min-height: 100vh; }
  .home-only .home-hero-content { padding-top: 140px; padding-bottom: 88px; }
  .scroll-hint { left: 16px; right: auto; bottom: 18px; }
}


/* Full-screen photo wall upgrade for the minimal homepage. */
.home-only .hero-bg {
  opacity: 0.46;
  filter: blur(18px) saturate(1.15) brightness(0.88);
  transform: scale(1.08);
}

.home-photo-wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.home-photo-wall::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 18% 20%, rgba(73, 174, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at 60% 86%, rgba(33, 105, 217, 0.24), transparent 30%);
  animation: wallAura 18s ease-in-out infinite alternate;
}

.wall-tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(16px, 1.6vw, 30px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translate3d(0,0,0) rotate(var(--rotate, 0deg));
  animation: wallTileFloat var(--dur, 15s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  pointer-events: auto;
  will-change: transform;
}

.wall-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.15s ease,
    transform 6s ease,
    filter 1.15s ease;
  filter: saturate(1.06) contrast(1.02);
  will-change: opacity, transform, filter;
}

.wall-tile img.active {
  opacity: 1;
  transform: scale(1.04);
}

.wall-tile:hover img.active {
  transform: scale(1.11);
  filter: saturate(1.18) contrast(1.06);
}

.wall-tile-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 34%, rgba(255,255,255,0.08));
  mix-blend-mode: screen;
  pointer-events: none;
}

.wall-tile-1 { left: 3vw; top: 14vh; width: 21vw; height: 27vh; --rotate: -4deg; --dur: 16s; }
.wall-tile-2 { left: 26vw; top: 9vh; width: 15vw; height: 21vh; --rotate: 3deg; --dur: 18s; }
.wall-tile-3 { right: 5vw; top: 12vh; width: 27vw; height: 32vh; --rotate: 2deg; --dur: 17s; }
.wall-tile-4 { left: 9vw; top: 47vh; width: 17vw; height: 30vh; --rotate: 3.5deg; --dur: 19s; }
.wall-tile-5 { left: 32vw; top: 34vh; width: 24vw; height: 34vh; --rotate: -2deg; --dur: 16.5s; }
.wall-tile-6 { right: 18vw; top: 52vh; width: 17vw; height: 24vh; --rotate: -5deg; --dur: 20s; }
.wall-tile-7 { right: 4vw; bottom: 8vh; width: 20vw; height: 24vh; --rotate: 4deg; --dur: 18.5s; }
.wall-tile-8 { left: 2vw; bottom: 4vh; width: 15vw; height: 19vh; --rotate: -2.5deg; --dur: 21s; }
.wall-tile-9 { left: 58vw; top: 8vh; width: 12vw; height: 17vh; --rotate: -3deg; --dur: 17s; }
.wall-tile-10 { left: 20vw; bottom: 7vh; width: 20vw; height: 20vh; --rotate: 2deg; --dur: 20s; }
.wall-tile-11 { left: 45vw; bottom: 3vh; width: 16vw; height: 19vh; --rotate: -1deg; --dur: 18s; }
.wall-tile-12 { right: 31vw; top: 18vh; width: 13vw; height: 15vh; --rotate: 5deg; --dur: 19s; }

.home-only .home-mask {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 9, 25, 0.78) 0%, rgba(4, 28, 72, 0.38) 48%, rgba(3, 12, 32, 0.54) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 48%);
}

.home-only .home-hero-content {
  z-index: 4;
  position: relative;
}

.home-only .hero-dots {
  padding: 8px 10px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(7, 20, 50, 0.34);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

@keyframes wallTileFloat {
  from { transform: translate3d(-0.7vw, -0.8vh, 0) rotate(var(--rotate, 0deg)) scale(0.985); }
  to { transform: translate3d(0.9vw, 1.1vh, 42px) rotate(calc(var(--rotate, 0deg) * -0.35)) scale(1.025); }
}

@keyframes wallAura {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: 0.78; }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.06); opacity: 1; }
}

@media (max-width: 900px) {
  .home-photo-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 22vh;
    gap: 10px;
    padding: 112px 14px 90px;
  }
  .wall-tile {
    position: relative;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 18px;
  }
  .wall-tile:nth-child(n+7) { display: none; }
  .wall-tile-1, .wall-tile-3, .wall-tile-5 { grid-row: span 2; }
  .home-only .home-mask {
    background:
      linear-gradient(0deg, rgba(0,0,0,0.76), rgba(0,0,0,0.22) 54%, rgba(0,0,0,0.44)),
      linear-gradient(90deg, rgba(3,12,32,0.46), rgba(3,12,32,0.18));
  }
}

.review-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.review-album-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.review-album-card:hover {
  transform: translateY(-4px);
  border-color: #9bbdf4;
  box-shadow: 0 16px 36px rgba(22, 71, 140, 0.14);
}

.review-empty-cover {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b2f75, #2a76e8);
  color: #fff;
  font-weight: 900;
  letter-spacing: .12em;
}

.review-meta {
  margin: 0 0 8px;
  color: #2a63c9;
  font-size: 13px;
  font-weight: 800;
}

.review-more {
  display: inline-flex;
  margin-top: 12px;
  color: #1f69d9;
  font-weight: 900;
}

.review-detail-page .back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #1f69d9;
  font-weight: 900;
  text-decoration: none;
}

.review-detail-hero {
  padding: 26px;
  border: 1px solid #dce8fb;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 0%, rgba(42, 99, 201, .12), transparent 36%), #fff;
  box-shadow: 0 18px 45px rgba(22, 71, 140, .08);
}

.review-detail-content {
  white-space: pre-wrap;
  margin: 20px 0 24px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #dce8fb;
  background: #fff;
  color: #2f3e55;
  line-height: 1.9;
  font-size: 16px;
}

.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.review-photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dce8fb;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 71, 140, .08);
}

.review-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.review-photo-caption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}


.pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #b0182f, #e25d74);
  font-size: 12px;
  font-weight: 800;
}

.public-pin {
  box-shadow: 0 6px 14px rgba(176, 24, 47, 0.18);
}

.responsible-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #073b7a;
  background: linear-gradient(120deg, #e6f2ff, #bfe0ff);
  border: 1px solid rgba(31, 105, 217, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.public-responsible {
  box-shadow: 0 6px 14px rgba(31, 105, 217, 0.16);
}


/* module glass sync */
.module-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(176, 24, 47, 0.48), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(31, 105, 217, 0.44), transparent 34%),
    linear-gradient(135deg, #061020 0%, #0b1930 45%, #240812 100%);
  background-attachment: fixed;
  color: #132742;
}

.module-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 10, 23, 0.52), rgba(3, 10, 23, 0.78)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.14), transparent 42%);
}

.module-bg-wall {
  position: fixed;
  inset: -8vh -6vw;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 20vh;
  gap: clamp(10px, 1.4vw, 22px);
  padding: clamp(72px, 8vh, 120px) clamp(18px, 4vw, 70px) 48px;
  opacity: 0.46;
  filter: saturate(1.12) contrast(1.02);
  overflow: hidden;
  animation: moduleWallScroll var(--wall-duration, 54s) ease-in-out infinite alternate;
  will-change: transform;
}

.module-bg-wall.empty {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 80% 15%, rgba(127,15,29,0.28), transparent 30%);
}

.module-bg-tile {
  margin: 0;
  border-radius: clamp(18px, 2.2vw, 34px);
  overflow: hidden;
  transform: rotate(var(--rotate, 0deg)) translate3d(0, 0, 0);
  animation: moduleTileFloat var(--duration, 13s) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.18);
}

.module-bg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: scale(1.06);
  transition: opacity .56s ease, filter .56s ease, transform .56s ease;
  animation: moduleImageDrift var(--img-duration, 28s) ease-in-out infinite alternate;
}

.module-bg-tile.is-swapping img {
  opacity: .16;
  filter: blur(4px) brightness(.72);
  transform: scale(1.1);
}

.module-bg-tile:nth-child(4n + 1) { grid-row: span 2; --rotate: -2.2deg; }
.module-bg-tile:nth-child(4n + 2) { grid-column: span 2; --rotate: 1.6deg; }
.module-bg-tile:nth-child(5n + 3) { grid-row: span 2; --rotate: 2.4deg; }
.module-bg-tile:nth-child(6n + 4) { grid-column: span 2; --rotate: -1.3deg; }

@keyframes moduleWallScroll {
  0% { transform: translate3d(-1.5vw, -1.2vh, 0) scale(1.02); }
  50% { transform: translate3d(1.2vw, 1.5vh, 0) scale(1.035); }
  100% { transform: translate3d(-.8vw, 1.1vh, 0) scale(1.025); }
}

@keyframes moduleTileFloat {
  from { transform: rotate(var(--rotate, 0deg)) translate3d(var(--from-x, -1.2%), var(--from-y, -1.4%), 0) scale(1.02); }
  to { transform: rotate(var(--rotate-end, 1deg)) translate3d(var(--to-x, 1.4%), var(--to-y, 1.1%), 0) scale(1.07); }
}

@keyframes moduleImageDrift {
  from { transform: scale(1.06) translate3d(-1%, -1%, 0); }
  to { transform: scale(1.13) translate3d(1%, 1%, 0); }
}

.module-page .topbar {
  background: rgba(5, 14, 28, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  backdrop-filter: blur(20px) saturate(1.35);
}

.module-page .brand,
.module-page .nav a {
  color: rgba(255,255,255,0.92);
}

.module-page .nav a:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.module-page main,
.module-page footer {
  position: relative;
  z-index: 2;
}

.module-page .chat-fab {
  position: fixed !important;
  z-index: 80;
}

.module-page .chat-panel {
  position: fixed !important;
  z-index: 79;
}

.module-page .img-lightbox {
  position: fixed !important;
  z-index: 120;
}

.module-page .section,
.module-page .section.light,
.module-page .page-main,
.module-page .flyteamers-hero {
  background: transparent !important;
}

.module-page .section {
  padding: clamp(38px, 5vw, 70px) 0;
}

.module-page .page-main {
  min-height: calc(100vh - 68px);
}

.module-page .page-title-bar,
.module-page .flyteamers-hero .container,
.module-page .recruit-page-wrap,
.module-page .intro-wrap,
.module-page .news-detail,
.module-page .review-detail-hero,
.module-page .review-detail-content {
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56));
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(22px) saturate(1.28);
  border-radius: 26px;
}

.module-page .page-title-bar,
.module-page .flyteamers-hero .container,
.module-page .review-detail-hero {
  padding: clamp(22px, 3.4vw, 42px);
}

.module-page .intro-wrap {
  padding: clamp(26px, 3.8vw, 58px);
  gap: clamp(30px, 4vw, 72px);
  align-items: center;
}

.intro-page .page-intro > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-page .intro-text {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: left;
}

.module-page .page-title-bar h2,
.module-page .flyteamers-hero h2,
.module-page .recruit-page-wrap h3,
.module-page .news-detail h1,
.module-page .review-detail-hero h2 {
  color: #0d223d;
  text-shadow: 0 1px 0 rgba(255,255,255,0.38);
}

.module-page .page-sub,
.module-page .sub {
  color: #b0182f;
}

.module-page .section-sub,
.module-page .news-detail-summary,
.module-page .intro-text,
.module-page .review-detail-content {
  color: #253b5d;
}

.module-page .news-card,
.module-page .review-card,
.module-page .card,
.module-page .review-photo-card {
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52));
  box-shadow: 0 18px 62px rgba(0,0,0,0.20);
  backdrop-filter: blur(18px) saturate(1.24);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.module-page .news-card:hover,
.module-page .review-card:hover,
.module-page .card:hover,
.module-page .review-photo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.72);
  box-shadow: 0 26px 86px rgba(0,0,0,0.28);
}

.module-page .news-card img,
.module-page .review-card img,
.module-page .card-image,
.module-page .review-photo-card img,
.module-page .intro-side img,
.module-page .news-detail-cover,
.module-page .news-rich-image {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}

.module-page .news-card-body,
.module-page .review-body,
.module-page .card-body,
.module-page .news-rich-caption,
.module-page .review-photo-caption {
  background: rgba(255,255,255,0.18);
}

.module-page .grade-filters {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(14px) saturate(1.15);
}

.module-page .grade-btn {
  background: rgba(255,255,255,0.76);
  border-color: rgba(255,255,255,0.68);
}

.module-page .grade-btn.on {
  background: linear-gradient(120deg, #b0182f, #1f69d9);
  color: #fff;
}

.module-page .recruit-form input,
.module-page .recruit-form textarea,
.module-page .recruit-form select {
  background: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.72);
}

.module-page .captcha-box {
  background: rgba(255,255,255,0.76);
  border-color: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
}

.module-page .footer {
  background: rgba(4, 12, 25, 0.70);
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
}

@media (max-width: 900px) {
  .module-bg-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 18vh;
    opacity: 0.36;
  }
  .module-page .page-title-bar,
  .module-page .flyteamers-hero .container,
  .module-page .recruit-page-wrap,
  .module-page .intro-wrap,
  .module-page .news-detail,
  .module-page .review-detail-hero,
  .module-page .review-detail-content {
    border-radius: 20px;
  }
  .module-page .intro-wrap {
    padding: clamp(22px, 5vw, 38px);
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .module-bg-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 17vh;
    gap: 10px;
  }
}


/* Hide homepage background switch dots to keep the photo wall clean. */
.home-only .hero-dots {
  display: none !important;
}


/* Preserve admin-entered line breaks in public text blocks. */
.desc,
.section-sub,
.news-summary,
.news-detail-summary,
.news-detail-content,
.news-rich-paragraph,
.review-desc,
.review-detail-content,
.card-desc,
.intro-text,
.review-photo-caption,
.chat-messages .bubble {
  white-space: pre-line;
}


/* Home blog entry button */
.home-only .nav a.home-blog-link {
  position: relative;
  color: #061735;
  background: linear-gradient(135deg, #ffffff, #70e4ff 48%, #8da8ff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(62, 169, 255, 0.28);
}
.home-only .nav a.home-blog-link::after {
  content: "↗";
  margin-left: 6px;
  font-weight: 900;
}
.home-only .nav a.home-blog-link:hover {
  color: #061735;
  background: linear-gradient(135deg, #ffffff, #9df1ff 48%, #a8b9ff);
  transform: translateY(-1px);
}


/* Caret guard for public pages: clicking decorative text/cards should not leave a
   blinking text cursor. Inputs, textareas and article/code content stay selectable. */
body,
.topbar,
.nav,
.brand,
.hero,
.module-page,
.module-card,
.glass-card,
.section-title,
.section-sub,
.page-intro,
.review-card,
.news-card,
.award-card,
.flyteamer-card {
  caret-color: transparent;
}

.topbar,
.topbar *,
.hero,
.hero *,
.page-intro,
.page-intro *,
.module-card,
.module-card *,
.glass-card,
.glass-card * {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
.hero input,
.hero textarea,
.module-card input,
.module-card textarea,
.glass-card input,
.glass-card textarea,
.chat-panel input,
.chat-panel textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"],
.news-detail-content,
.news-detail-content *,
.review-detail-content,
.review-detail-content *,
pre,
code {
  caret-color: auto;
  -webkit-user-select: text;
  user-select: text;
}

/* Intro page responsive guard: prevent the glass text panel from covering the
   team image/background on tablets, narrow windows and mobile screenshots. */
.intro-page .container {
  max-width: 1180px;
}

.intro-page .intro-wrap {
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.35fr);
  overflow: hidden;
}

.intro-page .intro-wrap > div,
.intro-page .intro-side {
  min-width: 0;
}

.intro-page .intro-side img {
  width: 100%;
  max-width: 520px;
  max-height: min(66vh, 680px);
}

.intro-page .intro-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.85;
}

@media (max-width: 1180px) {
  .intro-page .intro-wrap {
    grid-template-columns: 1fr !important;
  }
  .intro-page .intro-side {
    order: -1;
  }
  .intro-page .intro-side img {
    max-width: min(100%, 680px);
    max-height: min(46vh, 520px);
  }
  .intro-page .intro-text {
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.78;
  }
}

@media (max-width: 560px) {
  .intro-page .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .module-page .intro-wrap {
    padding: 18px 14px !important;
    gap: 16px !important;
    border-radius: 20px;
  }
  .intro-page .intro-side img {
    max-height: 260px;
    border-radius: 16px;
  }
  .intro-page .intro-text {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0;
  }
}

/* Homepage hero anti-overlap: keep the big Flyteam title and intro copy
   separated even in short browser windows or after page zoom. */
.home-only .home-hero-content {
  width: min(1280px, 100%);
  padding-left: clamp(20px, 4vw, 52px);
  padding-right: clamp(20px, 4vw, 52px);
  padding-top: max(92px, env(safe-area-inset-top));
  padding-bottom: clamp(56px, 8vh, 110px);
  gap: 0;
}

.home-only .home-hero-content .sub {
  flex: 0 0 auto;
  margin: 0 0 clamp(8px, 1.2vh, 14px);
  font-size: clamp(12px, min(1.6vw, 2.4vh), 16px);
  line-height: 1.35;
}

.home-only .hero h1 {
  flex: 0 0 auto;
  display: block;
  max-width: min(100%, 980px);
  margin: 0 0 clamp(16px, 2.2vh, 30px);
  font-size: clamp(54px, min(10vw, 17vh), 132px);
  line-height: .86;
  letter-spacing: -0.055em;
}

.home-only .desc {
  flex: 0 0 auto;
  display: block;
  position: relative;
  z-index: 1;
  max-width: min(840px, calc(100vw - clamp(40px, 8vw, 104px)));
  margin: 0;
  padding: 0;
  font-size: clamp(15px, min(2.2vw, 3.1vh), 22px);
  line-height: 1.68;
  text-wrap: pretty;
}

@media (max-height: 600px) {
  .home-only .home-hero-content {
    justify-content: center;
    padding-top: 82px;
    padding-bottom: 36px;
  }
  .home-only .home-hero-content .sub {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.3;
  }
  .home-only .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(46px, min(10vw, 15vh), 88px);
    line-height: .88;
  }
  .home-only .desc {
    max-width: min(900px, calc(100vw - 40px));
    font-size: clamp(14px, min(2.1vw, 3.4vh), 18px);
    line-height: 1.55;
  }
}

@media (max-height: 430px) {
  .home-only .home-hero-content {
    align-items: flex-start;
    padding-top: 78px;
    padding-bottom: 24px;
  }
  .home-only .hero h1 {
    margin-bottom: 12px;
    font-size: clamp(40px, min(9vw, 14vh), 66px);
    line-height: .9;
  }
  .home-only .desc {
    max-width: calc(100vw - 36px);
    font-size: 14px;
    line-height: 1.46;
  }
  .scroll-hint {
    display: none;
  }
}
