/* ===== hololive Dreams 攻略站 自定义样式 ===== */

:root {
  --color-primary: #6366f1;
  --color-secondary: #ec4899;
  --color-accent: #8b5cf6;
  --color-gradient-start: #3b82f6;
  --color-gradient-mid: #8b5cf6;
  --color-gradient-end: #ec4899;
  --color-dark: #0f172a;
  --color-dark-alt: #1e1b4b;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
}

/* ===== 全局基础 ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 渐变文字 ===== */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start) 0%,
    var(--color-gradient-mid) 50%,
    var(--color-gradient-end) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== 渐变背景 ===== */
.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start) 0%,
    var(--color-gradient-mid) 50%,
    var(--color-gradient-end) 100%
  );
}

.gradient-bg-soft {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(236, 72, 153, 0.08) 100%
  );
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(30, 27, 75, 0.75) 35%,
    rgba(76, 29, 149, 0.55) 65%,
    rgba(131, 24, 67, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.2) 0%,
    transparent 30%,
    transparent 60%,
    rgba(15, 23, 42, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
  background: #8b5cf6;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-glow-2 {
  background: #ec4899;
  bottom: -150px;
  right: -100px;
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

/* ===== 卡片悬浮效果 ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.25);
}

/* ===== 分类标签 ===== */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.category-rhythm {
  background-color: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.category-park {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.category-minigame {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.category-character {
  background-color: rgba(236, 72, 153, 0.12);
  color: #db2777;
}

.category-event {
  background-color: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.category-beginner {
  background-color: rgba(100, 116, 139, 0.12);
  color: #475569;
}

/* ===== 星级评分 ===== */
.star-rating {
  color: #fbbf24;
  letter-spacing: 2px;
}

/* ===== 提示框 ===== */
.tip-box {
  border-left: 4px solid;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.tip-box.tip {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
}

.tip-box.warning {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.08);
}

.tip-box.note {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.08);
}

.tip-box-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-box.tip .tip-box-title {
  color: #059669;
}

.tip-box.warning .tip-box-title {
  color: #d97706;
}

.tip-box.note .tip-box-title {
  color: #4f46e5;
}

.tip-box-content {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
}

/* ===== 步骤编号 ===== */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== 目录导航 ===== */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.25rem;
}

.toc-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
  color: #6366f1;
  background-color: rgba(99, 102, 241, 0.08);
  border-left-color: #6366f1;
}

/* ===== 分页 ===== */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover {
  color: #6366f1;
  border-color: #6366f1;
}

.pagination-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 视频嵌入容器 ===== */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #0f172a;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== 配置表格 ===== */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.spec-table th,
.spec-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.spec-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
}

.spec-table td {
  font-size: 0.925rem;
  color: #475569;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background-color: #f8fafc;
}

/* ===== 热门榜单序号 ===== */
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: white;
}

.rank-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

.rank-other {
  background-color: #e2e8f0;
  color: #64748b;
}

/* ===== 文章排版 ===== */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #475569;
  line-height: 1.8;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.375rem;
}

.article-content strong {
  color: #1e293b;
  font-weight: 600;
}

.article-content img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* ===== 导航栏滚动效果 ===== */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== 搜索框 ===== */
.search-input {
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== 页脚 ===== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 5rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #6366f1;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

/* ===== 文章阅读进度条 ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ===== 特色亮点卡片 ===== */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== 社交链接 ===== */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: #f1f5f9;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  transform: translateY(-2px);
}

/* 热门搜索主题 */
.search-topic {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.search-topic:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4f46e5;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1);
}
