/* ===== 极限户外运动 - 全局样式 ===== */
:root {
  --accent-color: #c62828;
  --primary-color: #1a1a1a;
  --secondary-color: #666;
  --bg-color: #fff;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
  --text-color: #333;
  --link-color: #c62828;
  --max-width: 1200px;
  --gap: 24px;
  --radius: 4px;
}

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

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

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

a:hover {
  text-decoration: underline;
}

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

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

/* ===== Header ===== */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.nav a {
  color: var(--primary-color);
  font-weight: 500;
}

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

/* ===== Hero Section ===== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Featured Section ===== */
.featured {
  padding: 40px 0;
}

.featured-grid {
  display: grid;
  gap: var(--gap);
}

.featured-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.featured-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-card .image {
  width: 280px;
  height: 180px;
  background: var(--bg-light);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 14px;
}

.featured-card .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .category {
  font-size: 12px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.featured-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-card h2 a {
  color: var(--primary-color);
}

.featured-card .excerpt {
  color: var(--secondary-color);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Three Column Section ===== */
.three-col {
  padding: 40px 0 60px;
}

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

.col-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 16px;
}

.article-list {
  list-style: none;
}

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

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

.article-list a {
  color: var(--text-color);
  font-size: 15px;
  display: block;
  line-height: 1.5;
}

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

/* ===== Category Page ===== */
.page-header {
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
}

.page-header p {
  color: var(--secondary-color);
  margin-top: 8px;
}

.content-list {
  padding: 40px 0;
}

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

.content-item .image {
  width: 200px;
  height: 140px;
  background: var(--bg-light);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 13px;
}

.content-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-item h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-item h2 a {
  color: var(--primary-color);
}

.content-item .meta {
  font-size: 13px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.content-item .desc {
  color: var(--secondary-color);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Article Page ===== */
.article {
  padding: 40px 0;
}

.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.article-header .category {
  font-size: 12px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-header .meta {
  font-size: 14px;
  color: var(--secondary-color);
}

.article-image {
  width: 100%;
  max-width: 900px;
  height: 400px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--primary-color);
}

/* ===== Recommended Section ===== */
.recommended {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.recommended h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.related-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.related-tags a {
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-color);
}

.related-tags a:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: #666;
  margin-top: 24px;
  text-align: center;
}

/* ===== 404 Page ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gap);
}

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

.error-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 20px 0 12px;
}

.error-desc {
  color: var(--secondary-color);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-color);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

.btn:hover {
  background: #a02020;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }

  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-card .image {
    width: 100%;
    height: 200px;
  }

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

  .content-item .image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .article-header h1 {
    font-size: 26px;
  }

  .article-image {
    height: 250px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .error-code {
    font-size: 80px;
  }
}
