/* --- 全局样式和变量 --- */
:root {
  --primary-color: #007bff;
  /* 主题色，用于按钮和链接 */
  --primary-hover-color: #0056b3;
  --dark-color: #333;
  /* 主要文本颜色 */
  --light-color: #666;
  /* 次要文本颜色 */
  --bg-color: #ffffff;
  /* 页面背景色 */
  --section-bg-color: #f9f9f9;
  /* 部分区域背景色 */
  --border-color: #eee;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--dark-color);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
}

p {
  color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-color);
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  background-color: #f1f1f1;
}

section {
  padding: 80px 0;
}

/* --- 导航栏 --- */
.header {
  background: var(--bg-color);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-color);
}

.nav-links a {
  color: var(--light-color);
  margin: 0 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* --- 英雄区 --- */
.hero {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("img/hero-bg.jpg") no-repeat center center/cover;
  /* 提示：请将 img/hero-bg.jpg 替换为您自己的背景图 */
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.hero .cta-buttons .btn {
  margin: 0 10px;
}

/* --- 核心功能区 --- */
.features {
  background: var(--section-bg-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* --- 产品展示区 --- */
.showcase-grid {
  display: flex;
  align-items: center;
  gap: 50px;
}

.showcase-text {
  flex: 1;
}

.showcase-img {
  flex: 1;
}

.showcase-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.showcase-text h2 {
  text-align: left;
}

.showcase-text ul {
  list-style: none;
  padding: 0;
}

.showcase-text li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--light-color);
}

.showcase-text li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

/* --- 用户评价区 --- */
.testimonials {
  background: var(--section-bg-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 30px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card p.quote {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card p.author {
  font-weight: bold;
  text-align: right;
  color: var(--dark-color);
}

/* --- 最终CTA区 --- */
.final-cta {
  text-align: center;
  background-color: var(--dark-color);
  color: #fff;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: #ccc;
  margin-bottom: 30px;
}

/* --- 页脚 --- */
.footer {
  background: #222;
  color: #ccc;
  padding: 50px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header .container {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 15px;
  }

  .nav-links a {
    margin: 0 8px;
  }

  .header .cta-buttons {
    display: none;
  }

  /* 在手机上隐藏导航栏按钮，避免拥挤 */

  .showcase-grid {
    flex-direction: column;
  }

  .showcase-text h2 {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 策略库 Tabs 样式 --- */
.tabs {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-buttons {
  display: flex;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  padding: 15px 25px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--light-color);
  transition: all 0.3s ease;
  flex-grow: 1;
}

.tab-button:hover {
  background: #f1f1f1;
  color: var(--dark-color);
}

.tab-button.active {
  background: #fff;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  padding: 30px;
  display: none;
}

.tab-content.active {
  display: block;
}

.strategy-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.strategy-text {
  flex: 3;
}

.strategy-img {
  flex: 2;
}

.strategy-img img {
  width: 100%;
  border-radius: 8px;
}

.strategy-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.strategy-text ol {
  padding-left: 20px;
}

.strategy-text ol li {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .strategy-grid {
    flex-direction: column-reverse;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-button.active {
    border-bottom: none;
    border-left: 2px solid var(--primary-color);
  }
}

/* --- 悬浮联系方式样式 --- */
.floating-contact {
  position: fixed; /* 固定定位 */
  right: 20px; /* 距离右边20像素 */
  bottom: 80px; /* 距离底部80像素 */
  z-index: 1000;
}

.qq-icon-wrapper {
  position: relative;
  cursor: pointer;
}

.qq-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.qq-icon:hover {
  transform: scale(1.1);
}

.qq-qrcode-popup {
  position: absolute;
  bottom: 0;
  right: 70px; /* 显示在图标左侧 */
  width: 160px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  /* 默认隐藏 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* 鼠标悬停在图标上时，显示二维码 */
.qq-icon-wrapper:hover .qq-qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qq-qrcode-popup img {
  width: 100%;
}

.qq-qrcode-popup p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: var(--dark-color);
}
