/* 首页模块排版 - 对齐参考设计 */

/* 顶部导航：Logo + 菜单 + 搜索 */
.home-header nav {
  max-width: 80rem;
  margin: 0 auto;
}

.home-header nav .nav-menu {
  flex: 1;
  justify-content: center;
}

/* 轮播 Banner */
.home-hero {
  min-height: 420px;
}

@media (min-width: 768px) {
  .home-hero {
    min-height: 560px;
  }
}

.home-hero .hero-slide img {
  object-position: center center;
}

.home-hero .hero-content {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .home-hero .hero-content {
    padding-bottom: 3.5rem;
  }
}

.home-hero .hero-dots {
  bottom: 1.25rem;
  right: 1.25rem;
}

@media (min-width: 768px) {
  .home-hero .hero-dots {
    bottom: 2rem;
    right: 1.5rem;
  }
}

/* 首页：标签 + 专题合并发现区 */
.home-discover-hub {
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
}

.home-discover-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.25rem;
}

@media (min-width: 768px) {
  .home-discover-inner {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

.home-discover-header {
  margin-bottom: 0.875rem;
}

.home-discover-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.home-discover-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
}

.home-discover-tabs {
  display: inline-flex;
  gap: 0.375rem;
  padding: 0.25rem;
  margin-bottom: 0.875rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
}

.home-discover-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.home-discover-tab i {
  font-size: 1rem;
}

.home-discover-tab:hover {
  color: #374151;
}

.home-discover-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.home-discover-panel-tip {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.home-discover-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-discover-tag {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.home-discover-tag:hover {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .home-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-topic-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.home-topic-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.home-topic-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  color: #b45309;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.home-topic-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.home-topic-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}

.home-topic-card-desc {
  font-size: 0.75rem;
  color: #b45309;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-topic-card-arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #d97706;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.home-topic-card:hover .home-topic-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 最后更新时间条 */
.home-update-bar {
  margin-top: -1px;
}

.home-update-inner {
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.06);
}

@media (min-width: 640px) {
  .home-update-inner {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
  }
}

/* 实时热搜：桌面端固定三列一排 */
.home-hotsearch .hotsearch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-hotsearch .hotsearch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-hotsearch .hotsearch-grid > div {
  min-height: 3.25rem;
}

/* 首页平台导读正文 */
.home-intro {
  border-top: 1px solid #f3f4f6;
}

.home-intro-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-intro-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.home-intro-toc a {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.home-intro-toc a:hover {
  background: #ffe4e6;
  color: #be123c;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .home-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

.home-intro-section {
  scroll-margin-top: 5rem;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
}

@media (min-width: 768px) {
  .home-intro-section {
    padding: 1.25rem 1.5rem;
  }
}

.home-intro-section--full {
  grid-column: 1 / -1;
}

.home-intro-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-intro-title::before {
  content: "";
  width: 4px;
  height: 1.125rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #f43f5e, #fb7185);
  flex-shrink: 0;
}

.home-intro-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0;
}

.home-intro-text a {
  color: #e11d48;
  text-decoration: none;
  font-weight: 500;
}

.home-intro-text a:hover {
  text-decoration: underline;
}

.home-intro-faq {
  margin: 0;
}

.home-intro-faq dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-top: 0.875rem;
}

.home-intro-faq dt:first-child {
  margin-top: 0;
}

.home-intro-faq dd {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #4b5563;
  margin: 0.25rem 0 0;
}

/* 首页：平台使用指南入口 */
.home-guide-hub {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.home-guide-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.25rem;
}

@media (min-width: 768px) {
  .home-guide-inner {
    padding: 2.5rem 1.5rem 2.75rem;
  }
}

.home-guide-header {
  margin-bottom: 1.25rem;
}

.home-guide-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.home-guide-desc {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
}

.home-guide-groups {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .home-guide-groups {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.home-guide-card:hover {
  border-color: #fecdd3;
  background: #fff1f2;
}

.home-guide-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #be123c;
  background: #ffe4e6;
  border-radius: 0.375rem;
  line-height: 1;
}

.home-guide-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.home-guide-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.home-guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.home-guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #e11d48;
  border-radius: 0.5rem;
  text-decoration: none;
}

.home-guide-cta:hover {
  background: #be123c;
}

.home-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.home-guide-links a {
  font-size: 0.8125rem;
  color: #e11d48;
  text-decoration: none;
}

.home-guide-links a:hover {
  text-decoration: underline;
}
