/* ============================================
   野外露营 - 户外装备指南
   风格: 食谱风格 (recipe)
   主色调: #ff9800 (橙色)
   ============================================ */

/* CSS 变量定义 */
:root {
  --accent-color: #ff9800;
  --accent-dark: #e65100;
  --accent-light: #ffb74d;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-cream: #faf8f5;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 800px;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ============================================
   布局组件
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ============================================
   页头 Header
   ============================================ */

.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 8px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 150px;
  font-size: 0.9rem;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* ============================================
   页脚 Footer
   ============================================ */

.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent-light);
}

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

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

/* ============================================
   面包屑 Breadcrumb
   ============================================ */

.breadcrumb {
  background: var(--bg-light);
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* ============================================
   Hero 区域
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--accent-color);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: inline-flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
}

/* ============================================
   特色区域 Featured
   ============================================ */

.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.featured-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.featured-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.featured-content {
  padding: 20px;
}

.featured-tag {
  display: inline-block;
  background: rgba(255, 152, 0, 0.1);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.featured-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.featured-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   内容列表 Content List
   ============================================ */

.content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-item {
  display: flex;
  gap: 20px;
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.content-item:hover {
  box-shadow: var(--shadow-md);
}

.content-thumb {
  width: 200px;
  height: 130px;
  background: linear-gradient(135deg, #ddd, #bbb);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 2rem;
}

.content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-category {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.content-title:hover {
  color: var(--accent-color);
}

.content-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.content-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   三栏文章列表
   ============================================ */

.three-col-section {
  background: var(--bg-light);
  padding: 50px 0;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.col-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  color: var(--text-primary);
}

.col-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.col-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.col-list a:hover {
  color: var(--accent-color);
}

.col-list .num {
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.col-list .num.grey {
  background: var(--text-muted);
}

/* ============================================
   分类页样式
   ============================================ */

.category-header {
  background: linear-gradient(135deg, var(--bg-cream), #fff);
  padding: 40px 0;
  text-align: center;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-desc {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   分页 Pagination
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pagination a {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.pagination .current {
  background: var(--accent-color);
  color: white;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 15px;
}

/* ============================================
   文章详情页 Article
   ============================================ */

.article-header {
  padding: 40px 0 20px;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta a {
  color: var(--accent-color);
}

.article-featured-img {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #ddd, #bbb);
  border-radius: var(--radius-lg);
  margin: 20px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 4rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--accent-dark);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

/* 食材清单样式 */
.ingredient-list {
  background: var(--bg-cream);
  padding: 25px;
  border-radius: var(--radius-md);
  margin: 25px 0;
}

.ingredient-list h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingredient-list ul {
  padding: 0;
  margin: 0;
}

.ingredient-list li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
}

.ingredient-list li:last-child {
  border-bottom: none;
}

/* 步骤说明样式 */
.step-instructions {
  counter-reset: step;
  margin: 25px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* 信息卡片 */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.info-card {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.info-card-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* ============================================
   相关文章 Related
   ============================================ */

.related-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
}

.related-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #ddd, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.related-content {
  padding: 15px;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   404 页面
   ============================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.8;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 992px) {
  .featured-grid,
  .three-col-grid,
  .related-grid,
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }

  .featured-grid,
  .three-col-grid,
  .related-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .content-item {
    flex-direction: column;
  }

  .content-thumb {
    width: 100%;
    height: 180px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-featured-img {
    height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .nav {
    font-size: 0.9rem;
    gap: 15px;
  }

  .search-box {
    display: none;
  }
}
