:root {
  --bg: #dff7fb;
  --accent: #f06f00;
  --card: #ffffff;
  --muted: #666;
  --container-width: 720px;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* Layout and scrolling optimization */
html,
body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(#dff7fb, #cfeff6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.poster {
  width: 100%;
  max-width: var(--container-width);
  background: linear-gradient(#f7ffff, #f3fcff);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 28px;
  /*max-height: calc(100vh - 40px);*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.header {
  text-align: center;
  padding-top: 4px;
}

.title {
  font-size: 34px;
  color: #ffd357;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.subtitle {
  font-size: 42px;
  color: #c94a2a;
  font-weight: 900;
  margin-top: 6px;
}

.icons {
  display: flex;
  justify-content: space-around;
  margin: 18px 0 24px;
  flex-wrap: wrap;
  gap: 8px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.icon .circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb357, #ff8f2b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  color: #111;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.5;
}

.card .highlight {
  color: var(--accent);
  font-weight: 800;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  height: auto;
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: #b63b00;
  font-weight: 700;
  font-size: 18px;
}

.footer small {
  display: block;
  color: #9c3a00;
  font-weight: 600;
  margin-top: 8px;
}

/* Floating customer service button */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s;
}

.floating-button:hover {
  background-color: darkorange;
}

/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  display: block;
  opacity: 1;
}

.icon .label{
  display:block;
  text-align:center;
  color:var(--accent);   /* 与 .highlight 一致的颜色 */
  font-weight:800;       /* 与 .highlight 一致的加粗 */
  font-size:14px;
  line-height:1.15;
  white-space:normal;    /* 允许换行，窄屏自适应 */
  word-break:break-word;
  width:100%;
  max-width:120px;
  box-sizing:border-box;
  margin:0;
}

.floating-service-button {
    position: fixed;
    right: 20px;
    bottom: 60px;
    background-color: #f06f00;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 240ms ease, opacity 240ms ease;
    transform: translateY(0);
    opacity: 1;
    user-select: none;
}

/* 滚动时轻微隐藏，停止滚动后平滑回到固定位置 */
.floating-service-button--hidden {
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
}

.btn-download{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 22px;
  background: linear-gradient(90deg, #ff8f2b 0%, #ffbb57 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,111,0,0.18), inset 0 -2px 6px rgba(255,255,255,0.12);
  transition: transform .16s ease, box-shadow .16s ease, opacity .12s ease;
  vertical-align: middle;
}

/* 小图标（用 data-URL SVG）*/
.btn-download::before{
  /*content: "";*/
  width: 18px;
  height: 18px;
  display: inline-block;
  /*background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M5 20h14v-2H5v2zM12 2l-5 5h3v6h4V7h3l-5-5z'/></svg>");*/
  background-size: contain;
  background-repeat: no-repeat;
  flex: 0 0 18px;
}

/* 悬停/焦点效果 */
.btn-download:hover,
.btn-download:focus{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(240,111,0,0.22), inset 0 -2px 6px rgba(255,255,255,0.08);
  outline: none;
}

.inline-icon {
  height: 1.1em;           /* 跟随当前字体高度 */
  width: auto;           /* 保持宽高比 */
  display: inline-block;
  vertical-align: middle;/* 垂直居中对齐文字 */
  object-fit: contain;
  margin: 0 6px 0 4px;   /* 左右间距，可按需调整 */
}

/* 需要略大图标时可使用此类：<img class="inline-icon inline-icon--large"> */
/*.inline-icon--large {*/
/*  height: 1.1em;*/
/*}*/

@media (max-width: 480px) {
  html,
  body {
    padding: 12px;
  }

  .poster {
    padding: 14px;
    border-radius: 12px;
    /*max-height: calc(100vh - 24px);*/
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 28px;
  }

  .icons {
    gap: 6px;
  }

  .icon .circle {
    width: 44px;
    height: 44px;
  }

  .card p {
    font-size: 15px;
  }

  .qr-wrap img {
    width: 160px;
    height: 160px;
  }

  .floating-button {
    width: 50px;
    height: 50px;
  }
  .btn-download{
    padding: 7px 12px;
    font-size: 14px;
    border-radius: 20px;
  }
  .btn-download::before{
    width:18px;
    height:18px;
  }
}