/**
 * Shiguang 拾光集 - 首页专用样式
 * 毛玻璃 · 简约白 · 插画风
 */

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(165deg, #F5F7FB 0%, #EEF2FF 30%, #FFF9F3 60%, #F5F7FB 100%);
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: heroBlobFloat 8s ease-in-out infinite; transition: transform 0.1s ease-out; }
.hero-blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(108,159,255,0.25), transparent 70%); top: -120px; right: -80px; }
.hero-blob-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,184,122,0.2), transparent 70%); bottom: -80px; left: -60px; animation-delay: -3s; }
.hero-blob-3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(168,200,255,0.18), transparent 70%); top: 40%; left: 50%; animation-delay: -5s; }

/* 粒子画布 */
.hero-particles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}

@keyframes heroBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-text { max-width: 520px; }
.hero-title { margin-bottom: 16px; }
.hero-title-main {
  font-size: 3.2rem; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 40%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2;
}
.hero-subtitle { font-size: 1.2rem; font-weight: 500; color: var(--text); margin-bottom: 12px; opacity: 0.85; min-height: 1.8em; }
.hero-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }

/* 打字机光标 */
.typing-cursor { display: inline-block; width: 2px; height: 1em; background: var(--primary); margin-left: 2px; animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 统计条 */
.hero-stats {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 24px; margin-bottom: 28px;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.stat-item { display: flex; align-items: baseline; gap: 4px; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); }
.stat-divider { width: 1px; height: 24px; background: var(--border); }

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

/* Hero 插画区 */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-illustration { position: relative; width: 360px; height: 360px; --ring1: 160px; --ring2: 120px; --ring3: 80px; }

/* 中央光晕 */
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108,159,255,0.22) 0%, rgba(255,184,122,0.12) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: heroPulse 5s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* 中央核心（logo 徽标） */
.hero-core {
  position: absolute; top: 50%; left: 50%;
  width: 96px; height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(108,159,255,0.25), inset 0 0 20px rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  animation: heroFloat 4s ease-in-out infinite;
}
.hero-core img { width: 60px; height: 60px; object-fit: contain; }

/* 渐变虚线环 */
.hero-circle { position: absolute; border-radius: 50%; animation: heroOrbit 12s linear infinite; }
.hero-circle-1 {
  width: 320px; height: 320px; top: 20px; left: 20px;
  border: 2px dashed rgba(108,159,255,0.4);
  box-shadow: 0 0 24px rgba(108,159,255,0.12), inset 0 0 24px rgba(108,159,255,0.06);
  animation-duration: 24s;
}
.hero-circle-2 {
  width: 240px; height: 240px; top: 60px; left: 60px;
  border: 2px dashed rgba(255,184,122,0.4);
  box-shadow: 0 0 20px rgba(255,184,122,0.12), inset 0 0 20px rgba(255,184,122,0.06);
  animation-duration: 18s; animation-direction: reverse;
}
.hero-circle-3 {
  width: 160px; height: 160px; top: 100px; left: 100px;
  border: 1px solid rgba(139,92,246,0.3);
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
  box-shadow: 0 0 18px rgba(139,92,246,0.1);
  animation-duration: 12s;
}
@keyframes heroOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 轨道卫星点（沿环运行） */
.hero-orbit-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; z-index: 2; }
.hero-orbit-dot-1 {
  top: 20px; left: calc(50% - 5px); transform-origin: 50% var(--ring1);
  background: linear-gradient(135deg, #6C9FFF, #8B5CF6);
  box-shadow: 0 0 10px rgba(108,159,255,0.6);
  animation: heroOrbit 24s linear infinite;
}
.hero-orbit-dot-2 {
  top: 60px; left: calc(50% - 5px); transform-origin: 50% var(--ring2);
  background: linear-gradient(135deg, #FFB74A, #FF8E8E);
  box-shadow: 0 0 10px rgba(255,184,122,0.6);
  animation: heroOrbit 18s linear infinite reverse;
}
.hero-orbit-dot-3 {
  top: 100px; left: calc(50% - 5px); transform-origin: 50% var(--ring3);
  background: linear-gradient(135deg, #8B5CF6, #6C9FFF);
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
  animation: heroOrbit 12s linear infinite;
}

/* 点缀星星（闪烁） */
.hero-star {
  position: absolute; z-index: 2; font-size: 18px; line-height: 1;
  color: #FFC46B; text-shadow: 0 0 8px rgba(255,184,122,0.6);
  animation: heroTwinkle 3s ease-in-out infinite;
}
.hero-star-1 { top: 6px; right: 24px; color: #6C9FFF; text-shadow: 0 0 8px rgba(108,159,255,0.6); animation-delay: -0.4s; }
.hero-star-2 { top: 88px; right: -2px; font-size: 12px; animation-delay: -1.2s; }
.hero-star-3 { bottom: 24px; right: 30px; font-size: 14px; color: #8B5CF6; text-shadow: 0 0 8px rgba(139,92,246,0.6); animation-delay: -2s; }
.hero-star-4 { bottom: 74px; left: 6px; font-size: 12px; color: #6C9FFF; text-shadow: 0 0 8px rgba(108,159,255,0.6); animation-delay: -1.6s; }
.hero-star-5 { top: 130px; left: -4px; font-size: 16px; animation-delay: -2.6s; }
@keyframes heroTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

/* 漂浮图标 */
.hero-icon { position: absolute; z-index: 2; font-size: 38px; animation: heroFloat 4s ease-in-out infinite; }
.hero-icon-1 { top: 4px; left: calc(50% - 19px); color: #6C9FFF; filter: drop-shadow(0 4px 14px rgba(108,159,255,0.45)); }
.hero-icon-2 { bottom: 34px; left: 14px; color: #FFB74A; animation-delay: -1.5s; filter: drop-shadow(0 4px 14px rgba(255,184,122,0.45)); }
.hero-icon-3 { bottom: 64px; right: 10px; color: #8B5CF6; animation-delay: -3s; filter: drop-shadow(0 4px 14px rgba(139,92,246,0.45)); }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ========== 轮播区域 ========== */
.swipe-section { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.swipe-carousel { position: relative; width: 100%; overflow: hidden; }
.swipe-track { position: relative; width: 100%; padding-top: 48%; overflow: hidden; }
.swipe-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; cursor: pointer; }
.swipe-slide.active { opacity: 1; }
.swipe-slide img { width: 100%; height: 100%; object-fit: cover; }

/* 毛玻璃文字条 */
.swipe-glass-bar { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: calc(100% - 80px); max-width: 800px; z-index: 5; pointer-events: none; }
.swipe-glass-content { background: rgba(255,255,255,0.15); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; padding: 24px 32px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.swipe-glass-title { font-size: 1.4rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-glass-desc { font-size: 14px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.2); margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.swipe-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; border: none; padding: 0; }
.swipe-dot.active { width: 24px; border-radius: 4px; background: rgba(255,255,255,0.9); }

/* ========== 每日一句 ========== */
.daily-quote-section { padding: 40px 0 20px; }
.daily-quote-card {
  position: relative; max-width: 700px; margin: 0 auto;
  padding: 36px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(108,159,255,0.04), rgba(255,184,122,0.04));
  border: 1px solid rgba(108,159,255,0.1); border-radius: 20px;
  overflow: hidden;
}
.daily-quote-card::before {
  content: '\201C'; position: absolute; top: -10px; left: 20px;
  font-size: 120px; color: rgba(108,159,255,0.06); font-family: Georgia, serif;
  line-height: 1; pointer-events: none;
}
.daily-quote-badge {
  display: inline-block; padding: 4px 14px; margin-bottom: 16px;
  font-size: 12px; font-weight: 500; color: var(--primary);
  background: rgba(108,159,255,0.08); border-radius: 20px;
}
.daily-quote-text {
  font-size: 1.2rem; font-style: italic; color: var(--text);
  line-height: 1.8; margin: 0 0 12px; position: relative;
}
.daily-quote-source {
  font-size: 14px; color: var(--text-light); margin-bottom: 16px;
}
.daily-quote-article {
  display: inline-block; padding: 6px 16px;
  font-size: 13px; color: var(--primary);
  background: rgba(108,159,255,0.06); border-radius: 20px;
  cursor: pointer; transition: all 0.3s ease;
}
.daily-quote-article:hover { background: rgba(108,159,255,0.12); }

/* ========== 分类横向滚动 ========== */
.cat-scroll-section { padding-top: 40px; }
.cat-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll-item {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 20px; min-width: 110px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  text-decoration: none; color: inherit; transition: all 0.3s ease; cursor: pointer;
}
.cat-scroll-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,159,255,0.12); border-color: var(--primary-light); }
.cat-scroll-icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, rgba(108,159,255,0.08), rgba(255,184,122,0.08)); display: flex; align-items: center; justify-content: center; }
.cat-scroll-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-scroll-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.cat-scroll-count { font-size: 12px; color: var(--text-light); }

/* ========== 文章瀑布流 ========== */
.posts-masonry {
  columns: 2; column-gap: 24px;
}
.post-masonry-item {
  break-inside: avoid; margin-bottom: 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transform-style: preserve-3d; perspective: 1000px;
}
.post-masonry-item.visible { opacity: 1; transform: translateY(0); }
.post-masonry-item:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.post-masonry-item.tilt-active { transition: transform 0.1s ease-out; }
.post-masonry-cover { position: relative; overflow: hidden; }
.post-masonry-cover img { width: 100%; display: block; transition: transform 0.5s ease; }
.post-masonry-item:hover .post-masonry-cover img { transform: scale(1.05); }
.post-masonry-read { position: absolute; top: 12px; right: 12px; padding: 4px 10px; font-size: 11px; background: rgba(0,0,0,0.5); color: #fff; border-radius: 20px; }
.post-masonry-body { padding: 18px 20px; }
.post-masonry-cat { display: inline-block; font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.post-masonry-title { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-masonry-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
.post-masonry-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-light); }

/* 列表分页 */
#postsPagination { margin-top: 24px; }
#postsPagination .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px 0; }
#postsPagination .pagination button { min-width: 34px; height: 34px; border-radius: var(--radius-full); font-size: 13px; color: var(--text-secondary); background: var(--card-solid); border: 1px solid var(--border); transition: all var(--transition); display: flex; align-items: center; justify-content: center; cursor: pointer; }
#postsPagination .pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: rgba(108,159,255,0.06); }
#postsPagination .pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 500; }
#postsPagination .pagination button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ========== 最新文章视图切换（卡片 / 列表） ========== */
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
}
.view-switch .view-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-switch .view-btn:hover { color: var(--primary); }
.view-switch .view-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 159, 255, 0.3);
}

/* 列表视图：封面在左、内容在右的横向条目 */
.posts-masonry.list-view {
  columns: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.posts-masonry.list-view .post-masonry-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 0;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(16px);
}
.posts-masonry.list-view .post-masonry-item.visible { opacity: 1; transform: none; }
.posts-masonry.list-view .post-masonry-cover {
  flex-shrink: 0;
  width: 168px;
  min-height: 104px;
}
.posts-masonry.list-view .post-masonry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.posts-masonry.list-view .post-masonry-body {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.posts-masonry.list-view .post-masonry-title {
  font-size: 15px;
  margin-bottom: 6px;
}
.posts-masonry.list-view .post-masonry-excerpt {
  -webkit-line-clamp: 1;
  margin-bottom: 8px;
}
@media (max-width: 480px) {
  .posts-masonry.list-view .post-masonry-cover { width: 110px; min-height: 84px; }
  .posts-masonry.list-view .post-masonry-body { padding: 12px 14px; }
  .posts-masonry.list-view .post-masonry-excerpt { display: none; }
}

/* ========== 热门推荐排行榜 ========== */
.hot-section { background: linear-gradient(180deg, transparent 0%, rgba(255,120,80,0.02) 30%, rgba(255,184,122,0.03) 70%, transparent 100%); }

/* 榜单切换 Tab */
.hot-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 20px;
  flex-wrap: wrap;
}
.hot-tab {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--card-solid);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hot-tab:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}
.hot-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #FF8A5C, #FF6B6B);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.28);
}

.hot-list { padding: 8px 0; }
.hot-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--border); transition: background var(--transition); cursor: pointer; }
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: rgba(108,159,255,0.03); }
.hot-rank { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-light); background: rgba(0,0,0,0.03); flex-shrink: 0; }
.hot-item:nth-child(1) .hot-rank { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; box-shadow: 0 2px 8px rgba(255,215,0,0.4); }
.hot-item:nth-child(2) .hot-rank { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #fff; box-shadow: 0 2px 8px rgba(192,192,192,0.4); }
.hot-item:nth-child(3) .hot-rank { background: linear-gradient(135deg, #CD7F32, #B87333); color: #fff; box-shadow: 0 2px 8px rgba(205,127,50,0.4); }
.hot-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item:hover .hot-title { color: var(--primary); }
.hot-views { font-size: 12px; color: var(--text-light); white-space: nowrap; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hot-views::before { content: ''; display: inline-block; width: 14px; height: 14px; background: currentColor; opacity: 0.4; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); -webkit-mask-size: contain; mask-size: contain; }
.hot-views.likes::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }

/* ========== 精选合集横向滑动 ========== */
.collections-slider {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 0 16px;
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory;
}
.collections-slider::-webkit-scrollbar { display: none; }
.collection-slide {
  flex: 0 0 320px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all 0.3s ease; cursor: pointer;
  display: block; text-decoration: none; color: inherit;
}
.collection-slide:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.collection-slide-cover { position: relative; padding-top: 56%; overflow: hidden; }
.collection-slide-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collection-slide:hover .collection-slide-cover img { transform: scale(1.05); }
.collection-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%); display: flex; align-items: flex-end; padding: 16px 20px; }
.collection-slide-count { padding: 4px 10px; font-size: 12px; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); color: #fff; border-radius: 20px; }
.collection-slide-body { padding: 18px 20px; }
.collection-slide-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.collection-slide-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ========== 导航搜索栏 ========== */
.nav-search { display: flex; align-items: center; background: rgba(0,0,0,0.04); border-radius: 20px; padding: 6px 12px; margin-right: 12px; }
.nav-search input { border: none; background: transparent; font-size: 13px; width: 140px; outline: none; color: var(--text); }
.nav-search-btn { border: none; background: transparent; cursor: pointer; font-size: 14px; padding: 0; opacity: 0.6; }
.nav-search-btn:hover { opacity: 1; }

/* 暗色模式按钮 */
.theme-toggle { border: none; background: rgba(0,0,0,0.04); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 16px; transition: all 0.3s ease; }
.theme-toggle:hover { background: rgba(108,159,255,0.1); }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* 回到顶部 */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%; background: var(--card-solid); border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,159,255,0.15); border-color: var(--primary); }

/* 页脚更新时间和二维码 */
.footer-update { font-size: 12px; color: var(--text-light); margin-top: 12px; }
.footer-qr { display: flex; align-items: center; justify-content: center; }
.qr-placeholder { width: 100px; height: 100px; background: rgba(0,0,0,0.03); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.qr-placeholder span { font-size: 32px; }
.qr-placeholder small { font-size: 10px; color: var(--text-light); }

/* ========== 暗色模式 ========== */
[data-theme="dark"] {
  --bg: #1a1a2e;
  --card: rgba(255,255,255,0.05);
  --card-solid: #252540;
  --border: rgba(255,255,255,0.1);
  --text: #e8e8f0;
  --text-secondary: #a0a0b0;
  --text-light: #707080;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .hero { background: linear-gradient(165deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%); }
[data-theme="dark"] .hero-stats { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .nav-search { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,0.08); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-illustration { width: 300px; height: 300px; --ring1: 130px; --ring2: 98px; --ring3: 66px; }
  .hero-circle-1 { width: 260px; height: 260px; top: 20px; left: 20px; }
  .hero-circle-2 { width: 196px; height: 196px; top: 52px; left: 52px; }
  .hero-circle-3 { width: 132px; height: 132px; top: 84px; left: 84px; }
  .hero-orbit-dot-1 { top: 20px; }
  .hero-orbit-dot-2 { top: 52px; }
  .hero-orbit-dot-3 { top: 84px; }
  .hero-glow { width: 230px; height: 230px; }
  .posts-masonry { columns: 2; }
  .collection-slide { flex: 0 0 280px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-title-main { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .swipe-section { margin-top: -20px; }
  .swipe-track { padding-top: 56%; }
  .swipe-glass-bar { bottom: 24px; width: calc(100% - 32px); }
  .swipe-glass-content { padding: 16px 20px; border-radius: 12px; }
  .swipe-glass-title { font-size: 1.1rem; }
  .swipe-glass-desc { font-size: 13px; }
  .daily-quote-card { padding: 24px 20px; }
  .daily-quote-text { font-size: 1rem; }
  .posts-masonry { columns: 1; }
  .nav-search { display: none; }
  .collection-slide { flex: 0 0 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-qr { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0 50px; }
  .hero-title-main { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 260px; }
  .swipe-track { padding-top: 65%; }
  .swipe-glass-bar { bottom: 16px; width: calc(100% - 24px); }
  .swipe-glass-content { padding: 12px 16px; }
  .swipe-glass-title { font-size: 1rem; }
  .swipe-glass-desc { display: none; }
  .cat-scroll-item { min-width: 90px; padding: 12px 14px; }
  .hot-item { grid-template-columns: 32px 1fr; padding: 12px 16px; gap: 12px; }
  .hot-views { display: none; }
  .hot-rank { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ========== 官方公告条 ========== */
.announcement-bar {
  background: linear-gradient(90deg, rgba(108,159,255,0.12), rgba(255,184,122,0.12));
  border-bottom: 1px solid rgba(108,159,255,0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}

.announcement-bar:hover {
  background: linear-gradient(90deg, rgba(108,159,255,0.18), rgba(255,184,122,0.18));
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
}

.announcement-inner > i {
  color: #ff8e3c;
  font-size: 17px;
  flex-shrink: 0;
}

.announcement-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-more {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 12px;
}

/* 公告弹窗 */
.announcement-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.announcement-modal {
  width: 480px;
  max-width: 100%;
  max-height: 82vh;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.announcement-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.announcement-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}

.announcement-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.announcement-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
}

.announcement-img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
}

.announcement-time {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.announcement-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  text-align: right;
}

/* ========== 账号资产速览 ========== */
.assets-quick-section {
  padding: 0 0 12px;
}

.assets-quick-card {
  background: linear-gradient(135deg, rgba(108,159,255,0.08), rgba(255,184,122,0.08));
  border: 1px solid rgba(108,159,255,0.18);
  border-radius: 18px;
  padding: 18px 22px;
}

.assets-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.assets-quick-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.assets-quick-title i {
  color: var(--primary);
}

.assets-quick-more {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.assets-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.assets-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}

.assets-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(108,159,255,0.3);
}

.aqi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.aqi-icon.coin { background: rgba(255,184,0,0.14); color: #e6a800; }
.aqi-icon.sign { background: rgba(255,107,107,0.12); color: #ff6b6b; }
.aqi-icon.msg  { background: rgba(108,159,255,0.12); color: var(--primary); }
.aqi-icon.theme{ background: rgba(139,92,246,0.12); color: #8b5cf6; }

.aqi-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.aqi-value.aqi-theme {
  font-size: 13px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aqi-label {
  font-size: 11px;
  color: var(--text-light);
}

.assets-quick-loading {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 10px 0;
}

/* ========== 微光书摘 ========== */
.book-excerpt-section {
  padding: 40px 0 8px;
}

.book-excerpt-section .section-subtitle {
  font-size: 12px;
  color: var(--text-light);
}

.book-excerpt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.book-excerpt-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.book-excerpt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(108,159,255,0.22);
}

.be-quote {
  flex: 1;
}

.be-quote > i {
  color: rgba(108,159,255,0.35);
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.be-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

.be-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.be-source {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.be-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.be-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.be-avatar-default {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(108,159,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--primary);
}

/* ========== 投稿引导 CTA ========== */
.contribute-cta-section {
  padding: 40px 0;
}

.contribute-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 40px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(108,159,255,0.1), rgba(255,184,122,0.1));
  border: 1px solid rgba(108,159,255,0.2);
  position: relative;
  overflow: hidden;
}

.contribute-cta::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  right: 20px;
  font-size: 160px;
  color: rgba(108,159,255,0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.cta-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(108,159,255,0.25);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 900px) {
  .book-excerpt-grid { grid-template-columns: repeat(2, 1fr); }
  .assets-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .contribute-cta { flex-direction: column; text-align: center; padding: 26px 20px; }
  .book-excerpt-grid { grid-template-columns: 1fr; }
}

/* ========== 漂流瓶入口横幅 ========== */
.bottle-cta-section { padding-top: 8px; }
.bottle-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(90, 150, 235, 0.12), rgba(120, 200, 255, 0.10));
  border: 1px solid rgba(90, 150, 235, 0.24);
  text-decoration: none;
  transition: all 0.3s ease;
}
.bottle-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(90, 150, 235, 0.18);
}
.bottle-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5FA8FF, #3D7FE0);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(63, 127, 224, 0.38);
}
.bottle-cta-text { flex: 1; min-width: 0; }
.bottle-cta-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
}
.bottle-cta-text span {
  display: block;
  font-size: 13px;
  color: #6B7B8D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottle-cta-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108, 159, 255, 0.3);
}
@media (max-width: 480px) {
  .bottle-cta { padding: 14px 16px; gap: 12px; }
  .bottle-cta-icon { width: 42px; height: 42px; font-size: 19px; }
  .bottle-cta-text span { max-width: 150px; }
  .bottle-cta-btn { padding: 7px 14px; font-size: 12px; }
}
