
html,
body {
  background-color: #111;
  color: #eee;
  font-family: "楷体", "黑体", "宋体", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.center-content,
#appStage {
  position: relative;
  user-select: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.text-button {
  display: flex;
  align-content: center;
  color: #444;
  border: none;
  cursor: pointer;
  height: min-content;
  width: min-content;
  text-align: center;
  font-size: 0.27rem;
  transition: 0.125s;
}

.text-button .text {
  margin-left: 0.4rem;
}

.center-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.2rem 0.25rem 0.28rem;
  box-sizing: border-box;
}

.site-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2.4rem;
  color: #cfcfcf;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  user-select: text;
}

.site-content .content-block {
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-content h1 {
  font-size: 1.45rem;
  color: #fff;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.site-content h2 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.site-content h3 {
  font-size: 1rem;
  color: #eee;
  margin: 1rem 0 0.4rem;
}

.site-content p,
.site-content li {
  font-size: 0.95rem;
  margin: 0.45rem 0;
}

.site-content a {
  color: #9ad7c2;
  text-decoration: underline;
}

.site-content ol,
.site-content ul {
  padding-left: 1.2rem;
}

.site-links {
  list-style: none;
  padding-left: 0;
}

.site-links li {
  margin: 0.55rem 0;
}

/* 页脚贴在首屏底部，强制 px，避免被根字号 rem(≈100px) 放大 */
#appStage > .site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 6;
  margin: 0;
  padding: 0 12px;
  color: #777;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: center;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  user-select: text;
  pointer-events: auto;
}

#appStage > .site-footer p {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

#appStage > .site-footer a {
  color: #9ad7c2;
  text-decoration: none;
  font-size: 12px !important;
}

#appStage > .site-footer a:hover {
  text-decoration: underline;
}

/* 说明弹窗长文可读可滚动 */
.ui-dialog-body .help-doc {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
  text-align: left;
  line-height: 1.7;
}

.ui-dialog-body .help-doc h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.02rem;
}

.ui-dialog-body .help-doc h3:first-child {
  margin-top: 0;
}

.ui-dialog-body .help-doc p,
.ui-dialog-body .help-doc li {
  margin: 0.4rem 0;
  font-size: 0.92rem;
}

.ui-dialog-body .help-doc ol,
.ui-dialog-body .help-doc ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0 0.7rem;
}

.ui-dialog-body .help-links {
  list-style: none;
  padding-left: 0;
}

.ui-dialog-body .help-links a {
  color: #1a5f4a;
}

#top {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

#top .logo {
  font-weight: normal;
  text-align: left;
  display: flex;
  justify-content: space-between;
}

#top .logo .text {
  position: relative;
  font-size: 0.7rem;
}

#top .logo .action-button {
  font-size: 0.24rem;
}

#top .logo .action-button #baifoLink,
#top .logo .action-button #share {
  display: block;
  background-color: #FFFFFF;
  border-radius: 5px;
  color: #333333;
  padding: 7px 12px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

#top .logo .action-button #baifoLink {
  margin-bottom: 0.2rem;
}

.score {
  text-align: center;
  width: 100%;
  z-index: 10;
  margin-top: 0.7rem;
}

.score .count {
  width: min-content;
  transition: all 0.1s cubic-bezier(0.5, 0.35, 0.15, 1.4);
  transform: scale(1);
  margin: 0 auto;
  font-size: 1.5rem;
}

.score .subtitle {
  font-size: 0.5rem;
  color: #444;
  line-height: 0.7rem;
}

#center .wooden-fish {
  transition: all 0.1s cubic-bezier(0.5, 0.35, 0.15, 1.4);
  transform: scale(1);
  background-image: url(../images/muyu.webp);
  background-size: 100% 100%;
  cursor: pointer;
}

#center .wooden-hammer {
  position: absolute;
  cursor: pointer;
  width: 1.36rem;
  height: 0.54rem;
  background-image: url(../images/hammer.png);
  background-size: 100% 100%;
}

#center .hammer-start {
  animation: mymuyu 0.1s;
}

#bottom {
  color: #444;
  font-size: 0.2rem;
  padding: 0 0.08rem 22px;
  position: relative;
  text-align: center;
  flex: 0 0 auto;
}

#bottom .key-tips {
  display: flex;
  justify-content: center;
  align-items: center;
}

#bottom .key-tips key {
  color: #111;
  background-color: #444;
  margin: 0.09rem 0.12rem;
  border-radius: 0.09rem;
  padding: 0.05rem 0.13rem;
  line-height: 0.2rem;
}

#bottom .left-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.12rem;
}

#bottom .left {
  font-size: 0.2rem;
}

#bottom .left:hover {
  color: #eee;
}

#bottom .right a {
  width: 100%;
}

#bottom .text-button:hover {
  color: #eee;
}

#bottom .immersion-switch {
  transform: scale(0.8);
}

#bottom .wish-diy {
  cursor: pointer;
  margin: 0 0.17rem;
  font-size: 0.2rem;
  text-decoration: underline;
}

.auto-click {
  text-decoration: underline;
  padding: 0.08rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.auto-click.confirm {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.06rem;
}

.subtitle-countTip {
  height: 0.6rem;
  line-height: 0.6rem;
  color: #ffffff;
  position: absolute;
  left: 0;
  width: auto;
  white-space: nowrap;
  font-size: 0.34rem;
  animation: countTipMove 1s;
  opacity: 0;
}

.diy-main .diy-item {
  margin-bottom: 0.24rem;
}

.diy-main .diy-item:last-child {
  margin-bottom: 0;
}

.diy-main .diy-item #diyContent {
  width: 100%;
}

@keyframes countTipMove {
  from {
    top: -0.68rem;
    opacity: 1;
  }

  to {
    top: -1.37rem;
    opacity: 0;
  }
}

.center-content #center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
}

#loading {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  color: #eee;
  font-size: 0.34rem;
}

#loading .loading-text {
  width: 100%;
  margin-top: 20px;
}

@media screen and (min-width: 640px) {
  #top .logo .action-button #baifoLink,
  #top .logo .action-button #share {
    display: inline-block;
    margin: 0 10px 0 0;
  }

  #center .wooden-fish {
    width: 2rem;
    height: 1.64rem;
  }

  #center .wooden-hammer {
    top: -0.26rem;
    right: -0.37rem;
  }
}

@media screen and (max-width: 640px) {
  #center .wooden-fish {
    width: 2.5rem;
    height: 2.05rem;
  }

  #center .wooden-hammer {
    top: -0.13rem;
    right: -0.37rem;
  }
}

@keyframes mymuyu {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(30deg);
		transform-origin: 100% 100%;
	}
}

.progress-bar {
  width: 50%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  margin: 10px auto 0 auto;
}

.progress-bar-inner {
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.progress-bar-inner::before {
  content: "";
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(11, 207, 21, 0.8), transparent);
  position: absolute;
  top: 0;
  left: -25%;
  animation: loadingPulse 1.5s infinite ease-in-out;
}

@keyframes loadingPulse {
  0% { left: -25%; }
  50% { left: 50%; }
  100% { left: 100%; }
}