﻿:root {
  --brand-primary: #ff4d5e;
  --brand-primary-dark: #e11d48;
  --brand-accent: #ff8a9a;
  --bg-page: #fff5f6;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --card-border: rgba(255, 77, 94, 0.18);
  --shadow-soft: 0 18px 42px rgba(255, 77, 94, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
}

a {
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-navbar.scrolled {
  background: rgba(170, 30, 53, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.site-navbar .navbar-brand {
  gap: 10px;
  align-items: center;
}

.site-navbar .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-navbar .brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.site-navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.navbar-download {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #fff;
  background: linear-gradient(135deg, #ff5b6e, #e11d48);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(255, 77, 94, 0.34);
}

.navbar-download:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255, 77, 94, 0.45);
}

.page-hero {
  position: relative;
  height: clamp(560px, 74vh, 760px);
  min-height: 560px;
  padding-top: 148px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  background-color: #ff5a58;
  background-image: linear-gradient(180deg, #ff5a58 0%, #ff7f57 100%);
  background-size: cover;
  background-position: center right;
  color: #fff;
  overflow: hidden;
}

.page-hero {
  --hero-art-offset: 0px;
  --hero-art-opacity: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(56vw, 920px);
  height: 100%;
  background-image: url("../images/web-bg-2000x1094.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  opacity: var(--hero-art-opacity);
  transform: translateY(var(--hero-art-offset)) scale(1.02);
  transform-origin: right center;
  transition: opacity 0.26s linear, transform 0.26s linear;
  -webkit-mask-image: linear-gradient(to left, #000 86%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to left, #000 86%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.page-hero::after {
  content: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.16;
  margin-bottom: 14px;
}

.page-hero .hero-desc {
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b6e, #e11d48);
  color: #fff;
  font-weight: 600;
  padding: 0.78rem 1.55rem;
  box-shadow: 0 14px 24px rgba(255, 77, 94, 0.34);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary-pill:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(255, 77, 94, 0.46);
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
  padding: 0.72rem 1.4rem;
  text-decoration: none;
}

.btn-outline-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.btn-outline-dark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.36);
  color: #7f1d1d;
  font-weight: 600;
  padding: 0.72rem 1.4rem;
  background: #fff7f9;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-outline-dark-pill:hover {
  color: #7f1d1d;
  background: #ffe4ea;
  transform: translateY(-1px);
}

.section-shell {
  padding: 76px 0;
}

.section-shell.compact {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.75;
}

.panel-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.panel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 94, 0.32);
  box-shadow: 0 22px 44px rgba(255, 77, 94, 0.2);
}

.metric-grid {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

body[data-page="home"] .metric-grid {
  margin-top: 0;
}

.metric-card {
  padding: 22px 20px;
  text-align: center;
}

.metric-card .metric-value {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 6px;
}

.metric-card .metric-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card,
.case-card,
.info-card,
.step-card {
  padding: 24px;
  height: 100%;
}

.feature-card h3,
.case-card h3,
.info-card h3,
.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-card p,
.case-card p,
.info-card p,
.step-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 10px;
  color: #6b7280;
}

.case-reward {
  color: #e11d48;
  font-weight: 700;
}

.split-media {
  border-radius: 22px;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
}

.small-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline {
  border-left: 2px solid rgba(255, 77, 94, 0.34);
  padding-left: 22px;
  margin-left: 6px;
}

.timeline-item {
  margin-bottom: 18px;
}

.timeline-item strong {
  color: var(--brand-primary-dark);
}

.faq-card {
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-card .faq-title {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 16px 18px;
  font-weight: 600;
  color: #0f172a;
}

.faq-card .faq-body {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding: 14px 18px 18px;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-main {
  background: linear-gradient(90deg, #ff4d5e 0%, #ff6660 50%, #ff8a5f 100%);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 42px;
  padding-bottom: 22px;
}

.footer-main .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-main a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-main .row.g-4.align-items-center > div:last-child {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center !important;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ios-download-trigger {
  position: relative;
  display: inline-flex;
}

.ios-download-btn {
  border-radius: 999px;
  min-width: 180px;
  padding: 0.74rem 1.55rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #ff5b6e, #e11d48);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 77, 94, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ios-download-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 77, 94, 0.46);
}

.ios-qr-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: 156px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  padding: 10px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 30;
}

.site-navbar .ios-download-trigger .ios-qr-panel {
  top: calc(100% + 10px);
  bottom: auto;
}

.ios-download-trigger.show .ios-qr-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ios-qr-img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: none;
  margin: 0 auto;
}

.ios-qr-text {
  color: #475569;
  font-size: 12px;
  margin: 0;
  line-height: 1.45;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .page-hero {
    height: auto;
    min-height: 0;
    padding-top: 130px;
    padding-bottom: 48px;
    background-position: center;
  }

  .page-hero::before {
    width: 100%;
    background-position: 68% center;
    -webkit-mask-image: linear-gradient(to left, #000 78%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, #000 78%, rgba(0, 0, 0, 0) 100%);
  }

  .metric-grid {
    margin-top: 0;
  }

  .site-navbar .navbar-collapse {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(170, 30, 53, 0.82);
    backdrop-filter: blur(10px);
  }

  .site-navbar .nav-link {
    border-radius: 10px;
  }

  .site-navbar .navbar-nav {
    gap: 4px;
  }

  .site-navbar .ios-download-trigger .ios-qr-panel {
    left: 0;
    transform: none;
  }

  .cta-btn-group {
    justify-content: flex-start !important;
  }
}

@media (min-width: 992px) {
  .site-navbar .navbar-nav {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-card,
  .btn-primary-pill,
  .btn-outline-dark-pill,
  .ios-download-btn,
  .navbar-download,
  .reveal-up,
  .page-hero::before,
  .page-hero::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
