/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
html{
  background-color: #f1f2f3;
}
body {
  background-color: #f1f2f3;
  color: #444;
  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  /*font-family: "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
  font-size: 87.5%;*/
  font-family:auto;
}

a {
  color: #3354AA;
  text-decoration: none;
}
a:hover, a:active {
  color: #444;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;

  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  /*border-bottom: 1px solid #EEE;*/
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ------------------
 * Header
 * --------------- */

#header {
  /*padding-top: 35px;*/
  /* border-bottom: 1px solid #EEE; */
}

#logo {
  color: #333;
  font-size: 2.5em;
}
#logo img {
    max-height: 64px;
}

.description {
  margin: .5em 0 0;
  color: #999;
  font-style: italic;
}

/* Navigation menu */
#nav-menu {
  margin: 25px 0 0;
  padding: 0;
}
#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #EEE;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #444;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #F6F6F6;
}

/* Search */
#search {
  position: relative;
  margin-top: 15px;
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  direction: ltr; /* fix RTL language */
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}


/* ------------------
 * Main
 * --------------- */

.post {
  padding: 15px 10px 0px 10px;
  /*border-bottom: 1px solid #EEE;*/
  float: left;
  width: calc(20% - 20px);
}
.post-title {
  margin: .83em 0;
  font-size: 1.4em;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 55px 0 25px 0;
  padding: 0;
  text-align: center;
  width: 100%;
  float: left;
}

.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}

.page-navigator .current a {
  color: #444;
  background: #EEE;
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 3em 0;
  line-height: 1.5;
  text-align: center;
  color: #999;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }


}


@media (max-width: 991px){
  .postvideo .post .post-content .videoitem{
   width:100%!important; 
  }

  .part-player-list-element{
    width:100%!important; 
  }
  
  .part-list-container{

    max-width:unset!important;
  }
  
}


.videodatetimeformat{margin-left:calc(50% - 126px)!important;}
.post{width:calc(50% - 20px);}

.videoposter a img{height:calc(50vw - 136px - 0px)!important;}

  




@media (min-width: 768px) {

.videodatetimeformat{margin-left:239px!important;}
.post{width:calc(50% - 20px);}

  .videoposter a img{height:232px!important;}



  
}



@media (min-width: 992px) {

  .videodatetimeformat{margin-left:205px!important;}
  .post{width:calc(33.33% - 20px);}

  .videoposter a img{height:203px!important;}

  
}

@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
  
  .videodatetimeformat{margin-left:205px!important;}
  .post{width:calc(33.33% - 20px);}


  .videoposter a img{height:203px!important;}


  
}

@media (min-width: 1400px) {
  .container {
    max-width: 1100px;
  }


  .videodatetimeformat{margin-left:252px!important;}
  .post{width:calc(33.33% - 20px);}


  .videoposter a img{height:232px!important;}

  
}


@media (min-width: 1600px) {
  .container {
    max-width: 1300px;
  }

  .videodatetimeformat{margin-left:219px!important;}
  .post{width:calc(25% - 20px);}

  .videoposter a img{height:212px!important;}

  
}


@media (min-width: 1800px) {
  .container {
    max-width: 1500px;
  }

  .videodatetimeformat{margin-left:269px!important;}
  .post{width:calc(25% - 20px);}
  
}


@media (min-width: 2000px) {
  .container {
    max-width: 1700px;
  }

  .postvideo .post .videoposter .postvideoplayer video{max-width: 1600px;max-height: 100vh;}

  .videodatetimeformat{margin-left:319px!important;}
  .post{width:calc(25% - 20px);}

}


@media (min-width: 2200px) {
  .container {
    max-width: 1900px;
  }

  .postvideo .post .videoposter .postvideoplayer video{max-width: 1800px;max-height: 100vh;}

  .videodatetimeformat{margin-left:279px!important;}
  .post{width:calc(20% - 20px);}

  .videoposter a img{height:255px!important;}

}


@media (min-width: 2400px) {
  .container {
    max-width: 2100px;
  }

  .postvideo .post .videoposter .postvideoplayer video{max-width: 2000px;max-height: 100vh;}

  .videodatetimeformat{margin-left:319px!important;}
  .post{width:calc(20% - 20px);}

  .videoposter a img{height:282px!important;}


}


@media (min-width: 2600px) {
  .container {
    max-width: 2300px;
  }

  .postvideo .post .videoposter .postvideoplayer video{max-width: 2200px;max-height: 100vh;}

  .videodatetimeformat{margin-left:359px!important;}
  .post{width:calc(20% - 20px);}

}


@media (min-width: 2800px) {
  .container {
    max-width: 2500px;
  }

  .postvideo .post .videoposter .postvideoplayer video{max-width: 2400px;max-height: 100vh;}

  .videodatetimeformat{margin-left:316px!important;}
  .post{width:calc(16.66% - 20px);}

}

/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }



.videodatetime,.videodatetimelocal,.videotitlehidden,.divhidden{
  width: 0px;
  height: 0px;
  float: left;
}
.videoitem{
  width: calc(100% - 35px);
  float: left;
}

.videoposter img{
  width: calc(100% - 0px);
  border-radius: 13px;
  overflow: hidden;
}

.videoposter a{
  text-decoration: none;
}



.videodatetimeformat{
  position: absolute;
  margin-left: 399px;
  margin-top: -39px;
  float: right;
  background-color: #33333399;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 7px;
  overflow: hidden;
}

.container{
  padding: 35px 35px 0 35px;
  background-color: #fff;
  border-bottom: 1px solid #EEE;
}

#body .container{
  padding: 10px 25px 35px 25px;
  background-color: #fff;
}

.videoinfo{
  width: calc(100% - 0px);
  height: 75px;
  padding: 10px 0 0 0;
  float: left;
}

.videouserposter{
  width: 38px;
  height: 120px;
  padding: 0 12px 0 0;
  float: left;
}

.videouserposter img{
  width: 38px;
  height: 38px;
  background-color: #f1f2f3;
  border-radius: 100%;
  overflow: hidden;
}

.videotitle{
  width: calc(100% - 50px);
  color: #0f0f0f;
  font-size: 16px;
  line-height: 22px;
  float: left;
  max-height:45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.videotitle a{
  color: #0f0f0f;
}

.videousername{
  width: calc(100% - 50px);
  padding: 2px 0;
  font-size: 15px;
  float: left;
}

.videousername a{
  color: #606060;
  float: left;
}
.videousername a:hover{
  color: #0f0f0f;
}

.videodatetimeshow{
  width: calc(100% - 50px);
  padding: 0px 0;
  font-size: 14px;
  float: left;
  color: #606060;
}

.videodescription{
  background-color: #f2f2f2;
  padding: 15px 12px;
  border-radius: 13px;
  overflow: hidden;
  float: left;
  font-size: 13px;
  color: #131313;
  line-height: 1.6;
  min-width: calc(100% - 24px);
}

.postvideotitle{
  width: 100%;
  float: left;
  font-size: 20px;
  font-weight: bold;
  color: #0f0f0f;
  margin: 10px 0 13px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 62px;
  word-break: keep-all;
  overflow-wrap: break-word;
}



.post .tags{
  float: left;
  border-top: 1px solid #e3e5e7;
  width: 100%;
  margin: 20px 0 2px 0;
  border-bottom: 1px solid #e3e5e7;
  padding: 20px 0 0 0;
}


.post .tags a{
  display: block;
  height: 30px;
  line-height: 30px;
  padding: 0 15px;
  font-size: 13px;
  color: #61666d;
  margin: 0 10px 15px 0;
  background-color: #f1f2f3;
  border-radius: 15px;
  float: left;
}

.post-content{
  float: left;
  width: calc(100% - -35px);
}


.postvideouserinfo{
  width: 100%;
  float: left;
  padding: 5px 0 5px 0;
}

.postvideouserprofile{
  width: 38px;
  height: 38px;
  float: left;
  margin: 0 12px 12px 0;
  border-radius: 100%;
  background-color: #f1f2f3;
  overflow: hidden;
}
.postvideousername{
  width: 100%;
  float: left;
  height: 20px;
  line-height: 20px;
  margin: 0 0 0px 0;
  font-size: 16px;
  color: #0f0f0f;
  font-weight: bold;
}
.postvideousername a{
  color: #0f0f0f;
}

.post-meta{
  width: 0px;
  height: 0px;
  overflow: hidden;
}

.postdatetimeshow{
  width: 100%;
  float: left;
  color: #606060;
  font-size: 13px;
}
.postvideousernameandupdatetime{
  max-width: 300px;
  float: left;
}

.postvideo{
  float: left;
  width: 100%;
}

.postvideo .post{
  padding: 15px 0px 20px 0px;
}



.postvideo .post .videoitem{
  width: 100%;
}

video{
  outline: 0;
  border: 0;
}

.postvideo .post{
  min-width: calc(100% - 00px);
}



.postvideo .post .post-content{
  width: calc(100% - 0px);
}

.videoposter video{
  min-width: 100%;
  max-width: 100%;
  background-color: #000;
  max-height: 800px!important;
}

#dplayer video{
  max-height: unset!important;
}


.videoposter a img{
  width: 100%;
  height: 282px;
}



.part-player-list-element{
  width:400px;
  min-height:10px;
  float:right;
  padding: 0 0 20px 0;
}
.postvideo .post .post-content .videoitem{
  width:calc(100% - 420px);
  overflow: hidden;
}

.part-list-container {
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}
.part-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.part-list-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.part-list-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.part-list-toggle-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.part-list-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}
.part-list-switch input {
    appearance: none;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}
.part-list-switch input:checked {
    background-color: #007bff;
}
.part-list-switch input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}
.part-list-switch input:checked::before {
    transform: translateX(20px);
}
.part-list-episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.part-list-episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
}
.part-list-episode-item-index {
    background-color: #e0f0ff;
    border: 1px solid #007bff;
}
.part-list-episode-number {
    font-weight: bold;
    white-space: nowrap;         /* 强制单行 */
    overflow: hidden;            /* 超出隐藏 */
    text-overflow: ellipsis;     /* 超出部分显示... */
    word-break: keep-all;        /* 保持单词整体，避免单词中断 */
    padding: 0 10px 0 0;
}
.part-list-episode-time {
    color: #666;
    font-size: 14px;
}
.part-list-grid-view {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}
.part-list-grid-item {
    width: 40px;
    height: 40px;
    background-color: white;
    color: #666;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.part-list-grid-item-index {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.dplayer-menu,.dplayer-notice{
  width: 0px;
  height: 0px;
  opacity: 0!important;
}

.playerNewTableElement{
  /*width: 100%;
  padding: 0 0 20px 0;
  float: left;*/
  width: 0;
  height: 0;
  opacity: 0;
}


.postvideo .post .videoitem .videoposter iframe{
  width:calc(100% + 25px);
  height:100vw;
  outline:0;
  border:0;
}

#footer{
  padding: 5vh 0;
}

#dplayer video{
    transition: .3s ease width,.3s ease height;
}