:root {
  color-scheme: light;
  --bg: #f4fbff;
  --paper: #ffffff;
  --ink: #07345b;
  --deep: #052848;
  --muted: #5e788d;
  --line: #d6e9f3;
  --brand: #0b63b6;
  --green: #08765b;
  --aqua: #e5f8ff;
  --aqua-strong: #bdefff;
  --shadow: 0 22px 60px rgba(14, 84, 130, 0.16);
  --radius: 8px;
  --max: 1120px;
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, #ffffff 0%, #effaff 52%, #eaf7fb 100%),
    repeating-linear-gradient(
      160deg,
      rgba(5, 112, 176, 0.05) 0,
      rgba(5, 112, 176, 0.05) 1px,
      transparent 1px,
      transparent 84px
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 8px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: calc(100% - 92px);
  color: var(--deep);
}

.brand-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(11, 99, 182, 0.16);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 99, 160, 0.12);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.brand-logo-text {
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-text strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-call,
.primary-action,
.secondary-action,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.header-call {
  width: 78px;
  border: 1px solid rgba(11, 99, 182, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  box-shadow: 0 12px 30px rgba(6, 58, 105, 0.1);
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-action svg:first-child {
  fill: currentColor;
  stroke: none;
}

.hero-section {
  display: grid;
  gap: 18px;
  padding: 16px 0 28px;
}

.hero-copy {
  display: grid;
  gap: 10px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11em;
  color: var(--brand);
  font-size: clamp(40px, 11.5vw, 72px);
  font-weight: 920;
  line-height: 1.02;
}

h1 span {
  display: inline;
}

.slogan {
  color: var(--green);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.intro {
  max-width: 660px;
  color: #445e72;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.85;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: #d9f3ff;
  box-shadow: var(--shadow);
}

.video-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(1, 31, 58, 0.6));
}

.video-frame img,
.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-video {
  display: block;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action,
.secondary-action {
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  cursor: pointer;
}

.primary-action {
  background: linear-gradient(135deg, var(--brand), #0a8bc0);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 99, 182, 0.25);
}

.secondary-action {
  border: 1px solid rgba(11, 99, 182, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
}

.proof-grid {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(11, 99, 182, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(6, 58, 105, 0.08);
}

.proof-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.proof-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(11, 99, 182, 0.18);
  border-radius: var(--radius);
  background: #f2fbff;
  color: var(--brand);
}

.proof-item h3 {
  margin-bottom: 5px;
  color: var(--deep);
  font-size: 16px;
  line-height: 1.25;
}

.proof-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section-block {
  padding: 28px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

h2 {
  color: var(--deep);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.water-story {
  display: grid;
  gap: 16px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fact-item {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(11, 99, 182, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.fact-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fact-item strong {
  color: var(--brand);
  font-size: 21px;
  font-weight: 920;
  line-height: 1.2;
}

.gallery-strip {
  display: grid;
  gap: 14px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(11, 99, 182, 0.13);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(6, 58, 105, 0.08);
}

.gallery-card img {
  width: 100%;
  height: auto;
  background: #dff5ff;
}

.contact-panel {
  display: grid;
  gap: 18px;
  margin: 24px 0 18px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(4, 47, 91, 0.96), rgba(8, 118, 91, 0.9)),
    url("./assets/hanguquan-video-cover.jpg") center / cover;
  background-blend-mode: multiply;
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  color: #fff;
}

.contact-panel p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-link {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.media-dialog {
  width: min(920px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.media-dialog.fullscreen-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
}

.dialog-body {
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.fullscreen-dialog .dialog-body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.dialog-body video,
.dialog-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.fullscreen-dialog .dialog-body video,
.fullscreen-dialog .dialog-body iframe {
  object-fit: contain;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 20px 28px 32px;
  }

  .hero-section {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 28px;
    min-height: calc(100vh - 104px);
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-copy,
  .hero-actions,
  .proof-grid {
    grid-column: 1;
  }

  .video-frame {
    grid-column: 2;
    grid-row: 1 / span 3;
    aspect-ratio: 16 / 11;
    max-height: 560px;
  }

  .hero-actions {
    max-width: 430px;
  }

  h1 {
    max-width: 7em;
  }

  h1 span {
    display: block;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .section-block {
    padding: 44px 0;
  }

  .water-story {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .fact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .contact-panel {
    grid-template-columns: 1fr 420px;
    align-items: center;
    padding: 30px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding: 14px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
