:root {
  --page-bg: #0a0612;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-accent: #e7c66a;
  --desktop-header-height: clamp(72px, 10dvh, 112px);
  --mobile-header-height: clamp(52px, 8dvh, 64px);
  --mobile-dock-height: clamp(108px, 16dvh, 132px);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--page-bg);
}

body {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

.wrap-body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--page-bg);
  background-image: url(../images/bg-pc.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.grid-container-all {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.left-column,
.right-column {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.left-column {
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
}

.right-column {
  grid-template-rows: var(--desktop-header-height) minmax(0, 1fr);
}

.area {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.area-1 {
  padding: clamp(8px, 1.2vw, 18px) clamp(12px, 2vw, 28px) 0;
}

.contact-list-ar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1vw, 18px);
}

.btnimg-ar {
  width: min(31%, 202px);
  aspect-ratio: 202 / 55;
  overflow: hidden;
}

.btnimg-ar a {
  display: block;
  width: 100%;
  height: 100%;
}

.icon-img-ar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-2 {
  padding: clamp(10px, 1.5vw, 24px) clamp(12px, 2vw, 32px) 0;
}

.area-2 .pic-pc {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.area-3 {
  align-items: flex-end;
  padding: 0 clamp(8px, 1.3vw, 20px);
}

.area-3-icon-img-ar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.area-3-icon-h5-ar,
.icon-h5-ar,
.h5-content {
  display: none;
}

.area-4 {
  padding: clamp(12px, 1.8vw, 28px) clamp(16px, 2.5vw, 40px) clamp(18px, 2.5dvh, 34px);
}

.qr-content {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  width: 100%;
  max-width: 880px;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  color: var(--text-primary);
}

.qr-left {
  width: clamp(152px, 16vw, 210px);
  aspect-ratio: 1;
  flex: none;
  overflow: hidden;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

.qr-code,
.qr-code canvas {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1;
}

.qr-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.qr-left-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.4dvh, 30px);
}

.qr-and {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #9331e1 32.21%, #812cde 100%);
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2) inset;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.2;
  white-space: nowrap;
}

.qr-left-title {
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.55;
}

.m10 {
  height: 2px;
}

@media (max-width: 1100px) and (min-width: 960px) {
  .grid-container-all {
    grid-template-columns: minmax(0, 58fr) minmax(360px, 42fr);
  }

  .area-4 {
    padding-inline: 18px;
  }

  .qr-content {
    gap: 12px;
  }

  .qr-left {
    width: 152px;
  }

  .qr-and {
    white-space: normal;
  }
}

@media (max-width: 959px) {
  .wrap-body {
    background-image: url(../images/bg-h5.webp);
    background-position: center top;
  }

  .grid-container-all {
    display: block;
    height: 100vh;
    height: 100dvh;
  }

  .left-column,
  .right-column {
    display: none;
  }

  .h5-content {
    display: grid;
    grid-template-rows: minmax(112px, 0.36fr) minmax(0, 1fr);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--mobile-header-height) + env(safe-area-inset-top)) clamp(10px, 3vw, 24px) calc(var(--mobile-dock-height) + env(safe-area-inset-bottom));
    overflow: hidden;
    color: #fff;
  }

  .h5-1 {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: calc(var(--mobile-header-height) + env(safe-area-inset-top));
    align-items: flex-end;
    justify-content: flex-end;
    gap: clamp(2px, 1vw, 8px);
    padding: env(safe-area-inset-top) clamp(8px, 2.5vw, 18px) 4px;
    background: transparent;
  }

  .h5-btnimg-ar {
    width: min(31.5%, 138px);
    height: 44px;
    flex: 0 1 138px;
    overflow: hidden;
  }

  .h5-btnimg-ar > div,
  .h5-btnimg-ar a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .h5-btnimg-ar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .icon-h5-ar {
    display: block;
  }

  .h5-2,
  .h5-3,
  .h5-2-content,
  .h5-3-img {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  .h5-2-content {
    width: min(100%, 620px);
    height: 100%;
    padding: clamp(6px, 1.5dvh, 14px) 0 0;
  }

  .h5-2 .pic-h5 {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .h5-3-img {
    width: min(100%, 620px);
    height: 100%;
  }

  .h5-3 .pic-h5 {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .h5-download-dock {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom));
    flex-direction: column;
    justify-content: center;
    padding: 6px clamp(12px, 4vw, 28px) max(8px, env(safe-area-inset-bottom));
    background: transparent;
  }

  .h5-4-content {
    display: flex;
    width: min(100%, 560px);
    min-height: 54px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .h5-4-left,
  .h5-4-right {
    width: min(42%, 230px);
  }

  .h5-4-left a,
  .h5-4-right a {
    display: block;
    min-height: 44px;
  }

  .h5-4-left img,
  .h5-4-right img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .h5-4-pd10 {
    width: clamp(10px, 4vw, 28px);
    flex: none;
  }

  .h5-5 {
    display: flex;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-accent);
    font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
    font-size: clamp(11px, 2.8vw, 15px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(158, 116, 40, 0.28);
    user-select: none;
  }

  .h5-5:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
  }
}

@media (max-width: 420px) and (max-height: 680px) {
  :root {
    --mobile-header-height: 50px;
    --mobile-dock-height: 102px;
  }

  .h5-content {
    grid-template-rows: minmax(94px, 0.32fr) minmax(0, 1fr);
  }

  .h5-download-dock {
    padding-top: 2px;
  }

  .h5-4-content {
    min-height: 48px;
  }

  .h5-5 {
    min-height: 44px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
