:root {
  --pink: #ffb7c5;
  --mint: #b8f2e6;
  --cream: #fff7d6;
  --purple: #e2d1f9;
  --text-dark: #4a4a4a;
  --text-light: #7a7a7a;
  --bg-color: #fffafb;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 8px 24px rgba(255, 183, 197, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(var(--pink) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 导航 */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; color: #ff6b81; }
.logo-area img { height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #ff6b81; }

/* 首屏 */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 2.5rem; color: #ff6b81; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.badge { background: var(--glass-bg); border: 1px solid var(--pink); padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; color: #ff6b81; box-shadow: var(--shadow-soft); }
.hero-images { display: flex; justify-content: center; gap: 16px; margin-top: 40px; perspective: 1000px; }
.hero-images img { width: 30%; max-width: 200px; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s; }
.hero-images img:nth-child(1) { transform: translateY(20px) rotate(-5deg); }
.hero-images img:nth-child(2) { transform: translateY(-10px) scale(1.1); z-index: 2; }
.hero-images img:nth-child(3) { transform: translateY(20px) rotate(5deg); }
.hero-images img:hover { transform: scale(1.15) translateY(0) rotate(0); z-index: 3; }

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6); }
.btn-mint {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(161, 196, 253, 0.4);
}
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 统一 Section 标题 */
section { padding: 60px 24px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: #ff6b81; display: inline-block; position: relative; margin-bottom: 8px; }
.section-title h2::after { content: ''; position: absolute; bottom: -4px; left: 10%; width: 80%; height: 4px; background: var(--pink); border-radius: 2px; opacity: 0.5; }
.section-title p { color: var(--text-light); font-size: 1rem; }

/* 最新连载 - 瀑布流 */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.masonry-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.masonry-item:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(255, 107, 129, 0.3); }
.masonry-item img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.masonry-item .info { padding: 12px; }
.masonry-item h3 { font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masonry-item .tag { font-size: 0.8rem; color: #ff6b81; background: #fff0f3; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.masonry-item:nth-child(even) { margin-top: 30px; }

/* 高分神作 - 抽拉卡 */
.pull-out-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.pull-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}
.pull-card:hover { transform: translateX(10px); }
.pull-card:nth-child(even) { flex-direction: row-reverse; }
.pull-card:nth-child(even):hover { transform: translateX(-10px); }
.pull-card img { width: 40%; object-fit: cover; }
.pull-content { padding: 24px; width: 60%; display: flex; flex-direction: column; justify-content: center; }
.pull-content h3 { font-size: 1.4rem; color: #ff6b81; margin-bottom: 12px; }
.pull-content p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.pull-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pull-tags span { background: var(--mint); color: #333; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; }
.pull-time { font-size: 0.85rem; color: #999; }

/* 发现方式 - 气泡玻璃态 */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.glass-pod {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 183, 197, 0.15);
  transition: transform 0.3s;
}
.glass-pod:hover { transform: translateY(-5px); }
.glass-pod h3 { color: #ff6b81; margin-bottom: 16px; font-size: 1.2rem; }
.glass-pod ul { text-align: left; font-size: 0.9rem; color: var(--text-dark); }
.glass-pod li { margin-bottom: 8px; padding-left: 16px; position: relative; }
.glass-pod li::before { content: '🌸'; position: absolute; left: 0; font-size: 0.7rem; top: 2px; }
.pod-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pod-tags span { background: #fff; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* 离线缓存与同步 - 拼图连线 */
.puzzle-section {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.puzzle-img { width: 35%; border-radius: var(--radius-md); }
.puzzle-text { width: 50%; }
.puzzle-text h2 { color: #ff6b81; margin-bottom: 16px; }
.puzzle-text p { color: var(--text-light); margin-bottom: 12px; }
.sync-line {
  position: absolute;
  top: 50%; left: 35%; right: 50%;
  height: 2px;
  border-top: 2px dashed #ff6b81;
  transform: translateY(-50%);
}
.sync-badge {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ff6b81;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 107, 129, 0.4);
  z-index: 2;
}

/* 同好弹幕区 - 便签墙 */
.sticky-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.sticky-note {
  background: var(--cream);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
  position: relative;
  transform: rotate(-2deg);
}
.sticky-note:nth-child(even) { background: var(--mint); transform: rotate(2deg); }
.sticky-note:nth-child(3n) { background: var(--pink); transform: rotate(-1deg); }
.sticky-note::before {
  content: '';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 12px; background: rgba(255,255,255,0.6); border-radius: 6px;
}
.sticky-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sticky-header img { width: 32px; height: 32px; border-radius: 50%; background: #fff; padding: 2px; }
.sticky-header span { font-weight: bold; font-size: 0.9rem; }
.sticky-note p { font-size: 0.9rem; color: #444; }

/* 常见问题 - 极简卡片墙 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--pink);
}
.faq-item h3 { color: #ff6b81; font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.9rem; color: var(--text-light); }

/* 下载区 */
.download-section {
  background: linear-gradient(180deg, #fff 0%, #fff0f3 100%);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto 60px;
  box-shadow: 0 10px 40px rgba(255, 183, 197, 0.2);
}
.download-section h2 { color: #ff6b81; font-size: 2rem; margin-bottom: 16px; }
.install-tips { text-align: left; max-width: 600px; margin: 0 auto 32px; background: #fff; padding: 24px; border-radius: var(--radius-md); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.install-tips p { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-dark); }
.install-tips p:last-child { margin-bottom: 0; }
.candy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--pink); color: #ff6b81;
  padding: 12px 30px; border-radius: 40px; font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.2);
  transition: all 0.3s;
}
.candy-btn:hover { background: var(--pink); color: #fff; transform: scale(1.05); }

/* 页脚 */
footer {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-top: 1px dashed var(--pink);
  font-size: 0.9rem;
  color: var(--text-light);
}
.footer-deco { font-size: 1.2rem; color: #ff6b81; letter-spacing: 4px; margin-bottom: 16px; font-weight: bold; }
footer p { margin-bottom: 8px; }
footer time { font-size: 0.8rem; color: #aaa; display: block; margin-top: 12px; }

/* 弹窗 */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; padding: 30px; border-radius: 20px; max-width: 90%; width: 360px;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-box p { font-size: 1rem; color: var(--text-dark); margin-bottom: 20px; }
.modal-link { background: #f5f5f5; padding: 12px; border-radius: 8px; word-break: break-all; font-family: monospace; font-size: 0.9rem; margin-bottom: 20px; color: #ff6b81; font-weight: bold; }
.copy-btn {
  background: var(--pink); color: #fff; border: none; padding: 10px 24px;
  border-radius: 20px; font-size: 1rem; cursor: pointer; font-weight: bold; width: 100%;
}
.copy-btn:active { background: #ff9aae; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2rem; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 12px; padding: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-images { flex-wrap: wrap; }
  .hero-images img { width: 45%; }
  .hero-images img:nth-child(3) { margin-top: 16px; }
  
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry-item:nth-child(even) { margin-top: 0; }
  
  .pull-card, .pull-card:nth-child(even) { flex-direction: column; }
  .pull-card:hover, .pull-card:nth-child(even):hover { transform: translateY(-5px); }
  .pull-card img { width: 100%; height: 200px; }
  .pull-content { width: 100%; padding: 16px; }
  
  .puzzle-section { flex-direction: column; padding: 24px; }
  .puzzle-img { width: 80%; margin-bottom: 24px; }
  .puzzle-text { width: 100%; text-align: center; }
  .sync-line { display: none; }
  .sync-badge { position: relative; top: auto; left: auto; transform: none; display: inline-block; margin-bottom: 24px; }
  
  .sticky-wall { grid-template-columns: 1fr; }
  .sticky-note, .sticky-note:nth-child(even), .sticky-note:nth-child(3n) { transform: none; }
}