/* 极限户外运动 - 快讯风格样式 */
/* CSS 变量定义 */
:root {
  --accent-color: #ff5722;
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-color: #f5f5f5;
  --bg-white: #fff;
  --border-color: #e0e0e0;
  --live-color: #e53935;
  --success-color: #43a047;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, monospace;
}

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header 页头 */
.header {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo span {
  color: #fff;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--secondary-color);
  border-radius: 4px;
  padding: 8px 15px;
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  width: 180px;
  outline: none;
}

.search-box input::placeholder {
  color: #888;
}

.search-box button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* 新闻滚动条 Ticker */
.ticker {
  background: var(--accent-color);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  animation: ticker-scroll 20s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 500;
}

.ticker-item::before {
  content: '▸';
  margin-right: 8px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}

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

.breadcrumb .current {
  color: var(--text-color);
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: var(--bg-white);
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* 主头条 */
.featured-story {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--secondary-color);
  min-height: 400px;
}

.featured-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
}

.featured-label {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
}

.featured-content h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* 最新快讯列表 */
.latest-news {
  background: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.latest-news-header {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
}

.news-list {
  padding: 10px 0;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

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

.news-item:hover {
  background: var(--bg-color);
}

.news-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.news-status.live {
  background: var(--live-color);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
  animation: pulse 2s infinite;
}

.news-status.new {
  background: var(--accent-color);
}

.news-status.read {
  background: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.news-content {
  flex: 1;
}

.news-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-content h4 a:hover {
  color: var(--accent-color);
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.news-tag {
  display: inline-block;
  background: var(--bg-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 8px;
  color: var(--text-light);
}

/* 三栏内容区 */
.content-section {
  padding: 40px 0;
}

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

.section-box {
  background: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.section-header {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
}

.section-list {
  padding: 10px 0;
}

.section-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

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

.section-item a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-item a::before {
  content: '•';
  color: var(--accent-color);
  font-weight: bold;
}

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

/* 分类页样式 */
.category-header {
  background: var(--bg-white);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

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

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

.filter-bar {
  background: var(--bg-white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-bar .container {
  display: flex;
  gap: 20px;
}

.filter-item {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-item:hover,
.filter-item.active {
  background: var(--accent-color);
  color: #fff;
}

.category-content {
  padding: 30px 0;
}

.category-list .news-item {
  background: var(--bg-white);
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: all 0.3s;
}

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

/* 文章页样式 */
.article-header {
  background: var(--bg-white);
  padding: 40px 0;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.article-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 14px;
}

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

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
}

.article-content {
  background: var(--bg-white);
  padding: 40px 0;
}

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

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

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

.article-body h3 {
  font-size: 20px;
  margin: 25px 0 12px;
}

/* 实时更新 */
.live-updates {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.live-updates h3 {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.update-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

.update-content {
  flex: 1;
}

.update-content p {
  margin: 0;
}

/* 相关文章 */
.related-articles {
  padding: 40px 0;
}

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

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

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.related-card-content {
  padding: 15px;
}

.related-card h4 {
  font-size: 14px;
  line-height: 1.4;
}

/* Footer 页脚 */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 40px 0 20px;
}

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

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

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

.footer-column ul li a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--secondary-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
}

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

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

.error-content h2 {
  font-size: 28px;
  margin: 20px 0;
  color: var(--primary-color);
}

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

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

.btn:hover {
  background: #e64a19;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .search-box {
    width: auto;
  }

  .search-box input {
    width: 120px;
  }

  .ticker {
    display: none;
  }

  .featured-content h1 {
    font-size: 20px;
  }

  .article-title {
    font-size: 24px;
  }

  .filter-bar .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

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

  .logo {
    font-size: 20px;
  }

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

  .featured-story {
    min-height: 250px;
  }

  .error-content h1 {
    font-size: 80px;
  }
}