/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

/* 主题色定义 */
:root {
  --black: #121212;       /* 神秘黑 */
  --cream: #F5F5DC;       /* 奶油白 */
  --gray: #333333;        /* 辅助灰 */
  --hover: #E8E0C9;       /* 悬浮色 */
}

/* 页面基础布局 */
body {
  background-color: var(--black);
  color: var(--cream);
  line-height: 1.6;
}

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

/* 头部样式 */
header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 245, 220, 0.2);
}

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

.logo img {
  height: 60px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

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

/* 主要内容区 */
main {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--cream);
}

/* 下载区域样式 */
.download-section {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
}

/* 下载按钮横置排列 */
.download-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.download-btn {
  padding: 12px 24px;
  background-color: var(--black);
  color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.download-btn:hover {
  background-color: var(--cream);
  color: var(--black);
}

/* 产品图片 */
.product-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(245, 245, 220, 0.1);
}

/* 产品介绍样式 */
.intro-list {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.intro-item {
  background-color: rgba(245, 245, 220, 0.05);
  padding: 20px;
  border-radius: 8px;
}

.intro-item h3 {
  margin-bottom: 10px;
  color: var(--cream);
}

/* 版本更新样式 */
.update-list {
  margin: 40px 0;
  background-color: rgba(245, 245, 220, 0.05);
  padding: 20px;
  border-radius: 8px;
}

.update-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 245, 220, 0.1);
}

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

/* 短文章样式 */
.article-list {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.article-item {
  background-color: rgba(245, 245, 220, 0.05);
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
}

/* 404页面样式 */
.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: 80px;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 20px;
  margin-bottom: 30px;
}

.error-page a {
  color: var(--cream);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--cream);
  border-radius: 6px;
  transition: all 0.3s;
}

.error-page a:hover {
  background-color: var(--cream);
  color: var(--black);
}

/* 页脚样式 */
footer {
  padding: 20px 0;
  border-top: 1px solid rgba(245, 245, 220, 0.2);
  text-align: center;
  color: var(--cream);
  font-size: 14px;
}