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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 15px; */
}

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

ul {
  list-style: none;
}

/* 颜色变量 */
:root {
  --color-primary: #2090bd; /* 紫色/蓝色调，用于按钮和高亮 */
  --color-secondary: #00b894; /* 绿色，用于第二个数据块和列表点 */
  --color-tertiary: #2d3436; /* 深灰，用于第三个数据块和底色 */
  --color-background-dark: #2d3436;
  --color-text-light: #f5f6fa;
  --color-text-dark: #333;

  /* Hero 部分颜色/占位符 */
  --hero-background-placeholder: #ff0000; /* 🔴 红色占位背景 */
  --hero-background: #f7f9fc; /* 用于波浪以下的背景（白色或浅灰） */
  --hero-image-bg: #222222; /* 软件截图背景色 */
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s, opacity 0.3s;
  text-align: center;
}

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

.btn-register {
  background-color: var(--color-primary);
  color: white;
  padding: 8px 15px; /* 导航栏按钮尺寸略小 */
}

.btn-login {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 8px 15px;
  margin-right: 10px;
}

.btn-primary:hover,
.btn-register:hover {
  opacity: 0.9;
}

/* Header 导航栏 */
.header {
  background-color: white;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  /* background-color: #3381ff; */
  padding: 4px 12px;
}
.logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  text-shadow: -2px -2px 0 #3381ff, /* 左上 */ 2px -2px 0 #3381ff,
    /* 右上 */ -1px 1px 0 #3381ff, /* 左下 */ 1px 1px 0 #3381ff; /* 右下 */
  color: #fff;
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--color-text-dark);
  font-size: 16px;
  transition: color 0.3s;
}

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

/* 响应式：导航栏在小屏幕上隐藏 */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* ======================================= */
/* 英雄区域 - Hero Section (首屏还原) */
/* ======================================= */

.hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--hero-background); /* 确保波浪下方的颜色 */
}

.hero-wave-container {
  display: flex;
  align-items: center;
  padding: 100px 0;
  background-image: url("./image/bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 绘制波浪形状（仅在背景图不包含波浪时保留） */
/* .hero-wave-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--hero-background);
  clip-path: ellipse(100% 70px at 50% 100%);
  z-index: 2;
} */

.hero-content-wrapper {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hero-content-wrapper-text {
  font-size: 37px;
  font-weight: bold;
}

.hero-text-content {
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  font-size: 20px;
  padding: 12px 30px;
}

.hero-image-desktop {
  width: 100%;
  max-width: 800px; /* 限制图片最大宽度 */
  margin-top: -150px; /* **关键：将图片上移，覆盖到波浪区域** */
  position: relative;
  z-index: 5; /* 确保图片在最前方 */

  /* 软件界面边框、阴影和背景 */
  background-color: var(--hero-image-bg);
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 5px; /* 模拟深色边框 */
}

.hero-image-desktop img {
  display: block;
  border-radius: 5px; /* 内部图片略微圆角 */
}
.hero-content-wrapper-sub-text {
  font-size: 18px;
  color: #4b5563;
  margin-top: 20px;
}
/* 响应式调整 */
@media (max-width: 992px) {
  .hero-wave-container {
    padding-top: 50px;
    padding-bottom: 150px;
  }
  .hero-section h1 {
    font-size: 36px;
  }
  .hero-image-desktop {
    max-width: 90%;
    margin-top: -80px;
  }
}

@media (max-width: 600px) {
  .hero-content-wrapper-text {
    font-size: 30px;
    text-align: center;
    padding: 0 16px;
  }
  .hero-content-wrapper-sub-text {
    padding: 0 16px;
    text-indent: 36px;
  }
  .hero-content-wrapper-buttons {
    justify-content: center;
  }
  .banner {
    display: none;
  }
  .hero-section h1 {
    font-size: 28px;
  }
  .hero-section p {
    font-size: 16px;
  }
  .hero-wave-container {
    padding-top: 40px;
    padding-bottom: 100px;
  }
  .hero-image-desktop {
    max-width: 100%;
    margin-top: -60px;
  }
}

/* ======================================= */
/* 为什么选择我们 - Why Choose Us Section (修正) */
/* ======================================= */
.why-choose-us-section {
  padding: 100px 0; /* 增加上下内边距 */
  background-color: white;
}

.why-choose-us-section h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 700; /* 标题更粗 */
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #999;
  margin-bottom: 40px; /* 增加与内容的间距 */
}

.choose-us-content {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 确保两边对齐 */
  gap: 80px; /* 增加图片和文字的间隔 */
  margin-bottom: 100px; /* 增加两块内容之间的间隔 */
}

.choose-us-content.reverse {
  flex-direction: row-reverse;
}

.choose-us-item {
  flex: 1;
  max-width: 50%; /* 限制宽度 */
  padding-right: 20px; /* 稍微留出右侧空间 */
}

.choose-us-image {
  flex: 1;
  max-width: 50%; /* 限制宽度 */
  /* min-height: 400px; */
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
  /* background-color: #999; */
}
.choose-us-image img {
  display: block;
  width: 100%;
  height: auto;
}

.choose-us-item h3 {
  font-size: 28px; /* 标题略大 */
  font-weight: 600;
  margin-bottom: 20px;
  /* color: var(--color-primary); */
  color: #3381ff;
}

.choose-us-item p {
  color: #555;
  font-size: 16px;
  margin-bottom: 30px;
}

/* 列表样式精确还原 */
.features-list {
  margin-bottom: 30px;
  padding-left: 0;
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 12px; /* 增加行间距 */
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding-left: 1.8em; /* 为点留出更大空间 */
}
.features-list li span {
  font-size: 2em;
  padding-right: 10px;
  font-weight: 900;
  margin-top: -3px;
  color: #3381ff;
}
.btn-more {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary); /* 模拟设计图中的下划线/边框效果 */
  padding-bottom: 2px;
}

/* 手机框架样式修正 */
.mobile-frame-container {
  display: flex;
  justify-content: center;
  padding: 0; /* 移除容器多余的内边距 */
}

.phone-frame {
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* 阴影更重 */
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px; /* 适应外框，保持截图圆角 */
}

/* 响应式：堆叠布局 */
@media (max-width: 992px) {
  .choose-us-content,
  .choose-us-content.reverse {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }
  .choose-us-item {
    max-width: 100%;
    text-align: center;
    padding-right: 0;
  }
  .choose-us-image {
    max-width: 80%; /* 图片在移动端缩小一点 */
  }
  .choose-us-content.reverse .choose-us-item {
    order: 2; /* 确保文本在图片下面 */
  }
  .features-list {
    text-align: left;
    margin: 20px auto;
    width: fit-content;
    padding-left: 0;
  }
}
/* ... (保留上文的 Core Features, Stats, Download, Footer 样式) ... */

/* ======================================= */
/* 核心产品特征 - Core Features */
/* ======================================= */
.core-features-section {
  padding: 60px 0;
  background-color: #f7f9fc;
}

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

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 15px;
}
.feature-card .icon img {
  width: 80px;
  height: 80px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.feature-card h4 {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
  font-weight: normal;
}

.feature-card p {
  color: #666;
  font-size: 14px;
}

/* 响应式：特征网格 */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================= */
/* 数据亮点 - Stats Section */
/* ======================================= */
.stats-section {
  padding: 60px 0;
  background-color: white;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  color: white;
  border-radius: 8px;
  min-width: 250px;
}

.stat-card h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 18px;
  opacity: 0.9;
}

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

.stat-secondary {
  background-color: var(--color-secondary);
}

.stat-tertiary {
  background-color: var(--color-tertiary);
}

/* 响应式：数据亮点 */
@media (max-width: 992px) {
  .stats-container {
    flex-wrap: wrap;
  }
  .stat-card {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .stats-container {
    flex-direction: column;
  }
  .stat-card {
    min-width: 100%;
    margin-bottom: 15px;
  }
}

/* ======================================= */
/* 立即下载体验 - Download Section */
/* ======================================= */
.download-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f7f9fc;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.download-item {
  flex: 1;
  max-width: 400px;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.download-item .icon {
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.download-item h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.qrcode,
.pc-icon {
  margin-bottom: 20px;
}
.qrcode {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  line-height: 150px;
  background-color: rgba(9, 9, 9, 0.2);
  color: #fff;
}

.qrcode img {
  border: 1px solid #eee;
  width: 100%;
  height: 100%;
}

.download-sub-title {
  margin-top: 10px;
  font-size: 14px;
  color: #4b5563;
}

.btn-download-app {
  background-color: var(--color-primary);
  color: white;
  width: 100%;
}

.btn-download-wechat {
  background-color: var(--color-secondary);
  color: white;
  width: 100%;
}

.btn-download-pc {
  background-color: var(--color-tertiary);
  color: white;
  width: 100%;
}

/* 响应式：下载网格 */
@media (max-width: 992px) {
  .download-grid {
    flex-wrap: wrap;
  }
  .download-item {
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .download-grid {
    flex-direction: column;
    align-items: center;
  }
  .download-item {
    max-width: 100%;
    width: 90%;
    margin-bottom: 20px;
  }
}

/* ======================================= */
/* 底部 - Footer */
/* ======================================= */
.footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
}

.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.footer-col a {
  color: #ccc;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aaa;
}

.social-icons a {
  margin-left: 15px;
  color: #aaa;
}

/* 响应式：底部 */
@media (max-width: 768px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 30px;
  }
  .footer-col {
    min-width: 45%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom p {
    margin-bottom: 10px;
  }
  .footer-contact {
    order: -1;
    min-width: 100%;
  }
  .footer-contact h4 {
    text-align: center;
  }
  .footer-contact ul {
    text-align: center;
    padding-left: 0;
  }
}
