/* 首页专用CSS - index.css */

/* 基础重置 */
* {
  box-sizing: border-box;
}

body {
  background-color: #f5f7fa;
}

/* 适配导航栏遮挡 */
.main-fullwidth {
  padding-top: 0;
}

/* 首页容器 */
.home-wrapper {
  padding: 0 0 30px;
  max-width: 1500px;
  margin: 0 auto;
}

/* 头部网格布局 */
.header-grid {
  display: grid;
  grid-template-columns: 1fr; /* 默认为单列布局 */
  gap: 25px;
  margin:20px 0 30px 0;
}

/* 当存在轮播图时，切换为两列布局 */
.header-grid.has-carousel {
  grid-template-columns: 1fr 1fr;
}


/* 左侧欢迎区域 - 新增 */
.hero-welcome {
  position: relative;
  background: linear-gradient(135deg, #1998ff, #8a2be2);
  color: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}


/* 使用伪元素添加背景图片 */
.hero-welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 1;
}

/* 保留原有的 ::after 伪元素 */
.hero-welcome::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

/* 为 .hero-content 添加伪元素来显示图片 */
.hero-welcome .hero-content::before {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 350px;
  height: 150px;
  background-image: url('/assets/images/yxcz.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}



.hero-welcome .circle-decoration {
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

/* 右侧轮播图容器 */
.hero-carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 400px; /* 保持固定高度 */
  width: 100%;
}

/* 轮播图片样式 */
.hero-carousel .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保证图片覆盖整个区域 */
}

/* 轮播图幻灯片 */
.hero-carousel .carousel-slide {
  height: 100%; /* 保持高度100% */
}

.hero-carousel .carousel-wrapper {
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-carousel .carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}


.hero-carousel .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.hero-carousel .carousel-caption h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-carousel .carousel-prev,
.hero-carousel .carousel-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(3px);
}

.hero-carousel .carousel-prev:hover,
.hero-carousel .carousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-indicators {
  display: flex;
  gap: 8px;
  margin: 0 10px;
}

.hero-carousel .carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-carousel .carousel-indicator.active {
  background: #fff;
  transform: scale(1.2);
}


.default-banner {
  max-width: 80%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}


/* 保留的原有头部横幅样式（用于hero-welcome内的元素） */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 600px;
}

/* 主页搜索容器样式 */
.search-container {
  position: relative;
  display: flex;
  max-width: 500px;
  width: 100%;
  margin: 15px auto;
}

.search-container form {
  display: flex;
  width: 100%;
  position: relative;
}

/* 搜索类型选择器样式 */
.search-type-selector {
  position: relative;
  margin-right: -1px;
}

.search-type-selector select {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 25px 0 0 25px;
  padding: 0 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  min-width: 90px;
  backdrop-filter: blur(8px);
}

.search-type-selector::after {
  content: '\f0d7';
  font-family: 'FontAwesome';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: white;
}

/* 搜索输入框调整 */
.search-container .search-input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-radius: 0 25px 25px 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(8px);
}

.search-container .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container .search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #ff6b6b;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container .search-button:hover {
  background-color: #0c7cd5;
}

/* 快速链接样式 */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  gap: 6px;
  transition: all 0.2s;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 内容区域 - 三列布局 */
.categories-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

/* 内容区块通用样式 */
.content-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  height: 100%;  /* 确保相同高度 */
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 斜线装饰元素 */
.diagonal-decor {
  position: absolute;
  top: 0;
  right: -40px;
  width: 80px;
  height: 100%;
  background: rgba(0, 0, 0, 0.03);
  transform: skewX(-15deg);
  pointer-events: none;
}

/* 区块标题 */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.card-title i {
  font-size: 20px;
}

.title-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: middle;
}

.title-badge.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.title-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.title-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.title-badge.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.card-action {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  text-decoration: none;  /* 这行去除下划线 */
}

.card-action:hover {
  color: #3b82f6;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  padding: 20px;
  flex: 1;  /* 让网格占据剩余空间 */
}

.category-item {
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border-radius: 8px;
}

.category-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.02);
}

/* 特定分类项目悬停颜色 */
.content-card:nth-child(1) .category-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.content-card:nth-child(2) .category-item:hover {
  background-color: rgba(139, 92, 246, 0.05);
}

.content-card:nth-child(3) .category-item:hover {
  background-color: rgba(239, 68, 68, 0.05);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-name {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 3px;
}

.category-count {
  font-size: 11px;
  color: #888;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
}

/* 工具列表 */
.tools-wrapper {
  padding: 5px 20px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.tool-intro {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  padding: 5px 0 15px;
  border-bottom: 1px dashed #eee;
  margin-bottom: 15px;
}

.tool-item {
  position: relative;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.2s;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.tool-item:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
  transform: translateX(5px);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-category {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-category i {
  font-size: 11px;
  color: #999;
}

.tool-badge {
  position: absolute;
  top: -6px;
  right: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  z-index: 2;
}

.tool-badge.new {
  background: #10b981;
}

.tool-badge.hot {
  background: #ef4444;
}

/* 应用网格 */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  background: #fff;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: #e5e7eb;
}

.app-header {
  position: relative;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-name a {
  color: inherit;
  text-decoration: none;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

.app-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-desc {
  padding: 15px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-category {
  font-size: 12px;
  color: #666;
  background: #f5f7fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.app-button {
  padding: 6px 12px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.app-button:hover {
  background: #2563eb;
}

/* 全宽区块 */
.full-width-section {
  grid-column: 1 / -1;
  margin-bottom: 25px;
}

.featured-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.featured-app {
  flex: 1;
  min-width: 250px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.featured-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
}

.featured-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.featured-info {
  flex: 1;
  padding: 15px;
  min-width: 0;
}

.featured-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-category {
  font-size: 12px;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.featured-button {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
}

/* 论坛卡片样式 */
.forum-card {
  grid-column: 1 / -1;
  margin-top: 15px;
}

.forum-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 20px;
}

.forum-tab {
  padding: 12px 20px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: all 0.2s;
}

.forum-tab.active {
  color: var(--primary-color, #3b82f6);
}

.forum-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color, #3b82f6);
}

.forum-content-wrapper {
  padding: 0 20px;
}

.forum-content {
  display: none;
  padding: 15px 0;
}

.forum-content.active {
  display: block;
}

.forum-post-list {
  display: flex;
  flex-direction: column;
}

.forum-post-item {
  display: flex;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.forum-post-item:last-child {
  border-bottom: none;
}

.forum-post-item:hover {
  background-color: #f9fafb;
  transform: translateX(5px);
}

.forum-post-info {
  flex: 1;
  min-width: 0;
}

.forum-post-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #777;
}

.forum-post-meta i {
  margin-right: 2px;
}

.plate-tag {
  padding: 2px 6px;
  background-color: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
  color: var(--primary-color, #3b82f6);
  border-radius: 4px;
  font-size: 11px;
}

.forum-post-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.forum-post-view {
  padding: 2px 8px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.empty-forum-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: #999;
  text-align: center;
}

.empty-forum-posts i {
  font-size: 2.5rem;
  color: #ddd;
  margin-bottom: 10px;
}

/* 介绍专区 */
.tool-intro-section {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #6e8ffa, #a39bf9);
  color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.tool-intro-section:hover {
  background: linear-gradient(135deg, #a39bf9, #6e8ffa);
  box-shadow: 0 15px 30px rgba(110, 143, 250, 0.3);
}

.tool-intro-title, .tool-intro-subtitle {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-intro-feature {
  transition: transform 0.3s;
}

.tool-intro-feature:hover {
  transform: translateY(-5px);
}

.tool-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 150px;
  opacity: 0.1;
}

.tool-intro-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.tool-intro-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tool-intro-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.tool-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
}

.tool-intro-feature {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.tool-intro-feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.tool-intro-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.tool-intro-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tool-intro-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.tool-intro-action {
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.intro-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #fff;
  color: #3b82f6;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.intro-action-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 网站介绍 */
.site-info {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.site-info-inner {
  position: relative;
  z-index: 2;
}

.site-info-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.site-info-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

.site-info-content {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.site-info-content p {
  margin-bottom: 12px;
}

.site-info-content p:last-child {
  margin-bottom: 0;
}

.site-info-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #eee;
}

.stats-item {
  text-align: center;
}

.stats-num {
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 5px;
}

.stats-label {
  font-size: 14px;
  color: #666;
}

/* 四列显示区域 */
.apps-tools-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

/* 确保卡片内容高度一致 */
.tools-wrapper{
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}

/* 调整工具项目布局 */
.tool-item {
  padding: 10px;
}

/* 减小工具名称字体 */
.tool-name {
  font-size: 14px;
  margin-bottom: 2px;
}

/* 工具介绍文字调整 */
.tool-intro {
  font-size: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
}


/* 减小app描述字体和内间距 */
.app-desc {
  font-size: 12px;
  padding: 10px 15px;
  -webkit-line-clamp: 2;
}

/* 应用卡片头部紧凑显示 */
.app-header {
  padding: 10px;
}

.app-icon {
  width: 40px;
  height: 40px;
}

.app-name {
  font-size: 14px;
}

.app-meta {
  font-size: 11px;
}

.app-footer {
  padding: 0 10px 10px;
}

/* 四个卡片滚动内容 */
.compact-scroll {
  overflow-y: auto;
}

.compact-scroll::-webkit-scrollbar {
  width: 5px;
}

.compact-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .hero-welcome {
    padding: 35px 25px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* 调整头部网格布局 */
  .header-grid.has-carousel {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* 轮播图容器固定高度 */
  .hero-carousel {
    height: 250px;
    min-height: 250px;
  }
  
  /* 确保轮播图内容填充 */
  .hero-carousel .carousel-slide {
    height: 100%;
  }
  
  .hero-carousel .carousel-image {
    height: 100%;
    object-fit: cover;
  }
  
  /* 调整头部区域高度 */
  .hero-welcome {
    min-height: auto;
    padding: 25px 20px;
  }
  
  /* 调整标题字体大小 */
  .hero-title {
    font-size: 22px;
  }
  
  /* 调整副标题字体大小 */
  .hero-subtitle {
    font-size: 14px;
  }
  
  /* 调整搜索框宽度 */
  .search-container {
    max-width: 100%;
  }
  
  /* 调整搜索输入框高度 */
  .search-input {
    height: 45px;
  }
  
  /* 调整快速链接居中 */
  .quick-links {
    justify-content: center;
  }
  
  /* 调整分类行布局 */
  .categories-row {
    grid-template-columns: 1fr;
  }
  
  /* 调整内容卡片布局 */
  .content-card:nth-child(3) {
    grid-column: auto;
  }
  
  /* 调整分类网格布局 */
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  /* 调整应用网格为单列 */
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  /* 调整应用工具行布局 */
  .apps-tools-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* 调整论坛卡片和全宽区域边距 */
  .forum-card, .full-width-section {
    margin-bottom: 15px;
  }
  
  /* 调整论坛帖子元信息布局 */
  .forum-post-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  /* 调整轮播图标题字体大小 */
  .hero-carousel .carousel-caption h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* 轮播图容器固定高度 */
  .hero-carousel {
    height: 180px;
    min-height: 180px;
  }
  
  /* 调整头部区域高度 */
  .hero-welcome {
    min-height: auto;
    padding: 15px;
  }
  
  /* 调整标题字体大小 */
  .hero-title {
    font-size: 20px;
  }
  
  /* 调整副标题样式 */
  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  /* 调整搜索容器边距 */
  .search-container {
    margin: 10px auto;
  }
  
  /* 调整搜索类型选择器样式 */
  .search-type-selector select {
    min-width: 70px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  
  /* 调整搜索输入框样式 */
  .search-container .search-input {
    font-size: 0.9rem;
    padding: 0 50px 0 15px;
  }
  
  /* 调整搜索按钮样式 */
  .search-container .search-button {
    width: 36px;
    height: 36px;
  }
  
  /* 调整快速链接间距 */
  .quick-links {
    gap: 5px;
  }
  
  /* 调整快速链接样式 */
  .quick-link {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* 调整卡片头部对齐方式 */
  .card-header {
    align-items: flex-start;
    gap: 8px;
  }
  
  /* 调整卡片操作按钮对齐方式 */
  .card-action {
    align-self: flex-end;
  }
  
  /* 调整分类网格布局 */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
  }
  
  /* 调整分类图标尺寸 */
  .category-icon {
    width: 40px;
    height: 40px;
  }
  
  /* 调整分类名称字体大小 */
  .category-name {
    font-size: 12px;
  }
  
  /* 调整分类计数样式 */
  .category-count {
    font-size: 10px;
    padding: 1px 4px;
  }
  
  /* 调整精选应用布局 */
  .featured-apps {
    flex-direction: column;
  }
  
  /* 调整精选应用项目布局 */
  .featured-app {
    flex-direction: column;
  }
  
  /* 调整精选应用图标尺寸 */
  .featured-icon {
    width: 100%;
    height: 120px;
  }
  
  /* 调整工具介绍网格布局 */
  .tool-intro-grid {
    grid-template-columns: 1fr;
  }
  
  /* 调整站点信息统计布局 */
  .site-info-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  /* 调整论坛标签页内边距 */
  .forum-tabs {
    padding: 0 15px;
  }
  
  /* 调整论坛标签页样式 */
  .forum-tab {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  /* 调整论坛内容包装器内边距 */
  .forum-content-wrapper {
    padding: 0 15px;
  }
  
  /* 调整轮播图幻灯片高度 */
  .hero-carousel .carousel-slide {
    height: 100%;
  }
  
  /* 调整轮播图标题容器内边距 */
  .hero-carousel .carousel-caption {
    padding: 10px 15px;
  }
  
  /* 调整轮播图标题字体大小 */
  .hero-carousel .carousel-caption h3 {
    font-size: 14px;
  }
  
  /* 调整轮播图控制按钮位置 */
  .hero-carousel .carousel-controls {
    bottom: 10px;
    right: 10px;
  }
  
  /* 调整轮播图上一页下一页按钮尺寸 */
  .hero-carousel .carousel-prev,
  .hero-carousel .carousel-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  /* 调整轮播图指示器尺寸 */
  .hero-carousel .carousel-indicator {
    width: 6px;
    height: 6px;
  }
  
  /* 优化更小屏幕上的头部网格间距 */
  .header-grid.has-carousel {
    gap: 10px;
  }
}
