/*预览*/
html,
body,
.view-bg-cont {
  min-height: 100%;
}

.view-bg-cont {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.view-center {
  display: flex;
  flex-direction: row;
  align-items: center;

}

/* Cột trái chứa khung điện thoại */
.phone-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-preview-header {
  margin-bottom: 14px;
  text-align: center;
  max-width: 403px;
}

.phone-preview-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e2329;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wrapper để định vị nút cuộn xuống bên cạnh điện thoại (1:1 với Hình 2 / PublishModal.tsx) */
.phone-device-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Khung điện thoại đen chuẩn CSS (1:1 với modal preview và Hình 2) */
.preview-phone-device {
  position: relative;
  width: 391px;
  max-width: 100%;
  height: 716px;
  background-color: #1e2329;
  border-radius: 40px;
  border: 8px solid #1e2329;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Tai thỏ / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background-color: #1e2329;
  border-radius: 0 0 8px 8px;
  z-index: 10;
}

/* Home Indicator Bar */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Header title ở đỉnh màn hình điện thoại */
.header-title {
  height: 42px;
  min-height: 42px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

/* Màn hình hiển thị iframe */
#preview-phone-screen {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
}

#preview-phone-screen::-webkit-scrollbar {
  display: none;
}

#iframe-view {
  width: 100%;
  height: 100%;
  flex: 1;
  border: none;
  display: block;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#iframe-view::-webkit-scrollbar {
  display: none;
}

/* 3-Segment Page Navigation Bar (.p-a-btn) */
.p-a-btn {
  margin-left: 14px;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease;
  z-index: 20;
  position: relative;
}

.p-a-btn .up,
.p-a-btn .down {
  width: 32px;
  background-color: #2b85ff;
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  padding: 10px 4px;
  user-select: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  writing-mode: horizontal-tb;
  box-sizing: border-box;
}

.p-a-btn .up:hover:not(.disabled),
.p-a-btn .down:hover:not(.disabled) {
  background-color: #1b75eb;
}

.p-a-btn .up:active:not(.disabled),
.p-a-btn .down:active:not(.disabled) {
  background-color: #1660c7;
}

.p-a-btn .up.disabled,
.p-a-btn .down.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.p-a-btn .up {
  border-radius: 8px 8px 0 0;
}

.p-a-btn .down {
  border-radius: 0 0 8px 8px;
}

.p-a-btn .iconfont {
  font-family: inherit !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #ffffff !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

.p-a-btn .iconfont svg {
  display: block;
  width: 14px;
  height: 14px;
  color: #ffffff;
  stroke: currentColor;
}

.p-a-btn .p-a-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
}

.p-a-btn .center {
  width: 32px;
  background-color: #1e2329;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  writing-mode: horizontal-tb;
  box-sizing: border-box;
}

.view-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fefdfe;
  border-radius: 24px;
  height: 50%;
  margin-left: 30px;
  padding: 0 7px
}

.view-page div {
  margin: 0 auto;
  background: #fefdfe;
  padding: 10px 5px;
}

.text-shu {
  writing-mode: vertical-rl;
  cursor: pointer;
}

.arrow:first-child,
.arrow:last-child {
  margin-top: 10px;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url('/portal/images/arrow-up.png');
  background-size: cover;
  background-position: center;
  padding: 0;
  cursor: pointer;
}

.arrow:last-child {
  margin-top: 0px;
  margin-bottom: 10px;
  background-image: url('/portal/images/arrow-down.png');
}

.text-shu:last-child {
  margin-bottom: 10px;
}

.view-bg-cont {
  background: url("/portal/images/preview-bg.png?v=1");
  background-size: cover;
}

.main-right {
  position: fixed;
  right: 50px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-left: 26px; */
  padding: 12px;
  background-color: #fff;
  border-radius: 5px;
}

.qcrode-main {
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.share {
  display: flex;
  flex-direction: column;
  width: 285px;

}

.share-top {
  display: flex;
  background: #fbfbfb;
  padding: 10px;
}

.share-thumb img {
  width: 95px;
  height: 95px;
}

.share-title {
  font-size: 16px;
  color: #333;
  width: 161px;
  margin: 0 auto;
  text-overflow: ellipsis;
  margin-left: 10px;
}

.share-desc {
  color: #999;
  width: 161px;
  margin: 0 auto;
  margin-left: 10px;
  margin-top: 10px;
  text-align: justify;
  font-size: 13px;
  word-break: break-all;
}

.share-price {
  font-size: 18px;
  width: 241px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.share-price .collect {
  display: inline-block;
  float: right;
  cursor: pointer;
}

.share-price .collect .collected {
  display: none;
}

.share-price .collect i {
  width: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  font-size: 16px;
  text-align: center;
}

.share-price .collect span {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
}

.main-right .qcrode-main .share-link-box {
  width: 270px;
  height: 32px;
  font-size: 0;
  border-radius: 4px;
  overflow: hidden;
}

.main-right .qcrode-main .share-link-box #share-link {
  display: inline-block;
  vertical-align: middle;
  width: 220px;
  height: 100%;
  background: #f5f5f5;
  font-size: 12px;
  color: #707070;
  line-height: 32px;
  text-align: center;
}

.main-right .qcrode-main .share-link-box .share {
  display: inline-block;
  vertical-align: middle;
  width: 50px;
  height: 100%;
  background: #ed5566;
  color: #fff;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.main-right .qcrode-main .btn-down {
  margin-top: 50px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.main-right .qcrode-main .btn-down .down-app {
  width: 130px;
  height: 45px;
  border: 1px solid #187cea;
  box-sizing: border-box;
  border-radius: 3px;
  color: #187cea;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
}

.main-right .qcrode-main .btn-down .down-app:hover {
  background: #dcecfd;
}

.main-right .qcrode-main .btn-down>div p {
  font-size: 12px;
  color: #ed5566;
  cursor: pointer;
  text-align: center;
  line-height: 20px;
}

.main-right .qcrode-main .btn-down>div img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.main-right .qcrode-main .btn-down>div span {
  display: inline-block;
  vertical-align: middle;
  line-height: 43px;
}

.main-right .qcrode-main .btn-down .btn-vip-free {
  width: 130px;
  height: 45px;
  background: #fad77b;
  border-radius: 3px;
  color: #764114;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #fad77b;
  box-sizing: border-box;
}

.main-right .qcrode-main .btn-down .btn-vip-free:hover {
  background: #fae6b1;
}

.main-right .qcrode-main .btn-down .btn-buy {
  background: #187cea;
  width: 130px;
  height: 45px;
  border-radius: 3px;
  color: white;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #187cea;
  box-sizing: border-box;
}

.main-right .qcrode-main .btn-down .btn-buy:hover {
  background: #569dec;
}

.moban-price {
  text-decoration: line-through;
}

.show-content-right-con-description {
  color: #999;
  height: 60px;
  font-size: 13px;
  margin-top: 10px;
  margin-left: 3px;
  overflow: hidden;
  padding-left: 5px;
  width: 180px;
}

#s-title {
  color: #555;
  text-shadow: 1px 1px 5px #ddd;
  font-size: 18px;
  line-height: 20px;
  width: 180px;
  overflow: hidden;
  margin-left: 3px;
  padding-left: 5px;
  margin-top: 5px;
}

.sao-title {
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.sao-title div:before,
.sao-title div:after {
  position: absolute;
  background: #ccc;
  content: "";
  height: 1px;
  top: 50%;
  width: 60px;
}

.sao-title div:before {
  left: 10px;
}

.sao-title div:after {
  right: 10px;
}

.save-btn {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  color: #999;
}

.save-btn>span:first-child {
  background-image: url('/portal/images/down_qr.png');
  background-size: cover;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 2px;
}

.hymf-btn {
  color: #764114;
  background: #fad77b;
  width: 170px;
  font-size: 14px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 3px;
  bottom: 120px;
  cursor: pointer;
  position: absolute;
}

.hymf-btn:after {
  position: absolute;
  top: 0;
  right: 0;
  content: ' ';
  width: 34px;
  height: 34px;
  background: url("/portal/images/artboard.png");
  background-position: center center;
  background-size: 100%;
}

.make-btn,
.make-btn1 {
  background: #ed5566;
  color: white;
  border-radius: 8px;
  line-height: 40px;
  height: 38px;
  width: 160px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  margin: 30px auto;
}

.make-btn a,
.make-btn a:hover,
.make-btn1 a,
.make-btn1 a:hover {
  color: white;
}

.hymf,
.mianfei {
  color: #ed5566;
}

.wechat-show .main-left,
.wechat-show .view-page,
.wechat-show .make-btn1,
.wechat-show .save-btn {
  display: none;
}

.view-page {
  color: #666;
}

.wechat-show .qcrode-main {
  padding-bottom: 30px !important;
  margin-top: 0 !important;
}

#qrcode {
  position: relative;
}

#qrcode>.qrlogo {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.disable_page {
  color: #e1e1e1;
  cursor: not-allowed;
}

.allow_page {
  color: black;
  cursor: pointer;
}