* {
  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;
}

.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 {
  padding: 1rem 0.28rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.18rem;
}

.state-box p {
  margin: 0 0 0.1rem;
  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;
}

/* 进群反馈悬浮按钮（参考 index-301.html） */
.feedback-fab {
  position: fixed;
  right: 0.24rem;
  bottom: 1.28rem;
  z-index: 15;
  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: #fff;
}

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

.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-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;
}
