/* 印氪 Inker - AI工具导航站 */
:root {
  --brand: #e11d48;
  --brand-light: #fb7185;
  --brand-dark: #be123c;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Header */
.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: 800;
}
.logo span { color: var(--brand-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 60px 24px 48px;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--brand-light); }
.hero p {
  color: var(--gray-400);
  font-size: 16px;
  margin-bottom: 32px;
}
.search-box {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid var(--gray-700);
  border-radius: 16px;
  background: var(--dark-light);
  color: var(--white);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input::placeholder { color: var(--gray-500); }
.search-box input:focus { border-color: var(--brand); }
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray-500);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 28px;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.hero-stat .label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Category Filter */
.category-filter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover, .pill.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* Section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { font-size: 24px; }
.section-more {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}
.section-more:hover { text-decoration: underline; }

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  display: block;
}
.tool-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.tool-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.tool-info { flex: 1; min-width: 0; }
.tool-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-name-en {
  font-size: 12px;
  color: var(--gray-400);
}
.tool-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-free { background: #ecfdf5; color: var(--green); }
.badge-freemium { background: #eff6ff; color: var(--blue); }
.badge-paid { background: #fef3c7; color: var(--yellow); }
.badge-domestic { background: #ecfdf5; color: var(--green); }
.badge-vpn { background: #fef3c7; color: var(--yellow); }
.badge-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Featured Section */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.featured-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  text-decoration: none;
}
.featured-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.featured-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2, #fce7f3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.featured-info { flex: 1; }
.featured-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.featured-highlight {
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 6px;
  font-weight: 500;
}
.featured-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Category Section */
.category-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.category-icon { font-size: 24px; }
.category-name {
  font-size: 20px;
  font-weight: 700;
}
.category-count {
  font-size: 13px;
  color: var(--gray-400);
  margin-left: auto;
}

/* Footer */
.footer {
  background: var(--dark);
  margin-top: 60px;
  padding: 40px 24px;
  text-align: center;
}
.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--brand-light); }
.footer p {
  color: var(--gray-500);
  font-size: 13px;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.footer-links a {
  color: var(--gray-400);
  font-size: 13px;
}
.footer-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 22px; }
  .tool-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .category-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.tool-card, .featured-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
/* === Tool Detail: Feature List === */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-600, #4b5563);
  line-height: 1.6;
}
.feature-list li::before {
  content: "✓";
  color: var(--brand, #e11d48);
  font-weight: 700;
  flex-shrink: 0;
}
