/* 寻忆慕 H5 落地页样式 */
:root {
  --primary: #4a6fa5;
  --primary-dark: #3a5a8a;
  --primary-light: #eef3fa;
  --accent: #d4a373;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --border: #e8ecf2;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

.nav-admin {
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary) !important;
}

.nav-admin:hover {
  background: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-visual {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  border-radius: 26px;
  overflow: hidden;
  padding: 20px;
}

.screen-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

.screen-card {
  height: 120px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.screen-card.small {
  height: 70px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Features */
.features {
  background: var(--bg);
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

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

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

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

/* Steps */
.steps {
  background: var(--bg-soft);
}

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

.step-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  width: 48px;
  height: 48px;
  line-height: 48px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
}

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

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

.qr-placeholder {
  display: flex;
  justify-content: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  text-align: center;
}

.qr-box span {
  font-size: 14px;
  margin-bottom: 4px;
}

.qr-box p {
  font-size: 12px;
}

/* Promoter */
.promoter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.promoter-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.promoter-info {
  flex: 1;
}

.promoter-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.promoter-info p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.8;
}

.promoter-benefits {
  list-style: none;
}

.promoter-benefits li {
  margin-bottom: 10px;
  font-size: 15px;
}

.promoter-form-wrapper {
  flex: 0 0 420px;
}

.promoter-form {
  background: #fff;
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.promoter-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group .required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-message.success {
  color: #27ae60;
}

.form-message.error {
  color: #e74c3c;
}

/* Contact */
.contact {
  background: var(--bg);
}

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

.contact-card {
  text-align: center;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: #1a1f2b;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-slogan {
  margin-top: 8px;
  font-size: 14px;
}

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

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  margin-bottom: 4px;
}

.beian {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    flex: none;
  }

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

  .promoter-inner {
    flex-direction: column;
  }

  .promoter-form-wrapper {
    flex: none;
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 24px;
    width: 100%;
  }

  .nav-admin {
    border: none;
    border-radius: 0;
    margin: 0 16px;
    text-align: center;
    background: var(--primary-light);
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .feature-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .promoter-info h2 {
    font-size: 26px;
  }

  .promoter-form {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
