<!DOCTYPE html>
<html lang="en">

<head>
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>Art Color</title>

  <script type="module" src="/src/filler/play.ts"></script>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Free Coloring Pages Paint Online!">
  <meta name="keywords" content="color, paint, app, ios, android, game">

  <meta property="og:site_name" content="art.pcoloring.com">
  <meta property="og:title" content="Art Number Coloring">
  <meta property="og:description" content="Free Coloring Pages Paint Online!">
  <meta property="og:image" content="https://d2mb6s2cy1zg97.cloudfront.net/thumbs/coloring-page/work/480/686240183deb2d264e3a39d9.webp">
  <meta property="og:type" content="website">

  <!-- MARK: Universal Link / Android App Link 的核心配置 -->
  <!-- 这些 meta 标签的值应该是完整的 HTTPS 链接，Facebook 会识别并尝试拉起 App -->
  <meta property="og:url" content="https://art.pcoloring.com/share/686240183deb2d264e3a39d9" />
  <!-- **Universal Link 路径** -->
  <meta property="al:ios:url" content="https://art.pcoloring.com/share/686240183deb2d264e3a39d9" />
  <!-- **Universal Link 路径** -->
  <meta property="al:ios:app_store_id" content="1575480118" /> <!-- **iOS App Store ID** -->
  <meta property="al:ios:app_name" content="Art Number Coloring Book" /> <!-- **iOS 应用名称** -->

  <meta property="al:android:package" content="com.pcoloring.art.puzzle.color.by.number" /> <!-- **Android 包名** -->
  <meta property="al:android:url" content="https://art.pcoloring.com/share/686240183deb2d264e3a39d9" />
  <!-- ** Universal Link 路径** -->
  <meta property="al:android:app_name" content="Art Number Coloring Book" /> <!-- **Android 应用名称** -->

  <meta name="apple-itunes-app" content="app-id=1575480118">

  <link rel="icon" href="/assets/icon/favicon.ico" type="image/x-icon">
  <link rel="apple-touch-icon" sizes="180x180" href="/assets/icon/icon.png">

  <style>
    :root {
      --primary-color: #ff6b6b;
      --secondary-color: #4ecdc4;
      --accent-color: #ffd166;
      --background-color: #f9f9f9;
      --text-color: #333;
      --light-text: #666;
      --border-color: #e0e0e0;
    }
    
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      display: flex;
      flex-direction: column; /* 垂直方向排列子元素 */
      justify-content: center; /* 垂直居中 */
      align-items: center;     /* 水平居中 */
      min-height: 100vh;       /* 最小高度为视口高度，确保垂直居中 */
      margin: 0;
      padding: 20px;
      box-sizing: border-box; /* 盒模型为边框盒 */
      background-color: var(--background-color);
      color: var(--text-color);
      line-height: 1.6;

    }

    /* 父容器，用于包裹图片和 Canvas，并使其相对定位 */
    .image-canvas-container {
      position: relative;
      max-width: 90%; /* 限制容器最大宽度 */
      height: auto;
      display: inline-block; /* 确保容器根据图片尺寸收缩 */
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* 添加阴影效果 */
      border-radius: 12px; /* 圆角 */
      overflow: hidden; /* 隐藏超出容器的内容 */
    }

    /* 图片样式：使其响应式并填充容器 */
    .image-canvas-container img {
      position: relative;
      display: block; /* 移除图片底部空白 */
      max-width: 100%; /* 最大宽度为父容器的100% */
      height: auto;    /* 高度自动调整，保持图片比例 */
      border-radius: 12px; /* 与容器相同的圆角 */
      z-index: 100;
    }

    /* Canvas 样式：绝对定位，与图片完全重叠 */
    .image-canvas-container canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 12px; /* 与容器相同的圆角 */
      z-index: 50;
    }

    .btn {
      display: inline-block;
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 1.1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-decoration: none;
      text-align: center;
      margin-right: 10px;
      margin-bottom: 10px;
    }

    .btn:hover {
      background-color: #ff4d4d;
    }

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

    .btn-secondary:hover {
      background-color: #37b0a8;
    }

    .play-button {
      position: absolute;
      display: block;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80px;
      height: 80px;
      background-color: rgba(255, 107, 107, 0.8);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 0;
    }

    .play-button:hover {
      background-color: rgba(255, 107, 107, 1);
      transform: translate(-50%, -50%) scale(1.1);
    }

    .play-button::after {
      content: "";
      width: 0;
      height: 0;
      border-top: 15px solid transparent;
      border-bottom: 15px solid transparent;
      border-left: 25px solid white;
      margin-left: 5px;
    }

    .buttons {
      width: 100%;
      max-width: 550px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      margin-top: 40px;
    }
  </style>
</head>

<body>
  <div class="image-canvas-container">
    <img id="poster-img" src="https://d2mb6s2cy1zg97.cloudfront.net/thumbs/coloring-page/work/480/686240183deb2d264e3a39d9.webp" alt="Art Number Coloring" />
    <canvas id="canvas"></canvas>
    <div id="play-button" class="play-button"></div>
  </div>
  <div class="buttons">
    <a href="/">Home</a>
    <a href="#>" class="btn btn-secondary">Download App</a>
    <a href="#">Detail>></a>
  </div>
</body>

</html>