/* ==========================================
   芭乐 · 官网样式
   ========================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

.logo-icon { font-size: 28px; }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: #666;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav a:hover,
.nav a.active { color: #ff9c9c; }

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #ff9c9c;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav a:hover::after { width: 100%; }

.btn-download-sm {
  background: linear-gradient(135deg, #ff9c9c, #ffb3b3);
  color: #fff;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(255, 156, 156, 0.3);
}

.btn-download-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 156, 156, 0.4);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.circle-1 {
  width: 600px; height: 600px;
  background: #ff9c9c;
  top: -200px; right: -100px;
}

.circle-2 {
  width: 400px; height: 400px;
  background: #a18cd1;
  bottom: -100px; left: -50px;
}

.circle-3 {
  width: 200px; height: 200px;
  background: #ff9c9c;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 156, 156, 0.08);
  color: #ff9c9c;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #ff9c9c;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #1a1a2e;
}

.gradient-text {
  background: linear-gradient(135deg, #ff9c9c, #ff6b6b, #a18cd1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9c9c, #ff6b6b);
  color: #fff;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 156, 156, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 156, 156, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ff9c9c;
  border: 2px solid #ff9c9c;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 156, 156, 0.06);
  transform: translateY(-3px);
}

.hero-users {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatars {
  display: flex;
}

.ua {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-right: -10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ua-more {
  background: #f0f0f5;
  color: #999;
  font-size: 14px;
}

.users-text {
  font-size: 14px;
  color: #999;
}

.users-text strong {
  color: #ff9c9c;
  font-weight: 700;
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}

.phone-notch {
  width: 120px; height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: #f2f3f5;
  border-radius: 28px;
  overflow: hidden;
  padding: 40px 16px 0;
  min-height: 540px;
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
  padding: 0 4px;
}

.mock-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-post {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  animation: fadeInUp 0.6s ease both;
}

.mock-post:nth-child(2) { animation-delay: 0.1s; }

.mock-avatar,
.mock-avatar2 {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff9c9c, #ffb3b3);
}

.mock-avatar2 {
  background: linear-gradient(135deg, #a18cd1, #c2a4f5);
}

.mock-body { flex: 1; }

.mock-skeleton {
  height: 10px;
  background: linear-gradient(90deg, #f0f0f5 25%, #e8e8ee 50%, #f0f0f5 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-skeleton.w80 { width: 80%; }
.mock-skeleton.w60 { width: 60%; }
.mock-skeleton.w70 { width: 70%; }
.mock-skeleton.w50 { width: 50%; }
.mock-skeleton.w90 { width: 90%; }
.mock-skeleton.w100 { width: 100%; }
.mock-skeleton.h40 { height: 36px; border-radius: 8px; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-card {
  background: linear-gradient(135deg, rgba(255,156,156,0.08), rgba(255,179,179,0.04));
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.mock-card-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, #ff9c9c, #ff6b6b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.mock-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 16px;
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.mtab {
  font-size: 20px;
  opacity: 0.3;
}

.mtab.active { opacity: 1; }

.mtab.center {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ff9c9c, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  opacity: 1;
}

/* Float Cards */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
}

.fc1 {
  top: 20%; left: -40px;
  animation-delay: 0s;
}

.fc2 {
  bottom: 25%; right: -50px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.fc-icon {
  font-size: 28px;
  width: 48px; height: 48px;
  background: rgba(255, 156, 156, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.fc-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ---------- Section Common ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 156, 156, 0.08);
  color: #ff9c9c;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Features ---------- */
.features {
  padding: 120px 0;
  background: #fafbfc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  transition: all 0.35s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.feature-card p {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
}

/* ---------- Showcase ---------- */
.showcase {
  padding: 120px 0;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse .showcase-text {
  direction: ltr;
}

.showcase-num {
  font-size: 14px;
  font-weight: 700;
  color: #ff9c9c;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.showcase-text h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.showcase-text p {
  font-size: 17px;
  color: #888;
  line-height: 1.7;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

/* Tag cloud */
.sv-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 340px;
}

.sv-tag {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.3s ease;
}

.sv-tag:hover { transform: scale(1.08); }

.sv-tag.blue   { background: linear-gradient(135deg, #a1c4fd, #7aa1f2); }
.sv-tag.pink   { background: linear-gradient(135deg, #ff9c9c, #ff6b6b); }
.sv-tag.purple { background: linear-gradient(135deg, #a18cd1, #c2a4f5); }
.sv-tag.orange { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #8b5e3c; }
.sv-tag.green  { background: linear-gradient(135deg, #84fab0, #5fd48b); }
.sv-tag.red    { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* Stats visual */
.sv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sv-stat {
  background: #fafbfc;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.sv-stat:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.sv-val {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.sv-label {
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

/* Shield */
.sv-shield {
  text-align: center;
}

.shield-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.shield-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.shield-items span {
  background: #fafbfc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

/* ---------- Stats ---------- */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #ff9c9c, #ff6b6b);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: inline;
}

.stat-label {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 120px 0;
  background: #fafbfc;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}

.t-stars {
  font-size: 15px;
  margin-bottom: 16px;
}

.t-text {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.t-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.t-role {
  font-size: 13px;
  color: #999;
}

/* ---------- Download ---------- */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.download-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
}

.dc1 {
  width: 500px; height: 500px;
  background: #ff9c9c;
  top: -100px; right: -100px;
}

.dc2 {
  width: 350px; height: 350px;
  background: #a18cd1;
  bottom: -80px; left: -50px;
}

.download-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.download-desc {
  font-size: 18px;
  color: #888;
  margin-bottom: 48px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 18px;
  transition: all 0.3s ease;
  color: #fff;
  min-width: 200px;
}

.download-btn.ios {
  background: #1a1a2e;
}

.download-btn.android {
  background: #ff9c9c;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.dl-small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  text-align: left;
}

.dl-large {
  font-size: 18px;
  font-weight: 700;
}

.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-code {
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: inline-block;
}

.qr-svg {
  display: block;
}

.qr-hint {
  font-size: 14px;
  color: #aaa;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ff9c9c;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-actions,
  .hero-users { justify-content: center; }

  .hero-mockup { order: -1; }
  .phone-frame { width: 240px; }
  .phone-screen { min-height: 460px; }
  .phone-notch { width: 100px; height: 24px; }

  .float-card { display: none; }

  .hero-title { font-size: 42px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }

  .menu-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .hero { padding: 120px 0 60px; }

  .hero-title { font-size: 34px; }

  .hero-desc { font-size: 15px; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .section-title { font-size: 30px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .download-title { font-size: 32px; }
}
