/* ============================
   PC端云宠下载安装教程 页面样式
   基于 Figma 设计稿，缩小字体至适合网页浏览
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Alibaba PuHuiTi", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F3F5FF;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.download-page {
  position: relative;
  min-height: 100vh;
  background: #F3F5FF;
  overflow: hidden;
}

/* ========== 顶部粉色装饰圆 ========== */
.top-decoration {
  position: absolute;
  top: -273px;
  right: 138px;
  width: 901px;
  height: 901px;
  background: url('/img/pink-decoration.png') no-repeat right/cover  ;
  background-size: 50%;
  background-position: right top;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
  transform: rotate(45deg);
}

/* ========== 底部装饰 ========== */
.bottom-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, #FAD6E8 0%, rgba(250, 214, 232, 0) 100%);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

/* ========== 主内容容器 ========== */
.download-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 60px;
}

/* ========== 顶部资源标识 ========== */
.top-resource {
  margin-bottom: 24px;
}

.resource-img {
  width: 100px;
  height: auto;
  display: block;
}

/* ========== 页面标题区 ========== */
.page-header {
  margin-bottom: 16px;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.page-title {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #030302;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.download-icon-wrap {
  flex-shrink: 0;
  padding-top: 4px;
}

.download-icon {
  width: 36px;
  height: 46px;
  display: block;
}

/* 标题绿色装饰线 */
.header-decoration {
  margin-top: -6px;
  padding-left: 200px;
}

.deco-line {
  display: block;
  width: 400px;
  height: 34px;
}

/* ========== 副标题 ========== */
.page-subtitle {
  font-family: "Alibaba PuHuiTi 2.0", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #626166;
  letter-spacing: 0.04em;
  padding-left: 130px;
  margin-bottom: 32px;
  margin-top: 4px;
  text-align: center;
}

/* ========== 下载按钮 ========== */
.download-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  gap: 24px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 64px;
  background: linear-gradient(135deg, #6B8CFF 0%, #0054FF 100%);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 140, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(107, 140, 255, 0.45);
}

.download-btn .btn-icon {
  width: 32px;
  height: 40px;
  flex-shrink: 0;
}

.download-btn .btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.download-btn .btn-text {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.download-btn .btn-version {
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* ========== 系统切换标签 ========== */
.os-tabs {
  display: flex;
  gap: 36px;
  margin-bottom: 44px;
  padding-left: 180px;
}

.os-tab {
  position: relative;
  width: 320px;
  height: 112px;
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-tab .tab-bg {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.os-tab.active .tab-bg {
  border: 4px solid #0054FF;
  box-shadow: 0 3px 14px rgba(0, 84, 255, 0.15);
}

.os-tab .tab-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.os-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.os-label {
  font-size: 24px;
  font-weight: 500;
  color: #999;
  transition: color 0.3s ease;
}

.os-tab .os-icon {
  color: #434F61;
}

.os-tab.active .os-label {
  color: #0054FF;
}

/* 激活状态下的图标颜色 */
.os-tab.active .os-icon {
  color: #0054FF;
}

/* 对勾图标颜色 */
.checkmark-icon {
  color: #ffffff;
}

/* Mac Tab 右上角蓝色选中指示器 */
.tab-active-indicator {
  display: none;
}

.os-tab.active .tab-active-indicator {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 30px;
  background: #0054FF;
  border-radius: 0 28px 0 0;
}

/* 对勾图标 */
.checkmark-icon {
  display: none;
  position: absolute;
  top: 0px;
  right: 20px;
  width: 28px;
  height: 28px;
  z-index: 2;
}

.os-tab.active .checkmark-icon {
  display: block;
}

/* ========== 主插图（圆点装饰） ========== */
.main-illustration {
  top: 300px;
  position: absolute;
  z-index: 0;
  padding-left: 0;
  left: 20px;
}

.illustration-img {
  width: 200px;
  height: auto;
  display: block;
}

/* ========== 通用卡片区域 ========== */
.section {
  margin-bottom: 32px;
}

.section-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 44px 100px 52px;
 
}

/* ========== 区域标题 ========== */
.section-title {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #030302;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 32px;
}

.section-title .section-note {
  font-weight: 400;
  color: #999;
  font-size: 19px;
}

/* ========== 步骤容器 ========== */
.steps-container {
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00C7C3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle span {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.step-content {
  flex: 1;
  padding-top: 6px;
}

.step-text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
}

/* ========== 步骤连接虚线 ========== */
.step-line {
  width: 100%;
  margin: 30px 0;
  margin-left: 50px;
  border-bottom: 1px dashed #D0D5E0;
}

/* ========== 教程配图 ========== */


.tutorial-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  padding-top: 32px;
  padding-left: 50px;
}

/* ========== FAQ 区域 ========== */
.faq-section .section-title {
  margin-bottom: 24px;
}

.faq-hint,
.faq-footer-text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
}

.faq-hint {
  margin-bottom: 6px;
}

.faq-footer-text {
  margin-top: 16px;
  margin-bottom: 32px;
}

/* ========== FAQ 图片 ========== */
.faq-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ============================
   响应式
   ============================ */
@media screen and (max-width: 900px) {
  .download-container {
    padding: 28px 32px 48px;
  }

  .page-header {
    margin-bottom: 12px;
  }

  .header-title-row {
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 38px;
    white-space: normal;
  }

  .download-icon {
    width: 28px;
    height: 36px;
  }

  .header-decoration {
    padding-left: 0;
    margin-top: 0;
  }

  .deco-line {
    width: 280px;
    height: 26px;
  }

  .page-subtitle {
    font-size: 18px;
    padding-left: 0;
    margin-bottom: 24px;
  }

  /* 下载按钮响应式 */
  .download-btn-wrap {
    margin-bottom: 24px;
    
  }

  .download-btn {
    padding: 16px 48px;
  }

  .download-btn .btn-icon {
    width: 26px;
    height: 32px;
  }

  .download-btn .btn-text {
    font-size: 22px;
  }

  .os-tabs {
    padding-left: 0;
    gap: 24px;
    margin-bottom: 32px;
  }

  .os-tab {
    width: 240px;
    height: 84px;
  }

  .os-icon {
    width: 40px;
    height: 40px;
  }

  .os-label {
    font-size: 20px;
  }

  .os-tab.active .tab-active-indicator {
    width: 48px;
    height: 48px;
  }

  .checkmark-icon {
    width: 22px;
    height: 22px;
  }

  .main-illustration {
    margin-left: 0;
    margin-bottom: 36px;
  }

  .illustration-img {
    width: 160px;
  }

  .section-card {
    padding: 32px 40px 40px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-title .section-note {
    font-size: 18px;
  }

  .step-text {
    font-size: 18px;
  }

  .faq-hint,
  .faq-footer-text {
    font-size: 18px;
  }
}

@media screen and (max-width: 600px) {
  .download-container {
    padding: 20px 14px 36px;
  }

  .top-resource {
    margin-bottom: 16px;
  }

  .resource-img {
    width: 80px;
  }

  .page-title {
    font-size: 28px;
  }

  .download-icon {
    width: 22px;
    height: 30px;
  }

  .deco-line {
    width: 200px;
    height: 20px;
  }

  .page-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 下载按钮响应式 */
  .download-btn-wrap {
    margin-bottom: 20px;
  }

  .download-btn {
    padding: 14px 36px;
    border-radius: 30px;
  }

  .download-btn .btn-icon {
    width: 22px;
    height: 28px;
  }

  .download-btn .btn-text {
    font-size: 19px;
  }

  .os-tabs {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
  }

  .os-tab {
    width: 100%;
    max-width: 280px;
    height: 68px;
    border-radius: 20px;
  }

  .os-tab .tab-bg {
    border-radius: 20px;
  }

  .os-tab.active .tab-bg {
    border-width: 3px;
  }

  .os-tab.active .tab-active-indicator {
    width: 40px;
    height: 40px;
    border-radius: 0 20px 0 0;
  }

  .os-icon {
    width: 34px;
    height: 34px;
  }

  .os-label {
    font-size: 17px;
  }

  .main-illustration {
    margin-bottom: 28px;
  }

  .section {
    margin-bottom: 24px;
  }

  .section-card {
    padding: 24px 18px 30px;
    border-radius: 20px;
  }

  .section-title {
    font-size: 19px;
    margin-bottom: 20px;
  }

  .section-title .section-note {
    font-size: 15px;
    display: block;
    margin-top: 2px;
  }

  .step-item {
    gap: 12px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
  }

  .step-circle span {
    font-size: 14px;
  }

  .step-number {
    width: 32px;
    height: 32px;
  }

  .step-content {
    padding-top: 4px;
  }

  .step-text {
    font-size: 16px;
  }

  .step-line {
    height: 18px;
    margin-left: 14px;
  }

  .faq-hint,
  .faq-footer-text {
    font-size: 16px;
  }

  .faq-footer-text {
    margin-bottom: 24px;
  }

  .faq-images {
    gap: 12px;
  }
}
