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

:root {
  --primary: #409eff;
  --primary-dark: #337ecc;
  --secondary: #67c23a;
  --text: #303133;
  --text-light: #606266;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e4e7ed;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: #f0f7ff;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
}

/* 头部导航 */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
}

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

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
}

.nav-menu a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 横幅区域 */
.banner {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.banner-text {
  flex: 1;
  min-width: 300px;
}

.banner-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.banner-text p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.banner-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

/* 板块通用样式 */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.3s;
}

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

.card h3 {
  font-size: 20px;
  margin: 15px 0;
}

.card p {
  color: var(--text-light);
}

/* 下载区域 */
.download-section {
  background: var(--white);
}

.download-card {
  text-align: center;
  padding: 40px 20px;
}

.download-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
}

/* FAQ样式 */
.faq-item {
  background: var(--white);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 18px;
}

.faq-answer {
  margin-top: 15px;
  color: var(--text-light);
  display: none;
}

.faq-answer.show {
  display: block;
}

/* 教程步骤 */
.step-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.step-box h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 22px;
}

/* 底部 */
.footer {
  background: #2c3e50;
  color: var(--white);
  padding: 40px 0 20px;
}

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

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #bdc3c7;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .banner-text h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
}