:root {
  --vt-color-primary: #007aff;
  --vt-color-success: #4cd964;
  --vt-color-warning: #f0ad4e;
  --vt-color-error: #dd524d;
  --vt-font-size-sm: 13px;
  --vt-font-size-base:15px;
  --vt-font-size-lg: 22px;
  --vt-text-color: #333;
  --vt-text-color-inverse: #fff;
  --vt-text-color-grey: #999;
  --vt-text-color-placeholder: #8c8c8c;
  --vt-text-color-disable: #e2e4eb;
  --vt-bg-color: #f3f3f3;
  --vt-bg-color-grey: #f1f1f1;
  --vt-bg-color-hover: #f2f2f2;
  --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
  --vt-bg-color-card: #ffffff;
  --vt-border-radius: 8px;
  --vt-border-color: #e5ebeb;
  --vt-shadow-color: #d1d2d3;
}

body.dark-mode {
  --vt-text-color: #b9b9b9;
  --vt-text-color-inverse: #333;
  --vt-text-color-grey: #999;
  --vt-text-color-placeholder: #808080;
  --vt-text-color-disable: #404244;
  --vt-bg-color: #2e2e2e;
  --vt-bg-color-grey: #5a5a5a;
  --vt-bg-color-hover: #979797;
  --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
  --vt-bg-color-card: #272727;
  --vt-border-color: #303030;
  --vt-shadow-color: #181818;
}

body.dark-mode img {
  filter: brightness(70%);
}
body.dark-mode .logo {
  filter: brightness(200%);
}

@media (prefers-color-scheme: dark) {
  body.dark-mode-auto {
    --vt-text-color: #b9b9b9;
    --vt-text-color-inverse: #333;
    --vt-text-color-grey: #999;
    --vt-text-color-placeholder: #808080;
    --vt-text-color-disable: #404244;
    --vt-bg-color: #2e2e2e;
    --vt-bg-color-grey: #5a5a5a;
    --vt-bg-color-hover: #979797;
    --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
    --vt-bg-color-card: #272727;
    --vt-border-color: #303030;
    --vt-shadow-color: #181818;
  }
  body.dark-mode-auto img {
    filter: brightness(70%);
  }
  body.dark-mode-auto .logo {
    filter: brightness(200%);
  }
}



/**
 * botcan样式
 */
.wrap.ai {}

.wrap.ai label{ margin-right: 10px;  }

.wrap.ai input[type="radio"]{
  position: relative;
  top: -1px;
}


/* 页面模板  */
.aibot-container {
  margin: 8px;
  padding: 15px;
  box-sizing: border-box;
  background-color: var(--vt-bg-color-card);
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
  border-radius: var(--vt-border-radius);
  font-size: 16px;
  font-size: var(--vt-font-size-base);
}

.aibot-container .article-title {
  line-height: 28px;
  font-size: 18px;
  font-size: var(--vt-font-size-lg);
  font-weight: 600;
  color: var(--vt-text-color);
}

.aibot-container .edit-button a{
  font-size: 13px;
  color: var(--vt-text-color-grey);
}

@media only screen and (min-width: 900px){
  .aibot-container{
    margin: 20px auto;
    width: 1200px;
  }
}


/* aibot-page  */
.aibot-title{
  font-size: 18px;
  margin:  20px 0 30px 0;
}
.aibot-item-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-right: -10px;
}
.aibot-item-list .aibot-item{
  box-sizing: border-box;
  /*outline: 1px solid green;*/
  padding: 10px 15px;
  margin-bottom: 10px;
  background-color: var(--vt-bg-color-card);
  box-shadow: 0 0 3px 0 var(--vt-shadow-color);
  border-radius: var(--vt-border-radius);
  /*border: 1px solid var(--vt-border-color);*/
  width: calc(50% - 10px);
  margin-right: 10px;
  user-select: none;
  cursor: pointer;
}
.aibot-item-list .aibot-item:hover{
  box-shadow: 0 0 5px var(--vt-border-color);
}
.aibot-item-list .aibot-item .item-header{
  display: flex;
  align-items: center;
}
.aibot-item-list .aibot-item .item-header img{
  width: 30px;
  height: 30px;
  margin-right: 8px;
}
.aibot-item-list .aibot-item .item-description{
  font-size: var(--vt-font-size-sm);
  line-height: 20px;
  color: var(--vt-text-color-grey);
  display: flex;
  align-items: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media only screen and (min-width: 900px){
  .aibot-item-list .aibot-item{
    width: calc(25% - 10px);
    margin-right: 10px;
  }
}



/* aibot-dialog */
.aibot-input{
  width: 100%;
  height: 55px;
  position: relative;
  margin-top: 30px;
}
.aibot-input img.aibot-chat{
  /*display: none;*/
  width: 22px;
  height: 22px;
  position: absolute;
  top: 17px;
  left: 10px;
}
.aibot-input input[type="text"]{
  box-sizing: border-box;
  padding: 2px 10px;
  width: 100%;
  height: 100%;
  border: 1px solid #777;
  border-radius: 5px;
  text-indent: 27px;
}
.aibot-input input[type="text"]::placeholder{ font-size: 16px; }
.aibot-generate-button{
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--vt-color-primary);
  border:1px solid var(--vt-color-primary);
  border-radius: 50%;
  color: var(--vt-text-color-inverse);
  cursor: pointer;
  position: absolute;
  right: 7px;
  top: 7px;
}
.aibot-generate-button:hover{ filter: brightness(90%); }
.aibot-generate-button[disabled],
.aibot-generate-button[disabled="disabled"]{
  background-color: #6c757d;
  border: 1px solid #6c757d;
  filter: brightness(100%);
  cursor: not-allowed;
}
.aibot-generate-button svg{ width: 20px; height: 20px; }
.aibot-generate-button svg path{ fill: #fff; }
.aibot-generate-button .start{ position: relative; margin: 0 0 0 -2px; }
.aibot-generate-button .stop{ display: none; }
.aibot-generate-button[status="loading"] .stop{ display: block; }
.aibot-generate-button[status="loading"] .start{ display: none; }

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

.dark-mode .aibot-generate-button button svg path{
  fill: var(--vt-text-color-inverse);
}


.aibot-textarea-wrapper{
  width: 100%;
  padding: 0px 0;
  margin: 20px 0 0 0;
  line-height: 25px;
}
.aibot-textarea-wrapper hr{
  margin: 20px 0;
  border: none;
  height: 1px;
  background-color: var(--vt-border-color);
}

.aibot-textarea-wrapper h1,
.aibot-textarea-wrapper h2,
.aibot-textarea-wrapper h3,
.aibot-textarea-wrapper h4,
.aibot-textarea-wrapper h5{
  margin: 30px 0 15px 0;
}

.aibot-textarea-wrapper p{
  margin: 5px 0;
}

.aibot-textarea-wrapper ol, 
.aibot-textarea-wrapper ul {
  list-style: inherit;
  padding: 0 0 0 20px;
  margin: auto;
}
.aibot-textarea-wrapper ol li, 
.aibot-textarea-wrapper ul li{ margin: 4px 0; }

.aibot-textarea-wrapper code {
  background-color: rgba(175,184,193,.2);
  border-radius: 6px;
  font-size: 85%;
  margin: 0;
  padding: 0.1em 0.4em;
  white-space: break-spaces;
  display: inline-block;
}



.aibot-copyright{
  font-size: 12px;
  color: var(--vt-text-color-grey);
  text-align: center;
  padding: 30px 0 20px 0;
}
.aibot-copyright a{
  font-size: 12px;
  color: var(--vt-text-color-grey);
}



/**
 * 文章详情页，合成音频卡片
 */
.botcan-audio-widget {
  width: 100%;
  max-width: 300px;
  background-color: var(--vt-bg-color-grey);
  padding: 10px 10px 10px 10px;
  margin: 20px 0 30px 0;
  border-radius: var(--vt-border-radius);
}
.botcan-audio-widget audio{
  height: 30px;
}
.botcan-audio-widget audio::-webkit-media-controls-enclosure {
  background-color: var(--vt-bg-color-grey);
}
.botcan-audio-info{
  font-size: 12px;
  line-height: 12px;
  padding: 0 0 0 20px;
  color: var(--vt-text-color-grey);
}










