html {
  font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0; /* 去除边距 */
  overflow: hidden;
  background: rgba(33, 33, 26, 1);
}
a {
  text-decoration: none;
}
a:hover {
  color: rgb(40, 210, 190) !important;
}
.collapsed { /* 隐藏（不保留布局空间） */
  display: none;
}
.hidden { /* 隐藏（保留布局空间） */
  visibility: hidden;
}
.unavailable {
  user-select: none; /* 禁止选择文本 */
  -webkit-user-select: none; /* 兼容 Safari */
  cursor: default; /* 兼容 Safari */
}
.mt16 {
  margin-top: 16px;
}
.mt8 {
  margin-top: 8px;
}
.mb8 {
  margin-bottom: 8px;
}
.ml8 {
  margin-left: 8px;
}

img.cover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease-out; /* 使用 transition 比 jQuery fadeIn() 更加流畅 */
}
div.cover {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms;
  /* WinUI Acrylic 效果 https://ubug.io/blog/fluent-acrylic */
  backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 背景模糊、饱和度、亮度 */
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 兼容 Safari */
  background-color: rgba(0, 0, 0, 0.5); /* 需有透明度 */
}

.account {
  display: flex;
  flex-direction: column; /* flex 布局中子元素水平排列 */
  align-items: center; /* flex 布局中子元素水平居中 */
  /*
   * justify-content: center; flex 布局中子元素垂直居中
   * 该方法搭配 overflow: auto; 无法解决垂直空间不足滚动不全问题，
   * 因此新增上下 <div> flex-grow: 1; 搭配 overflow: auto;
   */
  width: 100%;
  height: 100%;
  overflow: auto; /* 可滚动 */
}
.account .account-space {
  flex-grow: 1; /* 填充剩余空间，使主体垂直居中 */
}
.account .account-content {
  /*width: fit-content; !* div 默认 100%，改为自适应宽度 *!*/
  height: fit-content; /* div 默认 100%，改为自适应高度 */
  width: min(calc(100% - 24px * 2 - 16px * 2), 400px);
  padding: 24px;
  margin: 16px 0;
  color: rgba(255, 255, 255, 1);
  /*border: 2px solid rgba(240, 240, 240, 0.1);*/
  border-radius: 10px;
  backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 背景模糊、饱和度、亮度 */
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 兼容 Safari */
  background-color: rgba(0, 0, 0, 0.5); /* 需有透明度 */
}
.account .account-title {
  display: flex;
  flex-direction: row; /* flex 布局中子元素水平排列 */
  align-items: baseline; /* flex 布局中子元素底部对齐 */
  justify-content: space-between; /* flex 布局中子元素两端分布 */
}
.account .account-title span {
  font-weight: bold;
  font-size: x-large;
}
.account .account-title a {
  font-size: small;
  color: rgba(196, 199, 197, 1);
  text-align: right;
}
.account .account-action {
  text-align: right;
}
.account .account-info-toast {
  font-size: small;
  color: rgba(196, 199, 197, 1);
  word-break: break-all;
}
.account .account-info-toast-info {
  color: rgb(40, 210, 190)!important;
}
.account .account-info-toast-error {
  color: rgb(244, 67, 54) !important;
}
.account .account-info-title {}
.account .account-info-desc {
  font-size: small;
  color: rgba(196, 199, 197, 1);
}
.account .account-info-desc a {
  color: rgba(196, 199, 197, 1);
}
.account .account-info-desc-import {
  font-size: small;
  color: rgb(244, 67, 54);
}
.account .account-info-desc-img {
  /* 预设图片比例，避免加载跳动 */
  position: relative;
  width: 100%;
  aspect-ratio: 1.848; /* 754 / 408 */
}
.account .account-info-more::after {
  content: " ……";
}
.account .account-in {
  /* http://www.ibloger.net/assets/demos/css3-input-14-effects/index.html */
  display: flex;
  flex-direction: row; /* flex 布局中子元素水平排列 */
  flex-wrap: nowrap; /* flex 布局中子元素不换行 */
  align-items: center; /* flex 布局中子元素垂直居中 */
  justify-content: flex-start; /* flex 布局中子元素主轴对齐 */
}
.account .account-in input {
  flex-grow: 1; /* 填充剩余空间 */
  padding: 0 8px;
  height: 38px; /* 参考 Bootstrap */
  font-size: medium; /* 小于 16px focus 时 iOS Safari 将放大页面 */
  transition: transform 0.5s;
  box-sizing: border-box; /* 避免 100% width 溢出 */
  outline-style: none;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.account .account-in input:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
}
.account .account-in button {
  /* https://getcssscan.com/css-buttons-examples */
  flex-grow: 0; /* 自适应宽度 */
  padding: 0 8px;
  height: 38px; /* 参考 Bootstrap */
  font-size: medium;
  white-space: nowrap; /* 不换行 */
  background-clip: padding-box;
  background-color: rgba(78, 205, 196, 1);
  color: black;
  /*font-weight: bold;*/
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  transition: all 250ms;
  touch-action: manipulation;
}
.account .account-in button:hover, .account .account-in button:focus {
  background-color: rgba(70, 255, 240, 1);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}
.account .account-in button:hover {
  transform: translateY(-1px);
}
.account .account-in button:active {
  background-color: rgba(48, 176, 157, 1);
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}
.account img {
  display: block;
  object-fit: contain;
  width: 100%;
}
.account .info-donate-v1 {}
.account .info-donate-v2 {
  display: none;
}

.tip-mask {
  position: fixed;
  z-index: 99;
  left: auto;
  right: 0;
  bottom: 0;
  padding: 0 16px;
}
.tip {
  width: 316px;
  margin: 0 0 16px 0;
  border: 2px solid rgba(240, 240, 240, 0.1);
  border-radius: 8px;
  overflow: auto; /* 确保内层元素在圆角内 */
  backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 背景模糊、饱和度、亮度 */
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(80%); /* 兼容 Safari */
  background-color: rgba(0, 0, 0, 0.5); /* 需有透明度 */
  transform: translateX(calc(316px + 2px * 2 + 16px));
  transition: transform 0.35s ease-out;
}
.tip .desc {
  color: white;
  margin: 11px 12px; /* 参考 UWP TeachingTip */
  font-size: small;
  font-weight: normal;
}
.tip canvas {
  display: block; /* 或“vertical-align: top;”，解决 canvas 下方多余空隙问题；anvas 默认为内联元素 */
  width: 316px;
  height: 198px;
  background-color: white; /* 使用 CSS 背景，canvas 无需再绘制背景 */
}
.tip.show {
  transform: translateX(0);
}

@media screen and (min-width: 830px) { /* 与 gallery.css 保持一致 */
  .account .info-donate-v1 {
    display: none;
  }
  .account .info-donate-v2 {
    display: block;
  }
}