:root {
  --primary-color: #07C160;
  --secondary-color: #1989fa;
  --accent-color: #FF6B35;
  --bg-color: #ffffff;
  --bg-light: #f5f7fa;
  --text-color: #333333;
  --text-light: #666666;
  --text-gray: #999999;
  --border-color: #eeeeee;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
}

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

header {
  background: var(--bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), #05AE58);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.logo-icon span {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.mobile-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-color);
}

.banner {
  background: linear-gradient(135deg, #07C160 0%, #10B981 50%, #059669 100%);
  padding: 40px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: bannerShine 3s infinite;
}

@keyframes bannerShine {
  100% {
    left: 100%;
  }
}

.banner-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.banner-desc {
  font-size: 16px;
  opacity: 0.9;
}

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

.section {
  margin-bottom: 40px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
  margin-right: 8px;
}

.section-more {
  color: var(--text-gray);
  font-size: 13px;
  text-decoration: none;
}

.section-more:hover {
  color: var(--primary-color);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.site-card {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
}

.site-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.site-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary-color), #05AE58);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.site-name {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

.site-name:hover {
  color: var(--primary-color);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-tab {
  padding: 8px 20px;
  background: var(--bg-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary-color);
  color: white;
}

.site-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: var(--bg-color);
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.site-item:hover {
  background: var(--primary-color);
}

.site-item:hover .site-item-name {
  color: white;
}

.site-item-icon {
  width: 24px;
  height: 24px;
  background: var(--bg-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary-color);
  margin-right: 10px;
}

.site-item:hover .site-item-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.site-item-name {
  font-size: 13px;
  color: var(--text-color);
}

.hot-sites {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.hot-list {
  list-style: none;
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-item:hover {
  background: var(--bg-light);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.hot-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  margin-right: 15px;
}

.hot-rank.top3 {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
}

.hot-link {
  flex: 1;
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
}

.hot-link:hover {
  color: var(--primary-color);
}

.hot-count {
  font-size: 12px;
  color: var(--text-gray);
}

.footer {
  background: var(--bg-color);
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 13px;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-gray);
  font-size: 12px;
}

.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  margin-bottom: 20px;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.breadcrumb li {
  color: var(--text-gray);
  font-size: 13px;
}

.breadcrumb li a {
  color: var(--primary-color);
  text-decoration: none;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.form-btn:hover {
  background: #05AE58;
}

.category-page {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.category-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: var(--transition-normal);
}

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

.category-item:hover .category-name {
  color: white;
}

.category-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.category-item:hover .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-name {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    margin: 15px 0;
    max-width: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: var(--card-shadow);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .banner-title {
    font-size: 24px;
  }
  
  .site-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .site-card {
    padding: 12px;
  }
  
  .site-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .footer-content {
    gap: 20px;
  }
}