/* 全局样式重置 */
* {
  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;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.primary-download,
.other-downloads,
.platform-support {
  width: 100%;
}

.primary-download {
  display: flex;
  justify-content: center;
}

.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(115, 83, 229, 0.08);
  color: #7353E5;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.more-toggle:hover {
  background: rgba(115, 83, 229, 0.14);
}

.more-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.more-toggle-icon {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.more-toggle.is-open .more-toggle-icon {
  transform: rotate(180deg);
}

.other-downloads[hidden] {
  display: none !important;
}

.other-downloads {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
}

.platform-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.platform-support-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(94, 91, 113, 1);
}

.platforms-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.platform-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 5rem;
}

.platform-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

.platform-logo-label {
  font-size: 0.95rem;
  color: #8A8A8A;
}

.way {
  width: min(100%, 13rem);
  min-width: 10rem;
  min-height: 10.6875rem;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 1.125rem;
  border: 3px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg, #7353E5 0%, #CE4DA4 50%, #CE4DA4 100%) border-box;
}

.primary-download .way {
  width: min(100%, 24rem);
  min-height: 11.5rem;
}

.primary-download .txt {
  font-size: 1.45rem;
}

.way:hover {
  transform: scale(1.1);
}

.way.is-probing,
.way.is-disabled,
.way.is-probing:hover,
.way.is-disabled:hover {
  transform: none;
}

.way.is-probing {
  cursor: progress;
  box-shadow: 0 12px 30px rgba(115, 83, 229, 0.18);
}

.way.is-probing::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(115, 83, 229, 0.2);
  border-top-color: #7353E5;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.way.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.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;
}

.way .download-status {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  min-height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #7353E5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.way .download-status.show {
  opacity: 1;
}

.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-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;
}

#load-container[aria-busy='true'] .tutorial {
  pointer-events: none;
  opacity: 0.7;
}

@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;
  }

  .load {
    gap: 0.75rem;
  }

  .more-toggle {
    font-size: 1.2rem;
    padding: 0.8rem 1.4rem;
  }

  .primary-download .way {
    width: 100% !important;
    max-width: 28rem;
    min-height: auto;
    padding: 1.25rem 1rem 1.5rem;
  }

  .other-downloads {
    gap: 0.75rem;
  }

  .other-downloads .way {
    width: calc(50% - 0.375rem) !important;
    min-width: 0;
    min-height: auto;
    padding: 1rem 0.5rem 1.25rem;
  }

  .way img.device-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .txt {
    font-size: 1rem !important;
  }

  .platform-support {
    gap: 0.75rem;
  }

  .platform-support-title {
    font-size: 1.35rem;
  }

  .platforms-logos {
    gap: 0.75rem 1rem;
  }

  .platform-logo-item {
    min-width: 4.5rem;
  }

  .platform-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .platform-logo-label {
    font-size: 0.9rem;
  }

  .way .download-status {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .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;
  }

  .primary-download .way {
    width: min(100%, 22rem);
  }

  .other-downloads .way {
    width: min(100%, 11.5rem);
  }

  .block {
    width: 48%;
  }
}

/* PC端大屏 */
@media (min-width: 1200px) {
  .block {
    width: 23%;
  }
}
