/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --telegram-blue: #0088cc;
  --sky-blue: #87ceeb;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --text-white: #ffffff;
  --text-gray: #666666;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--telegram-blue);
}

.nav-btn {
  background: var(--telegram-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background: #006699;
  transform: scale(1.05);
}

/* 英雄区域 */
.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
}
.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #222;
}
.hero p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* 下载按钮区域 */
.download-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #222;
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform 0.3s ease;
  gap: 12px;
}

.download-btn:hover {
  transform: translateY(-5px);
}

.download-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.download-btn span {
  font-size: 16px;
  font-weight: 600;
  color: var(--sky-blue);
}

/* 文章卡片样式 */
.articles-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.article-icon img {
  width: 24px;
  height: 24px;
}

.article-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.article-content p {
  font-size: 14px;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 用户评价样式 */
.reviews-section {
  padding: 60px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.review-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.review-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
}

.review-name {
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.review-text {
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
}

/* 页脚 */
.footer {
  background: var(--dark-bg);
  color: var(--text-white);
  padding: 40px 0 20px;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
  opacity: 0.8;
}

/* 404页面样式 */
.notfound {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.notfound-content h1 {
  font-size: 80px;
  color: var(--telegram-blue);
  margin-bottom: 20px;
}

.notfound-content p {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-gray);
}

.back-btn {
  display: inline-block;
  background: var(--telegram-blue);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #006699;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .nav-container {
    padding: 10px 0;
  }
}