/* WF电竞助手 — 官网 */
html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
  font-family: "PingFang SC", "HarmonyOS Sans", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* 应用头 */

.app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 14px;
}

.app-ico {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.app-info {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.app-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.app-meta {
  margin: 0 0 6px;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}

.app-safe {
  margin: 0;
  color: #1aad19;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-safe i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1aad19;
  position: relative;
  display: inline-block;
}

.app-safe i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 4px;
  height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.app-rate {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

.app-rate-num {
  font-size: 40px;
  font-weight: 700;
  color: #111;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.app-rate-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-top: 4px;
}

.app-rate-stars {
  display: inline-flex;
  gap: 2px;
}

.app-rate-stars i {
  width: 10px;
  height: 10px;
  background: #111;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.app-rate-count {
  color: #888;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.sec-title {
  margin: 0 0 12px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.block .sec-title {
  padding: 0;
}

.sec-title-ico {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blue-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f6bff;
  flex-shrink: 0;
  position: relative;
}

.blue-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* 预览 */
.preview {
  padding: 8px 0 4px;
}

.preview-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.preview-scroller::-webkit-scrollbar {
  display: none;
}

.shot {
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 160px;
  width: 160px;
  scroll-snap-align: start;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shot:active {
  opacity: 0.92;
}

.shot img {
  display: block;
  width: 160px;
  height: 346px;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  background: #f3f4f6;
  pointer-events: none;
}

/* 新功能 / 评价 */
.block {
  padding: 18px 16px 8px;
  border-top: 1px solid #f0f0f0;
}

.whats-meta {
  display: flex;
  justify-content: space-between;
  margin: -4px 0 10px;
  color: #999;
  font-size: 12px;
}

.desc {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.65;
}

.detail {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #999;
  font-size: 12px;
  line-height: 1.9;
}

.detail a {
  color: #2f6bff;
  text-decoration: none;
}

/* 苹果式评分板 */
.rate-board {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.rate-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111;
}

.rate-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.rate-stars {
  display: flex;
  gap: 3px;
}

.rate-stars span {
  width: 14px;
  height: 14px;
  background: #111;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.rate-count {
  color: #888;
  font-size: 12px;
}

.rate-sub {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.rev {
  margin-bottom: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rev:last-child {
  border-bottom: 0;
}

.rev-top strong {
  font-size: 14px;
  font-weight: 650;
  color: #222;
}

.rev-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  color: #999;
  font-size: 12px;
}

.mini-stars {
  color: #666;
  letter-spacing: 1px;
  font-size: 11px;
}

.rev p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
}

.ft {
  padding: 18px 16px 24px;
  text-align: center;
  color: #aaa;
  font-size: 12px;
  line-height: 1.7;
}

.ft p {
  margin: 0;
}

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

.ft a.blue {
  color: #2f6bff;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eee;
}

.bar-agree {
  margin: 0 0 8px;
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}

.bar-agree a {
  color: #2f6bff;
  text-decoration: none;
}

.bar-btn {
  display: block;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #2f6bff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.bar-btn:active {
  background: #2157d8;
}

.toast[hidden],
.viewer[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 13px;
  max-width: 80vw;
  text-align: center;
}

/* 全屏预览（类似 App Store） */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
}

.viewer-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.viewer-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.viewer-track::-webkit-scrollbar {
  display: none;
}

.viewer-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px 48px;
  box-sizing: border-box;
}

.viewer-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.viewer-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  gap: 6px;
}

.viewer-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.viewer-dots i.on {
  background: #fff;
}

body.viewer-open {
  overflow: hidden;
}

@media (min-width: 481px) {
  body {
    background: #f2f3f5;
  }

  .wrap {
    box-shadow: 0 0 0 1px #ececec;
  }
}

.wx-guide[hidden]{display:none!important}
.wx-guide{position:fixed;inset:0;z-index:100}
.wx-guide__mask{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.wx-guide__box{position:absolute;top:12px;right:12px;left:12px;max-width:320px;margin-left:auto;background:#fff;border-radius:14px;padding:18px 16px 14px;box-shadow:0 8px 28px rgba(0,0,0,.25)}
.wx-guide__arrow{position:absolute;top:-6px;right:18px;font-size:28px;line-height:1;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.45);transform:translateY(-100%)}
.wx-guide__title{margin:0 0 8px;font-size:17px;font-weight:700;color:#111}
.wx-guide__desc{margin:0 0 14px;font-size:14px;line-height:1.55;color:#444}
.wx-guide__desc b{color:#111}
.wx-guide__btn{display:block;width:100%;border:0;border-radius:10px;padding:11px 0;background:#007aff;color:#fff;font-size:15px;font-weight:600}
