/* 摩托车赛事 - 马赛克杂志风格样式 */
/* 主色调: #673ab7 (紫色) */

:root {
  --accent-color: #673ab7;
  --accent-light: #9575cd;
  --accent-dark: #512da8;
  --text-primary: #212121;
  --text-secondary: #757575;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

* {
  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-primary);
  background: var(--bg-secondary);
}

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

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

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

/* 头部 */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

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

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

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

.breadcrumb-inner {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.breadcrumb-inner .sep {
  margin: 0 8px;
}

/* 主内容区 */
.main {
  padding: 32px 0;
}

/* 马赛克网格布局 - 首页 */
.mosaic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-bottom: 40px;
}

.headline-card {
  grid-row: span 2;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: var(--shadow);
}

.headline-card .card-image {
  height: 400px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.headline-card .card-content {
  padding: 24px;
}

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

.headline-card .card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

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

.headline-card .card-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 侧边栏小部件 */
.sidebar-widget {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

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

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

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

.widget-list a {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

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

.widget-list .num {
  color: var(--accent-color);
  font-weight: 700;
  min-width: 24px;
}

/* 特色内容网格 */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.feature-large {
  grid-row: span 2;
}

.feature-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card .card-image {
  height: 160px;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-large .card-image {
  height: 280px;
}

.feature-card .card-content {
  padding: 16px;
}

.feature-card .card-tag {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card .card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

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

.feature-card .card-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 三栏内容区 */
.three-col-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.col-block {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.col-block .block-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.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 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.article-list .list-thumb {
  width: 80px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 6px;
  flex-shrink: 0;
}

.article-list .list-content {
  flex: 1;
}

.article-list .list-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.article-list .list-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 分类页样式 */
.category-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: var(--shadow);
}

.hero-main .hero-image {
  height: 320px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.hero-main .hero-content {
  padding: 24px;
}

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

.hero-main .hero-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-main .hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 分类卡片网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.category-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.category-card .card-image {
  height: 140px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.category-card .card-content {
  padding: 16px;
}

.category-card .card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.category-card .card-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 文章页样式 */
.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.article-main {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

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

.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.article-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--bg-secondary), #e0e0e0);
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
}

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

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 404页面 */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

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

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-color);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.error-btn:hover {
  background: var(--accent-dark);
}

/* 页脚 */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .desc {
  font-size: 14px;
  color: #9e9e9e;
  line-height: 1.6;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  font-size: 14px;
  color: #9e9e9e;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #424242;
  text-align: center;
  font-size: 14px;
  color: #9e9e9e;
}

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

  .headline-card {
    grid-row: auto;
  }

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

  .feature-large {
    grid-row: auto;
  }

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

  .category-hero {
    grid-template-columns: 1fr;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .headline-card .card-image {
    height: 240px;
  }

  .hero-main .hero-image {
    height: 200px;
  }

  .article-image {
    height: 240px;
  }

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

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

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