/*
Theme Name: TOP10 Rankings Child Theme
Theme URI: https://your-site.com
Description: Child theme for TOP10 Rankings (English Version)
Author: Your Name
Template: twentytwentyfour
Version: 1.0
*/

/* Global Styles (Optimized for English Fonts) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* 以下样式与英文预览版一致，直接复制预览文件中<style>内的所有样式 */
/* 头部导航 */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e63946;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #e63946;
}

/* 英雄区Banner */
.hero-section {
  background: linear-gradient(135deg, #e63946 0%, #ff7e67 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-btn {
  background: #fff;
  color: #e63946;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
}

.hero-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* TOP10核心榜单区 */
.top10-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #e63946;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.top10-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.top10-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.top10-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.item-rank {
  background: #e63946;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.item-img-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-content {
  padding: 20px;
  position: relative;
  padding-top: 10px;
}

.item-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 分类榜单区 */
.categories-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-item:hover {
  border-color: #e63946;
  background: #fef7f8;
}

.category-icon {
  font-size: 32px;
  color: #e63946;
  margin-bottom: 10px;
}

.category-title {
  font-size: 16px;
  font-weight: bold;
}

.category-count {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* 订阅区 */
.subscribe-section {
  background: #fef7f8;
  padding: 60px 20px;
  text-align: center;
}

.subscribe-container {
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.subscribe-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.subscribe-input {
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  width: 300px;
  outline: none;
}

.subscribe-btn {
  background: #e63946;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
}

/* 页脚 */
.site-footer {
  background: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 14px;
  color: #999;
  margin-top: 20px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .nav-menu {
    display: none; /* 移动端可替换为汉堡菜单 */
  }
  
  .subscribe-input {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .top10-list {
    grid-template-columns: 1fr;
  }
}

/* 精简榜单卡片样式 - 适配bestpick10.top */
.top10-item {
  height: 100%; /* 卡片等高，布局更整齐 */
  display: flex;
  flex-direction: column;
}

.item-content {
  padding: 12px 15px !important; /* 大幅减少内边距 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-title {
  font-size: 16px !important; /* 缩小标题字号 */
  margin-bottom: 6px !important;
  line-height: 1.2 !important; /* 减少行高，避免标题换行 */
  white-space: nowrap !important; /* 标题强制单行（超出会自动省略） */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.item-desc {
  font-size: 12px !important; /* 缩小描述字号 */
  color: #666;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important; /* 强制仅显示1行描述 */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.item-meta {
  font-size: 11px !important; /* 缩小元数据字号 */
  margin-top: auto; /* 元数据固定在卡片底部 */
}

/* 响应式适配 - 移动端更紧凑 */
@media (max-width: 768px) {
  .top10-list {
    gap: 15px !important; /* 减少卡片间距 */
  }
  .item-img-wrapper {
    height: 180px !important; /* 缩小图片高度 */
  }
}