/* 好句分享板块样式 */
.quotes-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.05), rgba(163, 113, 247, 0.05));
  overflow: hidden;
}

.quotes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(88, 166, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(163, 113, 247, 0.1), transparent 50%);
  pointer-events: none;
}

.quotes-container {
  position: relative;
  z-index: 1;
}

.quotes-header {
  text-align: center;
  margin-bottom: 48px;
}

.quotes-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quotes-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 好句卡片网格 */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .quotes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.quote-card {
  position: relative;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(163, 113, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 166, 255, 0.3);
  box-shadow: 0 12px 24px rgba(88, 166, 255, 0.15);
}

.quote-card:hover::before {
  opacity: 1;
}

.quote-content {
  position: relative;
  z-index: 1;
}

.quote-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 500;
}

.quote-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

.quote-author::before {
  content: '— ';
}

/* 页面底部弹幕效果 */
.danmaku-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(90deg, transparent, rgba(13, 17, 23, 0.8), transparent);
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
  border-top: 1px solid rgba(88, 166, 255, 0.2);
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
  top: 50%;
  transform: translateY(-50%);
  animation: danmaku-scroll 15s linear forwards;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

@keyframes danmaku-scroll {
  from {
    left: 100%;
    opacity: 1;
  }
  to {
    left: -100%;
    opacity: 0;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .danmaku-container {
    height: 40px;
    font-size: 12px;
  }
  
  .danmaku-item {
    font-size: 12px;
  }
}

/* 目录列表横向显示 */
.modules-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modules-nav::-webkit-scrollbar {
  height: 4px;
}

.modules-nav::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 2px;
}

.modules-nav::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 2px;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.module-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.module-link.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.module-icon {
  font-size: 1rem;
}
