/* 覆盖cube-ui样式 START */
a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
html,
i,
iframe,
img,
input,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  font-size: revert;
  font-weight: revert;
  vertical-align: baseline;
}
/* END */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
html {
  user-select: initial;
}

.has-href {
  cursor: pointer;
}

#app {
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-wrapper {
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}
.page-wrapper > .nested-content {
  min-height: 100vh;
}

#app > .nested-content {
  /* min-height: calc(100vh - 50px); */
}

.page-footer {
  background-color: #f2f2f2;
  color: #aaa;
}
.page-footer-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  height: 50px;
}
.page-footer .report-btn {
  position: absolute;
  right: 20px;
}
.cube-dialog-title-def {
  color: #777;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  margin-top: 15px;
}
.cube-dialog-title + .cube-dialog-content {
  margin-top: 0;
}
.cube-form-item .cube-form-label {
  position: relative;
  width: fit-content;
  padding-right: 15px;
  padding-bottom: 0;
}
.cube-form-item .cube-form-label::before {
  position: absolute;
  right: 0;
}
.cube-form-item .cube-form-label span {
  color: #555;
  font-weight: 700;
  font-size: 18px;
}
.cube-form_classic .cube-form-item .cube-validator-msg {
  line-height: 1;
  margin-top: 0;
}
.cube-btn.submit-btn {
  background-color: #09b3af;
}
.cube-form-item .cube-btn {
  position: relative;
  padding: 10px;
  text-align: left;
  color: inherit;
  background: none;
  border-radius: 2px;
}
.cube-form-item .cube-btn::after {
  border: 1px solid #ebebeb;
  position: absolute;
  content: '';
  pointer-events: none;
  display: block;
  left: 0;
  top: 0;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.cube-textarea-wrapper {
  height: 80px;
  margin-bottom: 20px;
}
.cube-textarea_active::after {
  border-color: #09b3af;
}
.cube-textarea-indicator {
  bottom: -20px;
  right: 0;
  display: block !important;
}
.cube-form_classic .cube-form-item {
  padding: 15px 0;
}
.cube-form-item + .cube-form-item {
  /* padding-top: 0; */
}
.cube-dialog-content {
  padding: 15px;
  margin-bottom: 0;
}
.cube-dialog-btns {
  display: none;
}
.cube-picker-confirm {
  color: #09b3af;
}
@media (max-width: 677px) {
  *::-webkit-scrollbar {
    width: 0;
  }
}

@media screen and (min-width: 1024px) {
  #app > .page-wrapper {
    max-width: 677px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-footer-container {
    max-width: 677px;
  }
}

/* copied from nested-content component */
.nested-content {
  /* max-width: 100%; */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.cursor-normal {
  cursor: default;
}
img {
  max-width: 100%;
}
video {
  width: 100%;
}
audio {
  width: 100%;
  height: 32px;
}
a {
  color: inherit;
}
.nested-content .content-item {
  position: relative;
}
.nested-content .content-block {
  position: relative;
  display: flex;
  min-height: 0;
}
.nested-content .content-block .block-item {
  position: relative;
  width: 0;
}
.nested-content .content-item .content-item-asset {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nested-content .content-item .content-item-asset img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.nested-content .content-item .content-item-asset .video-wrapper {
  position: relative;
  display: flex;
}
.nested-content .content-item .content-item-asset .video-with-poster {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nested-content .content-item .content-item-asset .video-back-frame {
  visibility: hidden;
}
.nested-content .content-item .content-item-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-all;
}
.nested-content .content-item .content-item-richtext {
  overflow-wrap: break-word;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  color: rgb(51, 51, 51);
  background-color: transparent;
  text-align: left;
  text-indent: 0em;
  line-height: 1.5;
  letter-spacing: 0px;
  border-radius: 0px;
  border-style: none;
  border-width: 1px;
  border-color: rgb(16, 16, 16);
  padding: 0px;
  margin: 0px;
}
.nested-content .content-item .content-item-link {
  word-break: break-all;
}
* {
  background-size: cover;
  background-position: 50%;
}

/* 列表样式 */
/* revert: 使用浏览器自带样式 */
ol,
ul {
  padding: revert;
}
li {
  list-style: revert;
}
