/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

/* 响应式根字号 */
@media (max-width: 1279px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 1023px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 749px) {
  html {
    font-size: 10px;
  }
}

body {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  color: #2c3e50;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 首页样式 */
.home {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner {
  flex: 1;
}

/* 头部 */
.head {
  height: 6.25rem;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 3.125rem;
  margin-right: 0.875rem;
}

.logo h2 {
  margin: 0;
  font-weight: bold;
  color: #000;
  font-size: 1.5rem;
}

/* 主体内容 */
.cont {
  margin-top: 1.875rem;
  text-align: center;
}

.title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3.125rem;
}

.title .line1 {
  color: rgba(94, 91, 113, 1);
}

.title .line2 {
  background: linear-gradient(to right, #CE4DA4, #7353E5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 下载区域 */
.load {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.way {
  width: 19%;
  min-width: 140px;
  height: 10.6875rem;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 1.125rem;
  border: 3px solid transparent;
  margin-bottom: 1.25rem;
  background: 
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg, #7353E5 0%, #CE4DA4 50%, #CE4DA4 100%) border-box;
}

.way:hover {
  transform: scale(1.1);
}

.way img.device-icon {
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 0.875rem;
  margin-top: 1.875rem;
  object-fit: contain;
}

.way .txt {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(to right, #CE4DA4, #7353E5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.now-device-badge {
  position: absolute;
  top: -33px;
  right: -7px;
  width: 80px;
  z-index: 999;
}

/* Mac教程链接 */
.tutorial {
  width: 100%;
  font-size: 1.875rem;
  color: #F48234;
  text-decoration: underline;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  cursor: pointer;
}

.tutorial:hover {
  opacity: 0.8;
}

/* Banner */
.bg1 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.bg1 img {
  width: 80%;
  max-width: 900px;
}

/* 产品优势标题 */
.tit {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3.125rem;
  color: rgba(94, 91, 113, 1);
}

/* 产品优势卡片 */
.items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 4.375rem;
}

.block {
  width: 48%;
  margin: 0 0 3.125rem;
  text-align: left;
  color: #666;
}

.block img {
  width: 5.3125rem;
}

.block .block-tit {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.875rem 0;
  color: rgba(94, 91, 113, 1);
}

.block .content {
  color: #999;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  width: 100%;
  padding: 40px 0;
  background: #45464B;
  text-align: center;
}

.agreements {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.agreement {
  color: #fff;
  font-size: 1rem;
}

.agreement a {
  color: #7747FD;
  text-decoration: none;
}

.agreement a:hover {
  text-decoration: underline;
}

.message {
  color: #fff;
  margin-top: 10px;
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.875rem;
  color: #ACACAC;
  margin-top: 10px;
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 1.25rem;
  color: #999;
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border: 3px solid #ddd;
  border-top-color: #7353E5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式 - 手机端 */
@media (max-width: 767px) {
  .inner {
    padding: 1.875rem 1.875rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .title {
    font-size: 2rem !important;
  }

  .bg1 img {
    width: 100% !important;
  }

  .way {
    width: 30% !important;
    min-width: 100px;
    height: auto;
    padding: 1rem 0.5rem;
  }

  .way img.device-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .txt {
    font-size: 1rem !important;
  }

  .now-device-badge {
    top: -22px !important;
    right: -6px !important;
    width: 50px !important;
  }

  .block {
    width: 48% !important;
  }

  .items {
    margin-bottom: 1.875rem !important;
  }

  .tutorial {
    font-size: 1.25rem;
  }

  .footer {
    padding: 20px 10px !important;
  }

  .message {
    font-size: 0.8rem;
  }
}

/* 响应式 - 平板端 */
@media (min-width: 768px) and (max-width: 1199px) {
  .inner {
    padding: 1.875rem 1.875rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .way {
    width: 22%;
  }

  .block {
    width: 48%;
  }
}

/* PC端大屏 */
@media (min-width: 1200px) {
  .block {
    width: 23%;
  }
}
