/* Market 主壳：仅顶栏 / 中间占位 / 底栏 Tab；中间区域内的业务样式已全部移除 */

.market-app {
  position: relative;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* 中间区域：只保留几何占位与滚动，不含背景/字色等 */
.market-scroll {
  position: absolute;
  top: 44px;
  bottom: 50px;
  left: 0;
  right: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.market-scroll--iframe {
  display: flex;
  flex-direction: column;
}

.market-scroll--iframe .market-info-iframe {
  flex: 1;
  min-height: 0;
  border: 0;
}

/* 顶栏 */
.market-app .bar.bar-header.headerbar {
  background-color: #000 !important;
  background-image: none !important;
  border-bottom: 1px solid #1a1a1a;
}

.bar-stable.headerbar .title {
  color: #fff !important;
  font-size: 17px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif !important;
}

/* 底部 tab：iconfont + .navbar > .tab-nav */
.market-app > .tabs.navbar.market-tabs-strip {
  height: auto !important;
  min-height: 50px;
  max-height: none;
  line-height: normal !important;
  background-color: #2c2b31;
  background-image: none;
  border-top: 1px solid rgb(55, 55, 55);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
}

.market-app > .tabs.navbar > .tab-nav.tabs {
  border: none;
  padding: 3px 0 4px;
  height: auto;
  min-height: 44px;
  box-sizing: border-box;
  background-image: none;
  background-color: #2c2b31 !important;
  font-size: 12px;
  color: #abacae;
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
}

.market-app > .tabs.navbar > .tab-nav.tabs > .tab-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 1px 3px;
  color: #abacae !important;
  text-decoration: none;
  opacity: 1;
  box-sizing: border-box;
}

.market-app > .tabs.navbar > .tab-nav.tabs > .tab-item > .market-tab-ico:before {
  display: block;
  font-family: "iconfont" !important;
  font-size: 20px;
  line-height: 1;
  margin: 0 auto 1px;
  color: inherit;
  flex-shrink: 0;
}

.market-app > .tabs.navbar > .tab-nav.tabs > .tab-item > .market-tab-ico {
  display: block;
  flex-shrink: 0;
  min-height: 22px;
}

.market-app > .tabs.navbar > .tab-nav.tabs > .tab-item.tab-item-active {
  color: rgb(236, 181, 64) !important;
}

.market-app > .tabs.navbar > .tab-nav.tabs > .tab-item > .tab-title {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 1px;
  box-sizing: border-box;
  text-align: center;
  font-size: 10px;
  line-height: 1.15;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Malgun Gothic", "Segoe UI", sans-serif !important;
}

/* ---------- 弹层（固定层，不属中间滚动条主体，保留便于弹窗可读） ---------- */
.market-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.market-modal-sheet.order-modal {
  position: relative;
  width: 100%;
  max-height: 80vh;
  background: rgb(30, 30, 40);
  border-radius: 0.1rem 0.1rem 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

.market-modal-sheet .order-modal-header {
  position: relative;
  border: none;
  background-image: none;
  background-color: #000;
  height: 40px;
  line-height: 40px;
}

.market-modal-sheet .order-modal-header .title {
  margin: 0;
  padding: 0;
  height: 40px !important;
  line-height: 40px !important;
  color: #fff;
  font-size: 14px !important;
  font-weight: 400;
  text-align: center;
}

.market-modal-sheet .order-modal-header .close {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-modal-body {
  position: relative;
  padding: 0.16rem 0.16rem 0.56rem;
  min-height: 1rem;
  color: #c8c8c8;
  font-size: 0.14rem;
  line-height: 1.5;
}

.market-modal-hint {
  margin: 0 0 0.12rem;
}

.market-modal-hint a {
  color: #ecb540;
}

.market-modal-notice {
  margin: 0 0 0.16rem;
  text-align: center;
  color: #0fa58c;
  font-size: 0.14rem;
}

.market-modal-sheet .button-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  line-height: 45px;
}

.market-modal-sheet .button-bar .button {
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  font-size: 14px;
  height: 45px;
  line-height: 45px;
}

.market-modal-sheet .button-bar .button-dark {
  background-color: rgb(38, 40, 52);
  color: #fff;
}

.market-order-modal-root .market-order-detail-modal {
  max-height: 85vh;
}

.market-order-detail-modal .order-modal-header .close {
  left: auto;
  right: 0;
}

.market-order-detail-modal .order-modal-content {
  max-height: calc(85vh - 40px - 45px);
  overflow-x: hidden;
  overflow-y: auto;
  background: rgb(30, 30, 40);
  -webkit-overflow-scrolling: touch;
}

.market-order-detail-modal .list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-order-detail-modal .list .item.item-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.16rem;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgb(38, 40, 52);
  font-size: 12px;
  color: rgb(200, 200, 200);
  background: rgb(30, 30, 40);
}

.market-order-detail-modal .input-label {
  flex: 0 0 38%;
  color: rgb(200, 200, 200);
}

.market-order-detail-modal .input-content {
  flex: 1;
  text-align: right;
  color: #fff;
  word-break: break-all;
}

.market-order-detail-modal .input-content.ploss.order-detail-ploss--red {
  color: #ff4c4c !important;
}

.market-order-detail-modal .input-content.ploss.order-detail-ploss--green {
  color: #27a15b !important;
}
