/**
 * @file 组件样式文件
 * @author 前端川
 * @link www.cggg.cn
 * @description 页面组件样式，包括卡片、按钮、表单等
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title-main {
  display: block;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero-title-sub {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

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

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.title-icon {
  display: flex;
  align-items: center;
  color: var(--primary-light);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.category-section {
  padding: 80px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-icon-intro {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.category-icon-guide {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.category-icon-review {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.category-icon-news {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.category-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.category-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  color: var(--primary-light);
  opacity: 0;
  transition: all var(--transition-normal);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.recommend-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recommend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.recommend-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.recommend-link {
  display: block;
  color: inherit;
}

.recommend-image {
  position: relative;
  height: 180px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.recommend-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.recommend-card:hover .recommend-image img {
  transform: scale(1.1);
}

.recommend-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.recommend-category {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.recommend-content {
  padding: 20px;
}

.recommend-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.recommend-meta {
  display: flex;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.articles-section {
  padding: 80px 0;
}

.articles-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.article-link {
  display: block;
  color: inherit;
}

.article-image {
  position: relative;
  height: 160px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.article-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.article-badge.hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.article-badge.top {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.article-content {
  padding: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.article-content h1 { font-size: 28px; }
.article-content h2 { font-size: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content h5 { font-size: 16px; }
.article-content h6 { font-size: 14px; color: var(--text-secondary); }

.article-content p {
  margin-bottom: 16px;
}

.article-content a {
  color: var(--primary-light);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content code {
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

.article-content pre {
  margin: 16px 0;
  padding: 16px;
  background: #1e293b;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.article-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-content th {
  background: var(--bg-tertiary);
  font-weight: 600;
}

.article-content hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.article-content task-list {
  list-style: none;
  padding-left: 0;
}

.article-category {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.category-tag, .game-type-tag {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.category-tag {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
}

.game-type-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary-color);
}

.article-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.article-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  margin-bottom: 0;
}

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

.article-stats {
  display: flex;
  gap: 12px;
}

.article-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-game {
  font-size: 13px;
  color: var(--text-muted);
}

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.widget-title svg {
  color: var(--primary-light);
}

.hot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hot-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.hot-rank.top-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

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

.hot-rank.top-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
  color: white;
}

.hot-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hot-title {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.hot-link:hover .hot-title {
  color: var(--primary-light);
}

.hot-views {
  font-size: 12px;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
}

.tag-item.active {
  background: var(--primary-color);
  color: white;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.toc-widget {
  position: sticky;
  top: 100px;
}

.toc-nav {
  max-height: 300px;
  overflow-y: auto;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 4px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.toc-link:hover {
  background: var(--bg-tertiary);
  color: var(--primary-light);
}

.toc-item.toc-level-3 .toc-link {
  padding-left: 24px;
}

.toc-item.toc-level-4 .toc-link {
  padding-left: 36px;
}

.toc-item.toc-level-5 .toc-link {
  padding-left: 48px;
}

.toc-item.toc-level-6 .toc-link {
  padding-left: 60px;
  font-size: 12px;
}

.article-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.info-label {
  font-size: 13px;
  color: var(--text-muted);
}

.info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.info-value a {
  color: var(--primary-light);
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-link {
  display: block;
  text-decoration: none;
}

.related-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-link:hover .related-title {
  color: var(--primary-light);
}

.related-category {
  font-size: 12px;
  color: var(--text-muted);
}

.hot-title {
  color: var(--secondary-color) !important;
}

.hot-title svg {
  color: var(--secondary-color) !important;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination-num:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.pagination-num.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-icon {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.error-icon.error {
  color: var(--danger-color);
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 24px;
}

.empty-state p {
  font-size: 18px;
  margin-bottom: 24px;
}

.empty-tip {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  color: var(--text-secondary);
}

.filter-select {
  padding: 8px 32px 8px 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

@media (max-width: 1200px) {
  .articles-layout {
    grid-template-columns: 1fr;
  }
  
  .articles-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title-main {
    font-size: 36px;
  }
  
  .hero-title-sub {
    font-size: 18px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .recommend-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-sidebar {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

.search-page {
  min-height: 60vh;
}

.search-header {
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
  padding: 40px 0;
  margin-bottom: 40px;
}

.search-box-large {
  max-width: 800px;
  margin: 0 auto;
}

.search-form-large {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
  color: #64748b;
  flex-shrink: 0;
}

.search-input-large {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  padding: 12px;
  background: transparent;
}

.search-btn-large {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.search-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.search-filters .filter-select {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 150px;
}

.search-filters .filter-select option {
  background: #1e40af;
  color: white;
}

.search-result-header {
  margin-bottom: 32px;
}

.result-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-title .keyword {
  color: var(--primary-color);
}

.result-title .count {
  color: var(--secondary-color);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.search-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.search-link {
  display: flex;
  gap: 20px;
  color: inherit;
}

.search-item-image {
  width: 200px;
  height: 140px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-placeholder {
  color: var(--text-muted);
}

.search-item-content {
  flex: 1;
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-item-meta {
  display: flex;
  gap: 8px;
}

.meta-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.meta-tag.category {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
}

.meta-tag.type {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary-color);
}

.search-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.search-item-title mark {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-color);
  padding: 0 2px;
  border-radius: 2px;
}

.search-item-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item-summary mark {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-color);
  padding: 0 2px;
  border-radius: 2px;
}

.search-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.search-item-footer .game-name {
  font-size: 13px;
  color: var(--text-muted);
}

.search-welcome {
  text-align: center;
  padding: 60px 20px;
}

.welcome-icon {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.welcome-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.welcome-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hot-searches {
  max-width: 600px;
  margin: 0 auto;
}

.hot-searches .hot-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hot-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
}

.hot-tag:hover {
  background: var(--primary-color);
  color: white;
}

@media (max-width: 768px) {
  .search-input-wrapper {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  
  .search-input-large {
    width: 100%;
    text-align: center;
  }
  
  .search-btn-large {
    width: 100%;
  }
  
  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-filters .filter-select {
    width: 100%;
  }
  
  .search-link {
    flex-direction: column;
  }
  
  .search-item-image {
    width: 100%;
    height: 160px;
  }
  
  .search-item-content {
    padding: 16px;
  }
}

