.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.fullscreen-bg {
  background-image: url('/public/static/image/0f3fc2182ef398.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2ecc71;
}
.main-nav {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}
.main-nav li {
  margin: 0 10px;
}
.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: all 0.3s;
  border-radius: 4px;
  display: block;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background-color: #2ecc71;
}
.catalog-container {
  margin: 30px 0;
}
.category-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.category-title {
  font-size: 22px;
  font-weight: bold;
  color: #2ecc71;
}
.category-id {
  font-size: 18px;
  color: #999;
  background-color: #f5f5f5;
  padding: 4px 10px;
  border-radius: 20px;
}
.subcategory-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}
.subcategory-item {
  border-radius: 6px;
  padding: 15px;
  transition: transform 0.3s;
}
.subcategory-item:hover {
  transform: translateY(-3px);
  background-color: #f9f9f9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.subcategory-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: #2c3e50;
  padding-bottom: 8px;
}
.site-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-list li {
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}
.site-list a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}
.site-list a:hover {
  color: #2ecc71;
  
}
.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #777;
}
.error {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #e74c3c;
  background-color: #fdf2f2;
  border-radius: 8px;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }
  .main-nav {
    margin-top: 15px;
    justify-content: center;
  }
  .main-nav li {
    margin: 5px;
  }
  .subcategory-grid {
    grid-template-columns: 1fr;
  }
}
.category-id {
  display: none;
}
.links-login {
  display: flex;
  justify-content: flex-end;
}
.links-login .login-btn {
  display: inline-block !important;
  padding: 4px 12px !important;
  background-color: #e8f5e9 !important;
  color: #4caf50 !important;
  border-radius: 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.links-login span {
  margin-right: 10px;
  font-size: 14px;
  color: #666666;
}
.search-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
/* 搜索框容器 */
.search-container {
  display: flex;
  max-width: 500px;
  margin: 20px 0;
  position: relative;
} /* 输入框样式 */
#search-input {
    flex: 1;
    padding: 3px 5px;
    font-size: 16px;
    max-width: 200px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}
#search-input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}
#search-input::placeholder {
  color: #9e9e9e;
} /* 搜索按钮样式 */
#search-button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#search-button:hover {
  background: #39863c;
}
#search-button:active {
  transform: scale(0.98);
} 
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.categories-container {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  width: 100%;
  max-width: 1200px;
}
.category-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background-color: #f5f5f5;
}

.category-btn.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}
 /* 一级分类区域 */
 .category-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #4CAF50;
  display: inline-block;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-btn {
  padding: 12px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
  font-weight: 500;
}
.categories-container h1 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-weight: 600;
  display: flex;
}
/* 平台其他区域 */
.platform-section {
  margin-top: 30px;
}
.hot-tag {
  display: inline-block;
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: super;
  animation: shake 0.5s infinite alternate;
}

.new-tag {
  display: inline-block;
  background-color: yellow;
  color: black;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: super;
  animation: shake 0.5s infinite alternate;
}

@keyframes shake {
  0% {
      transform: translateX(0) rotate(0deg);
  }
  25% {
      transform: translateX(-1px) rotate(-2deg);
  }
  50% {
      transform: translateX(1px) rotate(2deg);
  }
  75% {
      transform: translateX(-1px) rotate(-1deg);
  }
  100% {
      transform: translateX(1px) rotate(1deg);
  }
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.platform-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.platform-item:hover {
  transform: translateY(-5px);
}

.platform-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.platform-item p {
  font-size: 14px;
  color: #666;
}
/* 移动端适配 */
@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
  }
  #search-input {
    border-radius: 8px;
    border-right: 2px solid #e0e0e0;
    margin-bottom: 10px;
  }
  #search-button {
    border-radius: 8px;
    padding: 12px;
  }
}
.catalog-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}
.links-login{
  display: flex;
  justify-content: flex-end;
}
.links-login .login-btn{
  display: inline-block!important;
  padding: 4px 12px!important;
  background-color: #e8f5e9!important;
  color: #4CAF50!important;
  border-radius: 16px!important;
  font-size: 13px!important;
  font-weight: 500!important;

}
.links-login span{
  margin-right: 10px;
  font-size: 14px;
  color: #666666;
}
