/* 公共样式文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
}

/* 头部样式 */
.header {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 顶部广告位 */
.ad-banner {
  background: #f8f9fa;
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
}

/* 主要内容区域 */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
}

.content-area {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #667eea;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.tool-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-btn {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.tool-btn:hover {
  background: #667eea;
  color: white;
}

.tool-btn.active {
  background: #667eea;
  color: white;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.tool-panel {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.tool-panel h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
/* 工具卡片 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #667eea;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.tool-description {
  color: #666;
  margin-bottom: 15px;
}

.tool-link {
  display: inline-block;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.3s;
}

.tool-link:hover {
  opacity: 0.9;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #667eea;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #6c757d;
}

/* 结果显示区域 */
.result-area {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
}

.result-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #495057;
}
/* 功能特点和使用场景样式 */
.features-section,
.usecases-section {
      max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.features-section h3,
.usecases-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid,
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.feature-item,
.usecase-item {
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-item:hover,
.usecase-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.feature-icon,
.usecase-icon {
    font-size: 24px;
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    border-radius: 50%;
    color: #4CAF50;
}

.feature-item:hover .feature-icon,
.usecase-item:hover .usecase-icon {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.feature-item h4,
.usecase-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-item p,
.usecase-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 特殊颜色主题 */
.usecases-section h3 {
    border-bottom: 2px solid #2196F3;
}

.usecase-icon {
    background: #e3f2fd;
    color: #2196F3;
}

.usecase-item:hover {
    border-color: #2196F3;
}

.usecase-item:hover .usecase-icon {
    background: #2196F3;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
    .features-section,
    .usecases-section {
        padding: 20px 15px;
        margin: 15px;
    }
    
    .features-section h3,
    .usecases-section h3 {
        font-size: 20px;
    }
    
    .features-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item,
    .usecase-item {
        padding: 15px;
    }
    
    .feature-item h4,
    .usecase-item h4 {
        font-size: 16px;
    }
    
    .feature-item p,
    .usecase-item p {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .features-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
    }
}
/* 页脚 */
.footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}
