/* ===== 迷你世界 - 更新日志风格样式 ===== */
/* 查询关键词: 迷你世界 www.mwsjold.cn 迷你世界老版本 历史版本下载 mwsjold */

/* ===== CSS 变量 ===== */
:root {
  --accent-color: #607d8b;
  --primary-color: #4a90a4;
  --secondary-color: #78909c;
  --bg-color: #f5f7f9;
  --card-bg: #ffffff;
  --text-primary: #263238;
  --text-secondary: #546e7a;
  --text-muted: #90a4ae;
  --border-color: #e0e6ed;
  --shadow: 0 2px 8px rgba(96, 125, 139, 0.1);
  --shadow-hover: 0 4px 16px rgba(96, 125, 139, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 64px;
}

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

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

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ===== 布局容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

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

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

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border-radius: 20px;
  padding: 6px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 160px;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ===== 版本标签 ===== */
.version-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.version-tag.major {
  background: #e3f2fd;
  color: #1976d2;
}

.version-tag.minor {
  background: #f3e5f5;
  color: #7b1fa2;
}

.version-tag.patch {
  background: #e8f5e9;
  color: #388e3c;
}

/* ===== 卡片组件 ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 版本列表 ===== */
.version-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.version-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  border-left: 4px solid var(--accent-color);
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.version-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.version-date {
  color: var(--text-muted);
  font-size: 13px;
}

.version-changes {
  margin-top: 12px;
}

.change-type {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 8px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.change-type.added {
  background: #e8f5e9;
  color: #2e7d32;
}

.change-type.fixed {
  background: #fff3e0;
  color: #ef6c00;
}

.change-type.changed {
  background: #e3f2fd;
  color: #1565c0;
}

.change-list {
  padding-left: 20px;
}

.change-list li {
  list-style: disc;
  color: var(--text-secondary);
  margin: 6px 0;
  font-size: 14px;
}

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

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

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

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

/* ===== 筛选器 ===== */
.filter-bar {
  background: var(--card-bg);
  padding: 16px 0;
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-color);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

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

.article-thumb {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
}

.article-content {
  padding: 16px;
}

.article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

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

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

.page-item {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ===== 文章详情 ===== */
.article-detail {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}

.article-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-body p {
  margin: 12px 0;
}

.article-body ul {
  padding-left: 24px;
  margin: 12px 0;
}

.article-body li {
  list-style: disc;
  margin: 8px 0;
}

/* ===== 三栏文章区 ===== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

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

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

.link-list li {
  margin: 10px 0;
}

.link-list a {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-list a::before {
  content: "•";
  color: var(--accent-color);
}

.link-list a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ===== 推荐文章区 ===== */
.recommended-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 24px 0;
}

.recommended-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.recommended-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.recommended-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 404 页面 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 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: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-color);
  text-decoration: none;
}

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

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

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

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

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

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

  .article-detail {
    padding: 24px;
  }

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

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

  .filter-tabs {
    flex-wrap: wrap;
  }

  .version-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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

  .hero {
    padding: 40px 0;
  }

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

  .card {
    padding: 16px;
  }

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