/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 橙黑主题变量 */
:root {
  --primary: #FFA500;    /* 主橙色 */
  --secondary: #121212;  /* 主黑色 */
  --light: #ffffff;
  --gray: #333333;
  --light-gray: #f5f5f5;
}

body {
  background-color: var(--light);
  color: var(--secondary);
  line-height: 1.6;
}

/* 布局容器 */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏 */
.navbar {
  background-color: var(--secondary);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}
.logo img {
  height: 36px;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* 首页头部 */
.hero {
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--secondary);
}
.hero-desc {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--gray);
}
.hero-img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 下载按钮区域（首页专属布局） */
.download-buttons-home {
  max-width: 600px;
  margin: 0 auto;
}
.btn-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary);
  color: var(--secondary);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  transition: 0.3s;
}
.btn-large:hover {
  background-color: #ffb732;
}
.btn-large img {
  height: 50px;
  margin-bottom: 10px;
}
.btn-small-group {
  display: flex;
  gap: 20px;
}
.btn-small {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary);
  color: var(--light);
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-small:hover {
  background-color: #222;
}
.btn-small img {
  height: 40px;
  margin-bottom: 8px;
}

/* 文章列表 */
.articles {
  padding: 60px 0;
  background-color: var(--light-gray);
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--secondary);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-content {
  padding: 20px;
}
.article-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary);
}
.article-content p {
  font-size: 15px;
  color: var(--gray);
}

/* 版本更新 */
.updates {
  padding: 60px 0;
}
.update-list {
  max-width: 800px;
  margin: 0 auto;
}
.update-item {
  padding: 15px 20px;
  background: white;
  border-left: 4px solid var(--primary);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.update-item h4 {
  color: var(--secondary);
  margin-bottom: 5px;
}
.update-item p {
  color: var(--gray);
  font-size: 15px;
}

/* 下载页 */
.download-page {
  padding: 60px 0;
  text-align: center;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.download-card {
  background: var(--secondary);
  color: white;
  padding: 30px 20px;
  border-radius: 12px;
}
.download-card img {
  height: 50px;
  margin-bottom: 15px;
}
.download-card h3 {
  margin-bottom: 10px;
}
.download-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--primary);
  color: black;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* 404页面 */
.page-404 {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.page-404 h1 {
  font-size: 80px;
  color: var(--primary);
}
.page-404 h2 {
  font-size: 30px;
  margin: 20px 0;
}
.page-404 a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--secondary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

/* 底部 */
.footer {
  background-color: var(--secondary);
  color: var(--light);
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
display: flex;
flex-direction: column;
}