/* 露营装备 - 样式文件 */
/* 食谱风格 + 单栏布局 */

/* CSS 变量 */
:root {
  --accent-color: #ff9800;
  --primary-color: #2d5016;
  --secondary-color: #4a7c23;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #f8f9fa;
  --bg-white: #fff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 800px;
}

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

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s;
}

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

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

ul {
  list-style: none;
}

/* 头部样式 */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.logo::before {
  content: '⛺';
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

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

.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-color);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  min-width: 200px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
}

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

/* 主要内容区 */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #f57c00;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary-color);
}

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* 特色卡片网格 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

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

.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.featured-card-content {
  padding: 1.5rem;
}

.featured-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.featured-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 内容列表 */
.content-list {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.content-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.content-item img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.content-item-info {
  flex: 1;
}

.content-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

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

.content-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.content-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 三栏推荐区 */
.recommend-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.recommend-column {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.recommend-column h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommend-column li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.recommend-column li:last-child {
  border-bottom: none;
}

.recommend-column a {
  color: var(--text-color);
  display: block;
  font-size: 0.95rem;
}

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

.recommend-column .date {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 0.25rem;
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

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

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

.breadcrumb span {
  color: var(--text-lighter);
  margin: 0 0.5rem;
}

.breadcrumb strong {
  color: var(--text-color);
  font-weight: 600;
}

/* 分类头部 */
.category-header {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.category-header p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.category-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-color);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--accent-color);
  color: #fff;
}

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

/* 文章页 */
.article-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-meta .category {
  background: var(--accent-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.article-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 0.5rem;
}

/* 食材清单样式 */
.ingredient-list {
  background: #fff8e1;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-color);
}

.ingredient-list h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.ingredient-list li {
  list-style: none;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ffe0b2;
  display: flex;
  justify-content: space-between;
}

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

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

.step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: var(--radius);
}

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

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

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

/* 相关信息框 */
.info-box {
  background: #e8f5e9;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--secondary-color);
}

.info-box h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.info-box p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* 相关文章 */
.related-section {
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.related-card:hover {
  transform: translateY(-4px);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card h4 {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* 404页面 */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}

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

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .featured-grid,
  .recommend-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .search-box {
    min-width: 150px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .main {
    padding: 1rem;
  }

  .featured-grid,
  .recommend-section,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-featured-image {
    height: 220px;
  }

  .article-content {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

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

  .category-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}
