:root {
  --blue: #2cbeff;
  --nav: #34b3f5;
  --ink: #222;
  --muted: #666;
  --soft: #8e8b8b;
  --navy: #1b2a47;
  --line: #efefef;
  --max: 1170px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  letter-spacing: 0.4px;
}

img { max-width: 100%; display: block; }

button, input, textarea { font-family: inherit; }

a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.title {
  margin: 0 0 34px;
  text-align: center;
  color: #000;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.25;
}

.title.light { color: #fff; }

.feature-icon {
  width: 46px;
  height: 46px;
  color: #6a6a6a;
}

/* Header */
.hero {
  position: relative;
  min-height: 642px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: url("../images/b3.jpg") center center / cover no-repeat fixed;
}

.nav-toggle {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 120;
  width: 45px;
  height: 41px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 5px;
  background: var(--nav);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav);
}

.site-nav.is-open { display: block; }

.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 18px 16px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 18px;
  color: #243140;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active { color: #fff; }

.hero-brand {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  text-align: center;
}

.hero-brand h1 { margin: 0; }

.hero-brand a {
  color: #f00;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
}

.slider {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 80px 72px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.slide.is-active { opacity: 1; }

.slide h2 {
  margin: 0;
  color: #fff;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1.25;
}

.slide p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.7;
}

.slider-arrow {
  position: absolute;
  top: 54%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent url("../images/left-arrow.png") center / 36px no-repeat;
  cursor: pointer;
  opacity: 0.8;
}

.slider-arrow.prev { left: 8px; }
.slider-arrow.next {
  right: 8px;
  background-image: url("../images/right-arrow.png");
}

.slider-arrow:hover { opacity: 1; }

/* Download */
.download {
  padding: 64px 0 72px;
  background: #f8f9fa;
}

.download .title { margin-bottom: 14px; }

.download .sub {
  margin: 0 0 42px;
  color: #777;
  text-align: center;
  font-size: 16px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.download-card {
  padding: 36px 24px 32px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.store-icon { width: 52px; height: 52px; margin: 0 auto 8px; }
.store-icon.apple { color: #333; }
.store-icon.android { color: #a4c639; }

.download-card h3 {
  margin: 8px 0 18px;
  font-size: 22px;
  font-weight: 600;
}

.btn-download {
  padding: 10px 30px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-download:hover { background: #24365c; }

/* About */
.about { padding: 78px 0 70px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.about-col h3,
.equity-card h3 {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.about-col p,
.equity-card p,
.support-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.6px;
}

.about-visual {
  min-height: 340px;
  background: url("../images/a1.jpg") center / contain no-repeat;
}

/* Equity */
.equity {
  padding: 78px 0 0;
  background: url("../images/s1.jpg") center center / cover no-repeat fixed;
}

.equity-lead {
  margin: -8px 0 54px;
  color: #fff;
  text-align: center;
  font-size: 26px;
  line-height: 1.55;
}

.equity-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.equity-card {
  padding: 46px 22px 36px;
  text-align: center;
  background: var(--line);
  border-bottom: 3px solid var(--blue);
  transition: background 0.35s ease, color 0.35s ease;
}

.equity-card:hover { background: var(--blue); }
.equity-card:hover h3,
.equity-card:hover p { color: #fff; }
.equity-card:hover .feature-icon { color: #111; }

.support {
  padding: 56px 0 78px;
  background: var(--line);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.support-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
}

.support-item h3 {
  margin: 2px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.support-item p { text-align: center; }

.support-mid {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 1px;
}

/* Gallery */
.gallery {
  padding: 78px 0 70px;
  background: url("../images/gb1.jpg") center center / cover no-repeat fixed;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  cursor: pointer;
}

.shot img {
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.shot:hover img { transform: scale(1.05); }

.shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 1;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
  transform: skewX(-17deg);
  pointer-events: none;
}

.shot:hover::before { animation: shine 0.9s ease; }

@keyframes shine {
  to { left: 125%; }
}

/* Blog */
.blog { padding: 78px 0 40px; }

.post {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 54px;
}

.post img { width: 100%; height: auto; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }

.post-copy h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #f90200;
  font-size: 15px;
  font-weight: 700;
}

.cal { width: 16px; height: 16px; color: #111; }

.post-copy p:last-of-type {
  margin: 14px 0 0;
  color: #777;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
}

.post.reverse { grid-template-columns: 1fr 1.35fr; }
.post.reverse .post-copy { order: -1; text-align: right; }
.post.reverse .date { justify-content: flex-end; }

.more {
  margin-top: 18px;
  padding: 10px 22px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
}

.more:hover { background: #fff; color: #000; }

/* Quotes */
.quotes {
  padding: 78px 0;
  background: url("../images/t1.jpg") center center / cover no-repeat fixed;
}

.quote-panel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 72px 58px;
  background: #fff;
  text-align: center;
}

.quote-window { overflow: hidden; }

.quote-track {
  display: flex;
  transition: transform 0.7s ease;
}

.quote {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.quote p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.9;
}

.mark {
  padding: 0 10px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--blue);
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.quote-arrow {
  position: absolute;
  top: 42%;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.quote-arrow.prev { left: 14px; }
.quote-arrow.next { right: 14px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5d5d5;
  cursor: pointer;
}

.dots button.is-active { background: var(--blue); }

/* Matter */
.matter { padding: 72px 0 64px; text-align: center; }

.matter h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.matter p {
  max-width: 860px;
  margin: 26px auto 22px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.like {
  padding: 10px 22px;
  border: 0;
  border-radius: 5px;
  background: #2196f3;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 10px -12px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.like:hover,
.like.is-on { color: #fff; }

/* Contact */
.contact {
  padding: 78px 0 70px;
  background: url("../images/c1.jpg") center center / cover no-repeat fixed;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.field { display: block; }

textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #000;
  background: rgba(255, 252, 255, 0.55);
  color: #000;
  font-size: 15px;
  letter-spacing: 1px;
}

textarea {
  min-height: 190px;
  margin-top: 22px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #000; opacity: 1; }

.submit {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}

.submit:hover { background: #000; color: #fff; }

.form-note {
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  text-align: center;
  line-height: 1.6;
}

.form-note.is-show { display: block; }

.field.is-invalid input,
.field.is-invalid textarea,
textarea.is-invalid {
  border-color: #d21616;
  background: rgba(255, 236, 236, 0.8);
}

footer {
  background: #000;
}

footer p {
  margin: 0;
  padding: 28px 16px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.8;
}

footer a { color: #fff; }

.to-top {
  position: fixed;
  right: 2%;
  bottom: 26px;
  z-index: 80;
  width: 40px;
  height: 40px;
  border: 0;
  background: url("../images/to-top.png") center / 32px no-repeat;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.to-top.is-on { opacity: 1; pointer-events: auto; }

/* Lightbox and dialog */
.lightbox,
.dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox[hidden],
.dialog[hidden] { display: none; }

.lightbox figure {
  max-width: min(920px, 100%);
  margin: 0;
  text-align: center;
}

.lightbox img {
  width: min(860px, 86vw);
  max-height: 74vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.lightbox-close,
.dialog-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close,
.dialog-close {
  top: 16px;
  right: 18px;
  font-size: 36px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  font-size: 48px;
  transform: translateY(-50%);
}

.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.dialog-card {
  position: relative;
  width: min(640px, 100%);
  padding: 28px 28px 24px;
  background: #fff;
  color: #333;
}

.dialog-close { color: #333; top: 8px; right: 12px; }

.dialog-card h3 {
  margin: 0 36px 8px 0;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.4;
}

.dialog-meta {
  margin: 0 0 10px;
  color: #f90200;
  font-weight: 700;
}

.dialog-card p:last-child {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .title { font-size: 38px; }
  .slide h2 { font-size: 42px; }
  .equity-lead { font-size: 22px; }
  .hero { min-height: 600px; }
  .equity-cards { gap: 14px; }
  .equity-card { padding: 36px 16px 28px; }
}

@media (max-width: 900px) {
  .about-grid,
  .support-grid,
  .gallery-grid,
  .post,
  .post.reverse,
  .download-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .equity-cards { grid-template-columns: 1fr 1fr; }
  .about-visual { min-height: 280px; }
  .post.reverse .post-copy { order: 0; text-align: left; }
  .post.reverse .date { justify-content: flex-start; }
  .support-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .matter h2 { font-size: 22px; }
  .matter p { letter-spacing: 0; }
}

@media (max-width: 640px) {
  .hero {
    min-height: 500px;
    background-attachment: scroll;
  }

  .equity,
  .gallery,
  .quotes,
  .contact { background-attachment: scroll; }

  .nav-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
  }

  .hero-brand { padding-top: 22px; }
  .hero-brand a { font-size: 32px; }

  .slide { padding: 0 58px 16px; }
  .slide h2 { font-size: 32px; letter-spacing: 2px; }
  .slide p { font-size: 14px; line-height: 1.65; }
  .slider-arrow { top: 36%; }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 68px 12px 16px;
  }

  .title { font-size: 28px; letter-spacing: 1px; margin-bottom: 24px; }
  .about, .equity, .gallery, .blog, .quotes, .contact { padding-top: 48px; }
  .equity-cards { grid-template-columns: 1fr; }
  .quote-panel { padding: 36px 42px 48px; }
  .support-mid { font-size: 18px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .shot img, .nav-toggle span, .to-top, .quote-track { transition: none; }
}
