/* 攀岩装备 - 相关推荐风格 */
:root {
  --accent-color: #4caf50;
  --primary: #2e7d32;
  --secondary: #66bb6a;
  --bg: #f8faf8;
  --card-bg: #fff;
  --text: #333;
  --text-light: #666;
  --border: #e0e8e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
  --gap: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

/* Header */
.header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

.nav a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 20px;
  padding: 5px 15px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  padding: 5px;
  width: 150px;
}

.search-box button {
  border: none;
  background: var(--accent-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 15px;
  cursor: pointer;
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 60px var(--gap);
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

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

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* Topic Tags */
.topic-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.topic-tag {
  background: var(--card-bg);
  padding: 10px 25px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  font-weight: 500;
  transition: all 0.3s;
}

.topic-tag:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
}

.card-body {
  padding: 15px;
}

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

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

.card-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.category-tag {
  background: #e8f5e9;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* List Section */
.list-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.list-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 15px;
}

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

.list-item-img {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.list-item-content h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.list-item-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Sidebar Grid */
.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}

.sidebar-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.sidebar-box li:last-child {
  border-bottom: none;
}

.sidebar-box a {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-box a::before {
  content: '•';
  color: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--card-bg);
  padding: 15px var(--gap);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

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

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

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

/* Category Header */
.category-header {
  text-align: center;
  padding: 40px var(--gap);
  margin-bottom: 30px;
}

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.category-header p {
  color: var(--text-light);
}

/* Load More */
.load-more {
  text-align: center;
  margin: 40px 0;
}

.load-more button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.load-more button:hover {
  background: var(--primary);
}

/* Article Page */
.article-header {
  text-align: center;
  padding: 30px 0;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-img {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 5rem;
}

.article-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--primary);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 25px 0 10px;
}

.article-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.article-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Related Section */
.related-section {
  margin-bottom: 40px;
}

.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 100px var(--gap);
}

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

.error-title {
  font-size: 1.5rem;
  margin: 20px 0;
}

.error-desc {
  color: var(--text-light);
  margin-bottom: 30px;
}

.error-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  transition: background 0.3s;
}

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

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 60px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 10px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .card-grid,
  .sidebar-grid {
    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 h1 {
    font-size: 1.8rem;
  }

  .card-grid,
  .sidebar-grid {
    grid-template-columns: 1fr;
  }

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

  .article-content {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .topic-tags {
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    flex: 1;
    width: auto;
  }
}
