/* ============================================
   瞧花赏花地图官方网站 - 样式表
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #e8738a;
  --color-primary-light: #f5a0b0;
  --color-primary-dark: #d45a6e;
  --color-primary-bg: #fef5f7;
  --color-accent: #f0a050;
  --color-green: #6db87d;
  --color-green-light: #e8f5ea;
  --color-green-dark: #4a8a5a;

  --color-bg: #ffffff;
  --color-bg-alt: #fafaf9;
  --color-bg-warm: #fef9f5;

  --color-text: #2d2d2d;
  --color-text-secondary: #6b6b6b;
  --color-text-muted: #999999;
  --color-border: #e8e5e2;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 1200px;
  --header-height: 64px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.logo-icon {
  font-size: 28px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-primary);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-primary-bg) 0%,
    var(--color-bg) 60%
  );
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--color-primary);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 115, 138, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 115, 138, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

/* --- Hero Visual (Phone Mockup) --- */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
}

.phone-screen {
  background: #f8f5f0;
  border-radius: 26px;
  overflow: hidden;
  height: 520px;
}

.mockup-header {
  background: #f8f5f0;
  padding: 16px 20px 8px;
  text-align: center;
}

.mockup-time {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.mockup-content {
  padding: 0 14px 14px;
}

.mockup-search {
  background: #fff;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mockup-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mockup-card-img {
  height: 100px;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.mockup-card-img.img2 {
  background: linear-gradient(135deg, #fff9c4, #ffe082);
}

.mockup-card-body {
  padding: 12px 14px;
}

.mockup-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.mockup-card-status {
  font-size: 12px;
}

.mockup-card-status.blooming {
  color: var(--color-primary);
}

.mockup-card-status.peak {
  color: var(--color-accent);
}

/* --- Petal Animation --- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    var(--color-primary-light),
    var(--color-primary)
  );
  border-radius: 50% 0 50% 0;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.petal-1 { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 7s; }
.petal-2 { top: 20%; left: 15%; animation-delay: 1.5s; animation-duration: 9s; }
.petal-3 { top: 15%; right: 10%; animation-delay: 3s; animation-duration: 8s; }
.petal-4 { top: 60%; left: 8%; animation-delay: 4.5s; animation-duration: 10s; }
.petal-5 { top: 40%; right: 5%; animation-delay: 2s; animation-duration: 8.5s; }
.petal-6 { bottom: 20%; right: 15%; animation-delay: 5s; animation-duration: 9.5s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Credibility --- */
.credibility {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.credibility-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.credibility-level {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.credibility-level.high {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.credibility-level.medium {
  background: #fff8e1;
  color: #c79121;
}

.credibility-level.low {
  background: #fce4ec;
  color: #999;
}

.credibility-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.credibility-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* --- How it Works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--color-primary-light);
  margin-top: 60px;
  flex-shrink: 0;
}

/* --- CTA --- */
.cta {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

.cta-card {
  background: linear-gradient(
    135deg,
    var(--color-primary-bg) 0%,
    #fff5f0 100%
  );
  border-radius: var(--radius-xl);
  padding: 60px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.cta-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.cta-qr {
  display: inline-block;
}

.qr-placeholder {
  width: 160px;
  height: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px dashed var(--color-primary-light);
}

.qr-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.qr-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.qr-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.cta-decoration {
  position: absolute;
  right: -40px;
  bottom: -40px;
  pointer-events: none;
}

.floating-petal {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(232, 115, 138, 0.15),
    rgba(240, 160, 80, 0.15)
  );
  border-radius: 50% 0 50% 0;
}

.floating-petal.p1 {
  right: 100px;
  bottom: 80px;
  animation: float 6s ease-in-out infinite;
}

.floating-petal.p2 {
  right: 60px;
  bottom: 20px;
  animation: float 8s ease-in-out 2s infinite;
  width: 60px;
  height: 60px;
}

.floating-petal.p3 {
  right: 160px;
  bottom: 0;
  animation: float 7s ease-in-out 4s infinite;
  width: 50px;
  height: 50px;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: inline-block;
}

.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
}

.footer-filings {
  display: flex;
  gap: 20px;
  align-items: center;
}

.filing-link,
.filing-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.filing-link {
  transition: color 0.2s;
}

.filing-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

.filing-placeholder {
  opacity: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    height: 440px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credibility-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    justify-self: center;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step {
    max-width: 320px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
  }

  .cta-content p {
    max-width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .credibility-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
