/* Shared site navigation */
:root {
  --primary: #0f2c52;
  --primary-light: #1a4178;
  --gold: #c5a55a;
  --gold-light: #d4b87a;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --text: #1a1a2e;
  --text-light: #5a6478;
  --border: #e0e6ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

body.page-enter {
  animation: pageEnter .45s ease-out both;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  background: var(--primary);
  opacity: 0;
  transition: opacity .35s ease;
}

.page-transition.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-enter { animation: none; }
  .page-transition { transition: none; }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 72px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 44, 82, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 165, 90, .2);
  transition: all .3s;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo img {
  width: 190px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-dropdown a {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  transition: color .2s;
}

.nav-links a:hover,
.nav-dropdown a:hover { color: var(--gold); }
.nav-links a::after,
.nav-dropdown a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s;
}
.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-dropdown a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--gold); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 138px;
  padding: 12px 14px;
  background: rgba(15, 44, 82, 0.96);
  border: 1px solid rgba(197, 165, 90, 0.35);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(7, 18, 34, 0.22);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.nav-dropdown a {
  display: block;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  padding: 8px 0;
}

.nav-item.has-dropdown .nav-dropdown {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-item.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.menu-toggle,
.back-to-top {
  display: none;
}

body > section {
  scroll-margin-top: 72px;
}

.contact-form .form-message {
  min-height: 24px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary);
}

.contact-form .form-message.is-error {
  color: #b42318;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #b42318;
}

.preview-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.preview-card::after {
  content: "点击查看详情";
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}

.preview-card:hover::after,
.preview-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.preview-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.subpage {
  min-height: 100vh;
  padding-top: 72px;
  background: var(--bg-gray);
}

.subpage-hero {
  padding: 76px 20px 66px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0a1e3a, #1a4178);
}

.subpage-hero .label { color: var(--gold); letter-spacing: 3px; font-size: 13px; }
.subpage-hero h1 { margin: 12px 0; font-size: 42px; letter-spacing: 3px; }
.subpage-hero p { color: rgba(255,255,255,.72); }
.subpage-content { padding: 64px 20px 90px; }
.subpage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.subpage-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.subpage-card:hover { transform: translateY(-7px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(15,44,82,.12); }
.subpage-card .card-index { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.subpage-card h3 { margin: 12px 0 8px; color: var(--primary); font-size: 20px; }
.subpage-card p { color: var(--text-light); font-size: 14px; }
.empty-state { padding: 65px 20px; border: 1px dashed var(--gold); text-align: center; color: var(--text-light); background: rgba(255,255,255,.7); }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--primary); font-size: 20px; }
.preview-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,18,37,.72); }
.preview-modal.is-open { display: flex; }
.preview-dialog { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 10px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.3); animation: modalIn .25s ease-out; }
.preview-dialog img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; margin-bottom: 20px; }
.preview-dialog h2 { color: var(--primary); margin-bottom: 10px; }
.preview-dialog p { color: var(--text-light); font-size: 14px; }
.modal-close { float: right; border: 0; background: transparent; color: var(--text-light); font-size: 24px; cursor: pointer; }
.meeting-card { padding: 0; overflow: hidden; }
.meeting-card .meeting-cover { width: 100%; height: 210px; object-fit: cover; background: #e8edf3; }
.meeting-card .meeting-card-body { padding: 24px 26px 26px; }
.meeting-card .meeting-card-body h3 { margin-top: 10px; }
.meeting-card .meeting-card-body p { margin: 0; line-height: 1.8; }
.meeting-card .meeting-location { display: block; margin-top: 12px; color: var(--primary); font-size: 12px; font-weight: 700; }
.meeting-card .meeting-count { display: inline-block; margin-top: 16px; color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.meeting-dialog { width: min(980px, 100%); }
.meeting-dialog h2 { padding-right: 30px; }
.meeting-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.meeting-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; background: #e8edf3; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.meeting-gallery img:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,44,82,.18); }
.meeting-gallery .gallery-note { grid-column: 1 / -1; color: var(--text-light); font-size: 13px; }
@media (max-width: 760px) {
  .meeting-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-gallery img { height: 130px; }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 44, 82, .2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.back-to-top.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .navbar { padding: 0 30px; }

  .menu-toggle {
    display: block;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    padding: 5px 10px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 30px;
    left: 30px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--primary);
    border: 1px solid rgba(197,165,90,.25);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 10px 20px;
  }
}

/* Keep the original hero text layout while adapting the right-side contrast. */
.hero {
  --hero-text-vertical-offset: 0px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1e3a 0%, #0f2c52 50%, #1a4178 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  filter: none;
}

.hero-content,
.hero-stats {
  position: absolute;
  top: 50%;
  z-index: 4;
  opacity: 1;
  transform: translateY(-50%);
}

.hero-content {
  left: 8%;
  width: clamp(320px, 42vw, 560px);
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
}

.hero-stats {
  right: 8%;
  width: clamp(300px, 34vw, 500px);
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--primary);
  height: auto;
}

.hero-content > *,
.hero-stats > * {
  margin: 0;
}

.hero-content,
.hero-stats {
  animation-name: heroTextRestore;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-stat .num {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  color: var(--primary);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.hero-stat .num span {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.hero-stat .label {
  color: rgba(15, 44, 82, .72);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.hero .hero-content h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero .hero-content .gold { color: var(--gold); }
.hero .hero-content .tagline {
  color: rgba(255, 255, 255, .7);
  margin-bottom: 40px;
  font-size: 20px;
  letter-spacing: 2px;
}
.hero .hero-content .btn-outline { color: #fff; }

@keyframes heroTextRestore {
  0%, 12% { opacity: 1; transform: translateY(-50%); }
  27%, 42% { opacity: 0; transform: translateY(-50%); }
  70% { opacity: 0; transform: translateY(-50%); }
  100% { opacity: 1; transform: translateY(-50%); }
}

.hero-split-panel,
.hero-split-bar {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hero-coin {
  position: absolute;
  right: clamp(90px, 7vw, 150px);
  bottom: clamp(-350px, -22vh, -270px);
  z-index: 3;
  width: clamp(320px, 31vw, 520px);
  height: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translate(58%, 24%) scale(1.12) rotate(18deg);
  filter: drop-shadow(0 14px 18px rgba(197, 165, 90, .22)) brightness(1.05) saturate(1);
  clip-path: none;
  visibility: hidden;
}

.hero-split-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--gold);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 43% 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
}

.hero-split-bar {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -120%;
  z-index: 3;
  width: clamp(70px, 9vw, 150px);
  margin-left: 0;
  background: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: skewX(-17deg) translateX(-220%);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(197, 165, 90, .3);
}

.hero-split-bar::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 0;
  width: 100%;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(255,209,64,.55) 42%, rgba(255,239,153,.9) 50%, transparent);
  opacity: 0;
  transform: translateY(-180%);
}

body.intro-ready .hero-split-bar::after {
  animation: verticalGoldShine 3.5s linear 1.4s infinite;
}

@keyframes coinEnterFromRight {
  0% {
    opacity: 0;
    transform: translate(58%, 24%) scale(1.12) rotate(18deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

@keyframes coinRotateLoop {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes goldFieldFromRight {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
  }
  12% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

@keyframes goldFieldToWhite {
  from { background: var(--gold); }
  to { background: #fff; }
}

@keyframes whiteDividerFromLeft {
  0% {
    left: -120%;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: skewX(-17deg) translateX(-220%);
    background: var(--gold);
  }
  12% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    left: 50%;
    margin-left: clamp(-35px, -4vw, -75px);
    opacity: 1;
    visibility: visible;
    transform: skewX(-17deg) translateX(0);
    background: var(--gold);
  }
}

@keyframes heroBarToWhite {
  from { background: var(--gold); box-shadow: 0 0 35px rgba(197, 165, 90, .3); }
  to { background: #fff; box-shadow: 0 0 25px rgba(255,255,255,.25); }
}

@keyframes verticalGoldShine {
  0%, 58% { opacity: 0; transform: translateY(-180%); }
  64% { opacity: .95; }
  86% { opacity: .95; transform: translateY(620%); }
  87%, 100% { opacity: 0; transform: translateY(620%); }
}

body:not(.intro-ready) .hero-content,
body:not(.intro-ready) .hero-stats {
  opacity: 0;
  animation: none !important;
}

body:not(.intro-ready) .hero-split-panel,
body:not(.intro-ready) .hero-split-bar {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  animation: none !important;
}

body:not(.intro-ready) .hero-split-bar {
  left: -120%;
  margin-left: 0;
  background: var(--gold);
  transform: skewX(-17deg) translateX(-220%);
}

body.intro-ready .hero-video {
  opacity: 0;
  transition: opacity .7s ease;
}

body:not(.intro-ready) .hero-coin {
  opacity: 0;
  transform: translate(58%, 24%) scale(1.12) rotate(18deg);
}

body.intro-ready .hero-video-skip {
  opacity: 0;
  pointer-events: none;
}

body.intro-ready .hero-coin {
  animation: coinEnterFromRight 1.35s cubic-bezier(.65, 0, .25, 1) .2s forwards,
    coinRotateLoop 2.8s linear 1.55s infinite;
}

body.intro-ready .hero-content {
  animation: heroContentAfterVideo 1.35s cubic-bezier(.65, 0, .25, 1) both;
}

body.intro-ready .hero-stats {
  animation: heroStatsAfterVideo 1.35s cubic-bezier(.65, 0, .25, 1) both;
}

body.intro-ready .hero-split-panel {
  opacity: 1;
  visibility: visible;
  animation: goldFieldFromRight 1.1s cubic-bezier(.65, 0, .25, 1) .15s forwards;
}

body.intro-ready .hero-split-bar {
  opacity: 1;
  visibility: visible;
  background: #fff;
  animation: whiteDividerFromLeft 1.1s cubic-bezier(.65, 0, .25, 1) .15s forwards,
    heroBarToWhite .7s ease 1.25s forwards;
}

@keyframes heroContentAfterVideo {
  from { opacity: 0; transform: translateY(-50%); }
  to { opacity: 1; transform: translateY(-50%); }
}

@keyframes heroStatsAfterVideo {
  from { opacity: 0; transform: translateY(-50%); }
  to { opacity: 1; transform: translateY(-50%); }
}

.hero-video-skip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 4px;
  background: rgba(10,30,58,.5);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.hero-video-skip:hover {
  background: rgba(10,30,58,.8);
  border-color: var(--gold-light);
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-content,
  .hero-stats {
    width: auto;
    text-align: center;
  }

  .hero-stats {
    margin-top: 40px;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-split-panel,
  .hero-split-bar,
  .hero-content,
  .hero-stats {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
