/* 基础样式 */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --text-color: #2d3436;
  --light-text: #636e72;
  --background-color: #ffffff;
  --light-background: #f9f9f9;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 头部样式 */
header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

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

/* 英雄区域样式 */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 150px 0 100px;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 分类导航样式 */
.categories {
  padding: 80px 0 40px;
  background-color: var(--light-background);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

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

.category-btn {
  background-color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.category-btn .icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.category-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.category-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* 代理提示样式 */
.proxy-tip {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.proxy-tip-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.proxy-tip i.fa-info-circle {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.proxy-tip p {
  flex: 1;
  margin: 0;
  color: var(--text-color);
}

.proxy-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.proxy-btn:hover {
  background-color: #5a4bd1;
  transform: translateY(-2px);
}

/* 工具卡片样式 */
.tools {
  padding: 40px 0 80px;
}

.category-section {
  margin-bottom: 60px;
}

.category-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.category-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.category-header .icon {
  margin-right: 15px;
  font-size: 1.5em;
}

.category-description {
  color: var(--light-text);
  margin-top: 10px;
}

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

.tool-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 350px;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tool-image {
  height: 180px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.tool-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.tool-card:hover .tool-image img {
  transform: scale(1.05);
}

.tool-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.tool-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.tool-content p {
  color: var(--light-text);
  margin-bottom: 40px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
}

.tool-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.tool-link:hover {
  color: var(--accent-color);
}

.tool-link i {
  margin-left: 5px;
}

/* 关于部分样式 */
.about {
  padding: 80px 0;
  background-color: var(--light-background);
}

.about p {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--light-text);
}

/* 页脚样式 */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
}

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

.social-links a {
  margin-left: 15px;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: var(--transition);
}

.social-links a:hover {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    margin-top: 20px;
  }
  
  .social-links a {
    margin: 0 10px;
  }
  
  .proxy-tip-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .proxy-tip p {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
  }
  
  .nav-links {
    margin-top: 15px;
  }
  
  .nav-links li {
    margin: 0 10px;
  }
  
  .hero {
    padding: 180px 0 80px;
  }
  
  .category-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
} 