:root {
  --primary: #e83c6c;
  --primary-light: #ff7b9c;
  --primary-soft: #ffe4ec;
  --primary-deep: #b32b4e;
  --bg-cream: #fdfaf5;
  --bg-grey: #f3efe8;
  --text-main: #2e2e2e;
  --text-sub: #9e7885;
  --text-muted: #b28b97;
  --star-gold: #ffb347;
  --shadow-base: 0 8px 20px rgba(232,60,108,0.08);
  --shadow-hover: 0 12px 28px rgba(232,60,108,0.15);
  --radius-card: 26px;
  --radius-pill: 50px;
  --font-stack: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { color: var(--text-main); line-height: 1.3; }
h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
h2 .icon { display: inline-flex; width: 38px; height: 38px; background: var(--primary-soft); color: var(--primary); border-radius: 12px; align-items: center; justify-content: center; font-size: 18px; }
h3 { font-size: 18px; font-weight: 800; }
.section-intro { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }

/* Header */
header {
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--primary-soft);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-group img { height: 36px; width: auto; border-radius: 8px; }
.logo-text { font-size: 26px; font-weight: 800; }
.logo-text span { color: var(--primary); }
nav { display: flex; gap: 12px; flex-wrap: wrap; }
nav a {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--primary-soft);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-main);
  transition: all 0.2s;
}
nav a:hover { background: var(--primary-soft); color: var(--primary-deep); border-color: var(--primary-light); }

/* Hero */
.hero {
  background: 120deg, #fff2f5 0%, #ffe0ea 100%;
  border-radius: 40px;
  padding: 48px 32px;
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-base);
  border: 1px solid #fff;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -50px; bottom: -50px;
  width: 200px; height: 200px; background: var(--primary);
  border-radius: 50%; opacity: 0.05; pointer-events: none;
}
.hero-left { flex: 1 1 400px; z-index: 1; }
.hero-tag {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px;
}
h1 { font-size: 42px; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
h1 span { color: var(--primary); background: linear-gradient(90deg, #e83c6c, #ff8daa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 16px; color: var(--text-sub); margin-bottom: 24px; max-width: 500px; line-height: 1.6; }
.hero-stats { display: flex; gap: 24px; margin-bottom: 32px; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 800; transition: all 0.2s;
  cursor: pointer; gap: 8px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(232,60,108,0.3); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,60,108,0.4); }
.btn-ghost { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }

.hero-right { flex: 0 0 300px; display: flex; flex-direction: column; gap: 12px; align-items: center; z-index: 1; }
.hero-visual {
  width: 160px; height: 160px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 40px; border: 4px solid #fff; box-shadow: var(--shadow-hover);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px;
}
.hero-mini-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mini-card {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(4px);
  padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: var(--text-main); display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.mini-card span { color: var(--primary); }

/* Daily Update */
.update-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.update-card {
  background: #fff9fb; border: 1px solid var(--primary-soft);
  border-radius: 22px; padding: 16px; text-align: center;
  transition: all 0.2s;
}
.update-card:hover { background: #fff; border-color: var(--primary-light); box-shadow: var(--shadow-base); }
.update-day { background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.update-card h3 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-time { font-size: 11px; color: var(--text-muted); }

/* Ranking */
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rank-card {
  background: #fff; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-base); transition: all 0.2s;
  border: 1px solid transparent;
}
.rank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.rank-cover { position: relative; height: 200px; overflow: hidden; background: var(--primary-soft); }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-badge {
  position: absolute; top: 10px; left: 10px;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge-1 { background: var(--primary); }
.badge-2 { background: var(--primary-light); }
.badge-3 { background: #f9a8c0; color: var(--primary-deep); }
.badge-other { background: var(--primary); }
.rank-tag {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--primary-deep);
}
.rank-info { padding: 16px; }
.rank-info h3 { font-size: 18px; margin-bottom: 6px; }
.rank-meta { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; display: flex; gap: 12px; }
.rank-desc { font-size: 13px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; line-height: 1.6; }
.rank-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--primary-soft); color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* Community */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review-card {
  background: #fff9fb; border-radius: 24px; padding: 16px;
  display: flex; gap: 12px; border: 1px solid var(--primary-soft);
  transition: all 0.2s;
}
.review-card:hover { background: #fff; box-shadow: var(--shadow-base); }
.review-avatar {
  width: 48px; height: 48px; border-radius: 16px; background: var(--primary-soft);
  color: var(--primary); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-content { flex: 1; }
.review-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.review-user { font-size: 14px; font-weight: 800; }
.review-time { font-size: 11px; color: var(--text-muted); }
.review-text { font-size: 13px; color: var(--text-main); line-height: 1.6; margin-bottom: 8px; }
.review-topic { font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; display: inline-block; }
.review-stats { font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; margin-top: 8px; }

/* App Download */
.app-section {
  background: #fff; border-radius: 40px; padding: 48px;
  box-shadow: 0 12px 32px rgba(232,60,108,0.1);
  border: 1px solid var(--primary-soft);
  display: flex; flex-wrap: wrap; gap: 40px;
}
.app-left { flex: 1 1 400px; }
.app-card {
  background: linear-gradient(135deg, #fff2f5, #ffe0ea);
  border-radius: 28px; border: 1px solid var(--primary-soft);
  padding: 24px; display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.app-icon { width: 90px; height: 90px; border-radius: 28px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(232,60,108,0.2); }
.app-title h3 { font-size: 26px; color: var(--text-main); font-weight: 900; }
.app-title p { font-size: 13px; color: var(--text-sub); }
.app-stars { color: var(--star-gold); font-size: 14px; margin-top: 4px; font-weight: 700; }
.app-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.app-note { font-size: 12px; color: var(--text-muted); margin-bottom: 32px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-item {
  background: #fff; border-radius: 20px; padding: 16px;
  border: 1px solid var(--primary-soft);
}
.feature-icon { font-size: 24px; margin-bottom: 8px; }
.feature-item h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.feature-item p { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

.app-right { flex: 1 1 400px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.faq-item { background: #fff9fb; border-radius: 22px; padding: 16px; border: 1px solid var(--primary-soft); }
.faq-q { font-size: 14px; font-weight: 800; color: var(--primary-deep); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.faq-a { font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.tags-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.tags-bar span { background: var(--primary-soft); color: var(--primary); font-size: 12px; padding: 6px 14px; border-radius: 20px; font-weight: 600; }

/* Floating Button */
.floating-btn {
  position: fixed; right: 28px; bottom: 28px;
  background: var(--primary); color: #fff;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(232,60,108,0.4); border: 2px solid #fff;
  z-index: 999; transition: all 0.2s; cursor: pointer;
  animation: pulse-soft 2.8s infinite;
}
.floating-btn:hover { transform: scale(1.03); background: var(--primary-deep); }
@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(232,60,108,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(232,60,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,60,108,0); }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-base); background: #fff; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* Footer */
footer {
  background: var(--bg-grey); border-top: 1px solid var(--primary-soft);
  padding: 32px 0; text-align: center; font-size: 12px; color: var(--text-muted);
  margin-top: 40px;
}
footer p { margin-bottom: 8px; }
footer a { color: var(--text-muted); transition: color 0.2s; }
footer a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 1100px) {
  .rank-grid { grid-template-columns: repeat(3, 1fr); }
  .app-section { padding: 32px; }
}
@media (max-width: 820px) {
  h1 { font-size: 32px; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .app-section { flex-direction: column; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px; }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .rank-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .floating-btn { right: 16px; bottom: 16px; padding: 10px 18px; font-size: 15px; }
  .update-grid { grid-template-columns: repeat(2, 1fr); }
  nav { justify-content: center; }
  nav a { padding: 6px 12px; font-size: 13px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
}