/* 全局基础样式 */
:root {
  --primary-color: #4a90e2;
  --primary-light: #e3f2fd;
  --secondary-color: #ff6b6b;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #ffffff;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 1200px;
    padding: 20px 20px 0;
  }
}

/* 头部样式 */
.header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
  width: auto;
}

.search-box {
  flex-grow: 1;
  margin: 0 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background-color: var(--bg-light);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-lighter);
  cursor: pointer;
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 20px;
  }
  
  .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .nav-link.active {
    color: var(--primary-color);
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
  }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 底部样式 */
.footer {
  background-color: var(--bg-light);
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--text-light);
}

.footer-link:hover {
  color: var(--primary-color);
}

.copyright {
  margin-top: 10px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #3a7bc8;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #e05a5a;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* 卡片样式 */
.card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
}

.card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-text {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分页样式 */
.tspage {
  font-size: 14px !important;
  background: none !important;
  clear: both !important;
  height: auto !important;
  overflow: hidden !important;
  line-height: 32px !important;
  padding: 0;
  text-align: center !important;
  border-radius: 12px !important;
  margin: 20px 0 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.tspage i {
  font-style: normal;
  font-weight: 500;
}

.tspage a {
  color: #64748b !important;
  text-decoration: none;
  padding: 10px 16px;
  margin: 0 6px;
  display: inline-block;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border: 1px solid transparent;
}

.tspage a:hover {
  color: #4a6cf7 !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.tspage b {
  color: #fff !important;
  background-color: #4a6cf7 !important;
  padding: 10px 16px !important;
  margin: 0 6px !important;
  display: inline-block !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(74, 108, 247, 0.3) !important;
  transition: all 0.3s !important;
}

.tspage b:hover {
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4) !important;
}
.tspage .tsp_count,
.tspage i:not(.tsp_next i):not(.tsp_prev i),
.tspage .tsp_end,
.tspage .tsp_first,
.tspage a.tsp_more,
.tspage a.tsp_end,
.tspage a.tsp_first,
.tspage .tsp_change {
  display: none !important;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: var(--transition);
}

.tab:hover {
  color: var(--primary-color);
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 评分样式 */
.rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stars {
  color: #ffc107;
  margin-right: 8px;
}

.rating-text {
  color: var(--text-light);
  font-size: 14px;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-20 {
  margin-top: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.main{
  padding-top: 20px;
}
@media (max-width: 767px) {
  .header-container{
    flex-wrap: wrap;
  }
  .nav{
            display: grid;
        width: 100%;
        height: auto;
        overflow: hidden;
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
        color: #333;
        margin: 10px 0 0;
  }
  .nav a{
    color: #333;
  }
}
@media (min-width: 768px) {
  .section-title {
    font-size: 24px;
  }
}