/*
* 微多多官网主样式文件
* 创建日期: 2025-01-27
* 作者: www.weiduoduo.wang
* 功能: 网站主要样式，包含基础样式、导航栏、页面布局等
*/

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

/* 全局样式 */
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #2196F3; /* 蓝色悬停效果 */
}

/* 按钮基础样式 */
button {
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: #1976D2; /* 主蓝色 */
}

h2 {
  font-size: 2rem;
  color: #1976D2;
}

h3 {
  font-size: 1.5rem;
  color: #333;
}

/* 段落样式 */
p {
  margin-bottom: 1rem;
  color: #666;
}

/* 顶部导航栏样式 */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo样式 */
.nav-logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1976D2;
  text-decoration: none;
}

/* 导航菜单样式 */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 1rem;
}

.nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: #E3F2FD; /* 浅蓝色背景 */
  color: #1976D2;
}

/* 获取软件按钮样式 */
.get-software-btn {
  background: linear-gradient(45deg, #2196F3, #1976D2);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.get-software-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* 主要内容区域 */
.main-content {
  margin-top: 80px; /* 为固定导航栏留出空间 */
}

/* 首页横幅区域 */
.hero-section {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1976D2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* 特色功能展示 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-item h3 {
  color: #1976D2;
  margin-bottom: 0.5rem;
}

/* CTA按钮 */
.cta-button {
  background: linear-gradient(45deg, #FF5722, #FF7043);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(255, 87, 34, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

/* 功能介绍区域 */
.features-section {
  padding: 4rem 0;
  background-color: #FAFAFA;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #1976D2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
  color: #1976D2;
  margin-bottom: 1rem;
}

.feature-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2196F3;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.feature-link:hover {
  border-bottom-color: #2196F3;
}

/* 使用教程区域 */
.tutorial-section {
  padding: 4rem 0;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tutorial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid #2196F3;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tutorial-card:hover {
  transform: translateX(5px);
}

.tutorial-card h3 a {
  color: #1976D2;
  font-size: 1.2rem;
}

.tutorial-card h3 a:hover {
  color: #2196F3;
}

/* 页面底部样式 */
.footer {
  background-color: #263238;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #81C784;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #B0BEC5;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #81C784;
}

.footer-bottom {
  border-top: 1px solid #37474F;
  padding-top: 1rem;
  text-align: center;
  color: #B0BEC5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: #81C784;
}

/* 弹窗样式 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: white;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  animation: popupSlideIn 0.3s ease-out;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #E0E0E0;
}

.popup-header h3 {
  color: #1976D2;
  margin: 0;
}

.popup-close {
  background: none;
  font-size: 1.5rem;
  color: #666;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background-color: #F5F5F5;
  color: #333;
}

.popup-body {
  padding: 2rem;
  text-align: center;
}

.wechat-info {
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 1.1rem;
}

.popup-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}