/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

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

/* Theme Variables */
.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
}

.dark-theme {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-tertiary: #cbd5e1;
  --border-color: #334155;
  --shadow-color: rgba(255, 255, 255, 0.05);
  --card-bg: #1e293b;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.dark-theme .header {
  background: rgba(15, 23, 42, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.taobao-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.taobao-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #ff5722, #ff9800);
}

.taobao-icon {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.taobao-text {
  color: white;
}

.dark-theme .taobao-link {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dark-theme .taobao-link:hover {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
}

.sun-icon,
.moon-icon {
  position: absolute;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.light-theme .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.light-theme .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.dark-theme .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.dark-theme .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* 自动模式指示器 */
.auto-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  animation: pulse 2s infinite;
}

.auto-indicator svg {
  width: 8px;
  height: 8px;
  stroke: white;
  stroke-width: 2;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dark-theme .auto-indicator {
  background: #10b981;
  border-color: var(--bg-primary);
}

/* Hero Section */
.hero {
  padding: 80px 24px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge svg {
  color: #3b82f6;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 64px;
  line-height: 1.5;
}

/* Tools Section */
.tools-section {
  padding: 0 24px 128px;
}

@media (max-width: 768px) {
  .tools-section {
    padding: 0 8px 80px;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  border: 1px solid var(--border-color);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.dark-theme .card-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

.card-content {
  position: relative;
  padding: 40px;
  z-index: 2;
}

.category-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.dark-theme .category-badge {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
}



.tool-info {
  margin-bottom: 32px;
}

.tool-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-name {
  color: var(--text-secondary);
}

.tool-description {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.tool-detail {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .tool-detail {
    display: none;
  }
}

.tool-button {
  width: 100%;
  padding: 24px;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-button {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.tool-button svg {
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-button svg {
  transform: translateX(4px);
}

.hover-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%) skewX(-12deg);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.dark-theme .hover-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.tool-card:hover .hover-effect {
  transform: translateX(200%) skewX(-12deg);
}

/* Color Gradients */
.blue-gradient {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.dark-theme .blue-gradient {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(59, 130, 246, 0.3));
}

.blue-button {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* 小清新配色方案 */
.coral-gradient {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
}

.dark-theme .coral-gradient {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.3), rgba(239, 68, 68, 0.3));
}

.coral-button {
  background: linear-gradient(135deg, #ef4444, #f472b6);
}

.mint-gradient {
  background: linear-gradient(135deg, #99f6e4, #5eead4);
}

.dark-theme .mint-gradient {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.3), rgba(20, 184, 166, 0.3));
}

.mint-button {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.lavender-gradient {
  background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
}

.dark-theme .lavender-gradient {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.3), rgba(147, 51, 234, 0.3));
}

.lavender-button {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.peach-gradient {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.dark-theme .peach-gradient {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.3), rgba(249, 115, 22, 0.3));
}

.peach-button {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}





/* Stats Section */
.stats-section {
  padding: 80px 24px;
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 32px;
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-tertiary);
}

/* 导航链接区域 */
.nav-links-section {
  padding: 64px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-links-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
}

.nav-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  text-align: center;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

/* 小清新颜色悬停效果 */
.nav-link:nth-child(1):hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.nav-link:nth-child(2):hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #f093fb;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(240, 147, 251, 0.3);
}

.nav-link:nth-child(3):hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: #4facfe;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(79, 172, 254, 0.3);
}

.nav-link:nth-child(4):hover {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border-color: #43e97b;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(67, 233, 123, 0.3);
}

.nav-link:nth-child(5):hover {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-color: #fa709a;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(250, 112, 154, 0.3);
}

.nav-link:nth-child(6):hover {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-color: #a8edea;
  color: #333;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(168, 237, 234, 0.3);
}

.nav-link-text {
  position: relative;
  z-index: 1;
  line-height: 1.4;
  word-break: break-word;
}

/* 深色主题适配 */
.dark-theme .nav-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.dark-theme .nav-links-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme .nav-link:nth-child(1):hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.dark-theme .nav-link:nth-child(2):hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #f093fb;
  color: white;
}

.dark-theme .nav-link:nth-child(3):hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: #4facfe;
  color: white;
}

.dark-theme .nav-link:nth-child(4):hover {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border-color: #43e97b;
  color: white;
}

.dark-theme .nav-link:nth-child(5):hover {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-color: #fa709a;
  color: white;
}

.dark-theme .nav-link:nth-child(6):hover {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-color: #a8edea;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .nav-links-title {
    font-size: 28px;
  }
  
  .nav-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .nav-link {
    padding: 18px 14px;
    font-size: 15px;
    min-height: 56px;
  }
}

@media (max-width: 768px) {
  .nav-links-section {
    padding: 40px 20px;
  }
  
  .nav-links-header {
    margin-bottom: 32px;
  }
  
  .nav-links-title {
    font-size: 22px;
  }
  
  .nav-links-subtitle {
    font-size: 14px;
  }
  
  .nav-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .nav-link {
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .nav-links-section {
    padding: 32px 16px;
  }
  
  .nav-links-header {
    margin-bottom: 28px;
  }
  
  .nav-links-title {
    font-size: 18px;
  }
  
  .nav-links-subtitle {
    font-size: 12px;
  }
  
  .nav-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .nav-link {
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    min-height: 44px;
    border-radius: 10px;
  }
  
  .nav-link-text {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 24px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}



.footer-copyright {
  color: var(--text-tertiary);
}

.footer-copyright a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-copyright a:hover {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  
  .hero {
    padding: 40px 8px;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 18px;
    margin-bottom: 40px;
  }

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

  .tool-card {
    border-radius: 16px;
  }

  .card-content {
    padding: 16px;
  }

  .category-badge {
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 16px;
  }

  .tool-name {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .tool-description {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .tool-detail {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .tool-button {
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-nav {
    gap: 12px;
  }

  .taobao-link {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 44px;
    justify-content: center;
  }

  .taobao-text {
    display: none;
  }

  .taobao-icon {
    font-size: 18px;
  }

  .footer {
    padding: 48px 24px;
  }

  .footer-title {
    font-size: 20px;
  }

  .footer-description {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 4px;
  }

  .hero {
    padding: 24px 4px 0;
  }

  .hero-badge {
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 20px;
  }

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

  .hero-description {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .tools-section {
    padding: 0 4px 60px;
  }

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

  .tool-card {
    border-radius: 12px;
  }

  .card-content {
    padding: 14px;
  }

  .category-badge {
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .tool-name {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .tool-description {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tool-detail {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .tool-button {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .header-nav {
    gap: 8px;
  }

  .taobao-link {
    padding: 6px 10px;
    min-width: 40px;
  }

  .taobao-icon {
    font-size: 16px;
  }

  .footer {
    padding: 40px 16px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-description {
    font-size: 14px;
  }
}
