/* 按钮 */
.btn {
    height: 38px;
    line-height: 38px;
    font-size: 1.4rem;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    color: #333;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #ffffff;
    color: #333;
}
.btn:active {
    background-color: #f5f5f5;
    color: #333;
}
.btn.primary {
    background-color: #3db973;
    border-color: #3db973;
    color: #fff;
}
.btn.primary:hover {
    background-color: #48da87;
}
.btn.mini {
    height: 30px;
    padding: 0 20px;
    line-height: 30px;
}
.btn.link {
    border: none;
    padding: 0 5px;
    background-color: transparent;
    color: #0098de;
    height: auto;
    line-height: normal;
}
.btn.link.bordered {
    border: 1px solid #999;
    color: #666;
    padding: 3px 8px;
    background-color: #fff;
    text-shadow: 0 1px #fff;
}
.btn.link.bordered:hover {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
}
.btn.link.bordered:active {
    box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.5);
}
.btn-group {
    display: flex;
    flex-direction: column;
}
.btn-group .btn {
    margin-top: 5px;
}
.btn-group .btn:first-child {
    margin-top: 0;
}

/* 提示 */
.toast-container {
    position: fixed;
    width: 300px;
    top: 40px;
    left: 50%;
    transform: translateX(-150px);
    display: flex;
    flex-direction: column;
    flex-flow: column-reverse;
    align-items: center;
    justify-content: center;
    z-index: 2048;
}
.toast-container .toast-message {
    font-size: 1.6rem;
    transform-origin: right;
    background-color: #474b46;
    color: #fff;
    padding: 15px 30px;
    margin-bottom: 5px;
    border-radius: 3px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
}
.toast-container .toast-message:nth-last-child(1) {
    opacity: 1;
    animation-duration: 0.2s;
    animation-name: slideLeft;
    animation-fill-mode: forwards;
}
.toast-container .toast-message:nth-last-child(2) {
    opacity: 0.4;
}
.toast-container .toast-message:nth-last-child(3) {
    opacity: 0.3;
}
.toast-container .toast-message:nth-last-child(4) {
    opacity: 0.2;
}
.toast-container .toast-message:nth-last-child(5) {
    opacity: 0.1;
}
.toast-container .toast-message:nth-last-child(n + 5) {
    opacity: 0.1;
}
@keyframes slideLeft {
    0% {
        transform: translate3d(0, -300px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* 弹层 */
.modal {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow-y: auto;
    z-index: 1024;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.3);
}
.modal.transparent {
    background-color: transparent;
}
.modal .modal-container {
    margin: 0;
}
.modal.small-screen .modal-container {
    width: 100vw;
}
.modal .modal-layer {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin: 60px auto 200px;
    min-height: 250px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease 0s;
}
.modal .modal-layer.small {
    width: 500px;
}
.modal .modal-layer.medium {
    width: 800px;
}
.modal .modal-layer.center {
    margin: 0 auto;
    margin-top: 50%;
    border-radius: 5px;
}
.modal .modal-title {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 10px 0 10px 40px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
    margin: 0;
}
.modal .modal-title .modal-close {
    float: right;
    padding: 5px;
    margin: 0 5px;
    color: #999999;
}
.modal .modal-body {
    padding: 10px;
    flex: 1;
}
.modal .modal-bottom {
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.modal .modal-bottom .btn-group {
    margin: 5px;
}
.modal .modal-bottom .modal-dismiss {
    display: none;
}
.modal .modal-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s;
}
.modal .modal-loading .loader-container span {
    background: #fff;
}
.modal.alert .modal-layer {
    width: 300px;
    min-height: 150px;
    border-radius: 5px;
}
.modal.alert .modal-layer .modal-body {
    color: #666;
    font-size: 1.5rem;
    padding: 20px 20px 15px 20px;
}
.modal.alert .modal-bottom .modal-confirm,
.modal.alert .modal-bottom .modal-cancel {
    display: none;
}
.modal.alert .modal-bottom .modal-dismiss {
    display: block;
    font-size: 1.5rem;
}
.modal.confirm .modal-layer {
    width: 420px;
    min-height: 200px;
    border-radius: 10px;
}
.modal.confirm .modal-layer .modal-body {
    color: #333333;
    font-size: 1.6rem;
    padding: 20px 20px 15px 20px;
}

.modal-in .modal {
    opacity: 1;
}
.modal-in .modal.fade-in .modal-layer {
    transform: translateY(0);
    opacity: 1;
}
.modal-in .modal.fade-in .modal-layer.center {
    transform: translateY(-50%);
}
.modal-in .modal.fade-out .modal-layer.center {
    transform: translateY(-100%);
    opacity: 0;
}
.modal.fade-in .modal-loading {
    opacity: 0;
    z-index: -1;
}

#zoomple_previewholder {
    left: 0;
    top: 0;
    z-index: 99;
    position: absolute;
    display: none;
    width: 300px;
    height: 300px;
    background-color: transparent;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
#zoomple_previewholder .image_wrap {
    left: 0;
    top: 0;
    z-index: 99;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3);
}
#zoomple_previewholder.rounded .image_wrap {
    border: 0 solid #454c50;
    border-radius: 50%;
    background-clip: padding-box;
}
#zoomple_previewholder .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-clip: padding-box;
    z-index: 1;
}
#zoomple_previewholder.rounded .overlay {
    border-radius: 50%;
    box-shadow: inset 0 10px 10px 0 #fff;
}
#zoomple_previewholder .cursor {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 101;
    background: url(../images/cursor.png) 0 0 no-repeat;
}
#zoomple_previewholder.zp-visible {
    display: block;
}
#zoomple_previewholder img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}
#zoomple_previewholder .caption-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 101;
    width: 100%;
    margin: 0;
    padding: 0;
    font: 11px Verdana, sans-serif;
    color: #090808;
    border-radius: 0 0 7px 7px;
}
#zoomple_previewholder .caption-wrap .caption {
    padding: 5px 10px;
    font: 11px Verdana, sans-serif;
    border-radius: 0 0 7px 7px;
    background: #fff;
}
#zoomple_image_overlay {
    background: red;
    position: absolute;
    z-index: 100;
    filter: alpha(opacity=1);
    opacity: 0.01;
}
#zoomple_image_overlay.preview {
    background: rgb(0, 0, 0);
    filter: alpha(opacity=20);
    opacity: 0.2;
}
#zoomple_image_overlay .eyelet {
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 0;
}
.marquee {
    filter: alpha(opacity=100);
}

/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
    --pswp-bg: #000;
    --pswp-placeholder-bg: #222;

    --pswp-root-z-index: 100000;

    --pswp-preloader-color: rgba(79, 79, 79, 0.4);
    --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);

    /* defined via js:
    --pswp-transition-duration: 333ms; */

    --pswp-icon-color: #fff;
    --pswp-icon-color-secondary: #4f4f4f;
    --pswp-icon-stroke-color: #4f4f4f;
    --pswp-icon-stroke-width: 2px;

    --pswp-error-text-color: var(--pswp-icon-color);
}

/*
      Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
  */

.pswp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--pswp-root-z-index);
    display: none;
    touch-action: none;
    outline: 0;
    opacity: 0.003;
    contain: layout style size;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
    (it may be focused initially) */
.pswp:focus {
    outline: 0;
}

.pswp * {
    box-sizing: border-box;
}

.pswp img {
    max-width: none;
}

.pswp--open {
    display: block;
}

.pswp,
.pswp__bg {
    transform: translateZ(0);
    will-change: opacity;
}

.pswp__bg {
    opacity: 0.005;
    background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
    overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
    /*width: auto;
    height: auto;*/
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
    cursor: move;
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
    cursor: zoom-out;
}

/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pswp__item {
    /* z-index for fade transition */
    z-index: 1;
    overflow: hidden;
}

.pswp__hidden {
    display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
    pointer-events: none;
}
.pswp__content > * {
    pointer-events: auto;
}

/*
  
    PhotoSwipe UI
  
  */

/*
      Error message appears when image is not loaded
      (JS option errorMsg controls markup)
  */
.pswp__error-msg-container {
    display: grid;
}
.pswp__error-msg {
    margin: auto;
    font-size: 1em;
    line-height: 1;
    color: var(--pswp-error-text-color);
}

/*
  class pswp__hide-on-close is applied to elements that
  should hide (for example fade out) when PhotoSwipe is closed
  and show (for example fade in) when PhotoSwipe is opened
   */
.pswp .pswp__hide-on-close {
    opacity: 0.005;
    will-change: opacity;
    transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
    z-index: 10; /* always overlap slide content */
    pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
    opacity: 1;
    pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
    position: relative;
    display: block;
    width: 50px;
    height: 60px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 0.85;
    appearance: none;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
    transition: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.pswp__button:disabled {
    opacity: 0.3;
    cursor: auto;
}

.pswp__icn {
    fill: var(--pswp-icon-color);
    color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
    position: absolute;
    top: 14px;
    left: 9px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    pointer-events: none;
}

.pswp__icn-shadow {
    stroke: var(--pswp-icon-stroke-color);
    stroke-width: var(--pswp-icon-stroke-width);
    fill: none;
}

.pswp__icn:focus {
    outline: 0;
}

/*
      div element that matches size of large image,
      large image loads on top of it,
      used when msrc is not provided
  */
div.pswp__img--placeholder,
.pswp__img--with-bg {
    background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    z-index: 10;

    /* allow events to pass through top bar itself */
    pointer-events: none !important;
}
.pswp__top-bar > * {
    pointer-events: auto;
    /* this makes transition significantly more smooth,
       even though inner elements are not animated */
    will-change: opacity;
}

/*
  
    Close button
  
  */
.pswp__button--close {
    margin-right: 6px;
}

/*
  
    Arrow buttons
  
  */
.pswp__button--arrow {
    position: absolute;
    top: 0;
    width: 75px;
    height: 100px;
    top: 50%;
    margin-top: -50px;
}

.pswp__button--arrow:disabled {
    display: none;
    cursor: default;
}

.pswp__button--arrow .pswp__icn {
    top: 50%;
    margin-top: -30px;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
    display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
    visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
    visibility: visible;
}

.pswp__button--arrow--prev {
    right: auto;
    left: 0px;
}

.pswp__button--arrow--next {
    right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
    left: auto;
    right: 14px;
    /* flip horizontally */
    transform: scale(-1, 1);
}

/*
  
    Zoom button
  
  */
.pswp__button--zoom {
    display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
    display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
    display: none;
}

/*
  
    Loading indicator
  
  */
.pswp__preloader {
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 60px;
    margin-right: auto;
}

.pswp__preloader .pswp__icn {
    opacity: 0;
    transition: opacity 0.2s linear;
    animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
    opacity: 0.85;
}

@keyframes pswp-clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*
  
    "1 of 10" counter
  
  */
.pswp__counter {
    height: 30px;
    margin-top: 15px;
    margin-inline-start: 20px;
    font-size: 14px;
    line-height: 30px;
    color: var(--pswp-icon-color);
    text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
    opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
    display: none;
}
