@font-face {
  font-family: 'ZhiYongDaTong';
  src: url('fonts/zhiyongdatong.woff') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'zhiyiyuan';
  src: url('fonts/zhiyiyuan.woff') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ZaoZiChunFeng';
  src: url('fonts/zaozichunfeng.woff') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


* {
  box-sizing: border-box;
}

:root {
  --red: #d82f35;
  --dark: #202124;
  --blue: #2879b8;
  --green: #31944e;
  --orange: #e79a12;
  --yellow: #ffd600;
}

/* 页面根元素 */

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
}

/* 页面内容 */

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--dark);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
}

/* 页面外层 */

.page-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

/* 整个首页容器 */

.home-panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

/* =========================
   黄色区域
   ========================= */

.yellow-section {
  position: relative;
  z-index: 1;
  padding: clamp(88px, 10vh, 150px) 7% 105px;
  background: var(--yellow);
}

/* 页面标题 */

.home-panel h1 {
  margin: 0;
  color: var(--dark);
  font-family: 'ZhiYongDaTong', 'Microsoft YaHei', sans-serif;
  font-size: clamp(30px, 5vw, 65px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
}

/* Logo 容器 */

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(790px, 78%);
  height: clamp(150px, 16vw, 230px);
  margin: clamp(40px, 3vw, 60px) auto 0;
  background: var(--yellow);
}

/* Logo 图片 */

.logo-frame img {
  display: block;
  width: min(650px, 82%);
  height: auto;
}

/* 宣传语 */

.slogan {
  margin: 36px 0 0;
  color: #188ef1;
  font-family: 'zhiyiyuan', 'Microsoft YaHei', sans-serif;
  font-size: clamp(20px, 2.5vw, 40px);
  font-weight: 700;
  letter-spacing: .08em;
}

/* =========================
   白色区域
   ========================= */

.white-section {
  position: relative;
  z-index: 2;
  min-height: 360px;
  margin-top: 0;
  padding: 40px 7% 120px;
  background: #fff;
}

/* 撕纸波浪边缘 */

.white-section::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 0;
  width: 100%;
  height: 42px;
  background: #fff;
  clip-path: polygon(
    0 48%,
    3% 35%,
    6% 58%,
    9% 28%,
    12% 53%,
    15% 38%,
    18% 63%,
    21% 31%,
    24% 55%,
    27% 36%,
    30% 64%,
    33% 30%,
    36% 56%,
    39% 39%,
    42% 67%,
    45% 32%,
    48% 57%,
    51% 35%,
    54% 62%,
    57% 29%,
    60% 54%,
    63% 38%,
    66% 66%,
    69% 31%,
    72% 57%,
    75% 36%,
    78% 63%,
    81% 30%,
    84% 56%,
    87% 39%,
    90% 66%,
    93% 31%,
    96% 57%,
    100% 40%,
    100% 100%,
    0 100%
  );
}

/* 版本信息 */

.version-label {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--dark);
  font-family: 'zhiyiyuan', 'Microsoft YaHei', sans-serif;
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: .04em;
}

.version-label strong {
  margin-left: 12px;
  font-family: 'zhiyiyuan';
  font-weight: 900;
  letter-spacing: .03em;
}

/* 下载按钮容器 */

.download-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: clamp(22px, 4vw, 62px);
  width: min(1030px, 100%);
  margin: 62px auto 0;
}

/* 下载按钮 */

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 15px 20px;
  border: 5px solid var(--red);
  border-radius: 24px;
  color: var(--red);
  background: #fff;
  font-family: 'ZaoZiChunFeng', 'Microsoft YaHei', sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  transition:
    color .18s ease,
    background .18s ease,
    transform .18s ease;
}

/* 鼠标悬停 */

.download-button:hover {
  color: #fff;
  background: var(--red);
  transform: translateY(-4px);
}

/* 鼠标按下 */

.download-button:active {
  transform: translateY(-1px);
}

/* iOS 即将上线按钮 */

.download-button.is-soon {
  cursor: pointer;
}

/* =========================
   平板适配
   ========================= */

@media (max-width: 900px) {
  .yellow-section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .white-section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .logo-frame {
    width: 88%;
  }

  .download-list {
    gap: 18px;
  }
}

/* =========================
   手机适配
   ========================= */

@media (max-width: 620px) {
  .yellow-section {
    padding: 58px 18px 88px;
  }

  .white-section {
    min-height: 360px;
    padding: 78px 18px 80px;
  }

  .home-panel h1 {
    font-size: 27px;
    letter-spacing: 0;
  }

  .logo-frame {
    width: 100%;
    height: 130px;
    margin-top: 42px;
  }

  .logo-frame img {
    width: 88%;
  }

  .slogan {
    margin-top: 29px;
    font-size: 25px;
  }

  .version-label {
    margin: 0;
    font-size: 17px;
  }

  .version-label strong {
    margin-left: 6px;
  }

  .download-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
  }

  .download-button {
    min-height: 64px;
    padding: 10px 8px;
    border-width: 3px;
    border-radius: 17px;
    font-size: 20px;
  }

  /* 手机端使用较小的撕纸波浪 */

  .white-section::before {
    top: -23px;
    height: 31px;
    clip-path: polygon(
      0 48%,
      8% 30%,
      16% 58%,
      24% 34%,
      32% 64%,
      40% 29%,
      48% 57%,
      56% 35%,
      64% 64%,
      72% 30%,
      80% 58%,
      88% 34%,
      100% 55%,
      100% 100%,
      0 100%
    );
  }
}
