/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 -15px;
}

.col-md-3 {
  width: 25%;
  padding: 0 15px;
}

.col-md-4 {
  width: 33.333333%;
  padding: 0 15px;
}

.col-md-9 {
  width: 75%;
  padding: 0 15px;
}

.divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 30px 0;
}

/* 头部样式 */
.site-header {
  position: relative;
  background: transparent;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.8;
}

.header-content {
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.logo-container {
  width: 25%;
}

.logo {
  color: white;
  margin: 0;
  font-size: 24px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.search-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
}

.nav-menu {
  width: 25%;
  display: flex;
  justify-content: flex-end;
}

/* 侧边栏样式 */
.sidebar {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
}

.sidebar-title {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.category-menu {
  border-right: none;
}

/* 工具卡片样式 */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
}

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

.tool-content {
  display: flex;
  align-items: center;
}

.tool-icon {
  height: 60px;
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 200px;
  color: inherit;
  margin-right: 10px;
}

.tool-icon i {
  font-size: inherit;
}

.tool-icon img {
  max-width: 80px;
  max-height: 80px;
}

.tool-info {
  padding: 10px;
}

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

.tool-description {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tool-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.more-tools-btn {
  color: #409EFF;
  text-decoration: none;
}

.more-tools-btn:hover {
  text-decoration: underline;
}

/* 页脚样式 */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 0 20px;
}

.footer-content h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 15px;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.friend-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.friend-links li {
  margin-bottom: 8px;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 关于页面样式 */
.about-container {
  padding: 30px 0;
}

.about-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.feature-card {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 20px;
}

.feature-card h4 {
  margin-top: 0;
  color: #409EFF;
}

/* 工具列表页面样式 */
.tool-list {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.page-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
  
  .col-md-3, .col-md-4, .col-md-9, .logo-container, .search-container, .nav-menu {
    width: 100%;
  }
  
  .header-content .row {
    flex-direction: column;
  }
  
  .logo-container, .search-container {
    margin-bottom: 15px;
  }
  
  .tools-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
} 