/* =后台系统界面
-------------------------------------------------------------- */
.postbox,
.stuffbox,
.wp-core-ui .button,
.wp-core-ui .button-secondary,
#wp-content-editor-container,
.customize-control .attachment-media-view .button-add-media,
#customize-controls :is(img, video) {
  border-radius: 1em;
}

.wp-core-ui .button,
.wp-core-ui .button-secondary {
  border-radius: 2em;
}

.postbox,
.stuffbox,
.postbox-header,
#wp-content-editor-container {
  border-color: #f0f0f1;
}

.avatar {
  border-radius: 50%;
}

.form-wrap,
.form-table {
  display: block;
  padding: 0.5em 1em;
  background: white;
  border-radius: 1em;
}

:is(.thyuu-card, .thyuu-card-menu, .thyuu-paginate) a {
  color: inherit;
  text-decoration: none;
}

.thyuu-card {
  display: grid;
  grid: auto / repeat(auto-fill, minmax(min(30em, 100%), 1fr));
  gap: 1em;
  margin: 1em 0;
  width: 100%;
}

.thyuu-card.column {
  grid: auto / auto;
}

.thyuu-card li {
  display: flex;
  justify-content: space-between;
  align-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1em;
  gap: 1em;
  margin: 0;
  background-color: #fff;
  border-radius: 1em;
  overflow: hidden;
}

.thyuu-card.column li > * {
  flex: 1;
  min-width: min(20em, 100%);
}

.thyuu-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1em 0.5em;
  width: 100%;
}

.thyuu-card header > *:last-child {
  margin: 0 0 0 auto;
  font-size: 12px;
  opacity: 0.3;
}

.thyuu-card article {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 0.5em;
}

.thyuu-card article > * {
  margin: 0;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
  overflow: hidden;
}

.thyuu-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  width: 100%;
}

.thyuu-card footer time {
  flex: 1;
  font-size: 12px;
  opacity: 0.5;
  margin: 0 auto 0 0;
}

.thyuu-card .button {
  --btn-color: 200deg 60% 40%;
  display: flex;
  gap: 0.5em;
  color: hsl(var(--btn-color));
  border: 0;
  font-size: 12px;
  height: 2.5em;
  min-height: 2.5em;
  line-height: 1.5em;
  padding: 0.5em 1em;
  margin: 0;
  transition: 0.3s;
}

.thyuu-card .button:hover {
  color: white;
  background: hsl(var(--btn-color, 200deg 60% 40%));
}

.thyuu-card .button.im {
  --btn-color: 0deg 60% 40%;
}

.thyuu-card-menu {
  clear: both;
  position: sticky;
  display: flex;
  color: white;
  width: fit-content;
  margin: auto;
  bottom: 2em;
  border-radius: 2em;
  justify-content: space-between;
  padding: 1em 2em;
  gap: 1em 2em;
  flex-wrap: wrap;
  background-color: hsl(0deg 0% 0% / 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5em 1em hsl(0deg 0% 0% / 0.3);
  z-index: 2;
  overflow: hidden;
}

.thyuu-paginate {
  display: flex;
  align-items: center;
  align-self: center;
  color: hsl(var(--thyuu--color-font) / 0.7);
  font-size: var(--thyuu--size-medium);
  font-variant-numeric: tabular-nums;
  width: fit-content;
  line-height: 2;
  gap: 0.5em;
  box-shadow: var(--s-box-shadow);
  margin: 0 auto;
}

.thyuu-paginate .page-numbers:where(.next, .prev) {
  order: -1;
  flex: none;
  background: 0;
}

.thyuu-paginate .page-numbers.dots {
  font-family: monospace;
  opacity: 0.5;
}

.thyuu-paginate :is(.post-page-numbers, .page-numbers):not(.next, .prev, .dots) {
  text-align: center;
  min-width: 2em;
  padding: 0.25em;
  outline: thin solid #0000;
  outline-offset: 2em;
  border-radius: 2em;
  background: var(--thyuu--color-back-font);
  white-space: nowrap;
  transition: 0.5s;
}

.thyuu-paginate :is(.post-page-numbers, .page-numbers):not(.next, .prev, .dots):hover {
  outline-color: hsl(var(--thyuu-subs-color) / 0.8);
  outline-offset: 0;
  background: 0;
}

.thyuu-paginate :is(.post-page-numbers, .page-numbers).current {
  color: hsl(var(--thyuu-main-color) / 0.8);
  background: hsl(var(--thyuu-subs-color) / 0.2);
  cursor: no-drop;
}

.thyuu-item-status {
  display: inline-block;
  font-style: normal;
  color: hsl(var(--status-color, 0deg 0% 50%) / 0.6);
  background: hsl(var(--status-color, 0deg 0% 50%) / 0.1);
  padding: 0.5em;
  border-radius: 1em;
  line-height: 1;
}

.thyuu-item-status.thyuu-icon-cancel {
  --status-color: 0deg 100% 50%;
}

.thyuu-item-status.thyuu-icon-done {
  --status-color: 120deg 100% 25%;
}

.thyuu-item-status.thyuu-icon-progress {
  --status-color: 200deg 60% 50%;
}

.thyuu-user-form h1 {
  padding-top: 2em;
}

.thyuu-user-form h3:before {
  margin: 0 0.5em 0 0;
  font-weight: 400;
}

.thyuu-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.thyuu-post-meta h5 {
  flex: 100%;
  margin: 1em 0 0;
}

.thyuu-post-meta > div {
  display: flex;
  flex-flow: column;
  gap: 0.5em;
  flex: min(10em, 50% - 0.5em);
}

.thyuu-post-meta label {
  display: flex;
  gap: 0.5em;
}

.thyuu-post-meta :is(input, select) {
  width: 100%;
  height: 2.5em;
  box-sizing: border-box;
}

.edit-post-layout__metaboxes {
  border-top: 1px solid #ddd;
}

.edit-post-meta-boxes-area .postbox-header {
  border: 0;
}

.edit-post-meta-boxes-area #poststuff h2.hndle,
.edit-post-meta-boxes-area .postbox > .inside {
  padding-inline: 1em;
}

.thyuu-embed-block {
  display: flex;
  flex-flow: column;
  font-size: 12px;
  gap: 1em;
  padding: 1.5em;
  background-color: #fff;
  color: var(--wp-components-color-foreground, #1e1e1e);
  border-radius: var(--thyuu--size-radius);
  outline: thin solid var(--thyuu--color-back-font);
}

.thyuu-embed-refer {
  font-size: 1em;
  padding: 0;
  background: 0;
  border-radius: 0;
}

.thyuu-embed-refer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0 1em;
  border-bottom: thin solid var(--thyuu--color-back-font);
}

.thyuu-embed-refer summary::-webkit-details-marker {
  display: none;
}

.thyuu-embed-refer summary :is(i, h5) {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  gap: 0.5em;
  margin: 0;
}

.thyuu-embed-refer summary :is(i, h5):before {
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.5em;
  line-height: 1;
}

.thyuu-embed-block details h6 {
  margin: 1em 0;
  font-size: 1em;
}

.thyuu-embed-block details ul {
  padding: 0.5em 2em;
  color: hsl(0deg 0% 0% / 50%);
  background: var(--thyuu--color-back-font);
  border-radius: 1em;
  cursor: auto;
}

.thyuu-embed-block details ul i {
  color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
}

.thyuu-embed-block :is(input[type='url'], select) {
  color: var(--wp-components-color-foreground, #1e1e1e);
  border: 0;
  border-radius: 1.5em;
  background-color: var(--thyuu--color-back-font);
  width: auto;
  flex: 0;
  font-size: inherit;
  min-height: 40px;
}

.thyuu-embed-block input[type='url'] {
  flex: auto;
  min-width: 30ch;
}

.thyuu-embed-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.thyuu-embed-block .thyuu-upbtn {
  display: flex;
  flex-direction: column;
  font: inherit;
  flex: 1;
  aspect-ratio: 1;
  height: auto;
  min-height: 6em;
  min-width: 6em;
  outline: thin solid var(--thyuu--color-back-font);
  color: hsl(var(--thyuu--color-font) / 0.7);
  background: var(--thyuu--color-back-font);
  border-radius: 1em;
  overflow: hidden;
  padding: 0;
  gap: 1em;
  line-height: 1;
  user-select: text;
  transition: box-shadow 0.1s linear;
  align-items: center;
  -webkit-appearance: none;
  border: 0;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
  width: unset;
  justify-content: center;
  accent-color: hsl(var(--thyuu-main-color) / 0.8);
  box-shadow: var(--s-box-shadow);
  vertical-align: middle;
}

.thyuu-embed-block .thyuu-upbtn:before {
  padding: 1em;
  background: var(--thyuu--color-back-font);
  border-radius: 50%;
  z-index: 2;
}

.thyuu-embed-block .thyuu-upbtn.has-obj:before {
  position: absolute;
  color: white;
  outline: thin solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(1em) saturate(2);
}

.thyuu-embed-block .media-obj {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: 0.3s;
}

.thyuu-embed-block .thyuu-upbtn:hover .media-obj {
  filter: brightness(0.5);
  scale: 1.05;
}

.thyuu-embed-block thyuu-embed {
  width: 100%;
  background: var(--thyuu--color-back-font);
  color: inherit;
}

/* =主题设置界面
-------------------------------------------------------------- */
.thyuu-admin-menu-iframe {
  width: calc(100% + 20px);
  width: -webkit-fill-available;
  width: -moz-available;
  height: calc(100vh - var(--wp-admin--admin-bar--height)) !important;
  position: absolute;
  left: 0;
}

#menu-appearance .wp-menu-image:before {
  content: '\e603';
  font-family: thyuu-iconfont;
}

.thyuu-customize-help {
  border-radius: 1em;
  font-size: 0.85em;
  padding: 0.2em 0.3em;
  text-decoration: none;
  line-height: 1;
  border: thin dotted;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: 0.5s;
}

.thyuu-customize-help:before {
  content: '\e655';
  font-family: thyuu-iconfont;
  font-size: 1.5em;
  vertical-align: middle;
  margin: 0 0.25em 0 0;
}

.thyuu-customize-help:not(:hover) {
  color: inherit;
}

.preview-mobile .wp-full-overlay-main {
  height: 80%;
  border-radius: 1em;
  overflow: hidden;
  width: min(100%, 400px);
  margin-left: max(-50%, -200px);
}

button.accordion-trigger:before {
  content: '\e61d';
  margin: 0 0.5em 0 0;
}

button[aria-controls='title_tagline-content']:before {
  content: '\e64f';
}

button[aria-controls='colors-content']:before {
  content: '\e640';
}

button[aria-controls='assets_mode-content']:before {
  content: '\e635';
}

button[aria-controls='home_pages-content']:before {
  content: '\e612';
}

button[aria-controls='nav_menus-content']:before {
  content: '\e652';
}

button[aria-controls='header_image-content']:before {
  content: '\e694';
}

button[aria-controls='custom_css-content']:before {
  content: '\e698';
}

#customize-controls .description {
  line-height: 1.5;
}

#customize-controls .description ol {
  list-style: decimal inside;
  margin: 1em 0;
  font-size: 12px;
  opacity: 0.7;
}

#customize-control-limited_start_time,
#customize-control-limited_end_time {
  width: 50%;
  float: left;
  clear: none;
  border-radius: 1em 0 0 1em;
}

#customize-control-limited_end_time {
  border-radius: 0 1em 1em 0;
}

#customize-controls
  :is(
    input[type='color'],
    input[type='date'],
    input[type='datetime-local'],
    input[type='datetime'],
    input[type='email'],
    input[type='month'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    input[type='text'],
    input[type='time'],
    input[type='url'],
    input[type='week'],
    select,
    textarea
  ) {
  font-size: 12px;
  outline: none !important;
  box-shadow: none !important;
  transition: 0.5s;
  color: #2271b1;
  border-radius: 0;
  border: 0;
  border-bottom: 1px dotted #cccccc;
  background-color: #fff;
  padding: 0;
  text-overflow: ellipsis;
}

.customize-pane-child > li.customize-control:not(.customize-control-nav_menu_item, .customize-control-nav_menu) {
  font-size: 12px;
  padding: 1em;
  margin-block: 0.5em;
  border-radius: 1em;
  box-sizing: border-box;
  background: white;
}

.wp-customizer .menu-item-settings {
  padding: 1em;
  margin-block: 0.5em;
  background: white;
  border: 0;
  border-radius: 1em;
}

.wp-customizer .menu-item-handle {
  border: 0;
  border-radius: 1em;
  margin-block: 0.25em;
}

.wp-customizer .control-section-nav_menu .menu-location-settings {
  border: 0;
  margin: 0;
  padding: 0;
}

.button.wp-color-result {
  overflow: hidden;
}

/* =Editor
----------------------------------------------- */
.editor-styles-wrapper ol,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol li,
.editor-styles-wrapper ul li {
  list-style-type: revert;
}

.wp-block-image.is-style-rounded img {
  border-radius: var(--thyuu--size-radius);
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
}

caption,
th,
td {
  text-align: left;
}

code {
  color: hsl(var(--thyuu-main-color));
  text-decoration: underline dotted 0.1ex;
  text-decoration-skip-ink: none;
  text-underline-offset: 1ex;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nvbe-table-wrapper {
  max-height: max(var(--thyuu--size-card-normal), 80vh - var(--thyuu--size-edgetb));
  font-size: max(var(--thyuu--size-small), 0.75em);
  border: var(--thyuu--border) !important;
  border-radius: var(--thyuu--size-radius);
  background: var(--thyuu--color-back-white) !important;
  white-space: pre;
  overflow: auto;
  overflow-wrap: break-word;
  pointer-events: auto;
  position: relative;
  -webkit-user-select: text;
  user-select: text;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  margin-top: 28px;
  max-width: 840px;
}

.nvbe-table-wrapper table {
  border-collapse: collapse;
  width: 100%;
}

.nvbe-table-wrapper table :is(td, th) {
  padding-inline: 1em;
  border: var(--thyuu--border) !important;
  border-width: thin thin 0 0;
  padding: 0.5em !important;
}

.nvbe-table-wrapper table td {
  word-break: break-word;
}

.nvbe-table-wrapper table td,
.nvbe-table-wrapper table th {
  text-align: left;
}

.nvbe-table-wrapper table thead {
  border: 0;
  font-size: 1.1em;
}

.nvbe-table-wrapper :is(thead th, tfoot td) {
  position: sticky;
  top: 0;
  border: 0;
  background: linear-gradient(hsl(var(--thyuu-main-color) / 5%) 0 0) var(--thyuu--color-back-white);
}

.nvbe-table-wrapper :is(td, th):last-child {
  border-right: 0 !important;
}

.wp-block-table {
  max-height: max(var(--thyuu--size-card-normal), 80vh - var(--thyuu--size-edgetb));
  font-size: max(var(--thyuu--size-medium), 0.75em);
  border: var(--thyuu--border) !important;
  border-radius: var(--thyuu--size-radius);
  background: var(--thyuu--color-back-white) !important;
  white-space: pre;
  overflow: auto;
}

.wp-block-table :is(td, th) {
  padding-inline: 1em;
  border: var(--thyuu--border);
  border-width: thin thin 0 0;
}

.wp-block-table :is(td, th):last-child {
  border-right: 0;
}

.wp-block-table :is(thead, tfoot) {
  border: 0;
  font-size: 1.1em;
}

.wp-block-table :is(thead th, tfoot td) {
  position: sticky;
  top: 0;
  border: 0;
  background: linear-gradient(hsl(var(--thyuu-main-color) / 5%) 0 0) var(--thyuu--color-back-white);
  z-index: 2;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--thyuu--color-back-font);
}

.wp-block-table tr:hover {
  background: hsl(var(--thyuu-subs-color) / 0.05) !important;
  transition: background 0.3s;
}

.wp-block-table figcaption {
  padding: 0.5em 1em;
  border-top: var(--thyuu--border);
  border-radius: 0;
  background: var(--thyuu--color-back-font);
  position: sticky;
  left: 0;
  white-space: normal;
}

.wp-caption img[class*='wp-image-'] {
  display: block;
  margin: 1.2% auto 0;
  max-width: 98%;
}

.wp-caption-text {
  text-align: center;
}

.wp-block-gallery .blocks-gallery-item figcaption a {
  color: #fff;
}

i {
  font-style: normal;
}

.thyuu-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(80vh - var(--thyuu--size-edgetb));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  color: #fff;
}

.thyuu-video:before {
  content: '\e8af';
  position: absolute;
  font-size: 6em;
  line-height: 1;
  opacity: 0.15;
  font-family: thyuu-iconfont;
}

.thyuu-video iframe,
.thyuu-video video {
  height: 100%;
  border-radius: inherit;
  align-self: flex-start;
  z-index: 2;
  width: 100%;
  transition: 0.5s 0.5s;
  max-width: 100%;
}

thyuu-embed {
  border-radius: var(--thyuu--size-radius);
  outline: thin solid var(--thyuu--color-back-font);
}

/* =thyuu-block
----------------------------------------------- */
iframe {
  border: none;
}

.thyuu-embed-setin {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 1em;
  padding: 1.5em;
  background-color: #fff;
  color: #1e1e1e;
  border-radius: var(--thyuu--size-radius);
  outline: thin solid var(--thyuu--color-back-font);
  align-items: center;
  line-height: 1;
  font-family: thyuu-iconfont;
  max-width: 840px;
}

.thyuu-embed-edite-head {
  font-size: 1em;
  padding: 0 0 0.5em;
  background: 0;
  flex: 100%;
}

.thyuu-embed-edite-head summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.thyuu-embed-edite-head summary::-webkit-details-marker {
  display: none;
}

.thyuu-embed-edite-head summary :is(i, h5) {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  gap: 0.5em;
  margin: 0;
}

.thyuu-embed-edite-head summary :is(i, h5):before {
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.5em;
  line-height: 1;
}

.thyuu-embed-setin details h6 {
  margin: 2em 0 1em;
  font-size: 1em;
}

.thyuu-embed-setin details ul {
  padding: 0.5em 2em;
  color: hsl(0deg 0% 0% / 50%);
  background: var(--thyuu--color-back-font);
  border-radius: 1em;
  cursor: auto;
  line-height: 24px;
}

.thyuu-embed-setin details ul i {
  color: #3858e9;
}

.thyuu-embed-setin thyuu-embed {
  width: 100%;
  background: var(--thyuu--color-back-font);
  color: inherit;
}

.diy-button {
  background: var(--primary-opacity-2);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  font-size: 14px;
}
.nv-editor .n-form-item--left-labelled .n-form-item-blank{
  justify-content: flex-end;
}
.nv-editor .n-form-item--left-labelled .n-form-item-label{
  text-align: left;
}
.nv-editor .n-form:has(.n-form-item--left-labelled) .description{
  margin-left: 0 !important;
}
