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

/* 颜色变量定义 */
:root {
  --mystery-black: #121212;
  --cream-white: #F5F5F0;
  --accent-blue: #4285F4;
  --light-gray: #E0E0E0;
  --dark-gray: #333333;
}

/* 基础样式 */
body {
  background-color: var(--cream-white);
  color: var(--mystery-black);
  line-height: 1.6;
}

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

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

/* 头部导航 */
header {
  background-color: var(--mystery-black);
  color: var(--cream-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 40px;
}

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

.nav-links a {
  font-size: 16px;
  transition: color 0.3s;
}

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

/* 英雄区域 */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--mystery-black);
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 下载区域 - 按钮悬浮在图片上方 */
.download-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.download-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.download-btn {
  background-color: var(--accent-blue);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #3367D6;
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 产品介绍区域 */
.product-intro {
  padding: 60px 0;
  background-color: var(--mystery-black);
  color: var(--cream-white);
}

.product-intro h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.intro-card {
  background-color: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 8px;
}

.intro-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--accent-blue);
}

.intro-card p {
  font-size: 16px;
  line-height: 1.8;
}

/* 版本更新区域 */
.version-updates {
  padding: 60px 0;
}

.version-updates h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--mystery-black);
}

.update-list {
  max-width: 800px;
  margin: 0 auto;
}

.update-item {
  background-color: white;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.update-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* 短文章区域 */
.short-articles {
  padding: 60px 0;
  background-color: var(--cream-white);
}

.short-articles h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--mystery-black);
}

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

.article-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.article-card p {
  font-size: 14px;
  color: var(--dark-gray);
}

/* 页脚 */
footer {
  background-color: var(--mystery-black);
  color: var(--cream-white);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  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: 120px;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.error-page h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
}

.back-home {
  background-color: var(--accent-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .intro-cards {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .download-buttons {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}