/* 全局样式 - 苹果风格 */
:root {
  --primary-color: #0071e3;
  --secondary-color: #6e6ef6;
  --accent-color: #2997ff;
  --dark-color: #ffffff;
  --light-color: #f5f5f7;
  --text-color: #1d1d1f;
  --light-text: #424245;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
  --spacing: 20px;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --neon-shadow: none;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('https://fonts.cdnfonts.com/css/sf-pro-display');
}

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

body {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--dark-color);
  overflow-x: hidden;
}

/* 默认隐藏主内容，避免闪烁 */
main, header, footer {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.content-visible main,
body.content-visible header,
body.content-visible footer {
  opacity: 1;
}

body.content-visible main {
  animation: fadeInSmooth 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInSmooth {
  0% { 
    opacity: 0; 
    transform: translateY(20px);
    filter: blur(2px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes slideUp {
  from { transform: translateY(30px); }
  to { transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

a {
  text-decoration: none;
  color: var(--light-text);
  transition: var(--transition);
}

/* 背景效果 - 更简洁 */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.6;
}

.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.05"/></svg>');
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  animation: subtle-float 20s infinite ease-in-out alternate;
}

@keyframes subtle-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(10px) scale(1.05); }
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%),
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.03), transparent 70%),
    radial-gradient(circle at bottom left, rgba(110, 110, 246, 0.03), transparent 70%);
  z-index: -2;
}

/* 开场动画 - 更精致 */
.intro-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image: url('../images/explosion-mars.jpg');
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* 移除自动淡出动画，让JavaScript来控制 */
  /* animation: fadeOut 0.5s ease 3.5s forwards; */
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.mars {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #ffb380 40%, #ff6d00 100%);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 60px rgba(168, 85, 247, 0.3);
  overflow: hidden;
  animation: riseUp 2s cubic-bezier(0.22, 0.61, 0.36, 1), pulsate 2s ease-in-out infinite;
  position: relative;
  transform-origin: center center;
  filter: contrast(1.05) brightness(1.02);
}

@keyframes riseUp {
  0% { transform: translateY(100vh) scale(0.1); opacity: 0; filter: brightness(0.8) blur(5px); }
  50% { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1.2) blur(0px); }
  80% { transform: scale(1.5); filter: brightness(1.5) blur(2px); }
  100% { transform: scale(12); opacity: 0; filter: brightness(2) blur(15px); }
}

@keyframes pulsate {
  0%, 100% {
    box-shadow: 0 0 50px rgba(255, 80, 0, 0.8), 0 0 100px rgba(255, 120, 0, 0.4), 0 0 150px rgba(74, 108, 253, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 80px rgba(255, 120, 0, 0.9), 0 0 120px rgba(255, 160, 0, 0.5), 0 0 180px rgba(74, 108, 253, 0.3);
    transform: scale(1.05);
  }
}

.explosion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  height: 0%;
  border-radius: 50%;
  /* 极简化彩色渐变，减弱色彩和光晕 */
  background: radial-gradient(circle, #fff 0%, rgba(168, 85, 247, 0.25) 20%, rgba(99, 102, 241, 0.15) 40%, rgba(59, 130, 246, 0.08) 70%, transparent 100%);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), 0 0 80px rgba(99, 102, 241, 0.08);
  opacity: 0;
  animation: explode 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 2s forwards;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

@keyframes explode {
  0% { width: 0%; height: 0%; opacity: 0; filter: brightness(1) blur(0px); }
  15% { opacity: 0.2; filter: brightness(1.1) blur(1px); }
  30% { opacity: 0.4; filter: brightness(1.1) blur(2px); }
  50% { width: 60%; height: 60%; opacity: 0.6; filter: brightness(1.1) blur(4px); }
  70% { opacity: 0.3; filter: brightness(1) blur(6px); }
  100% { width: 10%; height: 10%; opacity: 0; filter: brightness(1) blur(10px); }
}

.explosion-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.explosion-particle {
  position: absolute;
  background: url('../images/explosion-mars.jpg') no-repeat;
  background-size: 800% 800%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  filter: brightness(1.3) contrast(1.1);
  box-shadow: 0 0 8px rgba(255, 100, 0, 0.6);
  transform-origin: center center;
}

.intro-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  animation: textAppear 0.5s ease-out 2.5s forwards;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-family: 'SF Pro Display', sans-serif;
  padding: 15px 30px;
  z-index: 10;
}

@keyframes textAppear {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* 火星效果 */
.mars-planet {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: url('../images/explosion-mars.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 50%;
  box-shadow: 
    0 0 80px rgba(255, 61, 0, 0.4),
    0 0 120px rgba(255, 109, 0, 0.2),
    inset 0 0 60px rgba(255, 200, 0, 0.3);
  overflow: hidden;
  animation: pulseMars 8s ease-in-out infinite;
  z-index: 2;
}

.mars-planet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%
  );
  border-radius: 50%;
  z-index: 3;
}

.explosion-particles {
  position: absolute;
  top: 40%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: url('../images/explosion-mars.jpg') no-repeat center center;
  background-size: 200%;
  background-position: 70% 30%;
  mask-image: radial-gradient(circle at 70% 50%, transparent 40%, black 60%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, transparent 40%, black 60%);
  z-index: 1;
  filter: brightness(1.2) contrast(1.2);
  transform: scale(1.5);
  opacity: 0.7;
  animation: particlesFloat 15s ease-in-out infinite alternate;
}

@keyframes particlesFloat {
  0% { transform: scale(1.5) translate(0, 0); }
  100% { transform: scale(1.6) translate(20px, -10px); }
}

@keyframes rotateMars {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes pulseMars {
  0%, 100% { 
    box-shadow: 
      0 0 50px rgba(255, 80, 0, 0.7),
      0 0 100px rgba(255, 120, 0, 0.4),
      0 0 150px rgba(74, 108, 253, 0.2);
    transform: translateY(-50%) scale(1);
  }
  50% { 
    box-shadow: 
      0 0 80px rgba(255, 120, 0, 0.8),
      0 0 120px rgba(255, 160, 0, 0.5),
      0 0 180px rgba(74, 108, 253, 0.3);
    transform: translateY(-50%) scale(1.03);
  }
}

/* 星空效果 */
.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  /* 星点密度提升 */
}

.star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 火星表面纹理 */
.mars-crater {
  position: absolute;
  border-radius: 45%;
  background: rgba(200, 60, 10, 0.7);
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.6), 
    inset -2px -2px 5px rgba(255, 180, 50, 0.3);
  transform: translateZ(0);
  filter: blur(0.5px);
  overflow: hidden;
}

.mars-crater::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 30%, 
    rgba(255, 200, 50, 0.3) 0%, 
    transparent 60%
  );
  mix-blend-mode: overlay;
}

/* 头部样式 - 苹果风格 */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 24px 10px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
  text-transform: none;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--light-text);
  letter-spacing: -0.01em;
  text-transform: none;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  opacity: 1;
}

nav a.active::after {
  width: 100%;
}

/* 英雄区域 - 苹果风格 */
/* 设置英雄区域的基本布局和样式 */
.hero {
  position: relative;
  padding-top: 90px;
  padding-bottom: 40px;
  min-height: 680px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 3;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-shadow: none;
  position: relative;
  z-index: 4;
  background: none;
  animation: fadeIn 0.8s ease-out, slideUp 0.8s ease-out;
  text-align: center;
  white-space: normal;
}

.hero p {
  font-size: 1.3rem;
  font-weight: 460;
  color: #222;
  max-width: 600px;
  margin-bottom: 12px;
  background: none;
  letter-spacing: normal;
  animation: fadeIn 0.8s ease-out 0.2s both, slideUp 0.8s ease-out 0.2s both;
  text-align: center;
  white-space: normal;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 英雄区域统计数据容器样式 */
.hero-stats {
  display: flex; /* 使用弹性布局 */
  justify-content: center; /* 水平居中对齐 */
  gap: 100px; /* 设置元素之间的间距为60px */
  margin-top: 0; /* 顶部外边距为0 */
  margin-bottom: 36px; /* 底部外边距为36px */
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 0;
  margin-bottom: 36px;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60vw;
  max-width: 700px;
  min-width: 320px;
  margin: 32px auto 0 auto;
  padding: 0 0 0 24px;
  height: 64px;
  background: var(--light-color);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  left: 0;
  transform: none;
  z-index: 10;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 1.3rem;
  padding: 0 16px 0 0;
  background: transparent;
  height: 100%;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}
.search-bar button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 36px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 24px;
  height: 56px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.2s;
  align-self: stretch;
  margin-top: 4px;
  margin-bottom: 4px;
}
.search-bar button:hover {
  background: #0077ed;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 68%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -54%);
  z-index: 1;
  pointer-events: none;
}

/* 苹果风格白球 - 添加蓝紫色光晕，位置调整与顶部首页对齐 */
.hero-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 40%, rgba(180,210,255,0.18) 70%, rgba(80,160,255,0.10) 100%),
    linear-gradient(160deg, rgba(255,255,255,0.0) 60%, rgba(180,180,200,0.10) 100%),
    #fff;
  border-radius: 50%;
  box-shadow: 0 24px 96px 0 rgba(80, 160, 255, 0.22), 0 0 220px 44px rgba(80, 160, 255, 0.13), 0 48px 96px 0 rgba(0,0,0,0.13);
  overflow: hidden;
  z-index: 2;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-breath 4.5s ease-in-out infinite;
}

.hero-sphere::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(80,160,255,0.13) 0%, rgba(80,160,255,0.08) 70%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(8px);
  animation: sphere-pulse 6s ease-in-out infinite;
}

.hero-sphere::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.05) 100%);
  top: 50px;
  left: 80px;
  z-index: 2;
  box-shadow: 0 0 32px 12px rgba(255,255,255,0.18);
  animation: highlight-move 6s linear infinite;
  pointer-events: none;
}

@keyframes hero-breath {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 24px 96px 0 rgba(80, 160, 255, 0.22), 0 0 220px 44px rgba(80, 160, 255, 0.13), 0 48px 96px 0 rgba(0,0,0,0.13);
    filter: brightness(1);
  }
  20% {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 32px 128px 0 rgba(80, 160, 255, 0.28), 0 0 280px 60px rgba(80, 160, 255, 0.16), 0 56px 120px 0 rgba(0,0,0,0.16);
    filter: brightness(1.08);
  }
  50% {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 48px 160px 0 rgba(80, 160, 255, 0.32), 0 0 320px 80px rgba(80, 160, 255, 0.18), 0 64px 144px 0 rgba(0,0,0,0.18);
    filter: brightness(1.13);
  }
  80% {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 32px 128px 0 rgba(80, 160, 255, 0.28), 0 0 280px 60px rgba(80, 160, 255, 0.16), 0 56px 120px 0 rgba(0,0,0,0.16);
    filter: brightness(1.08);
  }
}

@keyframes sphere-pulse {
  0%, 100% {
    opacity: 0.7;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

@keyframes highlight-move {
  0% { top: 50px; left: 80px; opacity: 1; }
  25% { top: 40px; left: 160px; opacity: 0.95; }
  50% { top: 120px; left: 200px; opacity: 0.85; }
  75% { top: 240px; left: 120px; opacity: 0.95; }
  100% { top: 50px; left: 80px; opacity: 1; }
}

.hero-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
  height: 1px;
  width: 100%;
  animation: moveLine 8s linear infinite;
}

.hero-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.hero-line:nth-child(2) { top: 40%; animation-delay: 2s; }
.hero-line:nth-child(3) { top: 60%; animation-delay: 4s; }
.hero-line:nth-child(4) { top: 80%; animation-delay: 6s; }

@keyframes moveLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 统计数据 - 苹果风格 */
.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--light-text);
  letter-spacing: 0.5px;
}

/* 分类区域 - 苹果风格 */
.categories {
  padding: 20px 0 40px;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-color);
  position: relative;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  left: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.category-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.category-item {
  background: var(--light-color);
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--light-text);
  transition: all 0.3s ease;
}

.category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
}

.category-item.active {
  background: var(--primary-color);
  color: white;
  border: none;
}

/* 工具卡片 - 苹果风格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 50px;
  justify-items: center;
  align-items: stretch;
}

.tool-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  width: 320px;
  min-width: 320px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 180px;
}

.tool-card.active,
.tool-card.selected {
  background: radial-gradient(circle at 50% 50%, #eaf4ff 60%, #fafdff 100%);
  box-shadow: 0 0 32px 0 rgba(80, 160, 255, 0.18), 0 8px 32px 0 rgba(80, 160, 255, 0.10);
  border: 1.5px solid #b3d8ff;
  z-index: 2;
  animation: none;
}

.tool-card:active {
  background: radial-gradient(circle at 50% 50%, #eaf4ff 60%, #fafdff 100%);
  box-shadow: 0 0 32px 0 rgba(80, 160, 255, 0.18), 0 8px 32px 0 rgba(80, 160, 255, 0.10);
  border: 1.5px solid #b3d8ff;
  transform: none;
}

.tool-card:hover {
  box-shadow: 0 8px 32px 0 rgba(80, 160, 255, 0.10), 0 2px 12px rgba(0, 0, 0, 0.10);
  border: 1.5px solid #e3f0ff;
  background: radial-gradient(circle at 50% 50%, #f5faff 60%, #fff 100%);
}

@keyframes cardGlow {
  0% { box-shadow: 0 0 0 0 rgba(80,160,255,0.10); }
  100% { box-shadow: 0 0 32px 0 rgba(80,160,255,0.18); }
}

.tool-card-header {
  padding: 12px 16px 0 16px;
  display: flex;
  align-items: center;
  border-bottom: none;
}

.tool-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-right: 10px;
  object-fit: contain;
  background: rgba(245, 245, 247, 0.6);
  padding: 4px;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.tool-developer {
  color: #86868b;
  font-size: 0.8rem;
}

.origin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.foreign {
  background: var(--primary-color);
  color: white;
}

.domestic {
  background: #fa5252;
  color: white;
}

.tool-card-body {
  padding: 8px 16px 0 16px;
  color: var(--light-text);
}

.tool-description {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--light-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tool-tag {
  background: var(--light-color);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--light-text);
  transition: all 0.2s ease;
}

.tool-tag:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--primary-color);
}

.highlights-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.highlights-list {
  list-style: none;
  padding-left: 0;
}

.highlights-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--light-text);
}

.highlights-list li:before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 10px 16px;
  border-top: none;
  min-height: 40px;
  background: transparent;
  margin-top: auto;
}

.tool-rating {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.rating-stars {
  color: #ff9500;
  margin-right: 4px;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.rating-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-color);
}

.tool-link {
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.tool-link:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

/* 特性区域 - 苹果风格 */
.features {
  padding: 80px 0;
  background: var(--light-color);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 页脚 - 苹果风格 */
footer {
  background: var(--light-color);
  color: var(--text-color);
  padding: 60px 0 24px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links a {
  color: var(--light-text);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: #86868b;
}

/* 动画类 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero h2 {
    font-size: 3.6rem;
  }
  
  .hero-sphere {
    width: 220px;
    height: 220px;
  }
  
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card { width: 48vw; min-width: 180px; }
}

@media (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }
  
  .hero-sphere {
    width: 200px;
    height: 200px;
    right: 5%;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero h2 {
    font-size: 2.4rem;
  }
  
  .hero-visual {
    position: relative;
    width: 100%;
    height: 260px;
    margin-top: 40px;
  }
  
  .hero-sphere {
    top: 50%;
    left: 30px; /* 保持与导航栏对齐 */
    right: auto; /* 移除右侧定位 */
    transform: translateY(-50%); /* 只在Y轴上居中 */
    width: 180px; /* 小屏幕下稍微缩小尺寸 */
    height: 180px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .search-bar button {
    width: 100%;
    padding: 15px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { width: 98vw; min-width: 120px; }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .category-item {
    width: calc(50% - 10px);
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .tools-grid { grid-template-columns: 1fr; }
  
  .hero-sphere {
    width: 150px; /* 更小屏幕下进一步缩小尺寸 */
    height: 150px;
    left: 24px; /* 与容器内边距对齐 */
  }
}

/* 工具详情页样式 */
.tool-detail {
  padding: 60px 0 80px;
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #eaeaea;
}

.tool-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.tool-header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 32px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tool-header-info {
  gap: 12px;
}

.tool-header-info h1 {
  margin-bottom: 8px;
}

.tool-header-meta {
  margin-top: 8px;
  gap: 16px;
}

.tool-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.tool-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tool-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 36px;
}

.tool-section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-color);
}

.tool-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tool-full-description {
  font-size: 1.13rem;
  margin-bottom: 8px;
}

.tool-highlights-full {
  list-style: none;
  padding: 0;
}

.tool-highlights-full li {
  font-size: 1.08rem;
  margin-bottom: 8px;
  list-style: disc inside;
  color: #222;
}

.tool-highlights-full li::before {
  display: none;
}

.tool-tags-section {
  margin-top: 8px;
}

.tool-tag.large-tag {
  font-size: 1.13rem;
  font-weight: 600;
  border-radius: 18px;
  padding: 6px 18px;
  margin-right: 10px;
  margin-bottom: 8px;
  background: #f2f6ff;
  color: #0071e3;
  display: inline-block;
}

.main-blue-btn {
  display: block;
  width: 100%;
  background: var(--primary-color);
  color: #fff !important;
  font-size: 1.13rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 0;
  text-align: center;
  margin: 18px 0 0 0;
  box-shadow: 0 2px 12px rgba(0,113,227,0.08);
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.main-blue-btn:hover {
  background: #2997ff;
  color: #fff;
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-color);
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tool-info-list {
  list-style: none;
  padding: 0;
}

.tool-info-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 500;
}

.info-value {
  color: var(--text-color);
  font-weight: 600;
}

.view-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto;
  background: linear-gradient(90deg, #e3f0ff 0%, #f8fbff 100%);
  border: 1.5px solid #e0e6ed;
  box-shadow: 0 4px 24px 0 rgba(0, 113, 227, 0.08), 0 1.5px 6px 0 rgba(41, 151, 255, 0.04);
  padding: 18px 0;
  border-radius: 32px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s;
  width: 420px;
  max-width: 90vw;
  min-width: 180px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  gap: 10px;
  backdrop-filter: blur(6px);
}

.view-more-button:hover {
  background: linear-gradient(90deg, #d0e7ff 0%, #eaf4ff 100%);
  color: #005bbd;
  box-shadow: 0 8px 32px 0 rgba(0, 113, 227, 0.13), 0 2px 8px 0 rgba(41, 151, 255, 0.08);
  transform: translateY(-2px) scale(1.025);
}

.view-more-button .arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.2em;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-more-button:hover .arrow {
  transform: translateX(6px) scale(1.1);
}

@media (max-width: 600px) {
  .view-more-button { width: 98vw; min-width: 120px; font-size: 1rem; padding: 14px 0; }
}

.comments-placeholder, .related-tools-placeholder {
  background: rgba(0, 0, 0, 0.03);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-color);
  opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .tool-content {
    grid-template-columns: 1fr;
  }
  
  .tool-header {
    flex-direction: column;
    text-align: center;
  }
  
  .tool-header-logo {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .tool-header-meta {
    justify-content: center;
  }
  
  .tool-section-title::after,
  .sidebar-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 爆炸效果动画 - 苹果风格 */
@keyframes explodeParticle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    filter: brightness(1.5) blur(0);
  }
  20% {
    opacity: 1;
    filter: brightness(1.2) blur(1px);
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx, 100px), var(--ty, 100px)) scale(1.5);
    filter: brightness(1) blur(2px);
  }
}

@keyframes fadeParticle {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes growRay {
  0% {
    width: 0;
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  100% {
    width: 180px;
    opacity: 0.4;
  }
}

@keyframes fadeRay {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
  }
}

@keyframes explode {
  0% { 
    width: 0%; 
    height: 0%; 
    opacity: 0; 
    filter: brightness(1) blur(0px);
  }
  15% { 
    opacity: 0.4; 
    filter: brightness(1.2) blur(2px);
  }
  30% { 
    opacity: 0.8; 
    filter: brightness(1.4) blur(4px);
  }
  50% { 
    width: 200%; /* 减小爆炸范围，更集中在球体周围 */
    height: 200%; 
    opacity: 1; 
    filter: brightness(1.5) blur(8px);
  }
  70% { 
    opacity: 0.6;
    filter: brightness(1.3) blur(12px); 
  }
  100% { 
    width: 400%; /* 减小爆炸范围，更集中在球体周围 */
    height: 400%; 
    opacity: 0;
    filter: brightness(1) blur(20px); 
  }
}

.explosion-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  transform-origin: left center;
  opacity: 0;
  border-radius: 2px;
}

/* 视差效果 */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 动画效果 */
.tool-detail {
  animation: fadeIn 1s ease;
}

.tool-section, .sidebar-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.tool-section:nth-child(1) { animation-delay: 0.2s; }
.tool-section:nth-child(2) { animation-delay: 0.4s; }
.tool-section:nth-child(3) { animation-delay: 0.6s; }
.tool-section:nth-child(4) { animation-delay: 0.8s; }

.sidebar-section:nth-child(1) { animation-delay: 0.3s; }
.sidebar-section:nth-child(2) { animation-delay: 0.5s; }
.tool-section:nth-child(3) { animation-delay: 0.7s; }

/* 工具页面特定样式 */
.tools-hero {
  height: 60vh;
  min-height: 400px;
}

.filter-options {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-select {
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* 无结果提示 */
.no-results {
  text-align: center;
  padding: 50px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  color: var(--text-color);
  font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tools-hero {
    height: auto;
    padding: 120px 0 60px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .filter-options {
    width: 100%;
    justify-content: center;
  }
}

.mars-container {
  position: relative;
  width: 180px;
  height: 180px;
}

/* 全屏搜索页面 - 增强版 */
.fullscreen-search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.fullscreen-search.active {
  opacity: 1;
  visibility: visible;
}

/* 搜索页顶部导航 */
.search-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-nav-logo {
  display: flex;
  align-items: center;
}

.search-nav-logo img {
  height: 36px;
  margin-right: 12px;
}

.search-nav-logo h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.search-nav-links {
  display: flex;
  gap: 24px;
}

.search-nav-links a {
  color: var(--light-text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-nav-links a:hover,
.search-nav-links a.active {
  color: var(--primary-color);
}

.fullscreen-search-container {
  width: 100%;
  max-width: 1000px;
  padding: 40px 24px;
  margin: 0 auto;
}

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

.search-header h2 {
  font-size: 2.2rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.close-search {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-color);
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-search:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.fullscreen-search-bar {
  display: flex;
  background: var(--light-color);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 60px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.fullscreen-search-bar:focus-within {
  box-shadow: 0 0 0 2px var(--primary-color), 0 8px 30px rgba(0, 113, 227, 0.2);
  transform: translateY(-2px);
}

.fullscreen-search-bar input {
  flex: 1;
  padding: 0 20px;
  border: none;
  outline: none;
  font-size: 18px;
  color: var(--text-color);
  background: transparent;
  border-radius: 0;
  height: 60px;
  box-sizing: border-box;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fullscreen-search-bar button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 30px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  height: 60px;
  box-sizing: border-box;
  letter-spacing: -0.01em;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s ease;
}

.fullscreen-search-bar button:hover {
  background: #0077ed;
}

.search-suggestions {
  margin-bottom: 40px;
}

.search-suggestions h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 16px;
  font-weight: 600;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.suggestion-tags span {
  background: var(--light-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--light-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-tags span:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--primary-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-categories {
  margin-bottom: 40px;
}

.search-categories h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 16px;
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.category-card h4 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--light-text);
}

.search-results {
  min-height: 200px;
}

/* 搜索页面动画 - 更炫酷 */
@keyframes fadeInSearch {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeOutSearch {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    filter: blur(5px);
  }
}

.intro-subtitle {
  position: absolute;
  left: 50%;
  top: calc(50% + 110px);
  transform: translate(-50%, 0);
  margin-top: 0;
  font-size: 2.1rem;
  font-weight: 700;
  font-family: 'Segoe UI', 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #00c3ff 0%, #3a7bd5 30%, #6e6ef6 60%, #b621fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 32px #6e6ef6cc) drop-shadow(0 0px 12px #00c3ff99);
  opacity: 0;
  animation: subtitleAppear 1.2s cubic-bezier(0.25,0.8,0.25,1) 2.2s forwards;
  user-select: none;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0px 24px #3a7bd555;
}

@keyframes subtitleAppear {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* 在 .hero-sphere 样式后添加 */
.cyber-community {
  position: absolute;
  top: calc(50% + 140px); /* 球体下方位置 */
  left: 450px; /* 与球体对齐 */
  transform: translateX(-50%);
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 4s forwards;
  text-align: center;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 113, 227, 0.2);
}

.cyber-community::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  opacity: 0.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .cyber-community {
    left: 400px;
  }
}

@media (max-width: 992px) {
  .cyber-community {
    left: 350px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .cyber-community {
    left: 30px;
    top: calc(50% + 120px);
    transform: none;
    text-align: left;
  }
  
  .cyber-community::before {
    left: 0;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-visual { width: 90vw; height: 90vw; }
  .hero-sphere { width: 60vw; height: 60vw; }
  .search-bar { height: 56px; border-radius: 16px; }
  .hero-content { margin-top: 24px; }
  .hero-stats { gap: 24px; }
}

/* =============================================== */
/* =========== NEW TOOL DETAIL PAGE STYLES ========= */
/* =============================================== */

/* 主体容器和字体 */
.tool-detail-main {
  padding: 40px 0 80px;
  animation: fadeIn 0.8s ease;
}

body {
  /*
    使用更标准的字体栈，优先使用苹果系统字体
    'SF Pro Display' 是一个很好的选择，但需要用户本地安装或通过@font-face引入。
    为了简单和兼容性，我们使用 -apple-system。
  */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fb; /* 更柔和的背景色 */
  color: #333;
}

/* 移除全局背景网格和纹理，使页面更干净 */
.bg-grid, .bg-texture, .bg-gradient {
  display: none;
}

/* 统一头部样式 */
.main-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 卡片基础样式 */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background-color: var(--primary-color, #007aff);
  border-radius: 2px;
}


/* 详情页网格布局 */
.detail-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* 右侧边栏粘性定位 */
.sidebar .sticky-card {
  position: -webkit-sticky;
  position: sticky;
  top: 100px; /* 顶部导航栏的高度 + 一些间距 */
}


/* 工具头部信息卡片 */
.tool-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.tool-header-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tool-header-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tool-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #666;
  font-size: 15px;
}

.tool-header-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-header-rating .stars {
  color: #ffb400;
}


/* 主要内容区域 */
#tool-description-placeholder p {
  line-height: 1.8;
  font-size: 16px;
  color: #444;
}

#tool-highlights-placeholder {
  list-style: none;
  padding-left: 0;
}

#tool-highlights-placeholder li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  font-size: 16px;
}

#tool-highlights-placeholder li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color, #007aff);
  font-weight: bold;
}

#tool-tags-placeholder .tag {
  display: inline-block;
  background-color: #eef5ff;
  color: #005fcc;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 8px 8px 0;
  transition: all 0.2s ease;
}

#tool-tags-placeholder .tag:hover {
  background-color: #007aff;
  color: #fff;
  transform: translateY(-1px);
}


/* 侧边栏信息列表 */
#tool-info-placeholder {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

#tool-info-placeholder li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

#tool-info-placeholder li:last-child {
  border-bottom: none;
}

#tool-info-placeholder .info-label {
  color: #666;
}

#tool-info-placeholder .info-value {
  font-weight: 500;
  color: #333;
}


/* 主操作按钮 */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--primary-color, #007aff);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary .arrow-icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(2px) translateY(-2px);
}


/* 占位符样式 */
.comments-placeholder,
.related-tools-placeholder {
  text-align: center;
  padding: 40px 20px;
  background-color: #fafafa;
  border-radius: 12px;
  color: #888;
}

/* 页脚简化 */
.main-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
  color: #888;
}
.main-footer p {
  margin: 0;
}
.main-footer .footer-content {
  display: none; /* 隐藏旧的复杂页脚 */
}

/* 响应式设计 */
@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar .sticky-card {
    position: static;
  }
  
  .tool-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .tool-detail-main {
    padding: 20px 0 40px;
  }
  .container {
    padding: 0 15px;
  }
  .card {
    padding: 20px;
  }
  .card-title {
    font-size: 20px;
  }
  .tool-header-info h1 {
    font-size: 26px;
  }
} 

/* 搜索页面样式 */
.search-page {
  padding: 60px 0;
  min-height: calc(100vh - 180px);
  position: relative;
}

.search-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 8s ease infinite;
}

@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.search-container {
  max-width: 700px;
  margin: 0 auto 60px;
}

.search-page .search-bar {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 70px;
  display: flex;
  align-items: center;
}

.search-page .search-bar:focus-within {
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.15);
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateY(-2px);
}

.search-page .search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  padding: 0 24px;
  background: transparent;
  font-family: inherit;
  color: var(--text-color);
}

.search-page .search-bar button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 8px;
  font-family: inherit;
}

.search-page .search-bar button:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.hot-search {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.6s ease-out;
}

.hot-search h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hot-search h2::before {
  content: "🔥";
  font-size: 22px;
}

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

.hot-tag {
  background: var(--light-color);
  color: var(--text-color);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hot-tag:hover {
  background: #e8e8ed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  border-color: rgba(0, 113, 227, 0.2);
}

.hot-categories {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.hot-categories h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
}

.category-card:active {
  transform: translateY(-2px);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 20px;
  background: var(--light-color);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: rgba(0, 113, 227, 0.1);
}

.category-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.category-card p {
  font-size: 15px;
  color: var(--light-text);
  margin: 0;
  line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .search-title {
    font-size: 40px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-page {
    padding: 40px 0;
  }
  
  .search-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .search-container {
    margin-bottom: 40px;
  }
  
  .search-page .search-bar {
    height: auto;
    flex-direction: column;
    padding: 8px;
    gap: 10px;
  }
  
  .search-page .search-bar input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--light-color);
  }
  
  .search-page .search-bar button {
    width: 100%;
    margin-right: 0;
    border-radius: 12px;
  }
  
  .hot-search {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .hot-tags {
    gap: 10px;
  }
  
  .hot-tag {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hot-categories h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .category-card {
    padding: 20px 15px;
  }
  
  .category-icon {
    font-size: 30px;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .category-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .category-card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .search-title {
    font-size: 28px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }
  
  .category-card h3 {
    font-size: 15px;
  }
  
  .category-card p {
    font-size: 12px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

body.loaded .search-title {
  animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  0% {
    text-shadow: 0 0 0px rgba(0, 113, 227, 0);
  }
  100% {
    text-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
  }
}

/* 搜索框聚焦效果 */
.search-bar.focused {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.2);
  border-color: rgba(0, 113, 227, 0.4);
}

/* 趋势部分样式 */
.trending-section {
  margin-bottom: 80px;
}

.trending-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-color);
}

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

.trend-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  height: 100%;
}

.trend-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
}

.trend-icon {
  font-size: 32px;
  background: var(--light-color);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trend-content {
  flex: 1;
}

.trend-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.trend-content p {
  font-size: 15px;
  color: var(--light-text);
  margin: 0;
  line-height: 1.5;
}

/* 搜索标题特效 */
.search-title {
  position: relative;
  background-size: 200% 200%;
}

.search-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0.1;
  color: var(--primary-color);
  transform: translateY(5px);
  filter: blur(4px);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .trend-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .trending-section {
    margin-bottom: 60px;
  }
  
  .trending-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .trend-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .trend-card {
    padding: 24px;
  }
  
  .trend-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 14px;
  }
  
  .trend-content h3 {
    font-size: 16px;
  }
  
  .trend-content p {
    font-size: 14px;
  }
}

/* 优化tool-detail页面右侧sidebar的sticky效果，避免重叠 */
.sidebar .sticky-card {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 20;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: 16px;
  /* 增加过渡效果更自然 */
  transition: box-shadow 0.2s, background 0.2s;
}

/* 保证sidebar区域不会被主内容遮挡 */
.sidebar {
  position: relative;
  z-index: 10;
}

/* 主内容区域不要设置z-index过高，避免遮挡sidebar */
.main-content {
  z-index: 1;
  position: relative;
}