/* ==========================================================================
 * /qihu 360 壁纸页
 * ========================================================================== */

.qihu-main {
  padding: 5rem 0 3rem;
}

/* ---- Hero ---- */
.qihu-hero {
  margin-bottom: 2rem;
}

.qihu-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(35, 135, 245, 0.12);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 48%, #f8fafc 100%);
  box-shadow: 0 20px 50px -28px rgba(35, 135, 245, 0.35);
}

.nice-dark-mode .qihu-hero-panel {
  border-color: rgba(56, 189, 248, 0.15);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.45);
}

.qihu-hero-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 135, 245, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.qihu-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .qihu-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem 2.25rem;
  }
}

.qihu-hero-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(35, 135, 245, 0.12);
  color: #2387f5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nice-dark-mode .qihu-hero-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.qihu-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.qihu-hero-desc {
  margin: 0;
  max-width: 36rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.nice-dark-mode .qihu-hero-desc {
  color: #94a3b8;
}

.qihu-hero-aside {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.qihu-hero-stat {
  display: flex;
  flex-direction: column;
  min-width: 5.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(35, 135, 245, 0.1);
  backdrop-filter: blur(8px);
}

.nice-dark-mode .qihu-hero-stat {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.15);
}

.qihu-hero-stat--muted .qihu-hero-stat-value {
  color: #475569;
}

.nice-dark-mode .qihu-hero-stat--muted .qihu-hero-stat-value {
  color: #cbd5e1;
}

.qihu-hero-stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2387f5;
  line-height: 1.1;
}

.qihu-hero-stat-label {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nice-dark-mode .qihu-hero-stat-label {
  color: #94a3b8;
}

/* ---- 分类 ---- */
.qihu-cat-section {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 30px -22px rgba(15, 23, 42, 0.12);
}

.nice-dark-mode .qihu-cat-section {
  background: #1e293b;
  border-color: #334155;
}

.qihu-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.qihu-cat-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.qihu-cat-current {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(35, 135, 245, 0.1);
  color: #2387f5;
  font-size: 0.75rem;
  font-weight: 600;
}

.nice-dark-mode .qihu-cat-current {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.qihu-cat-nav {
  margin: 0;
}

.qihu-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qihu-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.qihu-cat-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qihu-cat-item.is-active .qihu-cat-btn {
  background: linear-gradient(135deg, #2387f5, #1a6fd4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(35, 135, 245, 0.75);
  transform: translateY(-1px);
}

.nice-dark-mode .qihu-cat-btn {
  background: #0f172a;
  color: #94a3b8;
}

.nice-dark-mode .qihu-cat-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

.nice-dark-mode .qihu-cat-item.is-active .qihu-cat-btn {
  background: linear-gradient(135deg, #2387f5, #1a6fd4);
  color: #fff;
}

@media (max-width: 767px) {
  .qihu-cat-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .qihu-cat-list::-webkit-scrollbar {
    display: none;
  }
  .qihu-cat-btn {
    white-space: nowrap;
  }
}

/* ---- 网格 ---- */
.qihu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .qihu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .qihu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

/* ---- 卡片 ---- */
.qihu-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qihu-card-hit {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qihu-card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 0.68, 0.48, 1.01);
}

.qihu-card-hit:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(15, 23, 42, 0.45);
}

.qihu-card-hit:hover .qihu-card-img {
  transform: scale(1.05);
}

.qihu-card-hover {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  pointer-events: none;
}

.qihu-card-hover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(35, 135, 245, 0.92), rgba(26, 111, 212, 0.95));
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 8px 20px -6px rgba(35, 135, 245, 0.55);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.qihu-card-hit:hover .qihu-card-hover-btn,
.qihu-card-hit:focus-visible .qihu-card-hover-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 10px 24px -6px rgba(35, 135, 245, 0.65);
}

.qihu-card-hover-btn .iconfont {
  display: block;
}

.qihu-card-hit:focus-visible {
  outline: 2px solid #2387f5;
  outline-offset: 2px;
}

.qihu-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.qihu-card-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.qihu-card-meta {
  padding: 0.65rem 0.15rem 0;
}

.qihu-card-title {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nice-dark-mode .qihu-card-title {
  color: #f1f5f9;
}

.qihu-card-date {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ---- 空态 / 加载 ---- */
.qihu-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
}

.qihu-load-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.qihu-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.qihu-load-more {
  min-width: 10rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.qihu-load-more.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

.qihu-skeleton {
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: qihu-shimmer 1.2s ease-in-out infinite;
}

.nice-dark-mode .qihu-skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

@keyframes qihu-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
