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

/* html font-size 由 rem.js 动态设置（375 设计稿，1rem=50px@375宽） */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.85);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #3d84ff;
  text-decoration: none;
}

ul,
li {
  list-style: none;
}

.hidden {
  display: none !important;
}

.page-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.nav-wrap {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: start;
  align-items: flex-start;
}

.nav-tabs {
  -webkit-box-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-box-lines: single;
  height: 0.88rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 0 0.28rem;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

/* 展开：block + inline-block，避免 Android 4 不支持 flex-wrap */
.nav-tabs.open {
  display: block;
  height: auto;
  overflow: visible;
  white-space: normal;
  padding-bottom: 0.12rem;
  font-size: 0;
}

.nav-wrap.no-toggle .nav-tabs {
  padding-right: 0.28rem;
}

.nav-toggle {
  -webkit-box-flex: 0;
  flex-shrink: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  width: 0.88rem;
  height: 0.88rem;
  padding: 0;
  border: 0;
  background: #fff;
  -webkit-box-shadow: -0.06rem 0 0.16rem rgba(0, 0, 0, 0.08);
  box-shadow: -0.06rem 0 0.16rem rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-icon {
  display: block;
  width: 0.44rem;
  height: 0.24rem;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.nav-toggle.open .nav-toggle-icon {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.nav-tabs.open + .nav-toggle {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.nav-tabs.open .nav-tab {
  display: inline-block;
  vertical-align: top;
  font-size: 0.28rem;
  margin-bottom: 0.08rem;
}

.nav-tab {
  -webkit-box-flex: 0;
  flex-shrink: 0;
  margin-right: 0.55rem;
  font-size: 0.28rem;
  font-weight: 500;
  color: #626262;
  line-height: 0.88rem;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-tab.active {
  color: #2a80ff;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.06rem;
  background: #2a80ff;
}

.nav-search {
  position: relative;
  padding: 0.16rem 0.28rem 0.2rem;
  background: #fff;
}

.nav-search-input {
  display: block;
  width: 100%;
  height: 0.64rem;
  padding: 0 0.64rem 0 0.24rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.32rem;
  font-size: 0.28rem;
  color: rgba(0, 0, 0, 0.85);
  background: #f5f5f5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-search-input:focus {
  border-color: #2a80ff;
  background: #fff;
}

.nav-search-input::-webkit-search-cancel-button {
  display: none;
}

.nav-search-clear {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 0.28rem;
  line-height: 0.4rem;
  color: #999;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.search-empty {
  padding: 0.48rem 0;
  text-align: center;
  font-size: 0.28rem;
  color: #999;
}

.card {
  background: #fff;
  margin-bottom: 0.2rem;
  padding: 0 0.28rem 0.12rem;
}

.card-title {
  padding-top: 0.4rem;
  margin-bottom: 0.08rem;
  font-size: 0.28rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 0.06rem;
  height: 0.28rem;
  margin-right: 0.12rem;
  background: #2a80ff;
  vertical-align: middle;
}

.list-item {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  padding: 0.32rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
  border-bottom: 0;
}

.item-icon {
  -webkit-box-flex: 0;
  flex-shrink: 0;
  width: 0.88rem;
  height: 0.88rem;
  margin-right: 0.24rem;
  overflow: hidden;
}

.item-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-info {
  -webkit-box-flex: 1;
  flex: 1;
  min-width: 0;
  padding-right: 0.16rem;
}

.item-side {
  -webkit-box-flex: 0;
  flex-shrink: 0;
}

.item-name {
  font-size: 0.28rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.85);
  word-break: break-all;
}

.item-desc {
  margin-top: 0.08rem;
  font-size: 0.22rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-outline {
  display: inline-block;
  min-width: 1rem;
  height: 0.56rem;
  line-height: 0.54rem;
  padding: 0 0.2rem;
  text-align: center;
  border: 1px solid #3d84ff;
  border-radius: 0.08rem;
  color: #3d84ff;
  font-size: 0.24rem;
  background: #fff;
  white-space: nowrap;
}

.btn-outline--wide {
  min-width: 1.6rem;
}

.btn-outline.loading {
  opacity: 0.6;
}

.skeleton-wrap {
  padding: 0.28rem;
}

.skeleton-block {
  height: 0.32rem;
  margin-bottom: 0.2rem;
  border-radius: 0.08rem;
  background: #f0f2f5;
}

.skeleton-block.lg {
  height: 1.2rem;
}

.state-box {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0.64rem 0.4rem 1.2rem;
  text-align: center;
  color: #666;
  font-size: 0.26rem;
}

/* 可视高度够高才上下居中（横屏/矮屏自动取消） */
@media (min-height: 500px) {
  .state-box {
    min-height: 80vh;
    padding: 0.48rem 0.4rem 1.6rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.state-box-inner {
  width: 100%;
  max-width: 6.4rem;
  margin: 0 auto;
  text-align: center;
}

.state-box p {
  margin: 0;
  line-height: 1.6;
}

.state-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 auto 0.32rem;
  border-radius: 50%;
  background: #e8f3ff;
  position: relative;
}

.state-icon:before {
  content: '!';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: #3191fa;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
}

.state-box--offline .state-icon,
.state-box--timeout .state-icon,
.state-box--network .state-icon {
  background: #fff4e8;
}

.state-box--offline .state-icon:before,
.state-box--timeout .state-icon:before,
.state-box--network .state-icon:before {
  content: '!';
  color: #fa8c16;
}

.state-box--empty .state-icon {
  background: #f0f2f5;
}

.state-box--empty .state-icon:before {
  content: '!';
  color: #999;
}

/* 标题与说明更协调：略小于动态码大标题，字重适中 */
.state-title {
  margin: 0 0 0.2rem;
  color: #313842;
  font-size: 0.36rem;
  font-weight: 600;
  line-height: 1.4;
}

/* 说明文案对齐动态码底部提示 .dynamic-code-help */
.state-tip {
  margin: 0 auto 0.4rem !important;
  max-width: 5.6rem;
  color: #666;
  font-size: 0.26rem;
  line-height: 1.6;
}

/* 对齐动态码确认按钮；appearance 重置避免 Android 原生按钮皮 */
.state-retry {
  display: inline-block;
  min-width: 2.8rem;
  height: 0.72rem;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 0.08rem;
  background: #3191fa;
  background-color: #3191fa;
  color: #fff;
  font-size: 0.3rem;
  font-weight: 600;
  line-height: 0.72rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-shadow: 0 0.08rem 0.24rem rgba(49, 145, 250, 0.16);
  box-shadow: 0 0.08rem 0.24rem rgba(49, 145, 250, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.state-retry:disabled {
  opacity: 0.65;
  cursor: default;
}

.state-feedback-hint {
  margin-top: 0.36rem !important;
  color: #999;
  font-size: 0.26rem;
  line-height: 1.6;
}

.modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 0.4rem;
}

.modal-panel {
  width: 100%;
  max-width: 5.6rem;
  background: #fff;
  border-radius: 0.08rem;
  padding: 0.24rem;
}

.modal-close {
  text-align: right;
  margin-bottom: 0.12rem;
  font-size: 0.28rem;
  color: #999;
}

.modal-title {
  text-align: center;
  margin-bottom: 0.16rem;
  font-size: 0.2rem;
}

.modal-image {
  display: block;
  width: 100%;
  max-width: 4.8rem;
  margin: 0 auto;
}

/* 进群反馈悬浮按钮 */
.feedback-fab {
  position: fixed;
  right: 0.24rem;
  bottom: 1.28rem;
  /* 高于动态码全屏层，便于口令页也能进群反馈 */
  z-index: 100;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: 1.18rem;
  min-height: 1.24rem;
  padding: 0.12rem 0.08rem 0.14rem;
  border: 0;
  border-radius: 0.18rem;
  color: #59616b;
  background: #fff;
  -webkit-box-shadow: 0 0.2rem 0.44rem rgba(49, 96, 152, 0.11);
  box-shadow: 0 0.2rem 0.44rem rgba(49, 96, 152, 0.11);
  font-size: 0.24rem;
  line-height: 1.15;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feedback-fab-icon {
  display: block;
  width: 0.68rem;
  height: 0.68rem;
  margin-bottom: 0.06rem;
}

.feedback-fab-label {
  display: block;
  font-size: 0.24rem;
  color: #59616b;
}

.feedback-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 0.48rem;
  background: rgba(0, 0, 0, 0.6);
}

.feedback-dialog {
  position: relative;
  width: 78%;
  max-width: 6.4rem;
  text-align: center;
}

.feedback-panel {
  padding: 0.48rem 0.44rem 0.36rem;
  border-radius: 0.28rem;
  background: #fff;
  -webkit-box-shadow: 0 0.36rem 0.84rem rgba(0, 0, 0, 0.24);
  box-shadow: 0 0.36rem 0.84rem rgba(0, 0, 0, 0.24);
}

.feedback-qr-wrap {
  position: relative;
  width: 4.72rem;
  max-width: 100%;
  height: 4.72rem;
  max-height: 62vw;
  margin: 0 auto;
  padding: 0.16rem;
  border: 1px solid #e5eaf2;
  border-radius: 0.2rem;
  background: #f7f8fa;
}

.feedback-qr-loading {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;
  margin: -0.2rem 0 0;
  color: #8a94a3;
  font-size: 0.26rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.feedback-qr {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.feedback-qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.92rem;
  height: 0.92rem;
  margin-top: -0.46rem;
  margin-left: -0.46rem;
  border: 2px solid #fff;
  border-radius: 0.2rem;
}

.feedback-tip,
.feedback-phone {
  margin: 0.24rem 0 0;
  color: #8a94a3;
  font-size: 0.26rem;
  line-height: 1.5;
}

.feedback-phone {
  margin-top: 0.08rem;
  font-size: 0.24rem;
}

.feedback-phone-link {
  color: #3388ff;
  text-decoration: none;
}

.feedback-close {
  display: block;
  width: 0.76rem;
  height: 0.76rem;
  margin: 0.36rem auto 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 0.4rem;
  line-height: 0.72rem;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 动态码登录全屏页（内容较多，不做上下居中，避免顶部文案被裁切） */
.dynamic-code-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: #e1ecfc;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.dynamic-code-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dynamic-code-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.dynamic-code-ring.ring-a {
  top: -4.8rem;
  left: -3.6rem;
  width: 8.8rem;
  height: 7.6rem;
}

.dynamic-code-ring.ring-b {
  top: 4.8rem;
  left: -3.2rem;
  width: 5.2rem;
  height: 5.8rem;
}

.dynamic-code-ring.ring-c {
  top: -2.4rem;
  right: -2rem;
  width: 5.6rem;
  height: 5.6rem;
}

.dynamic-code-ring.ring-d {
  right: -1.6rem;
  bottom: -2.8rem;
  width: 3.6rem;
  height: 5rem;
}

.dynamic-code-logo {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  width: 2.2rem;
  height: auto;
}

.dynamic-code-panel {
  position: relative;
  z-index: 1;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  max-width: 6.4rem;
  margin: 0 auto;
  padding: 0.64rem 0.48rem 0.8rem;
  text-align: center;
}

/* 附件下载页风格：上方说明 + 二维码 */
.dynamic-code-attach {
  margin: 0 0 0.4rem;
}

.dynamic-code-attach-tip {
  margin: 0 auto 0.32rem;
  max-width: 3.6rem;
  text-align: left;
  color: #59616b;
  font-size: 0.28rem;
  font-weight: 400;
  line-height: 1.55;
  font-weight: 700;
}

.dynamic-code-attach-qr-wrap {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 0.08rem;
}

.dynamic-code-attach-qr {
  display: block;
  width: 100%;
  height: 100%;
}

.dynamic-code-attach-caption {
  margin: 0.2rem 0 0;
  color: #8a94a3;
  font-size: 0.26rem;
  line-height: 1.4;
}

.dynamic-code-title {
  margin: 0 0 0.28rem;
  color: #313842;
  font-size: 0.36rem;
  font-weight: 700;
  line-height: 1.3;
}

.dynamic-code-card {
  width: 100%;
  margin: 0 auto;
  padding: 0.4rem 0.36rem 0.44rem;
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-box-shadow: 0 0.12rem 0.32rem rgba(49, 96, 152, 0.08);
  box-shadow: 0 0.12rem 0.32rem rgba(49, 96, 152, 0.08);
}

.dynamic-code-input {
  display: block;
  width: 100%;
  height: 0.8rem;
  padding: 0 0.24rem;
  border: 1px solid rgba(160, 177, 203, 0.55);
  border-radius: 0.08rem;
  background: #fff;
  color: #313842;
  font-size: 0.3rem;
  line-height: 0.8rem;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.dynamic-code-input:focus {
  border-color: #3191fa;
}

.dynamic-code-error {
  /* 固定一行高度占位，避免显隐跳动，同时不拉远按钮 */
  margin: 0.08rem 0 0;
  min-height: 0.34rem;
  color: #cf1322;
  font-size: 0.24rem;
  line-height: 0.34rem;
  text-align: center;
  visibility: hidden;
}

.dynamic-code-error.is-show {
  visibility: visible;
}

.dynamic-code-submit {
  display: block;
  width: 100%;
  max-width: 3.6rem;
  height: 0.72rem;
  margin: 0.2rem auto 0;
  padding: 0 0.32rem;
  border: 0;
  border-radius: 0.08rem;
  background: #3191fa;
  color: #fff;
  font-size: 0.3rem;
  font-weight: 600;
  line-height: 0.72rem;
  cursor: pointer;
  -webkit-box-shadow: 0 0.08rem 0.24rem rgba(49, 145, 250, 0.16);
  box-shadow: 0 0.08rem 0.24rem rgba(49, 145, 250, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.dynamic-code-submit:disabled,
.dynamic-code-submit.loading {
  opacity: 0.65;
  cursor: default;
}

.dynamic-code-help {
  margin-top: 0.56rem;
  padding: 0.24rem 0.28rem;
  border-radius: 0.08rem;
  background: #e6f0ff;
  color: #666666;
  font-size: 0.26rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.dynamic-code-help p {
  margin: 0;
}

.dynamic-code-phone {
  color: #3388ff;
  font-weight: 400;
}
