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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #8b5cf6;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f8fafc;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部背景层 */
.header-bg {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  overflow: hidden;
  padding: 0 0 80px 0;
}

/* 浮动装饰形状 */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  bottom: -50px;
  left: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(0, -50px) rotate(0deg); }
  75% { transform: translate(-30px, -30px) rotate(-5deg); }
}

/* 头部样式 */
header {
  position: relative;
  z-index: 10;
  padding: 32px 0 0 0;
  color: white;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.logo {
  margin: 0;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 2.5rem;
  display: inline-block;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.header-content {
  text-align: center;
}

.tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.separator {
  margin: 0 16px;
  color: rgba(255,255,255,0.3);
}

/* 导航栏 */
.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav a:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* 搜索框 */
.search-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
}

.search-box {
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 4px;
}

.search-icon {
  padding: 0 20px;
  font-size: 1.3rem;
  opacity: 0.8;
}

.search-box input {
  flex: 1;
  padding: 16px 0;
  font-size: 1.05rem;
  border: none;
  outline: none;
  background: transparent;
  color: white;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  border-radius: calc(var(--radius-xl) - 4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* 广告横幅 */
.ad-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.18);
  max-width: 100%;
}

.ad-icon {
  font-size: 1.4rem;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ad-text {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主内容区 */
main {
  padding: 48px 0;
  position: relative;
  z-index: 5;
}

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--gradient-2);
  border-radius: 2px;
  display: inline-block;
}

/* 分类网格 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.3);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-name {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

/* 工具网格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.tool-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(102, 126, 234, 0.25);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.tool-tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tool-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
}

.badge-free {
  background: #dcfce7;
  color: #166534;
}

.badge-paid {
  background: #fee2e2;
  color: #991b1b;
}

.badge-trial {
  background: #fef3c7;
  color: #92400e;
}

.badge-china {
  background: #dbeafe;
  color: #1e40af;
}

.tool-review {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.review-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.review-content {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.tool-link {
  display: block;
  text-align: center;
  background: var(--gradient-2);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tool-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 页脚 */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
  margin-top: 48px;
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.sitemap-section h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 600;
}

.sitemap-section ul {
  list-style: none;
}

.sitemap-section li {
  margin-bottom: 10px;
}

.sitemap-section a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.sitemap-section a:hover {
  color: white;
}

.site-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-label {
  color: #64748b;
  font-size: 0.95rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #64748b;
  font-size: 0.9rem;
}

/* 响应式 */
@media(max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 36px;
  }
  
  .logo a {
    font-size: 1.6rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .nav {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .nav a {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .separator {
    display: none;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-icon {
    display: none;
  }
  
  .search-box input {
    padding: 16px 20px;
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    border-radius: var(--radius-lg);
  }
  
  .ad-text {
    font-size: 0.9rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .site-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .footer-sitemap {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media(max-width: 480px) {
  .footer-sitemap {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .category-card {
    padding: 20px 14px;
  }
  
  .category-icon {
    font-size: 2rem;
  }
}

/* 更新日志样式 */
.log-entry {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.log-entry:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.log-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-content {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.log-content strong {
  color: var(--primary);
  font-weight: 600;
}