:root {
  --ink: #111318;
  --muted: #5e6470;
  --line: #d9dde5;
  --panel: #ffffff;
  --wash: #f5f7fb;
  --aqua: #00a6b2;
  --aqua-dark: #007481;
  --coral: #ec6a4d;
  --gold: #c99642;
  --deep: #102432;
  --shadow: 0 18px 50px rgba(16, 36, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.overseas-site {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  background: var(--wash);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark img {
  width: 158px;
  height: auto;
  object-fit: contain;
  display: block;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--aqua-dark);
}

.mega-menu {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translateX(-50%) translateY(-8px);
  width: min(1120px, calc(100vw - 40px));
  max-height: min(72vh, 680px);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 19, 24, 0.1);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-column h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aqua-dark);
}

.mega-column a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(17, 19, 24, 0.07);
}

.mega-column a:hover {
  color: var(--coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 20, 27, 0.82), rgba(9, 20, 27, 0.42) 50%, rgba(9, 20, 27, 0.08));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(64px, 10vh, 110px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8de6e8;
}

.hero h1,
.page-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 850;
}

.hero__copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 1.45vw, 1.34rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.button--primary {
  background: var(--aqua);
  color: #fff;
}

.button--primary:hover {
  background: var(--aqua-dark);
  color: #fff;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button--light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section--white {
  background: #fff;
}

.section--deep {
  background: var(--deep);
  color: #fff;
}

.section__inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.split-feature h2,
.form-panel h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
}

.section-head p,
.split-feature p,
.page-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section--deep .section-head p,
.section--deep .split-feature p {
  color: rgba(255, 255, 255, 0.74);
}

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

.quick-link {
  min-height: 150px;
  padding: 22px;
  display: flex;
  align-items: end;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.quick-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.45s ease;
}

.quick-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.quick-link strong {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.quick-link:hover img {
  transform: scale(1.06);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: 44px;
}

.split-feature--reverse .split-feature__media {
  order: -1;
}

.split-feature__text {
  display: grid;
  gap: 18px;
}

.split-feature__media {
  min-height: clamp(360px, 42vw, 620px);
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 14px;
}

.split-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.split-feature__media img:nth-child(2) {
  margin-top: 46px;
  height: calc(100% - 46px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.video-tile {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.section--deep .video-tile {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.video-tile video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-tile__body {
  min-height: 98px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.video-tile__body strong {
  font-size: 0.96rem;
}

.video-tile__body a {
  color: var(--aqua-dark);
  font-weight: 800;
  text-decoration: none;
}

.section--deep .video-tile__body a {
  color: #8de6e8;
}

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

.category-card {
  display: grid;
  grid-template-rows: 240px auto;
  min-height: 470px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.category-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.category-card li {
  padding: 6px 9px;
  background: var(--wash);
  color: #343944;
  font-size: 0.78rem;
  font-weight: 700;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.story-band__image {
  min-height: 520px;
  background: url("/image/Community/游泳俱乐部.jpg") center / cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: #8de6e8;
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(28px, 5vw, 60px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  color: #303640;
  font-weight: 800;
  font-size: 0.86rem;
}

.lead-form .full {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 0;
}

.lead-form textarea {
  min-height: 116px;
  resize: vertical;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--aqua-dark);
  font-weight: 800;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 14px;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.site-footer {
  background: #080a0d;
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 32px;
}

.site-footer__inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #8de6e8;
}

.footer-bottom {
  width: min(1440px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.login-modal.is-open {
  display: flex;
}

.login-box {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-box h2 {
  margin: 0 0 18px;
}

.login-box form {
  display: grid;
  gap: 12px;
}

.login-box input {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.login-error {
  min-height: 20px;
  color: #b13f2e;
  font-weight: 800;
}

.page-hero {
  padding: clamp(84px, 12vw, 150px) 0 56px;
  background: var(--deep);
  color: #fff;
}

.page-hero__inner,
.page-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  line-height: 1.7;
}

.page-content {
  padding: 58px 0 90px;
}

.page-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.page-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.page-section li {
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px);
    overflow: auto;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0;
  }

  .mega-menu {
    position: static;
    width: 100%;
    max-height: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 8px 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: none;
  }

  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu {
    display: grid;
    transform: none;
  }

  .header-actions {
    grid-column: 2;
  }

  .quick-links,
  .category-board,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .split-feature,
  .story-band,
  .form-panel,
  .newsletter,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .split-feature--reverse .split-feature__media {
    order: 0;
  }
}

@media (max-width: 700px) {
  .site-header__inner,
  .hero__content,
  .section__inner,
  .site-footer__inner,
  .footer-bottom,
  .page-hero__inner,
  .page-content {
    width: min(100% - 28px, 1440px);
  }

  .brand-mark img {
    width: 158px;
  }

  .quick-links,
  .category-board,
  .video-grid,
  .lead-form,
  .newsletter form,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .split-feature__media {
    grid-template-columns: 1fr;
  }

  .split-feature__media img:nth-child(2) {
    margin-top: 0;
    height: auto;
  }

  .category-card {
    grid-template-rows: 220px auto;
  }
}
