/* ============================================
   AI Tools - Modern Tech Style
   全新现代科技感设计
   ============================================ */

:root {
  /* 暖灰色调主题配色 */
  --bg-primary: #f5f0eb;
  --bg-secondary: #faf7f4;
  --bg-card: #ffffff;
  --bg-hover: #f0ebe5;
  --border-color: #e5ddd5;
  
  /* 强调色 - 暖色调 */
  --accent-cyan: #d97706;
  --accent-purple: #c2410c;
  --accent-pink: #be185d;
  --accent-blue: #b45309;
  --accent-green: #059669;
  
  /* 文字颜色 */
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  
  /* 渐变 */
  --gradient-hero: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fecaca 100%);
  --gradient-accent: linear-gradient(135deg, #d97706 0%, #c2410c 50%, #be185d 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #faf7f4 100%);
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 24px rgba(217,119,6,0.1);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* 侧边栏 */
  --sidebar-width: 280px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb li:last-child span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   页面布局
   ============================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  /*background: var(--gradient-accent);*/
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.sidebar-logo-icon img{
  width:100%;height:100%;object-fit:cover;border-radius:var(--radius-md);
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-search {
  padding: var(--space-md) var(--space-lg);
}

.sidebar-search form {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

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

.sidebar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-sm) var(--space-lg);
}

.sidebar-nav-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-sm);
  margin-bottom: var(--space-xs);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.sidebar-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: rgba(217,119,6,0.08);
  color: var(--accent-cyan);
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  padding: var(--space-2xl);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero-section {
  position: relative;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(194,65,12,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-lg);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* 搜索引擎 */
.search-engine-box {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.search-engine-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.search-tab {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.search-tab.active {
  background: var(--accent-cyan);
  color: white;
  border-color: var(--accent-cyan);
}

.search-engine-form {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.search-engine-form:focus-within {
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
  border-color: var(--accent-cyan);
}

.search-engine-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

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

.search-engine-btn {
  padding: 14px 24px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.search-engine-btn:hover {
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   首页分类网格
   ============================================ */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
  text-align: center;
}

.home-cat-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.home-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.home-cat-name {
  font-size: 14px;
  font-weight: 600;
}

.home-cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   首页热门子分类网格（16个）
   ============================================ */
.home-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 工具卡片包装器 */
.tool-card-wrap {
  display: contents;
}

.home-sub-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
}

.home-sub-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-sub-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.home-sub-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-sub-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-sub-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   首页子分类标签
   ============================================ */
.home-subcategory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.home-sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.home-sub-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.5;
  flex-shrink: 0;
}

.home-sub-tag:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217,119,6,0.2);
}

.home-sub-tag:hover::before {
  background: white;
  opacity: 1;
}

/* 子分类标签颜色区分 - 按分类主题色 */
.home-category-section:nth-child(1) .home-sub-tag::before { background: #2563eb; }
.home-category-section:nth-child(2) .home-sub-tag::before { background: #8b5cf6; }
.home-category-section:nth-child(3) .home-sub-tag::before { background: #06b6d4; }
.home-category-section:nth-child(4) .home-sub-tag::before { background: #f59e0b; }
.home-category-section:nth-child(5) .home-sub-tag::before { background: #ec4899; }
.home-category-section:nth-child(6) .home-sub-tag::before { background: #6366f1; }
.home-category-section:nth-child(7) .home-sub-tag::before { background: #10b981; }
.home-category-section:nth-child(8) .home-sub-tag::before { background: #0f9f6e; }

.home-category-section:nth-child(1) .home-sub-tag:hover { background: #2563eb; border-color: #2563eb; }
.home-category-section:nth-child(2) .home-sub-tag:hover { background: #8b5cf6; border-color: #8b5cf6; }
.home-category-section:nth-child(3) .home-sub-tag:hover { background: #06b6d4; border-color: #06b6d4; }
.home-category-section:nth-child(4) .home-sub-tag:hover { background: #f59e0b; border-color: #f59e0b; }
.home-category-section:nth-child(5) .home-sub-tag:hover { background: #ec4899; border-color: #ec4899; }
.home-category-section:nth-child(6) .home-sub-tag:hover { background: #6366f1; border-color: #6366f1; }
.home-category-section:nth-child(7) .home-sub-tag:hover { background: #10b981; border-color: #10b981; }
.home-category-section:nth-child(8) .home-sub-tag:hover { background: #0f9f6e; border-color: #0f9f6e; }

/* ============================================
   首页顶部：分类 + 榜单并排
   ============================================ */
.home-top-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}

.home-top-categories {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-top-categories > .section-header {
  flex-shrink: 0;
}

.home-top-categories > .home-subcategory-grid {
  flex: 1;
}

.home-top-ranking {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.home-top-ranking > .section-header {
  flex-shrink: 0;
}

.home-top-ranking > .home-rank-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================
   工具网格（固定4列）
   ============================================ */
.tools-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 热门榜单 */
.home-rank-list {
}

.home-tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.home-tool-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.home-tool-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-tool-arrow {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* 热门榜单 */
.home-rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}

.home-rank-item:hover {
  background: var(--bg-hover);
}

.home-rank-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.home-rank-num.top {
  background: var(--gradient-accent);
  color: white;
}

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

.home-rank-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.home-rank-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

/* 迷你统计 */
.home-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-mini-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
}

.home-mini-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.home-mini-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   区块标题
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title i {
  color: var(--accent-cyan);
}

.section-more {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--accent-cyan);
}

/* ============================================
   工具卡片
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.tool-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

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

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tool-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.tool-card-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

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

.tool-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-card-category {
  font-size: 12px;
  color: var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.tool-card-tag {
  padding: 3px 10px;
  background: rgba(217,119,6,0.06);
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent-cyan);
}

.tool-card-actions {
  display: flex;
  gap: var(--space-sm);
}

.tool-card-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.tool-card-btn-primary {
  background: var(--gradient-accent);
  color: white;
}

.tool-card-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.tool-card-btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.tool-card-btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.tool-card-btn-light {
  background: rgba(217,119,6,0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(217,119,6,0.2);
}

.tool-card-btn-light:hover {
  background: rgba(217,119,6,0.15);
  color: var(--accent-cyan);
}

/* ============================================
   热门榜单
   ============================================ */
.ranking-list {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
}

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

.ranking-item:hover {
  background: var(--bg-hover);
}

.ranking-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.ranking-number.top {
  background: var(--gradient-accent);
  color: white;
}

.ranking-number.normal {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.ranking-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.ranking-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ranking-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ranking-stars {
  color: #fbbf24;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) var(--space-2xl);
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

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

.footer-text a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   移动端菜单
   ============================================ */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}

/* ============================================
   动画
   ============================================ */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1200px) {
  .home-top-row {
    grid-template-columns: 1fr;
  }

  .tools-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }

  .tools-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-item {
    flex-wrap: wrap;
  }
  
  .ranking-stats {
    width: 100%;
    margin-top: var(--space-sm);
    padding-left: 48px;
  }
}

/* ============================================
   分类页面 - 列表式布局
   ============================================ */
.sub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.sub-filter-btn {
	padding: 8px 18px;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 100px;
	color: var(--text-secondary);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.sub-filter-btn:hover,
.sub-filter-btn.active {
	background: var(--accent-cyan);
	border-color: var(--accent-cyan);
	color: white;
}

.sub-filter-btn:hover {
	opacity: 0.9;
}

/* 工具列表卡片（一行两个） */
.tool-list-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tool-list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.tool-list-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.tool-list-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.tool-list-card:hover::after {
  opacity: 1;
}

.tool-list-rank {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tool-list-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.tool-list-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.tool-list-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-list-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.tool-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-list-tag {
  padding: 2px 10px;
  background: rgba(217,119,6,0.06);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-cyan);
}

.tool-list-price {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 500;
}

.tool-list-rating {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-list-action {
  flex-shrink: 0;
}

.tool-list-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-list-visit:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* 探索分类网格 */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============================================
   子分类大全页面
   ============================================ */
.subcategory-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.subcategory-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.subcategory-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.subcategory-group-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.subcategory-group-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.subcategory-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

.subcategory-group-item:hover {
  background: rgba(217,119,6,0.08);
  border-color: var(--accent-cyan);
}

.subcategory-item-name {
  font-size: 14px;
  font-weight: 500;
}

.subcategory-item-count {
  font-size: 12px;
  color: var(--text-muted);
}

.explore-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
}

.explore-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.explore-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

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

.explore-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* ============================================
   工具详情页 - 全新布局
   ============================================ */
.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.detail-header-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.detail-header-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.detail-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-header-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-header-cat {
  padding: 3px 12px;
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.detail-header-tag {
  padding: 3px 12px;
  background: rgba(194,65,12,0.1);
  border: 1px solid rgba(194,65,12,0.2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-purple);
  font-weight: 500;
}

.detail-header-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-header-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.detail-header-url {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.detail-header-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.detail-header-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.detail-header-actions .btn-primary,
.detail-header-actions .btn-secondary {
  white-space: nowrap;
  justify-content: center;
}

/* 详情页按钮 - 访问官网 */
.btn-detail-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-cyan), #b45309);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(217,119,6,0.25);
}

.btn-detail-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.35);
}

/* 详情页按钮 - 更多工具 */
.btn-detail-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-detail-more:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(217,119,6,0.04);
}

/* 核心功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.feature-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(217,119,6,0.04);
  transform: translateX(4px);
}

.feature-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), #b45309);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* 常见问题列表 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-list-item {
  border-bottom: 1px solid var(--border-color);
}

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

.faq-list-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: default;
}

.faq-list-q i {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-cyan);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-style: normal;
}

.faq-list-a {
  padding: 0 0 16px 34px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 指标条 */
.detail-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.detail-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.detail-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 详情内容布局 */
.detail-body-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.detail-body-main {
  min-width: 0;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.detail-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.detail-section h2 i {
  color: var(--accent-cyan);
  font-size: 16px;
}

.detail-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* 优缺点对比 */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pros-card,
.cons-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.pros-card {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.2);
}

.cons-card {
  background: rgba(239,68,68,0.04);
  border-color: rgba(239,68,68,0.2);
}

.pros-card-header,
.cons-card-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-card-header {
  color: var(--accent-green);
}

.cons-card-header {
  color: #ef4444;
}

.pros-card ul,
.cons-card ul {
  list-style: none;
  padding: 0;
}

.pros-card ul li,
.cons-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pros-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-green);
  font-size: 12px;
  margin-top: 3px;
}

.cons-card ul li::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #ef4444;
  font-size: 12px;
  margin-top: 3px;
}

/* 评分细分 */
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 使用技巧 */
.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li i {
  color: var(--accent-cyan);
  margin-top: 3px;
}

/* 右侧边栏 */
.detail-sidebar {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.widget-title i {
  color: var(--accent-cyan);
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}

.widget-item:hover {
  background: var(--bg-hover);
}

.widget-item img,
.widget-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.widget-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

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

.widget-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.widget-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-faq .faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* 搜索页面 */
.search-form {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s;
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(217,119,6,0.08);
}

.search-form .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.search-results-info {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* 后台管理 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-xl);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 700;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-hover);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.data-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-hover);
}

/* 表单 */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 60%);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}

/* 响应式 */
@media (max-width: 1200px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-top-row {
    grid-template-columns: 1fr;
  }

  .tools-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .detail-header-top {
    flex-wrap: wrap;
  }

  .detail-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .detail-header-actions .btn-detail-visit,
  .detail-header-actions .btn-detail-more {
    flex: 1;
    justify-content: center;
  }

  .tool-list-view {
    grid-template-columns: 1fr;
  }
  
  .detail-body-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow-x: hidden;
  }

  .detail-body-main {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .detail-sidebar {
    position: static;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 首页 */
  .hero-section {
    padding: 24px 16px 16px;
    margin: 0 0 16px 0;
    border-radius: var(--radius-lg);
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 0;
  }
  .d-none-mobile {
    display: none !important;
  }

  .home-top-row {
    margin-bottom: 12px;
  }
  .home-top-categories,
  .home-top-ranking {
    padding: 12px;
  }
  .home-category-section {
    margin-bottom: 20px !important;
  }
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .home-cat-card {
    padding: 14px 8px;
  }
  .home-cat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .home-cat-name {
    font-size: 13px;
  }
  .home-subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .home-sub-card:nth-child(n+9) {
    display: none;
  }
  .home-sub-card {
    padding: 10px 12px;
  }
  .home-sub-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .home-sub-name {
    font-size: 12px;
  }
  .home-sub-count {
    font-size: 11px;
  }
  .home-rank-item {
    padding: 8px 0;
  }
  .home-rank-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .home-subcategory-tags {
    padding: 10px 12px;
    gap: 6px;
    margin-bottom: 12px;
  }
  .home-sub-tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  .tools-grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tool-card {
    padding: 14px;
  }
  .tool-card-logo {
    width: 44px;
    height: 44px;
  }
  .tool-card-name {
    font-size: 14px;
  }
  .tool-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .tool-card-footer {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .tool-card-visit {
    width: auto;
    justify-content: center;
  }

  /* 列表页 */
  .cat-banner {
    padding: 16px;
    margin: 0 0 16px 0;
    border-radius: var(--radius-lg);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .sub-filter-bar {
    gap: 6px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 0 16px 0;
    border-radius: var(--radius-lg);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }
  .sub-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .sub-filter-btn {
    padding: 6px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 6px;
  }
  .sub-filter-btn:first-child {
    margin-left: 12px;
  }
  .sub-filter-btn:last-child {
    margin-right: 12px;
  }
  .tool-list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tool-list-card {
    padding: 14px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
    max-width: 100%;
  }
  .tool-list-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .tool-list-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    max-width: calc(100% - 110px);
  }
  .tool-list-name {
    font-size: 14px;
    margin-bottom: 3px;
  }
  .tool-list-desc {
    font-size: 12px;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }
  .tool-list-meta {
    flex-wrap: wrap;
    gap: 3px;
  }
  .tool-list-action {
    flex-shrink: 0;
    margin-top: 0;
    width: auto;
    align-self: center;
  }
  .tool-list-visit {
    display: inline-flex;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* 详情页 */
  .detail-header-card {
    padding: 16px;
    margin: 0 0 16px 0;
    border-radius: var(--radius-lg);
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .detail-header-logo {
    width: 56px;
    height: 56px;
  }
  .detail-header-title {
    font-size: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-header-desc {
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-header-actions {
    width: 100%;
    justify-content: stretch;
  }
  .detail-header-actions .btn-detail-visit,
  .detail-header-actions .btn-detail-more {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  .detail-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
  }
  .detail-metric-item {
    padding: 10px;
  }
  .detail-metric-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .detail-metric-val {
    font-size: 16px;
  }
  .detail-metric-label {
    font-size: 11px;
  }

  .detail-section {
    padding: 16px;
    margin-bottom: 12px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-section h2 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-item {
    padding: 12px 14px;
  }
  .feature-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .feature-text {
    font-size: 13px;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pros-card, .cons-card {
    padding: 16px;
  }

  .faq-list-q {
    font-size: 14px;
    padding: 14px 0 6px;
  }
  .faq-list-a {
    font-size: 13px;
    padding: 0 0 14px 30px;
  }

  .rating-bar {
    width: 100%;
    max-width: 100%;
  }

  .rating-bar-label {
    font-size: 13px;
    min-width: 60px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .widget-list {
    gap: 10px;
  }
  .widget-item {
    padding: 10px 0;
  }

  .explore-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .explore-card {
    padding: 14px;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .container {
    padding: 0 16px;
  }

  /* 子分类大全页 */
  .subcategory-all-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .subcategory-group-items {
    grid-template-columns: 1fr;
  }
}
